diff --git a/gen/__init__.py b/gen/__init__.py index 97d3ca0..ba0e346 100644 --- a/gen/__init__.py +++ b/gen/__init__.py @@ -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, diff --git a/gen/layout.py b/gen/layout.py index d1e03af..1b0846a 100644 --- a/gen/layout.py +++ b/gen/layout.py @@ -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'}