durusmail: quixote-users: dulcineaPage
dulcineaPage
2003-06-16
dulcineaPage
Neil Schemenauer
2003-06-26
On Mon, Jun 16, 2003 at 03:36:24PM -0700, Larry Tjoelker wrote:
> Right now I'm confusing myself between form things and page things.
> The inheritance model seems so transparent until I try to create it on
> my own.  Is there a sample of code that implements a form within or
> using DulcineaPage?

DulcineaPage is pretty experimental.  We don't really use it (haven't
really decided if it's a good idea).

Most of our pages with forms are built using the Form class.  Eg.

    class MyForm(Form):
        ...
        def render(self, request, action_url):
            header(...)
            ...
            Form.render(self, request, action_url)
            ...
            footer()


    def mypage(request):
        ... optional access control ...
        return MyForm().handle(request)

'header' and 'footer' are templates that render a standard header and
footer.

  Neil

reply