Commit 67309a22 authored by Jim Fulton's avatar Jim Fulton

Added PUT and __call__ roles.

parent 3c5cb149
"""Document object""" """Document object"""
__version__='$Revision: 1.39 $'[11:-2] __version__='$Revision: 1.40 $'[11:-2]
from Globals import HTML, HTMLFile, MessageDialog from Globals import HTML, HTMLFile, MessageDialog
from string import join,split,strip,rfind,atoi from string import join,split,strip,rfind,atoi
...@@ -48,6 +48,7 @@ class Document(HTML, Explicit, RoleManager, Item_w__name__): ...@@ -48,6 +48,7 @@ class Document(HTML, Explicit, RoleManager, Item_w__name__):
('View Access', ['View',]), ('View Access', ['View',]),
) )
__call____roles__='Manager', 'Shared'
def __call__(self, client=None, REQUEST={}, RESPONSE=None, **kw): def __call__(self, client=None, REQUEST={}, RESPONSE=None, **kw):
""" """ """ """
kw['document_id'] =self.id kw['document_id'] =self.id
...@@ -114,6 +115,7 @@ class Document(HTML, Explicit, RoleManager, Item_w__name__): ...@@ -114,6 +115,7 @@ class Document(HTML, Explicit, RoleManager, Item_w__name__):
message='Your changes have been saved', message='Your changes have been saved',
action ='manage_main') action ='manage_main')
PUT__roles__='Manager',
def PUT(self, BODY, REQUEST): def PUT(self, BODY, REQUEST):
""" """ """ """
self.munge(BODY) self.munge(BODY)
......
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