[web2py] Re: Pydal ids customs

2016-10-11 Thread Anthony
On Monday, October 10, 2016 at 11:46:01 AM UTC-4, Luis Valladares wrote: > > It appear that i've sorted this out in the last crazy test, my problem > where in filter fields, this was my code before: > > accion = > self.dbNueva.estatus_contratacion.validate_and_insert(**self.dbNueva.estatus_contr

[web2py] Re: Pydal ids customs

2016-10-10 Thread Luis Valladares
It appear that i've sorted this out in the last crazy test, my problem where in filter fields, this was my code before: accion = self.dbNueva.estatus_contratacion.validate_and_insert(**self.dbNueva.estatus_contratacion._filter_fields(x)).as_dict() Where x is a dict with all the fields i want t

[web2py] Re: Pydal ids customs

2016-10-10 Thread Anthony
OK, so what does your code look like? Why can't you preserve the id's? Anthony On Monday, October 10, 2016 at 9:43:50 AM UTC-4, luis.vallada...@metamaxzone.com wrote: > > I thin that method doesnt work for me, let me explain better what i want > to do: > > 6 months ago i released a production A

[web2py] Re: Pydal ids customs

2016-10-10 Thread luis . valladares
I thin that method doesnt work for me, let me explain better what i want to do: 6 months ago i released a production APP, now we will launch the second version of this app and there are several (big) differences between the database structure in production and the one i will deploy now, but i d

[web2py] Re: Pydal ids customs

2016-10-06 Thread Anthony
Do you really need the id's to remain the same? Note, if you use this method to migrate, web2py will automatically update any reference fields so they contain the new ids of referenced record

[web2py] Re: Pydal ids customs

2016-10-06 Thread Val K
Glad to help you, but there isn't any code On Thursday, October 6, 2016 at 12:47:36 AM UTC+3, argenio...@metamaxzone.com wrote: > > 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