Logo Search packages:      
Sourcecode: zope-lockablefolder version File versions

def zope-lockablefolder-0.1.0.orig::LockableFolder::LockableFolder::manage_lockObjects (   self,
  ids = [],
  REQUEST = None 
)

Lock a subordinate object

The objects specified in 'ids' get locked.

Definition at line 140 of file LockableFolder.py.

00140                                                       :
        """Lock a subordinate object
        
        The objects specified in 'ids' get locked.
        """
        if type(ids) is type(''): ids=[ids]
        if not ids:
            return MessageDialog(title='No items specified',
                   message='No items were specified!',
                   action ='./manage_main',)
        while ids:
            id=ids[-1]
            v=self._getOb(id, self)
            if v is self:
                raise 'BadRequest', '%s does not exist' % ids[-1]
            self._lockAccess(id)
            del ids[-1]
        if REQUEST is not None:
                return self.manage_main(self, REQUEST, update_menu=1)

    security.declareProtected('Lock and unlock objects', 'manage_unlockObjects')    


Generated by  Doxygen 1.6.0   Back to index