Exemplo n.º 1
0
    def __init__(self,uri,dataclass,depth, body):
        self.request_type=None
        self.nsmap={}
        self.proplist={}
        self.default_ns=None
        self._dataclass=dataclass
        self._depth=str(depth)
        self._uri=uri.rstrip('/')
        self._has_body=None    # did we parse a body?

        if dataclass.verbose:
            log.info('PROPFIND: Depth is %s, URI is %s' % (depth, uri))

        if body:
            self.request_type, self.proplist, self.namespaces = utils.parse_propfind(body)
            self._has_body = True
Exemplo n.º 2
0
    def __init__(self, uri, dataclass, depth, body):
        self.request_type = None
        self.nsmap = {}
        self.proplist = {}
        self.default_ns = None
        self._dataclass = dataclass
        self._depth = str(depth)
        self._uri = uri.rstrip('/')
        self._has_body = None   # did we parse a body?

        if dataclass.verbose:
            log.info('PROPFIND: Depth is %s, URI is %s' % (depth, uri))

        if body:
            self.request_type, self.proplist, self.namespaces = utils.parse_propfind(body)
            self._has_body = True
Exemplo n.º 3
0
    def __init__(self, uri, dataclass, depth, body):
        '''
        @param uri:str - uri of propfinded resource (http:// ?..)
        @param dataclass:type? - ???
        @param depth:int - 0|1|?
        @param body:str? - request body (not parsed?)
        '''
        self.request_type = None
        self.nsmap = {}
        self.proplist = {}
        self.default_ns = None
        self._dataclass = dataclass
        self._depth = str(depth)
        self._uri = uri.rstrip('/')
        self._has_body = None   # did we parse a body?

        if dataclass.verbose:
            log.info('PROPFIND: Depth is %s, URI is %s' % (depth, uri))

        if body:
            self.request_type, self.proplist, self.namespaces = \
                utils.parse_propfind(body)
            self._has_body = True
Exemplo n.º 4
0
    def __init__(self, uri, dataclass, depth, body):
        '''
        @param uri:str - uri of propfinded resource (http:// ?..)
        @param dataclass:type? - ???
        @param depth:int - 0|1|?
        @param body:str? - request body (not parsed?)
        '''
        self.request_type = None
        self.nsmap = {}
        self.proplist = {}
        self.default_ns = None
        self._dataclass = dataclass
        self._depth = str(depth)
        self._uri = uri.rstrip('/')
        self._has_body = None  # did we parse a body?

        if dataclass.verbose:
            log.info('PROPFIND: Depth is %s, URI is %s' % (depth, uri))

        if body:
            self.request_type, self.proplist, self.namespaces = \
                utils.parse_propfind(body)
            self._has_body = True
Exemplo n.º 5
0
	def read_propfind(self,xml_doc):
	    self.request_type,self.proplist,self.namespaces=utils.parse_propfind(xml_doc)
Exemplo n.º 6
0
 def read_propfind(self, xml_doc):
     self.request_type, self.proplist, self.namespaces = utils.parse_propfind(
         xml_doc)