Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(13)  |  Call(13)  |  Derive(0)  |  Import(0)

src/e/r/erp5-HEAD/product/ERP5Type/patches/BTreeFolder2.py   erp5(Download)
        check(self._tree)
        for key in self._tree.keys():
            if not self._tree.has_key(key):
                raise AssertionError(
                    "Missing value for key: %s" % repr(key))
        check(self._mt_index)
        for key, object in self._tree.items():
            meta_type = getattr(object, 'meta_type', None)
            if meta_type is not None:
              if not self._mt_index.has_key(meta_type):
                      "Missing meta_type index for key: %s" % repr(key))
        for key, value in self._mt_index.items():
            if (not self._mt_index.has_key(key)
                or self._mt_index[key] is not value):
                raise AssertionError(
                    "Missing or incorrect meta_type index: %s"
                    % repr(key))
            check(value)
            for k in value.keys():
                if not value.has_key(k) or not self._tree.has_key(k):

src/i/n/indico-HEAD/indico/MaKaC/conference.py   indico(Download)
            self._coordinators=OOBTree()
 
        if av is None or not self._coordinators.has_key(av.getId()):
            return
        del self._coordinators[av.getId()]
        except AttributeError, e:
            self._coordinators=OOBTree()
        if (av is not None) and self._coordinators.has_key(av.getId()):
            return True
        ret = False
        except AttributeError:
            self._authors = OOBTree()
        if not self._authors.has_key( part.getId() ):
            return
        del self._authors[ part.getId() ]
        except AttributeError:
            self._authors = OOBTree()
        return self._authors.has_key( part.getId() )
 
    def getSpeakerById(self, authorId):
        except AttributeError:
            self._abstracts = OOBTree()
        return self._abstracts.has_key( abstract.getId() )
 
    def addAbstract( self, abstract ):

src/e/r/erp5-HEAD/product/ERP5/Document/ZODBContinuousIncreasingIdGenerator.py   erp5(Download)
        if not isinstance(id_group, str):
          id_group = repr(id_group)
        if self.last_id_dict.has_key(id_group) and \
           self.last_id_dict[id_group] > last_id:
          continue