browser.layout - Layout¶
Basic layout components.
-
class
waeup.kofa.browser.layout.KofaAction(label, style='', tooltip='', warning='', **options)[source]¶ Bases:
grokcore.formlib.formlib.Action-
__doc__= None¶
-
__module__= 'waeup.kofa.browser.layout'¶
-
-
class
waeup.kofa.browser.layout.KofaAddFormPage(context, request)[source]¶ Bases:
waeup.kofa.browser.layout.UtilityView,megrok.layout.components.AddFormA megrok.layout.AddForm with additional methods.
-
__doc__= 'A megrok.layout.AddForm with additional methods.\n '¶
-
__module__= 'waeup.kofa.browser.layout'¶
-
template= <default_waeup_edit_form template in >¶
-
-
class
waeup.kofa.browser.layout.KofaDisplayFormPage(context, request)[source]¶ Bases:
waeup.kofa.browser.layout.UtilityView,megrok.layout.components.DisplayFormA megrok.layout.DisplayForm with additional methods.
-
__doc__= 'A megrok.layout.DisplayForm with additional methods.\n '¶
-
__module__= 'waeup.kofa.browser.layout'¶
-
hide_hint= True¶
-
template= <default_waeup_display_form template in >¶
-
-
class
waeup.kofa.browser.layout.KofaEditFormPage(context, request)[source]¶ Bases:
waeup.kofa.browser.layout.UtilityView,megrok.layout.components.EditFormA megrok.layout.EditForm with additional methods.
-
__doc__= 'A megrok.layout.EditForm with additional methods.\n '¶
-
__module__= 'waeup.kofa.browser.layout'¶
-
template= <default_waeup_edit_form template in >¶
-
-
class
waeup.kofa.browser.layout.KofaFormPage(context, request)[source]¶ Bases:
waeup.kofa.browser.layout.UtilityView,megrok.layout.components.FormA megrok.layout.Form with additional methods.
-
__doc__= 'A megrok.layout.Form with additional methods.\n '¶
-
__module__= 'waeup.kofa.browser.layout'¶
-
-
class
waeup.kofa.browser.layout.KofaLayout(request, context)[source]¶ Bases:
waeup.kofa.browser.layout.UtilityView,megrok.layout.components.LayoutA megrok.layout.Layout with additional methods.
-
__doc__= 'A megrok.layout.Layout with additional methods.\n '¶
-
__module__= 'waeup.kofa.browser.layout'¶
-
-
class
waeup.kofa.browser.layout.KofaPage(context, request)[source]¶ Bases:
waeup.kofa.browser.layout.UtilityView,megrok.layout.components.PageA megrok.layout page with additional methods.
-
__doc__= 'A megrok.layout page with additional methods.\n '¶
-
__module__= 'waeup.kofa.browser.layout'¶
-
-
class
waeup.kofa.browser.layout.Messages(context, request)[source]¶ Bases:
grok.components.ViewDisplay messages of message receivers.
-
__doc__= 'Display messages of message receivers.\n '¶
-
__module__= 'waeup.kofa.browser.layout'¶
-
messages¶
-
-
waeup.kofa.browser.layout.NullValidator(*args, **kw)[source]¶ A validator that does not validate.
This is needed especially for cancel buttons. We don’t want data to be validated that will be thrown away in the next step.
You can use it with
grok.actiondecorator like this:@grok.action('Cancel', validator=NullValidator) def cancel(self, **data): self.redirect(<whereever-you-go>)
-
class
waeup.kofa.browser.layout.SiteLayout(request, context)[source]¶ Bases:
waeup.kofa.browser.layout.KofaLayoutThe general site layout.
-
__doc__= ' The general site layout.\n '¶
-
__module__= 'waeup.kofa.browser.layout'¶
-
course_cat_used¶
-
site¶
-
stafftemp= < template in >¶ An instance of the default theme to use for the site layout
-
studenttemp= < template in >¶
-
-
class
waeup.kofa.browser.layout.UtilityView[source]¶ Bases:
objectA view mixin with useful methods.
The
pnavattribute (a number) tells, to which primary navigation tab a page declares to belong.-
__dict__= dict_proxy({'__module__': 'waeup.kofa.browser.layout', 'application_url': <function application_url at 0x7f402616b9b0>, 'pnav': 0, 'title': u'', '__dict__': <attribute '__dict__' of 'UtilityView' objects>, 'flash': <function flash at 0x7f402616ba28>, '__weakref__': <attribute '__weakref__' of 'UtilityView' objects>, '__doc__': 'A view mixin with useful methods.\n\n The ``pnav`` attribute (a number) tells, to which primary\n navigation tab a page declares to belong.\n '})¶
-
__doc__= 'A view mixin with useful methods.\n\n The ``pnav`` attribute (a number) tells, to which primary\n navigation tab a page declares to belong.\n '¶
-
__module__= 'waeup.kofa.browser.layout'¶
-
__weakref__¶ list of weak references to the object (if defined)
-
title= u''¶
-