Gmansolf / googlecl

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

docs edit --format "txt" creates PDF file #201

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. google docs edit --folder "scratch" --format "txt" --editor "notepad" 
--title "test" (where folder "scratch" exists but doc "test" does not)
2. Notepad opens to show the innards of a PDF file

What is the expected output? What do you see instead?
I expect a blank plain-text document. I see a plain-text representation of a 
PDF file.

What version of the product are you using? On what operating system? What
version of gdata-python-client (aka python-gdata)?

GoogleCL v0.9.8
gdata-2.0.10
Windows XP Professional SP3

Please provide any additional information below.

Original issue reported on code.google.com by itruett on 2 Jul 2010 at 1:42

GoogleCodeExporter commented 8 years ago
Same problem on Mac OS X 10.6.4
googlecl-0.9.8
gdata-2.0.10

Original comment by samxngu...@gmail.com on 2 Jul 2010 at 6:39

GoogleCodeExporter commented 8 years ago
Apparently there is a problem with the GData API regarding the HTTP parameter 
name for the exportFormat:
http://code.google.com/p/gdata-issues/issues/detail?id=2157

A half-workaround is to edit the gdata/docs/service.py and replace line 330 
with this:

      url += '&exportFormat=%s&format=%s' % (export_format, export_format)

However, there is a second problem that arises which is that the GData API 
reports an error when trying to convert the plain text file:

http://code.google.com/p/gdata-issues/issues/detail?id=1480

Original comment by samxngu...@gmail.com on 2 Jul 2010 at 9:39

GoogleCodeExporter commented 8 years ago
This worked for me running google 0.9.8, Python 2.6.5+, on 
Linux pwwrpad 2.6.32-3-686 #1 SMP Thu Feb 25 06:14:20 UTC 2010 i686 GNU/Linux

Original comment by torste...@gmail.com on 4 Jul 2010 at 5:20

GoogleCodeExporter commented 8 years ago
Same problem on Ubuntu 10.04
python-gdata 2.0.10 (installed from tarball)
googlecl_0.9.8-1_all.deb

Original comment by samxngu...@gmail.com on 6 Jul 2010 at 3:06

GoogleCodeExporter commented 8 years ago
Thanks for finding that issue, samxnguyen! I think this is at the root of a 
couple of googlecl issues, I'll hopefully have a patch soon.

Original comment by tom.h.mi...@gmail.com on 9 Jul 2010 at 7:29

GoogleCodeExporter commented 8 years ago
Super! I'm looking forward to it.

Original comment by samxngu...@gmail.com on 9 Jul 2010 at 10:05

GoogleCodeExporter commented 8 years ago
This issue was closed by revision r337.

Original comment by tom.h.mi...@gmail.com on 9 Jul 2010 at 10:12

GoogleCodeExporter commented 8 years ago
OK, that took longer than I expected.

Try running the version in the repository, which fixes the issue as best as 
possible. It's still impossible to update new-version documents due to a bug in 
gdata itself.

Original comment by tom.h.mi...@gmail.com on 9 Jul 2010 at 10:23

GoogleCodeExporter commented 8 years ago
Awesome.  I'll give it a run over the weekend. Thanks!

Original comment by samxngu...@gmail.com on 9 Jul 2010 at 10:54

GoogleCodeExporter commented 8 years ago
Thanks Tom, once I turn off new versions, it does everything I need.

Original comment by samxngu...@gmail.com on 10 Jul 2010 at 6:51

GoogleCodeExporter commented 8 years ago
Issue 166 has been merged into this issue.

Original comment by tom.h.mi...@gmail.com on 15 Jul 2010 at 2:59

GoogleCodeExporter commented 8 years ago
Issue 244 has been merged into this issue.

Original comment by tom.h.mi...@gmail.com on 5 Aug 2010 at 3:08