[web2py] Re: Web3py

2019-06-13 Thread 黄祥
represent doesn't show the content of the table field properly in _dashboard (database) - type of field is reference (show but the content just Ref.[id], e.g. Ref.[4] - type of field is list:string (doesn't show at all), yet the field is filled, checked in database attached : screen_shot.png b

[web2py] Re: Web3py

2019-06-13 Thread 黄祥
tryin to move define_tables from web2py to web3py, run well just a few note about field constuctor, (related with ui, FORM and T) : - comment : run well, but if you not use bootstrap, then it's should be modified (e.g. _class or function modal in boostrap) - represent : run well, but if you not

Re: [web2py] Re: setting up pscycopg2

2019-06-13 Thread Dave S
On Thursday, June 13, 2019 at 1:47:34 AM UTC-7, Annet wrote: > > > This isn't done as sudo? >> > > With these lines I installed psycopg2 in my hosting environment, no sudo > needed. > In my environment, the easy_install fails because I don't have write-permission to /usr/lib/python2.7/dist-pac

[web2py] Re: Datatables serverside JSON/Ajax

2019-06-13 Thread Cristina Sig
Thank you @John yes, I have been checking DT docs and it seems that I need to add that data, I tried it but the sorting and ordering is not working at all. Do you have any idea or example how to deal with that? El martes, 11 de junio de 2019, 9:43:14 (UTC-3), John Bannister escribió: > > @Leone

[web2py] Re: Datatables serverside JSON/Ajax

2019-06-13 Thread Cristina Sig
Thank you @Leonel, I tried your suggestion and it works but the JSON response replaces the HTML so, I can't see my Datatable only the plain array information from JSON response. I don't understand if I call the controller wrong or what is happening? El martes, 11 de junio de 2019, 5:52:42 (UTC-

[web2py] Re: Storage SQlite and Python

2019-06-13 Thread Dave S
On Thursday, June 13, 2019 at 8:20:05 AM UTC-7, Nicolas Hiblot wrote: > > > Thank you so much > I will test it this evening > But I will say to you Thanks even if something is wrong > > I will publish the results tomorrow evening > > Regards > > > Also take a look at https://groups.google.com

Re: [web2py] Re: Web2py binaries

2019-06-13 Thread Dave S
On Thursday, June 13, 2019 at 1:41:53 AM UTC-7, Dave S wrote: > > > > On Friday, April 19, 2019 at 1:16:29 AM UTC-7, Nico Zanferrari wrote: >> >> Thanks for testing, Dave, I'm happy to hear that it's working fine! >> >> I think that the Welcome app with latest web2py versions don't look so >> fi

Re: [web2py] Re: Web2py binaries

2019-06-13 Thread Dave S
On Thursday, June 13, 2019 at 1:41:53 AM UTC-7, Dave S wrote: > > > > On Friday, April 19, 2019 at 1:16:29 AM UTC-7, Nico Zanferrari wrote: >> >> Thanks for testing, Dave, I'm happy to hear that it's working fine! >> >> I think that the Welcome app with latest web2py versions don't look so >> fi

Re: [web2py] Web2py Windows edition with 3.x Interpreter

2019-06-13 Thread Dave S
On Monday, April 29, 2019 at 8:15:09 PM UTC-7, rāma wrote: > > Hi Nico, > > Thanks for your inputs. > > I've actually run windows py2.7 binary with modules within site-packages, > and pip can be leveraged by setting your target folder like this: > > pip install -t site-packages > > for the ben

[web2py] Re: Storage SQlite and Python

2019-06-13 Thread Nicolas Hiblot
Thank you so much I will test it this evening But I will say to you Thanks even if something is wrong I will publish the results tomorrow evening Regards Le jeudi 13 juin 2019 17:14:09 UTC+2, 黄祥 a écrit : > > pls try (not tested) > >> *1.* Change a already existing password of a user if I

[web2py] Re: Storage SQlite and Python

2019-06-13 Thread 黄祥
pls try (not tested) > *1.* Change a already existing password of a user if I kow the username > of the user (username or ID) > db(db.auth_user.id == 2).update(password = db.auth_user.password.validate("password")[0] ) *2.* Create a new user if it's possible (with a username and a password o

[web2py] Storage SQlite and Python

2019-06-13 Thread Nicolas Hiblot
Dear All, I have to modify the Storage DB and for some reasons I have to do it via a controller I already know how to get informations from the DB Juste like te last loggued session as : *lastUserLogged = db(db.auth_event.description.contains('connect')).select(orderby=~db.auth_event.time_s

[web2py] Re: Web3py

2019-06-13 Thread 黄祥
*models/db_schema_1_address.py* from web3py import Field from .db import * def on_define_address(table): table.field0.label = T('Field 0') db.define_table('address', Field('field0'), on_define = on_define_address, migrate = 'address.table') *test 1* *url* = http://localhost:80

Re: [web2py] Re: setting up pscycopg2

2019-06-13 Thread 'Annet' via web2py-users
> This isn't done as sudo? > With these lines I installed psycopg2 in my hosting environment, no sudo needed. | The trick seems to letting web2py know it is installed in its local environment. I installed psycopg2 in the site-packages folder of the python version I am using same folder pi

Re: [web2py] Re: Web2py binaries

2019-06-13 Thread Dave S
On Friday, April 19, 2019 at 1:16:29 AM UTC-7, Nico Zanferrari wrote: > > Thanks for testing, Dave, I'm happy to hear that it's working fine! > > I think that the Welcome app with latest web2py versions don't look so > fine in Windows and python 3, but I cannot see any difference from running >