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:
parent
5c6f26e2ec
commit
6e3514c4be
1 changed files with 5 additions and 2 deletions
|
@ -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
|
||||
# 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.i18nmessageid import MessageFactory
|
||||
|
||||
_ = MessageFactory('zope')
|
||||
_ = MessageFactory('cybertools.knowledge')
|
||||
|
||||
|
||||
class IKnowledgeElement(Interface):
|
||||
|
@ -69,6 +69,9 @@ class IKnowing(Interface):
|
|||
""" Someone who knows something.
|
||||
"""
|
||||
|
||||
knowledge = Attribute('A set of knowledge elements that this object '
|
||||
'knows about.')
|
||||
|
||||
def getKnowledge():
|
||||
""" Return the collection of elements that constitute the
|
||||
knowledge of this object.
|
||||
|
|
Loading…
Add table
Reference in a new issue