Commit 86a6769e authored by Jim Fulton's avatar Jim Fulton

Changed to use manage_editedDialog.

Changed default html slightly.
parent f8fd70fb
"""Document object""" """Document object"""
__version__='$Revision: 1.20 $'[11:-2] __version__='$Revision: 1.21 $'[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
...@@ -80,21 +80,18 @@ class Document(HTML, RoleManager, SimpleItem.Item_w__name__): ...@@ -80,21 +80,18 @@ class Document(HTML, RoleManager, SimpleItem.Item_w__name__):
self.title=title self.title=title
self._setRoles(acl_type,acl_roles) self._setRoles(acl_type,acl_roles)
self.munge(data) self.munge(data)
if REQUEST: if REQUEST: return self.manage_editedDialog(REQUEST)
return MessageDialog(title='Change Successful',
message='Your changes have been saved',
action='%s/manage_main' % REQUEST['URL2'])
default_html="""<!--#var standard_html_header--> default_html="""<!--#var standard_html_header-->
<H2><!--#var document_title--></H2> <H2><!--#var title_or_id--> <!--#var document_title--></H2>
<P>This is the <!--#var document_id--> Document in <P>This is the <!--#var document_id--> Document in
the <!--#var title_or_id--> Folder.</P> the <!--#var title_and_id--> Folder.</P>
<!--#var standard_html_footer-->""" <!--#var standard_html_footer-->"""
class DocumentHandler: class DocumentHandler:
"""Document object handler mixin""" """Document object handler mixin"""
meta_types=({'name':'Document', 'action':'manage_addDocumentForm'},) meta_types=() #({'name':'Document', 'action':'manage_addDocumentForm'},)
manage_addDocumentForm=HTMLFile('OFS/documentAdd') manage_addDocumentForm=HTMLFile('OFS/documentAdd')
......
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