Make that .import_from_csv_file ...
Sorry.

Daniel

On Sun, Nov 23, 2008 at 12:55, Daniel Contag <[EMAIL PROTECTED]> wrote:
> Hm, so it *should* work. Weird.
>
> This is the error when trying
>
> "
> try:
>    from google.appengine.api import urlfetch
> except:
>    pass
> else:
>    url = "http://abc/db_hoersaal.csv";
>    result = urlfetch.fetch(url)
>    if result.status_code == 200:
>        db.table_one.import_from_csv_string(result.content)
>
>    url = "http://abc/db_ist_frei.csv";
>    result = urlfetch.fetch(url)
>    if result.status_code == 200:
>        db.table_two.import_from_csv_string(result.content)
> "
>
> in app/models/db.py
>
> Traceback (most recent call last):
>  File "/path/gluon/restricted.py", line 62, in restricted
>    exec ccode in environment
>  File "/path/applications/raumdienst/models/db.py", line 47, in <module>
>    db.table_one.import_from_csv_file(result.content)
>  File "/path/gluon/contrib/gql.py", line 73, in __getattr__
>    def __getattr__(self, key): return self[key]
> KeyError: 'import_from_csv_file'
>
>
> Daniel
>
> On Sun, Nov 23, 2008 at 00:59, mdipierro <[EMAIL PROTECTED]> wrote:
>>
>> you can open files for reading but not for writing.
>>
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to