scaryclam / python-webdav Goto Github PK
View Code? Open in Web Editor NEWpython-webdav is a client webdav library for Python
python-webdav is a client webdav library for Python
In [5]: import python_webdav.client
File "C:\Python34\lib\site-packages\python_webdav\client.py", line 165
print format_string
^
SyntaxError: Missing parentheses in call to 'print'
Do you plan to have a port to Python3?
This was originally requested here: http://sourceforge.net/p/python-webdav/feature-requests/10/
I get the following traceback:
ValueError Traceback (most recent call last)
/usr/lib/python2.7/dist-packages/IPython/utils/py3compat.pyc in execfile(fname, *where)
173 else:
174 filename = fname
--> 175 __builtin__.execfile(filename, *where)
/home/martin/local/lib/python2.6/site-packages/python_webdav/bunch.py in <module>()
3 cl = python_webdav.client.Client("myserver")
4 cl.set_connection(username="martin",password="mypass")
----> 5 cl.ls()
/home/martin/local/lib/python2.6/site-packages/python_webdav/client.pyc in ls(self, path, list_format, separator, display)
148 if not path:
149 path = self.connection.path
--> 150 props = self.client.get_properties(self.connection, path)
151 property_lists = []
152 for prop in props:
/home/martin/local/lib/python2.6/site-packages/python_webdav/connection.pyc in get_properties(self, connection, resource_uri, properties)
327 #parser = python_webdav.parse.Parser()
328 parser = python_webdav.parse.LxmlParser()
--> 329 parser.parse(prop_xml)
330 properties = parser.response_objects
331 return properties
/home/martin/local/lib/python2.6/site-packages/python_webdav/parse.py in parse(self, data)
63
64 """
---> 65 data_elements = HTML(data)
66 xml_etree = ElementTree(data_elements)
67 all_response_elements = xml_etree.findall("//response")
/usr/lib/python2.7/dist-packages/lxml/etree.so in lxml.etree.HTML (src/lxml/lxml.etree.c:54134)()
/usr/lib/python2.7/dist-packages/lxml/etree.so in lxml.etree._parseMemoryDocument (src/lxml/lxml.etree.c:82659)()
ValueError: Unicode strings with encoding declaration are not supported.
Any ideas?
in FileWrapper.read() the file seek position is continuously reset to initial position here:
if not data or size < 0 or size >= self.file_size:
self.seek(self.initial_read_pos)
whereby httplib reads a datablock ad infinitum. This generates a long URI which is rejected by the server.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.