Ejemplo n.º 1
0
 def __len__(self):
     return len(_pf.get_tables(self.anchor))
Ejemplo n.º 2
0
 def has_key(self, key):
     return _pf.get_tables(self.anchor).has_key(key)
Ejemplo n.º 3
0
 def __getitem__(self, key):
     try:
         t = _pf.get_tables(self.anchor)[key]
     except KeyError:
         raise OException, "Table does not exist."
     return Table(self.anchor, key, t)
Ejemplo n.º 4
0
 def keys(self):
     return _pf.get_tables(self.anchor).keys()