Commit 893bd0fe authored by Jim Fulton's avatar Jim Fulton

Changed REQUEST to default argument in addDocument.

parent 68ce71aa
"""Document object""" """Document object"""
__version__='$Revision: 1.9 $'[11:-2] __version__='$Revision: 1.10 $'[11:-2]
from STPDocumentTemplate import HTML from STPDocumentTemplate import HTML
from Globals import HTMLFile from Globals import HTMLFile
...@@ -94,8 +94,8 @@ class DocumentHandler: ...@@ -94,8 +94,8 @@ class DocumentHandler:
manage_addDocumentForm=HTMLFile('OFS/documentAdd') manage_addDocumentForm=HTMLFile('OFS/documentAdd')
def manage_addDocument(self,REQUEST,id,title,file='', def manage_addDocument(self,id,title,file='',
acl_type='A',acl_roles=[]): acl_type='A',acl_roles=[],REQUEST=None):
"""Add a new Document object""" """Add a new Document object"""
if not file: file=default_html if not file: file=default_html
i=Document(file, __name__=id) i=Document(file, __name__=id)
......
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