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

version 1.48, 2004/10/12 16:58:14 version 1.49, 2004/10/12 17:36:26
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:12.10.2004"  ZOGIVERSION = "0.9.11b ROC:12.10.2004"
   
 def cropf(f):  def cropf(f):
     """returns a float with reduced precision"""      """returns a float with reduced precision"""
Line 105  class zogiImage(Image): Line 105  class zogiImage(Image):
   
     def index_html(self, REQUEST, RESPONSE):      def index_html(self, REQUEST, RESPONSE):
         """service the request by redirecting to digilib server"""          """service the request by redirecting to digilib server"""
         print "REDIRECT: ", self.baseUrl+self.queryString  
         RESPONSE.redirect(self.baseUrl+self.queryString)          RESPONSE.redirect(self.baseUrl+self.queryString)
         return ''          return ''
                   
Line 537  class zogiLib(Folder): Line 536  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:

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


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