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:
helmutm 2006-10-08 18:34:26 +00:00
parent 9613b18ad2
commit 23e8733e16
2 changed files with 5 additions and 1 deletions

View file

@ -73,6 +73,9 @@ 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 '
'application or environment specific purposes')
# possible extensions:
# subTypes
# parentTypes

View file

@ -32,9 +32,10 @@ class BaseType(object):
def __init__(self, context):
self.context = context
self.options = {}
def __eq__(self, other):
return self.token == other.token
return IType.providedBy(other) and self.token == other.token
title = u'BaseType'