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

def ZPatterns::SheetProviders::SheetProvider::_delPropertySheetFor (   self,
  client,
  name = '',
  xmlns = '' 
) [private]

Delete client's propertysheet matching name or xmlns, if present.
Always returns None (unless an unexpected error occurs, of course)

Definition at line 94 of file SheetProviders.py.

00094                                                           :
        """
        Delete client's propertysheet matching name or xmlns, if present.
        Always returns None (unless an unexpected error occurs, of course)
        """
        pslist = client._v_readableSlot.get(psKey,())
        newlist = tuple(filter(
            lambda ps,name=name,xmlns=xmlns: 
                (not name or ps.id!=name) and 
                (not xmlns or ps.xml_namespace()!=xmlns),
            pslist
        ))
        if newlist!=pslist:
            client._v_writeableSlot[psKey] = newlist


    def _PropertySheetsFor(self, client):


Generated by  Doxygen 1.6.0   Back to index