Changeset 7305


Ignore:
Timestamp:
04/03/09 10:14:52 (3 years ago)
Author:
anonymous
Message:

new version of dail.py

File:
1 edited

Legend:

Unmodified
Added
Removed
  • contributed/trunk/dail/dail.py

    r7304 r7305  
    11# ---------------------------------------------------------------------- 
    2 #    The dacheAdminInterfaceLib V0.1 
     2#    The dacheAdminInterfaceLib V0.2  03.04.2009 
    33#     
    44#    Copyright (c) 2009 DESY IT (Sven Sternberger) 
     
    2323# real world production system. 
    2424#----------------------------------------------------------------------- 
     25# 0.2 - Empty results set causes endlless loop 
     26# 
     27#----------------------------------------------------------------------- 
    2528 
    2629from org.pcells.services.connection import * 
     
    3942       
    4043   def save(self,id,obj): 
     44      if DEBUG: print "Save ID: %d" % id 
    4145      self.storeHash[id]=obj 
    4246 
     
    4650      else: 
    4751         return False 
     52 
     53   def check(self,id): 
     54      return self.storeHash.has_key(id) 
    4855       
    4956 
     
    117124      while not self.MyDomainEventListener.activ: 
    118125         pass 
    119              
     126       
     127      if DEBUG: 
     128         print "CELL: %s, CMD: %s" % (domain,cmd) 
     129          
    120130      self.queryId=self.MyDomainEventListener._sendObject(domain,cmd) 
    121131 
    122       while not self.myStore.retrieve(self.queryId): 
     132      while not self.myStore.check(self.queryId): 
    123133         pass 
    124134             
Note: See TracChangeset for help on using the changeset viewer.