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): ...@@ -42,7 +42,7 @@ class StateError(Exception):
""" """
pass pass
class State(IdAsReferenceMixin('state_'), XMLObject, XMLMatrix): class State(IdAsReferenceMixin('_state'), XMLObject, XMLMatrix):
""" """
A ERP5 State. A ERP5 State.
""" """
...@@ -53,7 +53,7 @@ class State(IdAsReferenceMixin('state_'), XMLObject, XMLMatrix): ...@@ -53,7 +53,7 @@ class State(IdAsReferenceMixin('state_'), XMLObject, XMLMatrix):
isRADContent = 1 isRADContent = 1
###zwj: security features ###zwj: security features
erp5_permission_roles = {} # { permission: [role] or (role,) } erp5_permission_roles = {} # { permission: [role] or (role,) }
default_reference = ''
# Declarative security # Declarative security
security = ClassSecurityInfo() security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.AccessContentsInformation) security.declareObjectProtected(Permissions.AccessContentsInformation)
...@@ -64,6 +64,7 @@ class State(IdAsReferenceMixin('state_'), XMLObject, XMLMatrix): ...@@ -64,6 +64,7 @@ class State(IdAsReferenceMixin('state_'), XMLObject, XMLMatrix):
PropertySheet.XMLObject, PropertySheet.XMLObject,
PropertySheet.CategoryCore, PropertySheet.CategoryCore,
PropertySheet.DublinCore, PropertySheet.DublinCore,
PropertySheet.Reference,
PropertySheet.State,) PropertySheet.State,)
def getAvailableTransitionList(self, document): 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