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:
parent
5ef2313e82
commit
59f012b528
4 changed files with 13 additions and 4 deletions
|
@ -76,5 +76,9 @@ table.listing th {
|
||||||
border-bottom-width: 2px;
|
border-bottom-width: 2px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pre {
|
||||||
|
background-color: #f4f4f4;
|
||||||
|
}
|
||||||
|
|
||||||
#footer { border-bottom: none; }
|
#footer { border-bottom: none; }
|
||||||
|
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
<link rel="icon" type="image/png"
|
<link rel="icon" type="image/png"
|
||||||
tal:attributes="href string:${resourceBase}favicon.png" />
|
tal:attributes="href string:${resourceBase}favicon.png" />
|
||||||
|
|
||||||
<base href="." tal:attributes="href view/url|string:">
|
<base href="." tal:attributes="href request/URL">
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body tal:content="structure body" />
|
<body tal:content="structure body" />
|
||||||
|
|
|
@ -73,9 +73,11 @@ class IType(Interface):
|
||||||
'to the type. Note that this object need not '
|
'to the type. Note that this object need not '
|
||||||
'provide the IType interface itself but it '
|
'provide the IType interface itself but it '
|
||||||
'should be adaptable to ITypeProvider')
|
'should be adaptable to ITypeProvider')
|
||||||
options = schema.Dict(title=u'Options',
|
options = schema.List(title=u'Options',
|
||||||
description=u'A mapping of optional settings to be used for '
|
description=u'A list of optional settings to be used for '
|
||||||
'application or environment specific purposes')
|
'application or environment specific purposes')
|
||||||
|
optionsDict = Attribute('The options transformed to a dictionary')
|
||||||
|
|
||||||
# possible extensions:
|
# possible extensions:
|
||||||
# subTypes
|
# subTypes
|
||||||
# parentTypes
|
# parentTypes
|
||||||
|
|
|
@ -32,7 +32,6 @@ class BaseType(object):
|
||||||
|
|
||||||
def __init__(self, context):
|
def __init__(self, context):
|
||||||
self.context = context
|
self.context = context
|
||||||
self.options = {}
|
|
||||||
|
|
||||||
def __eq__(self, other):
|
def __eq__(self, other):
|
||||||
return IType.providedBy(other) and self.token == other.token
|
return IType.providedBy(other) and self.token == other.token
|
||||||
|
@ -53,6 +52,10 @@ class BaseType(object):
|
||||||
viewName = ''
|
viewName = ''
|
||||||
typeProvider = None
|
typeProvider = None
|
||||||
|
|
||||||
|
@property
|
||||||
|
def options(self):
|
||||||
|
return []
|
||||||
|
|
||||||
|
|
||||||
class TypeManager(object):
|
class TypeManager(object):
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue