Thanks Niphlod, it resolve the error.

Il giorno lunedì 25 maggio 2015 17:40:08 UTC+2, Niphlod ha scritto:
>
> just define it with migrate=False and web2py won't issue any ddl statement.
>
> On Monday, May 25, 2015 at 2:21:21 PM UTC+2, Gael Princivalle wrote:
>>
>> Hello all.
>>
>> I use a PHP opensource application called PHPList for newsletter 
>> management.
>> It use a Mysql db that we can call 'phplistdb'.
>> User table is 'phplist_user_user'.
>>
>> I would like to add a user in 'phplistdb' from web2py.
>>
>> If I try something like that:
>> def insert_phplist_user():
>>     email = 'te...@test.it'
>>     last_id = dbphplist.phplist_user_user.insert(email=email, confirmed = 
>> 1, blacklisted = 0, optedin = 0, bouncecount = 0, htmlemail = 1, 
>> disabled = 0)
>>     return dict()
>>
>> Ticket is:
>> 'DAL' object has no attribute 'phplist_user_user'
>>
>> I could imagine that's due to the fact that table 'phplist_user_user' has 
>> not been defined in web2py.
>>
>> What's the solution, defining in web2py the table  'phplist_user_user'?
>> I hope it'll don't crash the db for the 'phplist' application.
>>
>> Thanks.
>>
>>

-- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to