Re: [web2py] Using db.table.format (i.e. format attr outside of table definition)

2019-07-09 Thread Eliezer (Vlad) Tseytkin
Oh, I see, here is what's happening: I now have the following code: db.product._format = lambda row: 'test' grid = SQLFORM.grid(db.flavor) The table flavor has a column referencing the table product. So, the grid displays the product column correctly now (with _format - this is where just

Re: [web2py] please help testing web3py

2019-07-09 Thread Jim Steil
Works for me now. I deleted myapps and retried. Didn't work, got a database error (unfortunately, I didn't copy it). Then python3 -m pip install --upgrade web3py. Worked after that. -Jim On Mon, Jul 8, 2019 at 11:44 PM Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: > please delete th

Re: [web2py] please help testing web3py

2019-07-09 Thread Carlos Costa
I was able to install, start and create app without problems on Ubuntu 19.4 Em ter, 9 de jul de 2019 às 09:43, Jim Steil escreveu: > Works for me now. I deleted myapps and retried. Didn't work, got a > database error (unfortunately, I didn't copy it). Then python3 -m pip > install --upgrade w

Re: [web2py] Re: How to pass the variable in Jquery in view to controller

2019-07-09 Thread Quang Lam
i need to pass the clickedFlight variable to the controller so that i will get the other information associated with the clickedFlight in the table, please show me how to do it. thanks On Mon, Jul 8, 2019 at 6:06 PM Scott Hunter wrote: > The short answer is, you don't. Javascript is being execu

[web2py] Re: please help testing web3py

2019-07-09 Thread Relsi Maron
> > Does it work? > Works fine here. Ubuntu 16.04 Python 3.5 > How does it flow? > In a fresh install, its flow easy. > What explanations should be necessary? > None, at now. > Can you write a brief documentation of your experience for other users? > I simply followed the instructio

Re: [web2py] please help testing web3py

2019-07-09 Thread Lovedie JC
Working for me but getting 40 Errors on myapp, _scaffolding. On Tue, 9 Jul 2019, 15:51 Carlos Costa wrote: > I was able to install, start and create app without problems on Ubuntu 19.4 > > Em ter, 9 de jul de 2019 às 09:43, Jim Steil > escreveu: > >> Works for me now. I deleted myapps and retr

Re: [web2py] please help testing web3py

2019-07-09 Thread Jim Steil
I believe mine was because I had an older version installed. I should have removed the old version first. -Jim On Tue, Jul 9, 2019 at 7:51 AM Carlos Costa wrote: > I was able to install, start and create app without problems on Ubuntu 19.4 > > Em ter, 9 de jul de 2019 às 09:43, Jim Steil > es

[web2py] Re: please help testing web3py

2019-07-09 Thread Massimo Di Pierro
Fantastic. I am writing some documentation. Especially about the differences with web2py. They are subtle but there are many. On Tuesday, 9 July 2019 06:21:54 UTC-7, Relsi Maron wrote: > > > >> >> Does it work? >> > > Works fine here. > Ubuntu 16.04 > Python 3.5 > > >> How does it flow? >> >

[web2py] Re: please help testing web3py

2019-07-09 Thread Stephan
Okay, with the updated pydal, the errors have disappeared. I succeeded cloning a scaffolding app. However, when I try to register in my new app (page: http://127.0.0.1:8000/lovit/auth/register) I get an 404: WARNING:tornado.access:404 POST /_scaffold/auth/api/register (127.0.0.1) 1.47ms There

Re: [web2py] Re: How to pass the variable in Jquery in view to controller

2019-07-09 Thread Quang Lam
i have used Ajax but it does not get any value of the clcikedFlight, this is in view: //Function to handle context menu appearing/disappearing $(function() { var contextMenu = $("#contextMenu"); var $rowClicked //body on contextmenu is the event for right clicking $(document.bo

[web2py] How version all updates of table

2019-07-09 Thread Michele Serra
Hi, there's a method to versioning all updates of a table and not only the last? -- 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 messag

Re: [web2py] Using db.table.format (i.e. format attr outside of table definition)

2019-07-09 Thread Val K
I suppose it is also needed to add IS_IN_DB validator to the field that is reference -- 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 me

Re: [web2py] Re: please help testing web3py

2019-07-09 Thread Carlos Costa
What is the state of the _scafold? I was not able to register as user. Need some help on it? Em ter, 9 de jul de 2019 às 13:05, Stephan escreveu: > Okay, with the updated pydal, the errors have disappeared. I succeeded > cloning a scaffolding app. However, when I try to register in my new app >

Re: [web2py] Re: Many apps in a single app.

2019-07-09 Thread villas
Now I understand it better. I will consider this strategy for future. Thanks! On Friday, 5 July 2019 17:48:02 UTC+1, Ramos wrote: > > Then to get all apps in the same screen i created a workspace.html inside > views " named after Lotus Notes workspace for those who know what it is..." > I wou

[web2py] Re: Many apps in a single app.

2019-07-09 Thread Leonel Câmara
This looks good, if you want to take it a step further and have something like sub-controller-functions in your apps that will have their own views folder inside the app views folder you can use this decorator I made: def parent_controller(views_folder=None, pop_args_zero=True): """ Deco

[web2py] Re: 'Storage' object is not callable

2019-07-09 Thread Scott Hunter
`post_vars` isn't callable, but you are trying to call it on line 7. As I'm not sure what you are trying to do there, can't say what to do instead. On Monday, July 8, 2019 at 11:13:21 PM UTC-4, imran tube wrote: > > 'Storage' object is not callable > : where is my wrong my code view or control

[web2py] how to execute the html after the right click event

2019-07-09 Thread Quang Lam
i have multiple in my html page and i dont want all of them to be executed when the page is loaded. is there any way that we can delay it until the user right click on the context menu. i dont want to use selector.show or selector.hide. because i want those to be executed after the user right

[web2py] Re: please help testing web3py

2019-07-09 Thread Massimo Di Pierro
I think the registration problem is fixed. Please try again. But just to make it clean, please delete your apps folder, upgrade web3py, and start again. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.goo

[web2py] my own records on SQLFORM select

2019-07-09 Thread Murat KAŞIKÇIOĞLU
I want to select only authenticated teachers' students on the form. But I could not find how to filter. Can you help? Best, Murat. ### db.define_table( 'session_header', Field('session_date', type="date", label='Session Date'), Field('teacher', 'reference auth_user', notnull=True, read

Re: [web2py] please help testing web3py

2019-07-09 Thread Massimo Di Pierro
what do you advice about favico.ico? The _default app can easily define a route for it. @action('favcio.con') def favico(): return 'the bytes or the icon' But is this the right way to handle? Should it be a more fundamental link handled by web3py? What is the _default app is deleted? If it is a