vj57 / googlecl

Automatically exported from code.google.com/p/googlecl
0 stars 0 forks source link

Editing a document doesn't work if there's a slash in the title #350

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I have edit rights on a document called "Country/roadmap".

<bjn@sponvoid:~>$ python --version
Python 2.6.5
<bjn@sponvoid:~>$ google --version
google 0.9.11
<bjn@sponvoid:~>$ google docs edit "Country/roadmap"
Traceback (most recent call last):
  File "/usr/local/bin/google", line 5, in <module>
    pkg_resources.run_script('googlecl==0.9.11', 'google')
  File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 461, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 1194, in run_script
    execfile(script_filename, namespace, namespace)
  File "/usr/local/lib/python2.6/dist-packages/googlecl-0.9.11-py2.6.egg/EGG-INFO/scripts/google", line 839, in <module>
    main()
  File "/usr/local/lib/python2.6/dist-packages/googlecl-0.9.11-py2.6.egg/EGG-INFO/scripts/google", line 825, in main
    run_once(options, args)
  File "/usr/local/lib/python2.6/dist-packages/googlecl-0.9.11-py2.6.egg/EGG-INFO/scripts/google", line 617, in run_once
    task.run(client, options, args)
  File "/usr/local/lib/python2.6/dist-packages/googlecl-0.9.11-py2.6.egg/googlecl/docs/__init__.py", line 202, in _run_edit
    folder_entry_or_path=folder_entry or options.folder)
  File "/usr/local/lib/python2.6/dist-packages/googlecl-0.9.11-py2.6.egg/googlecl/docs/base.py", line 109, in edit_doc
    self.Export(doc_entry_or_title.content.src, path)
  File "/usr/local/lib/python2.6/dist-packages/googlecl-0.9.11-py2.6.egg/googlecl/docs/client.py", line 147, in export
    auth_token=auth_token, **kwargs)
  File "/usr/local/lib/python2.6/dist-packages/gdata-2.0.13-py2.6.egg/gdata/docs/client.py", line 501, in download
    self._download_file(url, file_path, auth_token=auth_token, **kwargs)
  File "/usr/local/lib/python2.6/dist-packages/googlecl-0.9.11-py2.6.egg/googlecl/docs/client.py", line 102, in _download_file
    with open(file_path, 'wb') as download_file:
IOError: [Errno 2] No such file or directory: 
u'/tmp/tmpeuJRtp/Country/roadmap.txt'
<bjn@sponvoid:~>$

It seems the slash in its name is causing issues. This is on Ubuntu 10.04.

Original issue reported on code.google.com by wemoloht...@gmail.com on 12 Jan 2011 at 4:12

GoogleCodeExporter commented 9 years ago
This issue was closed by r539

Original comment by tom.h.mi...@gmail.com on 9 Feb 2011 at 5:51

GoogleCodeExporter commented 9 years ago
Issue 362 has been merged into this issue.

Original comment by tom.h.mi...@gmail.com on 16 Feb 2011 at 2:36