class Root(object): logon = LogonDB() wiki = Wiki(logon=logon, logoffpath="/logon/logoff") @cherrypy.expose def index(self): raise cherrypy.HTTPRedirect("/wiki")
class Root(object): logon = LogonDB() books = Books(logon=logon, logoffpath="/logon/logoff") @cherrypy.expose def index(self): return Root.logon.index(returnpage='/books')
class Root(object): logon = LogonDB() task = TaskApp(dbpath='/tmp/taskdb.db', logon=logon, logoffpath="/logon/logoff") @cherrypy.expose def index(self): return Root.logon.index(returnpage='/task')
class Root(object): logon = LogonDB() task = TaskApp(dbpath='/tmp/taskdb.db',logon=logon,logoffpath="/logon/logoff") @cherrypy.expose def index(self): return Root.logon.index(returnpage='/task') #Inserting Host and Port Output cherrypy.config.update({ 'server.socket_host': '0.0.0.0', 'server.socket_port': 8088, })
class Contacts(Relation): a = Account b = Contact class AccountAddress(Relation): a = Account b = Address class ContactAddress(Relation): a = Contact b = Address logon = LogonDB() class AccountBrowser(Browse): display = Display(Account) edit = Display(Account, edit=True, logon=logon, columns=Account.columns + [Address, User]) add = Display(Account, add=True, logon=logon, columns=Account.columns + [Address, User]) class UserBrowser(Browse):