Commit 93212158 authored by wenjie.zheng's avatar wenjie.zheng Committed by Sebastien Robin

State.py: add property Reference and varable default _reference.

parent 13edbe90
......@@ -42,7 +42,7 @@ class StateError(Exception):
"""
pass
class State(IdAsReferenceMixin('state_'), XMLObject, XMLMatrix):
class State(IdAsReferenceMixin('_state'), XMLObject, XMLMatrix):
"""
A ERP5 State.
"""
......@@ -53,7 +53,7 @@ class State(IdAsReferenceMixin('state_'), XMLObject, XMLMatrix):
isRADContent = 1
###zwj: security features
erp5_permission_roles = {} # { permission: [role] or (role,) }
default_reference = ''
# Declarative security
security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.AccessContentsInformation)
......@@ -64,6 +64,7 @@ class State(IdAsReferenceMixin('state_'), XMLObject, XMLMatrix):
PropertySheet.XMLObject,
PropertySheet.CategoryCore,
PropertySheet.DublinCore,
PropertySheet.Reference,
PropertySheet.State,)
def getAvailableTransitionList(self, document):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment