[gen] Added some default page and field layouts.

This commit is contained in:
Gaetan Delannay 2012-09-24 16:32:16 +02:00
parent 4d9823a59a
commit d3e2478d6b
2 changed files with 5 additions and 0 deletions

View file

@ -372,6 +372,7 @@ class Type:
# field, keyed by layoutType.
cssFiles = {}
jsFiles = {}
dLayouts = 'lrv-d-f'
def __init__(self, validator, multiplicity, index, default, optional,
editDefault, show, page, group, layouts, move, indexed,

View file

@ -222,6 +222,10 @@ defaultPageLayouts = {
# A layout for pages, containing the page summary.
summaryPageLayouts = {'view': Table('s-n!-w|-b|', align="center"),
'edit': Table('w|-b|', width=None)}
widePageLayouts = {
'view': Table('n!-w|-b|', align="center"),
'edit': Table('w|-b|')
}
# The default layout for fields. Alternative layouts may exist and are declared
# as static attributes of the concerned Type subclass.
defaultFieldLayouts = {'edit': 'lrv-f'}