--- OSAS/OSA_system/OSAS_add.py 2004/04/15 09:45:29 1.24
+++ OSAS/OSA_system/OSAS_add.py 2004/04/16 09:11:34 1.28
@@ -67,9 +67,10 @@ def add2(self):
self.bibdata={}
for referenceType in self.referencetypes:
#print referenceType
- self.bibdata[referenceType[1].title]=referenceType[1].fields
- self.bibdata['data']=referenceType[1]
- self.fields=self.bibdata[self.reftype]
+ if referenceType[1].title == self.reftype:
+ self.bibdata[referenceType[1].title]=referenceType[1].fields
+ self.bibdata['data']=referenceType[1]
+ self.fields=self.bibdata[self.reftype]
self.isolist=getISO()
tmp=getISO().keys()
@@ -291,7 +292,7 @@ def addPresentation2(self):
def addText(self,path,folder=None):
"""add fulltext to the path"""
self.REQUEST.SESSION['existing_names']=['pageimg'] # to be done generate list of existing text files
- self.REQUEST.SESSION['path']=path
+ self.REQUEST.SESSION['pathnew']=path
newtemplate=PageTemplateFile('Products/OSA_system/zpt/addText').__of__(self)
return newtemplate()
@@ -300,7 +301,7 @@ def addText2(self):
folder_name=self.REQUEST['folder_name']
#print self.REQUEST['folder_name']
content_description=self.REQUEST['content_description']
- path=self.REQUEST.SESSION['path']
+ path=self.REQUEST.SESSION['pathnew']
file_name=self.REQUEST['fileupload'].filename
filedata=self.REQUEST.form['fileupload'].read()
os.mkdir(path+"/"+folder_name)
@@ -618,7 +619,7 @@ def combineTextImage2(self,path):
- print urllib.urlopen("http://nausikaa2.rz-berlin.mpg.de:86/cgi-bin/toc/admin/reg.cgi?path=%s"%path).readlines()
+ urllib.urlopen("http://nausikaa2.rz-berlin.mpg.de:86/cgi-bin/toc/admin/reg.cgi?path=%s"%path).readlines()
if self.REQUEST.has_key('image'): # falls bilder
os.popen("ssh nausikaa2.rz-berlin.mpg.de /usr/local/mpiwg/scripts/scaleomat.pl %s /mpiwg/temp/online/scaled/thumb 90 >> /tmp/sc.out &"% re.sub('/mpiwg/online/','',self.REQUEST['path']+"/"+self.REQUEST['image']))
@@ -629,7 +630,7 @@ def combineTextImage2(self,path):
f.close()
splitted=path.split("/")
fn=splitted[len(splitted)-1]
- remotePath="nausikaa2.rz-berlin.mpg.de:/usr/local/share/archimedes/web/docs/proj/echo/1/docs/"+fn+"/info.xml"
+ remotePath="archive@nausikaa2.rz-berlin.mpg.de:/usr/local/share/archimedes/web/docs/proj/echo/1/docs/"+fn+"/info.xml"
os.popen("scp /tmp/tmp_info.xml %s"%remotePath)
def patchedInfoXML(path):
@@ -653,8 +654,15 @@ def patchedInfoXML(path):
"""not"""
ret+="