def _checkId(self, id, allow_dup=0): if not allow_dup: if id in self._mapping: raise BadRequest('The id "%s" is already in use.' % id) return Folder._checkId(self, id, allow_dup)
def _checkId(self, id, allow_dup=0): if not allow_dup: if self._mapping.has_key(id): raise 'Bad Request', 'The id "%s" is already in use.' % id return Folder._checkId(self, id, allow_dup)
def _checkId(self, id, allow_dup=0): Folder._checkId(self, id, allow_dup) BTreeFolder2Base._checkId(self, id, allow_dup)