Logo Search packages:      
Sourcecode: zope-cps-portaltransforms version File versions  Download package

def PortalTransforms::zope::TransformsChain::TransformsChain::move_object_to_position (   self,
  id,
  newpos 
)

overriden from OrderedFolder to store id instead of objects

Definition at line 109 of file TransformsChain.py.

00109                                                  :
        """ overriden from OrderedFolder to store id instead of objects
        """
        oldpos = self._object_ids.index(id)
        if (newpos < 0 or newpos == oldpos or newpos >= len(self._object_ids)):
            return 0
        self._object_ids.pop(oldpos)
        self._object_ids.insert(newpos, id)
        self._chain_init()
        return 1

    security.declareProtected(ManageProperties, 'move_object_up')
    def move_object_up(self, id, REQUEST=None):


Generated by  Doxygen 1.6.0   Back to index