version 1.19, 2004/11/23 13:09:27
|
version 1.22, 2004/12/01 09:16:29
|
Line 14 try:
|
Line 14 try:
|
from Products.ECHO_content.ECHO_collection import ECHO_basis |
from Products.ECHO_content.ECHO_collection import ECHO_basis |
except: |
except: |
print "ECHO Elements not imported" |
print "ECHO Elements not imported" |
ECHO_basis=None |
class ECHO_basis: |
|
"""leer""" |
|
manage_options=() |
|
|
|
|
def sortv(x,y): |
def sortv(x,y): |
Line 51 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 73 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 133 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 146 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 |