[albatross-users] Feature request

Matt Goodall matt at pollenation.net
Tue Jul 15 11:27:32 EST 2003


It would be nice if the code for multiples pages in a random app could
be kept in a single Python module. Something like a mix of page object
and page module (see below) might work although I am aware that page
objects are created once and are registered with the application.

users.py
--------
# Page for uri of /users/list
class ListUsers:
    name = 'list'
    def page_display(self, ctx):
        pass

# Page for uri of /users/add
class AddUser:
    name = 'add'
    def page_process(self, ctx):
        pass
    def page_display(self, ctx):
        pass
-----

Perhaps there is a better way than this?

- Matt

-- 
Matt Goodall, Pollenation Internet Ltd
w: http://www.pollenation.net
e: matt at pollenation.net



More information about the Albatross-users mailing list