Diff for /zogiLib/zogiLib.py between versions 1.46 and 1.48

version 1.46, 2004/10/05 17:43:53 version 1.48, 2004/10/12 16:58:14
Line 15  import types Line 15  import types
 import random  import random
 from Globals import package_home  from Globals import package_home
   
 ZOGIVERSION = "0.9.10b ROC:5.10.2004"  ZOGIVERSION = "0.9.10b ROC:12.10.2004"
   
 def cropf(f):  def cropf(f):
     """returns a float with reduced precision"""      """returns a float with reduced precision"""
Line 537  class zogiLib(Folder): Line 537  class zogiLib(Folder):
         paramH={}          paramH={}
         baseUrl=self.dlServerURL+"/dlInfo-xml.jsp"          baseUrl=self.dlServerURL+"/dlInfo-xml.jsp"
         try:          try:
               print "querying: ", baseUrl+'?'+self.REQUEST['QUERY_STRING']
             url=urllib.urlopen(baseUrl+'?'+self.REQUEST['QUERY_STRING'])              url=urllib.urlopen(baseUrl+'?'+self.REQUEST['QUERY_STRING'])
               print "  ok, parsing..."
             dom=xml.dom.minidom.parse(url)              dom=xml.dom.minidom.parse(url)
               print "  ok"
             params=dom.getElementsByTagName('parameter')              params=dom.getElementsByTagName('parameter')
             for param in params:              for param in params:
                   print "  param: ", param.getAttribute('name'), " = ", param.getAttribute('value')
                 paramH[param.getAttribute('name')]=param.getAttribute('value')                  paramH[param.getAttribute('name')]=param.getAttribute('value')
             return paramH              return paramH
         except:          except:
Line 924  class zogiLib(Folder): Line 928  class zogiLib(Folder):
   
     def getPT(self):      def getPT(self):
         """pagenums"""          """pagenums"""
         di = self.getSubSession('dlInfo_')          di = self.getSubSession('dlInfo')
         if di:          if di:
             return int(di['pt'])              return int(di['pt'])
         else:          else:

Removed from v.1.46  
changed lines
  Added in v.1.48


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