Last change
on this file since 2757 was
2725,
checked in by liebster, 14 years ago
|
Added browser testing creation and modification GSpreadsheet
|
File size:
768 bytes
|
Rev | Line | |
---|
[2725] | 1 | import os |
---|
| 2 | from gdata.spreadsheet import SpreadsheetsListFeed |
---|
| 3 | from atom import CreateClassFromXMLString |
---|
| 4 | |
---|
| 5 | |
---|
| 6 | class SpreadsheetsService(object): |
---|
| 7 | |
---|
| 8 | def __init__(self, email=None, password=None, source=None, |
---|
| 9 | server='spreadsheets.google.com', additional_headers=None, |
---|
| 10 | **kwargs): |
---|
| 11 | pass |
---|
| 12 | |
---|
| 13 | def GetListFeed(self, key, wksht_id='default', row_id=None, query=None, |
---|
| 14 | visibility='private', projection='full'): |
---|
| 15 | f = open(os.path.join(os.path.dirname(__file__), 'test_sp1.xml')) |
---|
| 16 | xml_string = f.read() |
---|
| 17 | f.close() |
---|
| 18 | feed = CreateClassFromXMLString(SpreadsheetsListFeed, xml_string) |
---|
| 19 | return feed |
---|
| 20 | |
---|
| 21 | #def ProgrammaticLogin(self, captcha_token=None, captcha_response=None): |
---|
| 22 | # pass |
---|
Note: See
TracBrowser
for help on using the repository browser.