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
Beispiel #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
Beispiel #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())
 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())