(self, object, xml)
return conflict_list
This allows to specify how to handle the local permision informations.
    This is really usefull if you want to write your own Conduit.
This allows to specify how to handle the local permision informations.
    This is really usefull if you want to write your own Conduit.
This allows to specify how to handle the local permision informations . This is really usefull if you want to write your own Conduit .
def addLocalPermissionNode(self, object, xml): # pylint: disable=redefined-builtin
    """
    This allows to specify how to handle the local permision informations.
    This is really usefull if you want to write your own Conduit.
    """
    conflict_list = []
    # We want to add a local role
    #LOG('addLocalPermissionNode, xml',0,xml)
    roles = self.convertXmlValue(xml, data_type='tokens')

    permission = xml.get('id')
    #LOG('local_role: ',0,'permission: %s roles: %s' % (repr(permission),repr(roles)))
    #user = roles[0]
    #roles = roles[1:]
    if xml.xpath('local-name()') == LOCAL_PERMISSION_TAG:
      object.manage_setLocalPermissions(permission, roles)
    return conflict_list
def addLocalPermissionNode ( self , object , xml ) : # pylint: disable=redefined-builtin conflict_list = [ ] # We want to add a local role #LOG('addLocalPermissionNode, xml',0,xml) roles = self . convertXmlValue ( xml , data_type = 'tokens' ) permission = xml . get ( 'id' ) #LOG('local_role: ',0,'permission: %s roles: %s' % (repr(permission),repr(roles))) #user = roles[0] #roles = roles[1:] if xml . xpath ( 'local-name()' ) == LOCAL_PERMISSION_TAG : object . manage_setLocalPermissions ( permission , roles ) return conflict_list