Diff for /OSAS/OSA_system/OSAS_Root.py between versions 1.12 and 1.13

version 1.12, 2004/06/23 13:01:14 version 1.13, 2004/07/01 07:46:42
Line 6  from Products.PageTemplates.PageTemplate Line 6  from Products.PageTemplates.PageTemplate
 from Products.PageTemplates.PageTemplate import PageTemplate  from Products.PageTemplates.PageTemplate import PageTemplate
 import urllib  import urllib
 import re  import re
   import xml.dom.minidom
   
 class OSAS_ViewerObject(Folder):  class OSAS_ViewerObject(Folder):
     """Beschreibung eines Viewers"""      """Beschreibung eines Viewers"""
Line 64  class OSAS_Root(Folder,Implicit): Line 65  class OSAS_Root(Folder,Implicit):
         {'label':'Main Config','action':'Root_config'},          {'label':'Main Config','action':'Root_config'},
         )          )
   
     def getImageViewers(self):  
         """images"""  
         viewers=self.ZopeFind(self.standardImageViewer,obj_metatypes=['OSAS_ViewerObject'])  
         return viewers  
           
                   
     def setDigILibURL(self):      def setDigILibURL(self):
Line 104  class OSAS_Root(Folder,Implicit): Line 101  class OSAS_Root(Folder,Implicit):
   
         xmlneu=urllib.urlopen(xml_url).read()          xmlneu=urllib.urlopen(xml_url).read()
   
           try:
               dom=xml.dom.minidom.parseString(xmlneu)
           except:
               print "Error"
               print xmlneu
               return "error"
   
     path=re.sub(self.REQUEST['SERVER_URL'],'',index_meta_url)      path=re.sub(self.REQUEST['SERVER_URL'],'',index_meta_url)
     path=re.sub('http://'+self.REQUEST['HTTP_HOST'],'',index_meta_url)      path=re.sub('http://'+self.REQUEST['HTTP_HOST'],'',index_meta_url)
   
Line 113  class OSAS_Root(Folder,Implicit): Line 117  class OSAS_Root(Folder,Implicit):
   
   
         fh=open(path,'w')          fh=open(path,'w')
   
         fh.write(xmlneu)          fh.write(xmlneu)
         fh.close()          fh.close()
         return "ok"          return "ok"
   
           
 def manage_AddOSAS_RootForm(self):  def manage_AddOSAS_RootForm(self):
     """interface for adding the OSAS_root"""      """interface for adding the OSAS_root"""
     pt=PageTemplateFile('Products/OSA_system/zpt/AddOSAS_Root.zpt').__of__(self)      pt=PageTemplateFile('Products/OSA_system/zpt/AddOSAS_Root.zpt').__of__(self)

Removed from v.1.12  
changed lines
  Added in v.1.13


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