Changeset 3331


Ignore:
Timestamp:
Jan 6, 2012, 1:27:29 PM (14 years ago)
Author:
dwinter
Message:

minor

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/displayXML.py

    r2329 r3331  
    100100   
    101101    def __init__(self):
    102         """init the storage"""
    103         self.storage=FileStorage(os.path.join(INSTANCE_HOME,"var/XML_caching.fs"))             
    104         self.db=DB(self.storage)   
    105         self.connection=self.db.open()
    106         self.root=self.connection.root()
    107 
     102        """init the storage
     103        TODO: repair this"""
     104        try:
     105            #self.storage=FileStorage(os.path.join(INSTANCE_HOME,"var/XML_caching.fs"))         
     106            self.db=DB(self.storage)   
     107            self.connection=self.db.open()
     108            self.root=self.connection.root()
     109        except:
     110            pass
     111           
    108112    def deleteObject(self,name,pn=None):
    109113        """delete an object from cache"""
Note: See TracChangeset for help on using the changeset viewer.