Trying to read email from my inbox
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import pprint
imapdb = DAL('imap://mailboxname@servername:password@servername:993',
pool_size=1)
imapdb.define_tables()
pprint.pprint(imapdb)
getting this error on the imapdb.define_table() statement
C:\dev\web2py>python web2py.py -S connect -R applications/connect/modules/
read_e
mail.py
web2py Web Framework
Created by Massimo Di Pierro, Copyright 2007-2014
Version 2.10.0-beta+timestamp.2014.09.24.13.35.58
Database drivers available: sqlite3, pymysql, MySQLdb, pg8000, pyodbc,
imaplib
Traceback (most recent call last):
File "C:\dev\web2py\gluon\shell.py", line 262, in run
execfile(startfile, _env)
File "applications/connect/modules/read_email.py", line 6, in <module>
imapdb.define_tables()
File "C:\dev\web2py\gluon\dal\adapters\imap.py", line 477, in
define_tables
Field("seen", "boolean")
File "C:\dev\web2py\gluon\dal\base.py", line 785, in define_table
table = self.lazy_define_table(tablename,*fields,**args)
File "C:\dev\web2py\gluon\dal\base.py", line 802, in lazy_define_table
table = table_class(self, tablename, *fields, **args)
File "C:\dev\web2py\gluon\dal\objects.py", line 254, in __init__
if (not isinstance(tablename, str) or tablename[0] == '_'
IndexError: string index out of range
Any ideas what might be causing this error?
-Jim
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.