{{extend 'layout.html'}} {{ def peekfile(path,file): return A(file.replace('\\\\','/'),_href=URL(r=request,f='peek/%s/%s/%s' % (app, path, file))) def editfile(path,file): return A('edit',_href=URL(r=request,f='edit/%s/%s/%s' % (app, path, file))) def htmleditfile(path,file): return A('htmledit',_href=URL(r=request,f='htmledit/%s/%s/%s' % (app, path, file))) def editlanguagefile(path,file): return A('edit',_href=URL(r=request,f='edit_language/%s/%s/%s' % (app, path, file))) def file_upload_form(location): form=FORM("upload file: ",INPUT(_type="file",_name="file"), "and rename it: ", INPUT(_type="text",_name="filename",requires=IS_NOT_EMPTY), INPUT(_type="hidden",_name="location",_value=location), INPUT(_type="hidden",_name="sender",_value=URL(r=request,f='design/'+app)), INPUT(_type="submit"),_action=URL(r=request,f='upload_file')) return form def file_create_form(location): form=FORM("create file with filename: ", INPUT(_type="text",_name="filename",requires=IS_NOT_EMPTY), INPUT(_type="hidden",_name="location",_value=location), INPUT(_type="hidden",_name="sender",_value=URL(r=request,f='design/'+app)), INPUT(_type="submit"),_action=URL(r=request,f='create_file')) return form }}

Design for "{{=app}}"

[ models | controllers | views | languages | static ]

Models

the data representation, define database tables and sets

{{if not models:}}There are no models{{else:}}[ database administration | {{=A('sql.log',_href=URL(r=request,f='peek/%s/databases/sql.log'%app))}} ] {{pass}}
{{ controller_functions=[] for c in controllers: controller_functions+=[c[:-3]+'/%s.html'%x for x in functions[c]] }}

Controllers

the application logic, each URL path is mapped in one exposed function in the controller

{{if not controllers:}}There are no controllers{{pass}}

Views

the presentations layer, views are also known as templates

{{if not views:}}There are no views{{pass}}

Languages

translation strings for the application

[ {{=A('update all languages',_href=URL(r=request,f='update_languages/'+app))}} ]
{{if not languages:}}There are no translators, only default language is supported{{pass}}

Static files

these files are served without processing, your images go here

{{if not statics:}}There are no static files{{pass}}