Hello,
I am relatively new the to the Google Docs Spreahsheet API. I am trying
build a database using custom HTML forms that when submitted will process
their values into a Python script that utilizes gdata.spreadsheet.text_db
for inputting the data into my Google Spread sheet. However when I try to
import the gdata library into my script, I get a processing an error upon
pressing submit on my HTML form. I know this is a very specific problem, but
was wondering if anyone could help point me in the right direction using
cgi-bin processing, Python, and the Google Spreadsheets API. Thank you!
I've included my python code to give you a better idea of what I am trying
to do:
#!/usr/bin/python
import cgi
import gdata.spreadsheet.text_db
form = cgi.FieldStorage()
name = form.getfirst('name', 'empty')
name = cgi.escape(name)
client = gdata.spreadsheet.text_db.DatabaseClient(username='[email protected]
', password='12345')
database = client.CreateDatabase(name)
print """\
Content-Type: text/html\n
<html><body>
<p>Database was created with the following name:</p>
</body></html>
"""
print name