コード例 #1
0
ファイル: propfind.py プロジェクト: Uznick/PyWebDav
    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
コード例 #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
コード例 #3
0
ファイル: propfind.py プロジェクト: tieugene/python-wdp
    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
コード例 #4
0
ファイル: propfind.py プロジェクト: tieugene/tipython
    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
コード例 #5
0
ファイル: propfind.py プロジェクト: DEMONkill/Nautilus
	def read_propfind(self,xml_doc):
	    self.request_type,self.proplist,self.namespaces=utils.parse_propfind(xml_doc)
コード例 #6
0
 def read_propfind(self, xml_doc):
     self.request_type, self.proplist, self.namespaces = utils.parse_propfind(
         xml_doc)