Custom messages can now be returned as result of triggering transitions; added a mechanism for asking a confirmation to the user before saving it; bugfix in navigation (navigation info disappeared when firing workflow actions.
This commit is contained in:
parent
cccdc12372
commit
502c86dab8
7 changed files with 95 additions and 39 deletions
|
@ -47,6 +47,10 @@ class ToolMixin(BaseMixin):
|
|||
res['action'] = appyType.action
|
||||
return res
|
||||
|
||||
def getSiteUrl(self):
|
||||
'''Returns the absolute URL of this site.'''
|
||||
return self.portal_url.getPortalObject().absolute_url()
|
||||
|
||||
def generateDocument(self):
|
||||
'''Generates the document from field-related info. UID of object that
|
||||
is the template target is given in the request.'''
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue