Skip to content
This repository was archived by the owner on Jun 18, 2021. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions README.textile
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ google-spreadsheet-csv - Sync a google spreadsheet with a CSV file.
**google-spreadsheet-csv** -h
</P>
<P>
**google-spreadsheet-csv** [-v/<S>verbose] [-o/</S>output=&lt;file&gt;] get &lt;spreadsheet&gt; &lt;worksheet&gt;
**google-spreadsheet-csv** config_file [-v/<S>verbose] [-o/</S>output=&lt;file&gt;] get &lt;spreadsheet&gt; &lt;worksheet&gt;
</P>
<P>
**google-spreadsheet-csv** [-v/<S>verbose] [-i/</S>input=&lt;file&gt;] send &lt;spreadsheet&gt; &lt;worksheet&gt;
**google-spreadsheet-csv** config_file [-v/<S>verbose] [-i/</S>input=&lt;file&gt;] send &lt;spreadsheet&gt; &lt;worksheet&gt;
</P>

<H1>DESCRIPTION</H1>
Expand All @@ -34,8 +34,10 @@ data in the CSV file is sent, and surplus data in the spreadsheet is
removed.
</P>
<P>
Username and password are found by looking for a machine named **google.com**
in <I>~/.netrc</I>. See **netrc**(5) for more information.
Authentication credential are found by looking for in **config_file**.
Two google authentication methods are supported:
- Login/Password method
- OAuthPass2 method
</P>

<H1>OPTIONS</H1>
Expand All @@ -57,12 +59,12 @@ in <I>~/.netrc</I>. See **netrc**(5) for more information.

<P>
Written by <A HREF="http://lpenz.org">Leandro Penz</A>.
Written by Andrey Skvortsov.
</P>

<H1>SEE ALSO</H1>

<UL>
<LI>**netrc**(5)
<LI><A HREF="http://docs.google.com">http://docs.google.com</A>
</UL>

10 changes: 10 additions & 0 deletions auth_cfg.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[Auth Section]
auth_type: oAuth2
#auth_type: UserPass

client_id: 952234119367-86ik00m2q8m70kgk8r32ulm45erqppi6.apps.googleusercontent.com
client_secret: -sd0iVee934lBoiR2ZeB84Z
token_file: ask4rank.dat

login: user@gmail.com
password: admin
15 changes: 15 additions & 0 deletions core.py_patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
--- /usr/local/lib/python2.7/dist-packages/atom/core.py_old 2012-06-27 16:42:36.627780827 +0300
+++ /usr/local/lib/python2.7/dist-packages/atom/core.py 2012-06-27 16:42:28.995780322 +0300
@@ -346,10 +346,10 @@
else:
tree.text = self.text.decode(encoding)

- def to_string(self, version=1, encoding=None, pretty_print=None):
+ def to_string(self, version=1, encoding=STRING_ENCODING, pretty_print=None):
"""Converts this object to XML."""

- tree_string = ElementTree.tostring(self._to_tree(version, encoding))
+ tree_string = ElementTree.tostring(self._to_tree(version, encoding), encoding)

if pretty_print and xmlString is not None:
return xmlString(tree_string).toprettyxml()
Loading