Diff for /OSA_system2/OSAS_server.py between versions 1.9 and 1.10

version 1.9, 2005/02/14 17:26:31 version 1.10, 2005/02/14 18:15:16
Line 9  from Products.PageTemplates.PageTemplate Line 9  from Products.PageTemplates.PageTemplate
 from Globals import InitializeClass,package_home  from Globals import InitializeClass,package_home
 from OFS.SimpleItem import SimpleItem  from OFS.SimpleItem import SimpleItem
   
   def encodeRPC(string):
       return base64.encodestring(bz2.compress(string))
   
   
 class OSAS_storeOnlineServer(SimpleItem):  class OSAS_storeOnlineServer(SimpleItem):
Line 96  class OSAS_storeOnlineServer(SimpleItem) Line 97  class OSAS_storeOnlineServer(SimpleItem)
         """get all index Metas"""          """get all index Metas"""
         ret={}          ret={}
         if os.path.exists(path+"/index.meta"):          if os.path.exists(path+"/index.meta"):
             compressed=base64.encodestring(bz2.compress(file(path+"/index.meta","r").read()))              compressed=encodeRPC(file(path+"/index.meta","r").read())
             ret["."]=('OSAS_dir',compressed)              ret["."]=('OSAS_dir',compressed)
         for dir in os.listdir(path):          for dir in os.listdir(path):
             fileType=OSAS_helpers.checkOSASFileType(os.path.join(path,dir))              fileType=OSAS_helpers.checkOSASFileType(os.path.join(path,dir))
             if os.path.exists(os.path.join(path,dir,"index.meta")):              if os.path.exists(os.path.join(path,dir,"index.meta")):
                 compressed=base64.encodestring(bz2.compress(file(os.path.join(path,dir,"index.meta"),"r").read()))                  compressed=encodeRPC(file(os.path.join(path,dir,"index.meta"),"r").read())
                 ret[dir]=('OSAS_dir',compressed)                  ret[dir]=('OSAS_dir',compressed)
             else:              else:
                 ret[dir]=(fileType,None)                  ret[dir]=(fileType,None)

Removed from v.1.9  
changed lines
  Added in v.1.10


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