Giter VIP home page Giter VIP logo

python-webdav's People

Contributors

scaryclam avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

python-webdav's Issues

Incompatibility with Python3

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?

unicode problem of HTML parser

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?

request failed: URI too long (longer than 8190)

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.