version 1.20, 2004/11/24 17:02:56
|
version 1.22, 2004/12/01 09:16:29
|
Line 53 class versionedFileFolder(Folder,ECHO_ba
|
Line 53 class versionedFileFolder(Folder,ECHO_ba
|
"""lege standard index.html an""" |
"""lege standard index.html an""" |
|
|
|
|
|
if not self.ZopeFind(self,obj_ids=['index.html']): |
|
|
if not hasattr(self,'index.html'): |
|
zt=ZopePageTemplate('index.html') |
zt=ZopePageTemplate('index.html') |
self._setObject('index.html',zt) |
self._setObject('index.html',zt) |
default_content_fn = os.path.join(package_home(globals()), |
default_content_fn = os.path.join(package_home(globals()), |
Line 75 class versionedFileFolder(Folder,ECHO_ba
|
Line 73 class versionedFileFolder(Folder,ECHO_ba
|
|
|
|
|
|
|
|
if not self.ZopeFind(self,obj_ids=['history_template.html']): |
if not hasattr(self,'history_template.html'): |
|
zt=ZopePageTemplate('history_template.html') |
zt=ZopePageTemplate('history_template.html') |
self._setObject('history_template.html',zt) |
self._setObject('history_template.html',zt) |
default_content_fn = os.path.join(package_home(globals()), |
default_content_fn = os.path.join(package_home(globals()), |
Line 135 class versionedFileFolder(Folder,ECHO_ba
|
Line 132 class versionedFileFolder(Folder,ECHO_ba
|
|
|
def addFileForm(self): |
def addFileForm(self): |
"""add a file""" |
"""add a file""" |
|
ext=self.ZopeFind(self,obj_ids=["addFileForm.dtml"]) |
|
if ext: |
|
return ext[0][1]('',globals(),version='1',AUTHENTICATED_USER=self.REQUEST.AUTHENTICATED_USER) |
|
|
out=DTMLFile('dtml/newFileAdd', globals(),Kind='VersionedFileObject',kind='versionedFileObject',version='1').__of__(self) |
out=DTMLFile('dtml/newFileAdd', globals(),Kind='VersionedFileObject',kind='versionedFileObject',version='1').__of__(self) |
return out() |
return out() |
|
|
Line 148 class versionedFileFolder(Folder,ECHO_ba
|
Line 149 class versionedFileFolder(Folder,ECHO_ba
|
|
|
vC=self.REQUEST.form['vC'] |
vC=self.REQUEST.form['vC'] |
manage_addVersionedFile(self,id,'','') |
manage_addVersionedFile(self,id,'','') |
|
#if (getattr(self,'commentNonEmpty',0)==1) and vC.strip()=="": |
|
|
|
|
ob=self._getOb(id) |
ob=self._getOb(id) |
ob.title=id |
ob.title=id |
file2=file |
file2=file |