use options or type options for parts specification (instead of url-encoded view name parameters)

This commit is contained in:
Helmut Merz 2011-09-25 15:35:43 +02:00
parent 9a48f13865
commit 824c7606ad
2 changed files with 6 additions and 2 deletions

View file

@ -133,7 +133,11 @@ class Layout(Base):
def getParts(self):
result = []
parts = (self.params.get('parts') or ['h1,g3'])[0].split(',')
parts = (self.params.get('parts') or [''])[0].split(',') # obsolete
if not parts or not parts[0]:
parts = (self.options('parts') or
self.typeOptions('parts') or
['h1', 'g3'])
for p in parts:
viewName = 'lobo_' + p
view = component.queryMultiAdapter((self.context, self.request),

View file

@ -4,7 +4,7 @@
*/
/* positioning of page elements */
/* positioning of page sections */
#portlets {
margin-top: 1em;