provide 'knowledge' attribute for person

git-svn-id: svn://svn.cy55.de/Zope3/src/cybertools/trunk@4156 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
helmutm 2011-01-26 14:10:52 +00:00
parent 5c6f26e2ec
commit 6e3514c4be

View file

@ -1,5 +1,5 @@
# #
# Copyright (c) 2006 Helmut Merz helmutm@cy55.de # Copyright (c) 2011 Helmut Merz helmutm@cy55.de
# #
# This program is free software; you can redistribute it and/or modify # This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by # it under the terms of the GNU General Public License as published by
@ -26,7 +26,7 @@ from zope.interface import Interface, Attribute
from zope import schema from zope import schema
from zope.i18nmessageid import MessageFactory from zope.i18nmessageid import MessageFactory
_ = MessageFactory('zope') _ = MessageFactory('cybertools.knowledge')
class IKnowledgeElement(Interface): class IKnowledgeElement(Interface):
@ -69,6 +69,9 @@ class IKnowing(Interface):
""" Someone who knows something. """ Someone who knows something.
""" """
knowledge = Attribute('A set of knowledge elements that this object '
'knows about.')
def getKnowledge(): def getKnowledge():
""" Return the collection of elements that constitute the """ Return the collection of elements that constitute the
knowledge of this object. knowledge of this object.