Exemple #1
0
 def __init__(self, parent, indices=None):
     ZopeDict.__init__(self)
     self.__parent__  = parent
     parent[self.__name__] = self
     self._cat = Catalog()
     if indices is None:
         self._currentIndex = ""
     else:
         self._currentIndex = indices[0]
         for index in indices:
             self._cat[index] = CatalogFieldIndex(index)
Exemple #2
0
 def __init__(self, parent, indices=None):
     ZopeDict.__init__(self)
     self.__parent__ = parent
     parent[self.__name__] = self
     self._cat = Catalog()
     if indices is None:
         self._currentIndex = ""
     else:
         self._currentIndex = indices[0]
         for index in indices:
             self._cat[index] = CatalogFieldIndex(index)
Exemple #3
0
 def clear(self):
     ZopeDict.clear(self)
     self._cat.clear()
Exemple #4
0
 def pop(self, key, *args):
     retval = ZopeDict.pop(self, int(key), *args)
     self._cat.unindex_doc(int(key))
     return retval
Exemple #5
0
 def __setitem__(self, key, value):
     #self._cat.index_doc(int(key), value)
     ZopeDict.__setitem__(self, int(key), value)
Exemple #6
0
 def __contains__(self, key):
     return ZopeDict.__contains__(self, int(key))
Exemple #7
0
 def get(self, key, failobj=None):
     return ZopeDict.get(self, int(key), failobj)
Exemple #8
0
 def has_key(self, key):
     return ZopeDict.has_key(self, int(key))
Exemple #9
0
 def setdefault(self, key, failobj=None):
     return ZopeDict.setdefault(self, int(key), failobj)
Exemple #10
0
 def clear(self):
     ZopeDict.clear(self)
     self._cat.clear()
Exemple #11
0
 def pop(self, key, *args):
     retval = ZopeDict.pop(self, int(key), *args)
     self._cat.unindex_doc(int(key))
     return retval
Exemple #12
0
 def __setitem__(self, key, value):
     #self._cat.index_doc(int(key), value)
     ZopeDict.__setitem__(self, int(key), value)
Exemple #13
0
 def __contains__(self, key):
     return ZopeDict.__contains__(self, int(key))
Exemple #14
0
 def get(self, key, failobj=None):
     return ZopeDict.get(self, int(key), failobj)
Exemple #15
0
 def has_key(self, key):
     return ZopeDict.has_key(self, int(key))
Exemple #16
0
 def setdefault(self, key, failobj=None):
     return ZopeDict.setdefault(self, int(key), failobj)