Diff for /OSAS/OSA_system/OSAS_show.py between versions 1.2 and 1.3

version 1.2, 2003/09/25 17:52:02 version 1.3, 2003/10/01 08:20:47
Line 152  class OSAS_StoreOnline(SimpleItem): Line 152  class OSAS_StoreOnline(SimpleItem):
         if not self.REQUEST.has_key('fileupload'):          if not self.REQUEST.has_key('fileupload'):
             #newtext=urllib.unquote(self.REQUEST['indexmeta'])              #newtext=urllib.unquote(self.REQUEST['indexmeta'])
             newtext=self.REQUEST['indexmeta']              newtext=self.REQUEST['indexmeta']
             print newtext             
         else:          else:
             self.file_name=self.REQUEST['fileupload'].filename              self.file_name=self.REQUEST['fileupload'].filename
             #newtext=self.REQUEST.form['fileupload'].read()              #newtext=self.REQUEST.form['fileupload'].read()
Line 163  class OSAS_StoreOnline(SimpleItem): Line 163  class OSAS_StoreOnline(SimpleItem):
         indexmeta.writelines(newtext)          indexmeta.writelines(newtext)
         return self.REQUEST.response.redirect(self.REQUEST['URL1']+"?path="+self.REQUEST.SESSION['path'])          return self.REQUEST.response.redirect(self.REQUEST['URL1']+"?path="+self.REQUEST.SESSION['path'])
               
           def add_metafile(self):
           """nothing"""
           pt=PageTemplateFile('products/OSA_system/OSAS_addmetadata.zpt').__of__(self)
           return pt()
           
 def manage_AddOSAS_StoreOnlineForm(self):  def manage_AddOSAS_StoreOnlineForm(self):
     """interface for adding the OSAS_root"""      """interface for adding the OSAS_root"""
Line 819  def getText(nodelist): Line 821  def getText(nodelist):
   
 def getBib(nodelist):  def getBib(nodelist):
     rc= "<table border='0'>"      rc= "<table border='0'>"
     print "HI"      
     for node in nodelist:      for node in nodelist:
                   
         if node.nodeType == node.ELEMENT_NODE:          if node.nodeType == node.ELEMENT_NODE:
Line 862  def getMetafile(path): Line 864  def getMetafile(path):
     else:      else:
       html=html+"<h4>Info</h4>"        html=html+"<h4>Info</h4>"
         html=html+getBib(bib.childNodes)          html=html+getBib(bib.childNodes)
         print html          
        except:         except:
         """none"""          """none"""
                 

Removed from v.1.2  
changed lines
  Added in v.1.3


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>