Exemple #1
0
 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)
Exemple #2
0
 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)
Exemple #3
0
 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)
Exemple #4
0
 def _checkId(self, id, allow_dup=0):
     Folder._checkId(self, id, allow_dup)
     BTreeFolder2Base._checkId(self, id, allow_dup)
Exemple #5
0
 def _checkId(self, id, allow_dup=0):
     Folder._checkId(self, id, allow_dup)
     BTreeFolder2Base._checkId(self, id, allow_dup)
 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)