Esempio n. 1
0
class Root(object):
    logon = LogonDB()
    wiki = Wiki(logon=logon, logoffpath="/logon/logoff")

    @cherrypy.expose
    def index(self):
        raise cherrypy.HTTPRedirect("/wiki")
Esempio n. 2
0
class Root(object):
    logon = LogonDB()
    books = Books(logon=logon, logoffpath="/logon/logoff")

    @cherrypy.expose
    def index(self):
        return Root.logon.index(returnpage='/books')
Esempio n. 3
0
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')
Esempio n. 4
0
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,
	})
Esempio n. 5
0
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):