recreate (obsolete) QualificationRecord stuff to avoid crashing of records listing on old ZODBs
This commit is contained in:
parent
e3359db4ca
commit
6d39f9f354
3 changed files with 42 additions and 1 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,5 +1,6 @@
|
|||
*.pyc
|
||||
*.pyo
|
||||
*.swp
|
||||
dist/
|
||||
*.project
|
||||
*.pydevproject
|
||||
|
|
|
@ -1 +1,32 @@
|
|||
'''package loops.knowledge.qualification'''
|
||||
'''package loops.knowledge.qualification'''
|
||||
|
||||
from zope.component import adapts
|
||||
from zope.interface import implementer, implements
|
||||
from cybertools.tracking.interfaces import ITrackingStorage
|
||||
from loops.knowledge.qualification.interfaces import IQualificationRecord, \
|
||||
IQualificationRecords
|
||||
from loops.organize.work.base import WorkItem, WorkItems
|
||||
|
||||
|
||||
class QualificationRecord(WorkItem):
|
||||
|
||||
implements(IQualificationRecord)
|
||||
|
||||
typeName = 'QualificationRecord'
|
||||
typeInterface = IQualificationRecord
|
||||
statesDefinition = 'knowledge.qualification'
|
||||
|
||||
def doAction(self, action, userName, **kw):
|
||||
new = self.createNew(action, userName, **kw)
|
||||
new.userName = self.userName
|
||||
new.doTransition(action)
|
||||
new.reindex()
|
||||
return new
|
||||
|
||||
|
||||
class QualificationRecords(WorkItems):
|
||||
""" A tracking storage adapter managing qualification records."""
|
||||
|
||||
implements(IQualificationRecords)
|
||||
adapts(ITrackingStorage)
|
||||
|
||||
|
|
|
@ -23,6 +23,7 @@ Interfaces for knowledge management and elearning with loops.
|
|||
from zope.interface import Interface, Attribute
|
||||
from zope import interface, component, schema
|
||||
|
||||
from cybertools.organize.interfaces import IWorkItem, IWorkItems
|
||||
from loops.interfaces import IConceptSchema, ILoopsAdapter
|
||||
from loops.util import _
|
||||
|
||||
|
@ -42,3 +43,11 @@ class ICompetence(ILoopsAdapter):
|
|||
required=False)
|
||||
|
||||
|
||||
class IQualificationRecord(IWorkItem):
|
||||
""" Records needs for qualification (acqusition of competence)
|
||||
and corresponding participations in training events etc."""
|
||||
|
||||
|
||||
class IQualificationRecords(IWorkItems):
|
||||
""" Container for qualification records."""
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue