some minor fixes and improvements

git-svn-id: svn://svn.cy55.de/Zope3/src/cybertools/trunk@1406 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
helmutm 2006-10-16 09:28:27 +00:00
parent 5ef2313e82
commit 59f012b528
4 changed files with 13 additions and 4 deletions

View file

@ -76,5 +76,9 @@ table.listing th {
border-bottom-width: 2px;
}
pre {
background-color: #f4f4f4;
}
#footer { border-bottom: none; }

View file

@ -28,7 +28,7 @@
<link rel="icon" type="image/png"
tal:attributes="href string:${resourceBase}favicon.png" />
<base href="." tal:attributes="href view/url|string:">
<base href="." tal:attributes="href request/URL">
</head>
<body tal:content="structure body" />

View file

@ -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

View file

@ -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):