Commit f734dd85 authored by Vincent Pelletier's avatar Vincent Pelletier

CMFActivity: Allow access to current tag.

parent 7b6d8ca2
......@@ -43,6 +43,10 @@ class ActivityRuntimeEnvironment(object):
def __init__(self, message):
self._message = message
security.declarePublic('getTag')
def getTag(self, default=None):
return self._message.activity_kw.get('tag', default)
security.declarePublic('edit')
def edit(self, **kw):
# There is no point allowing to modify other attributes from a message
......
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