salimoha / googlecl

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

Unable to edit document #120

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Install googlecl on ubuntu 10.04 from .tar.gz packages
2. Try to edit a document: google docs edit --title "Flush tool notes"
3.

What is the expected output? What do you see instead?

I saw:

Traceback (most recent call last):
  File "/usr/local/bin/google", line 463, in <module>
    main()
  File "/usr/local/bin/google", line 457, in main
    run_once(options, args)
  File "/usr/local/bin/google", line 356, in run_once
    task.run(client, options, args)
  File "/usr/local/lib/python2.6/dist-packages/googlecl/docs/service.py", line 439, in _run_edit
    client.edit_doc(doc_entry, editor, format_ext)
  File "/usr/local/lib/python2.6/dist-packages/googlecl/docs/service.py", line 104, in edit_doc
    self.Export(doc_entry.content.src, path)
  File "/usr/local/lib/python2.6/dist-packages/gdata/docs/service.py", line 361, in Export
    self.Download(entry_or_id_or_url, file_path, ext, gid, extra_params)
  File "/usr/local/lib/python2.6/dist-packages/gdata/docs/service.py", line 340, in Download
    self._DownloadFile(url, file_path)
  File "/usr/local/lib/python2.6/dist-packages/gdata/docs/service.py", line 178, in _DownloadFile
    'body': response_body}
gdata.service.RequestError: {'status': 302, 'body': 
'<HTML>\n<HEAD>\n<TITLE>Moved Temporarily</TITLE>\n</HEAD>\n<BODY 
BGCOLOR="#FFFFFF" TEXT="#000000">\n<H1>Moved Temporarily</H1>\nThe document has 
moved <A 
HREF="https://docs.google.com/feeds/download/documents/Export?exportFormat=txt&a
mp;docId=0AVBUq7efEFIvZGc0dzNoaGZfMnZma2t2ZGY4">here</A>.\n</BODY>\n</HTML>\n', 
'reason': 'Moved Temporarily'}

I expected to be able to edit the document!

What version of the product are you using? On what operating system?

x86 Ubuntu 10.04.

GoogleCL 0.9.7
gdata 2.0.10

Please provide any additional information below.

It's a premium google apps account.

Original issue reported on code.google.com by mpsteven...@gmail.com on 21 Jun 2010 at 9:50

GoogleCodeExporter commented 9 years ago
Merging into 302 general issue

Original comment by tom.h.mi...@gmail.com on 24 Jun 2010 at 12:22