def load(self, mode='rb'):
     mode='rb'
     # XXX Can't seem to open with xml-rpc (use DAV for now)
     props = self.properties
     from ExternalLib.WebDAV.client import Resource
     r = Resource(('http://%(host)s:%(httpport)s/'+self.resourcepath) % props,
         props['username'], props['passwd'])
     return r.get().body
Exemplo n.º 2
0
 def load(self, mode='rb'):
     mode = 'rb'
     # XXX Can't seem to open with xml-rpc (use DAV for now)
     props = self.properties
     from ExternalLib.WebDAV.client import Resource
     r = Resource(
         ('http://%(host)s:%(httpport)s/' + self.resourcepath) % props,
         props['username'], props['passwd'])
     return r.get().body
Exemplo n.º 3
0
 def uploadFromFS(self, filenode):
     props = self.properties
     from ExternalLib.WebDAV.client import Resource
     r = Resource(('http://%(host)s:%(httpport)s/'+self.resourcepath+'/'+\
         filenode.name) % props, props['username'], props['passwd'])
     r.put(filenode.load())
Exemplo n.º 4
0
 def uploadFromFS(self, filenode):
     props = self.properties
     from ExternalLib.WebDAV.client import Resource
     r = Resource(('http://%(host)s:%(httpport)s/'+self.resourcepath+'/'+\
         filenode.name) % props, props['username'], props['passwd'])
     r.put(filenode.load())