From 59f012b528c7b0ae4400a3f75ad5b66ecedf895c Mon Sep 17 00:00:00 2001 From: helmutm Date: Mon, 16 Oct 2006 09:28:27 +0000 Subject: [PATCH] some minor fixes and improvements git-svn-id: svn://svn.cy55.de/Zope3/src/cybertools/trunk@1406 fd906abe-77d9-0310-91a1-e0d9ade77398 --- browser/liquid/base.css | 4 ++++ browser/main.pt | 2 +- typology/interfaces.py | 6 ++++-- typology/type.py | 5 ++++- 4 files changed, 13 insertions(+), 4 deletions(-) diff --git a/browser/liquid/base.css b/browser/liquid/base.css index 8939c32..3d9eabf 100644 --- a/browser/liquid/base.css +++ b/browser/liquid/base.css @@ -76,5 +76,9 @@ table.listing th { border-bottom-width: 2px; } +pre { + background-color: #f4f4f4; +} + #footer { border-bottom: none; } diff --git a/browser/main.pt b/browser/main.pt index 4263fb4..26070f5 100644 --- a/browser/main.pt +++ b/browser/main.pt @@ -28,7 +28,7 @@ - + diff --git a/typology/interfaces.py b/typology/interfaces.py index 4282903..a27eafb 100644 --- a/typology/interfaces.py +++ b/typology/interfaces.py @@ -73,9 +73,11 @@ class IType(Interface): 'to the type. Note that this object need not ' 'provide the IType interface itself but it ' 'should be adaptable to ITypeProvider') - options = schema.Dict(title=u'Options', - description=u'A mapping of optional settings to be used for ' + options = schema.List(title=u'Options', + description=u'A list of optional settings to be used for ' 'application or environment specific purposes') + optionsDict = Attribute('The options transformed to a dictionary') + # possible extensions: # subTypes # parentTypes diff --git a/typology/type.py b/typology/type.py index 36176bc..6e07290 100644 --- a/typology/type.py +++ b/typology/type.py @@ -32,7 +32,6 @@ class BaseType(object): def __init__(self, context): self.context = context - self.options = {} def __eq__(self, other): return IType.providedBy(other) and self.token == other.token @@ -53,6 +52,10 @@ class BaseType(object): viewName = '' typeProvider = None + @property + def options(self): + return [] + class TypeManager(object):