version 1.58, 2006/05/21 17:40:38
|
version 1.59, 2006/05/22 10:25:16
|
Line 916 class versionedFile(CatalogAware,Folder)
|
Line 916 class versionedFile(CatalogAware,Folder)
|
if str(self.REQUEST['AUTHENTICATED_USER']) in ["Anonymous User"]: |
if str(self.REQUEST['AUTHENTICATED_USER']) in ["Anonymous User"]: |
return "please login first" |
return "please login first" |
if (self.lockedBy==self.REQUEST['AUTHENTICATED_USER']) or (self.lockedBy==''): |
if (self.lockedBy==self.REQUEST['AUTHENTICATED_USER']) or (self.lockedBy==''): |
ext=self.ZopeFind(self,obj_ids=["addNewVersion.dtml"]) |
ext=self.ZopeFind(self.aq_parent,obj_ids=["addNewVersion.dtml"]) |
if ext: |
if ext: |
return ext[0][1]('',globals(),version='1',AUTHENTICATED_USER=self.REQUEST.AUTHENTICATED_USER) |
return ext[0][1]('',globals(),version=self.getVersion(),lastComment=self.getLastVersion().getVersionComment(),AUTHENTICATED_USER=self.REQUEST.AUTHENTICATED_USER) |
else: |
else: |
out=DTMLFile('dtml/fileAdd', globals(),Kind='VersionedFileObject',kind='versionedFileObject',version=self.getVersion()).__of__(self) |
out=DTMLFile('dtml/fileAdd', globals(),Kind='VersionedFileObject',kind='versionedFileObject',version=self.getVersion()).__of__(self) |
return out() |
return out() |