Exemple #1
0
 def __init__(self, req, config):
     """
     Initializes BlosxomCacheBase.__init__ and also opens the
     shelf file.
     """
     BlosxomCacheBase.__init__(self, req, config)
     self._db = shelve.open(self._config)
Exemple #2
0
 def __init__(self, req, config):
     """
     Takes in a Pyblosxom request object and a configuration string
     which determines where to store the pickle files.
     """
     BlosxomCacheBase.__init__(self, req, config)
     self._cachefile = ""
Exemple #3
0
 def __init__(self, req, config):
     """
     Takes in a Pyblosxom request object and a configuration string
     which determines where to store the pickle files.
     """
     BlosxomCacheBase.__init__(self, req, config)
     self._cachefile = ""
Exemple #4
0
 def __init__(self, req, config):
     """
     Initializes BlosxomCacheBase.__init__ and also opens the
     shelf file.
     """
     BlosxomCacheBase.__init__(self, req, config)
     self._db = shelve.open(self._config)
Exemple #5
0
 def load(self, entryid):
     """
     Takes an entryid and keeps track of the filename.  We only
     open the file when it's requested with getEntry.
     """
     BlosxomCacheBase.load(self, entryid)
     filename = os.path.join(self._config, entryid.replace('/', '_'))
     self._cachefile = filename + '.entrypickle'
Exemple #6
0
 def load(self, entryid):
     """
     Takes an entryid and keeps track of the filename.  We only
     open the file when it's requested with getEntry.
     """
     BlosxomCacheBase.load(self, entryid)
     filename = os.path.join(self._config, entryid.replace('/', '_'))
     self._cachefile = filename + '.entrypickle'
Exemple #7
0
 def load(self, entryid):
     """
     Loads a specific entryid.
     """
     BlosxomCacheBase.load(self, entryid)
 def load(self, entryid):
     BlosxomCacheBase.load(self, entryid)
 def __init__(self, config):
     BlosxomCacheBase.__init__(self, config)
     self._db = shelve.open(self._config)
 def load(self, entryid):
     BlosxomCacheBase.load(self, entryid)
     self._cacheFile = os.path.join(self._config, entryid.replace('/', '_')) + \
             '.entrypickle'
Exemple #11
0
 def load(self, entryid):
     """
     Loads a specific entryid.
     """
     BlosxomCacheBase.load(self, entryid)
Exemple #12
0
 def load(self, entryid):
     BlosxomCacheBase.load(self, entryid)
     self._cacheFile = os.path.join(self._config, entryid.replace('/', '_')) + \
             '.entrypickle'
Exemple #13
0
 def load(self, entryid):
     BlosxomCacheBase.load(self, entryid)
Exemple #14
0
 def __init__(self, req, config):
     BlosxomCacheBase.__init__(self, req, config)
     self._db = shelve.open(self._config)
 def load(self, entryid):
     BlosxomCacheBase.load(self, entryid)
     self._cacheFile = os.path.join(self._config, entryid.replace("/", "_")) + ".entrypickle"