Added options attribute to IType
git-svn-id: svn://svn.cy55.de/Zope3/src/cybertools/trunk@1394 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
parent
9613b18ad2
commit
23e8733e16
2 changed files with 5 additions and 1 deletions
|
@ -73,6 +73,9 @@ 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',
|
||||||
|
description=u'A mapping of optional settings to be used for '
|
||||||
|
'application or environment specific purposes')
|
||||||
# possible extensions:
|
# possible extensions:
|
||||||
# subTypes
|
# subTypes
|
||||||
# parentTypes
|
# parentTypes
|
||||||
|
|
|
@ -32,9 +32,10 @@ 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 self.token == other.token
|
return IType.providedBy(other) and self.token == other.token
|
||||||
|
|
||||||
title = u'BaseType'
|
title = u'BaseType'
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue