Пример #1
0
 def __init__(self,
              url,
              customHeaders={},
              handleEncoding=False,
              cookieReg=None):
     ZSimpleXmlHTTPRequest.__init__(self, url, customHeaders,
                                    handleEncoding, cookieReg)
Пример #2
0
 def __init__(self, url, username, password, debug = False):
     atomHeaders = {}
     atomHeaders[u"Accept"] = u"application/atom+xml; text/html; text/xml; text/plain" #$NON-NLS-2$ #$NON-NLS-1$
     atomHeaders[u"Content-Type"] = u"application/atom+xml" #$NON-NLS-2$ #$NON-NLS-1$
     ZSimpleXmlHTTPRequest.__init__(self, url, atomHeaders)
     self.setAuthorization(username, password)
     self.errorData = None
     self.dom = None
     self.debug = debug
     self.logger = None
Пример #3
0
 def __init__(self, url, customHeaders, zBlogServerMediaUploadListener = None):
     self.listener = zBlogServerMediaUploadListener
     ZSimpleXmlHTTPRequest.__init__(self, url, customHeaders)
Пример #4
0
 def __init__(self,
              url,
              customHeaders,
              zBlogServerMediaUploadListener=None):
     self.listener = zBlogServerMediaUploadListener
     ZSimpleXmlHTTPRequest.__init__(self, url, customHeaders)
Пример #5
0
 def __init__(self, url, customHeaders = {}, handleEncoding = False, cookieReg = None):
     ZSimpleXmlHTTPRequest.__init__(self, url, customHeaders, handleEncoding, cookieReg)