[web2py] Pydal ids customs

2016-10-05 Thread argenio . bosanto
I'm doing a migrate data of 2 databases with diferents tables. My only problems is with ids! table 1 id: 5, name: Diana id: 8, name: Carlos when i migrate this data to databases 2 id: 1, name: Diana id: 2, name: Carlos Look the id's not the same. what is the method to save the same id? I

[web2py] Problem with Field UNIQUE when i'll edit

2015-12-10 Thread argenio . bosanto
I have one table in my mysql db with name "users" with this: id - name - email 1 - luis - exam...@gmail.com 2 - steff - he...@gmail.com the field email is unique in the DAL Field('email', 'string', length=255, required=True, notnull=True, unique=True), when i try to edit the form, I only

[web2py] Re: Handle runtimeErrors with try/except

2015-12-10 Thread argenio . bosanto
Ok i understand that, but if my service of mysql is SHUTDOWN, i need one exepction for that! because generate one traceback, and I need handle this, maybe return one string saying "mysql its shutdown, page 404" -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

[web2py] Re: Handle runtimeErrors with try/except

2015-10-19 Thread argenio . bosanto
I try it, and this don't work :s I get the same traceback :s I need this for the validation :s -- 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

[web2py] Handle runtimeErrors with try/except

2015-10-15 Thread argenio . bosanto
Good morning, I need handle exceptions when a database can't connect, When that ocurre, the traceback is: Traceback (most recent call last): File "/var/www/web2py/gluon/restricted.py", line 227, in restricted exec ccode in environment File