[web2py] Launch web2py shell from within a running interpreter session

2017-08-30 Thread Brendan Barnwell
I use DreamPie, a wrapper around the Python interpreter. I would like to be able to use the web2py console shell from within DreamPie. I could also imagine wanting to use it from within other alternative Python interpreters, for instance inside the IPython QT console or a console embedded in

Re: [web2py] Re: mercurial

2017-08-30 Thread Martin Weissenboeck
Thank you for your fast response. I think if "versioning" does not work in web2py the button and the chapter from the book should be removed. It is frustrating to try something, which does not work. I always think that I have made a mistake. Regards Martin 2017-08-30 22:32 GMT+02:00 Dave S : > >

[web2py] Re: how to make check box appear to enable multiple selections

2017-08-30 Thread Alex Glaros
this was wrong: widget=SQLFORM.widgets.multiple.widget this works widget=SQLFORM.widgets.checkboxes.widget -- 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) -

[web2py] how to make check box appear to enable multiple selections

2017-08-30 Thread Alex Glaros
How to make check boxes appear? Below allows user to select multiple dropdown items only if they are contiguous. No checkboxes appear which would allow user to select non-contiguous items. def select_tables_to_pick_object_of_a_role(): potential_role_types = db((db.ObjectType.object_type_table_n

Re: [web2py] Re: book help

2017-08-30 Thread Dave S
On Monday, August 21, 2017 at 7:48:44 AM UTC-7, Richard wrote: > > Delete your branche and start all over: > > git push origin branch-name > > Then go over github see if it works... > > Richard > > I haven't gotten to this yet. /dps > On Fri, Aug 18, 2017 at 4:25 PM, Dave S > > wrote: > >> >

[web2py] Re: mercurial

2017-08-30 Thread Dave S
On Wednesday, August 30, 2017 at 12:11:01 PM UTC-7, mweissen wrote: > > Now another instance of web2py and another ticket. > It seems that web2py does not match this version of mercurial. > Who uses "versioning" with success? > > It's an interface issue. web2py uses an internal interface that's

[web2py] Re: mercurial

2017-08-30 Thread Martin Weissenboeck
Now another instance of web2py and another ticket. It seems that web2py does not match this version of mercurial. Who uses "versioning" with success? ​ Error ticket for "admin"Ticket ID 62.46.34.69.2017-08-30.18-52-32.0686f969-19c0-4400-9e6c-2f79cec2c962 addremove() takes at least 3 arguments (1

[web2py] Re: 2.15.3: storage not found

2017-08-30 Thread Martin Weissenboeck
Thank you for this detailed explanation. Maybe it could help others to solve a similar problem. 2017-08-30 17:26 GMT+02:00 Anthony : > Looks like prior to 2.15, when starting up and calling > gluon.admin.create_missing_folders, "gluon" was added to sys.path, so you > could import modules in glu

[web2py] Re: how to use a specific driver for the database

2017-08-30 Thread Lars
Hi Anthony, psycopg2 was installed but (don't know if related) I use the last web2py on python3.5 and it didn't find it. It should now. Thank you ;) On Wednesday, August 30, 2017 at 5:49:17 PM UTC+2, Anthony wrote: > > If psycopg2 is installed, then it will be used by default. > > In any case,

[web2py] Re: how to use a specific driver for the database

2017-08-30 Thread Anthony
If psycopg2 is installed, then it will be used by default. In any case, you can be explicit via the connection string: 'postgres:psycopg2://...' Anthony On Wednesday, August 30, 2017 at 11:16:32 AM UTC-4, Lars wrote: > > Hi, > How can we use for example : psycopg2 instead of pg8000 which is def

Re: [web2py] Re: What does wikimenu do?

2017-08-30 Thread Jordan Ladora
oh i see - thanks Anthony! On Wed, Aug 30, 2017 at 9:34 AM, Anthony wrote: > The wiki is described here: http://web2py.com/books/default/chapter/29/03/ > overview#The-built-in-web2py-wiki > > It appears auth.wikimenu isn't mentioned, but here is the code: > https://github.com/web2py/web2py/blob

[web2py] Re: Modules do not reflected changes.

2017-08-30 Thread Anthony
In what context are you failing to notice a change? With HTTP requests, or within scheduler tasks, a web2py shell, or command line calls? Restarting the server will only reload modules for HTTP requests. Anthony On Wednesday, August 30, 2017 at 10:56:54 AM UTC-4, Claudio Andre wrote: > > Hello,

[web2py] Re: Modules do not reflected changes.

2017-08-30 Thread Anthony
On Wednesday, August 30, 2017 at 11:20:05 AM UTC-4, Lars wrote: > > Hi, > You need to write at the beginning of the app models : > from gluon.custom_import import track_changes > track_changes(track=True) > That's only necessary for modules to be reloaded automatically upon change. Restarting the

[web2py] Re: What does wikimenu do?

2017-08-30 Thread Anthony
The wiki is described here: http://web2py.com/books/default/chapter/29/03/overview#The-built-in-web2py-wiki It appears auth.wikimenu isn't mentioned, but here is the code: https://github.com/web2py/web2py/blob/master/gluon/tools.py#L4228. It simply adds wiki menu items to response.menu. Anthon

[web2py] Re: 2.15.3: storage not found

2017-08-30 Thread Anthony
Looks like prior to 2.15, when starting up and calling gluon.admin.create_missing_folders, "gluon" was added to sys.path, so you could import modules in gluon without prefixing with "gluon.". For some reason, "gluon" is no longer added to sys.path in 2.15, so you have to specify "gluon." when i

[web2py] What does wikimenu do?

2017-08-30 Thread Jordan Ladora
The welcome app models/menu.py has the lines- if "auth" in locals(): auth.wikimenu ...but I can't find anything here or in the book about what the wikimenu does? I have this commented out and all seems to be fine. Sorry if this is a silly question; just wondering.. Thanks! -- Resources:

[web2py] Re: Modules do not reflected changes.

2017-08-30 Thread Lars
Hi, You need to write at the beginning of the app models : from gluon.custom_import import track_changes track_changes(track=True) Regards On Wednesday, August 30, 2017 at 4:56:54 PM UTC+2, Claudio Andre wrote: > > Hello, > > I'm using web2py 2.15.3-stable on Kali (debian) and having a strange >

[web2py] how to use a specific driver for the database

2017-08-30 Thread Lars
Hi, How can we use for example : psycopg2 instead of pg8000 which is default ? 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 me

[web2py] Re: Print statement fails in command line script (v2.15.3)

2017-08-30 Thread Jim Karsten
I'm using python version 2.7.12 On Tuesday, August 29, 2017 at 7:12:53 PM UTC-4, Dave S wrote: > > > > On Tuesday, August 29, 2017 at 1:33:53 PM UTC-7, Jim Karsten wrote: >> >> I run many scripts from the command line. After upgrading to v2.15.3, I >> find print statements produce a SyntaxError.

[web2py] Re: Print statement fails in command line script (v2.15.3)

2017-08-30 Thread Jim Karsten
Done: https://github.com/web2py/web2py/issues/1750 Thanks. Jim On Tuesday, August 29, 2017 at 9:41:49 PM UTC-4, Anthony wrote: > > Looks like shell.py imports print_function from __future__, which requires > use of the print() function. I suppose this should be considered a breaking > of backwar

[web2py] Small correction to the manual

2017-08-30 Thread Paul Furber
In this section of the manual: http://www.web2py.com/books/default/chapter/29/10/services#parse_as_rest--experimental- There is a paragraph explaining how to use cURL to test a restful API as follows: If you have the "curl" utility installed you can try: $ curl -d "name=Tim" http://127.0.0.1:8

[web2py] Ingres with web2py

2017-08-30 Thread jimsmith13386
I have to use an Ingres DB and would like to create a web app using a Python framework. Unlike other frameworks I see web2py says it supports Ingres. Is anybody successfully using web2py with an Ingres DB and does it work well? -- Resources: - http://web2py.com - http://web2py.com/book (Docume

[web2py] Modules do not reflected changes.

2017-08-30 Thread Claudio Andre
Hello, I'm using web2py 2.15.3-stable on Kali (debian) and having a strange behavior. Each time I change anything on the source code of one of the modules I have inside of the folder /applications/modules/ is not reflected on the application unless I reboot the VM (tried restarting just the web

[web2py] default filter in SQLFORM.grid

2017-08-30 Thread J-Michel Angers
Hi, I'm writing an app to manager tasks / worflows / Purchase requests, ... So the first screen (index) is a SQLFORM.grid, that displays the active orders. But the most usefull should be that this grid shows the active order via a filter. The user can remove this filter to see all orders (and al

[web2py] mercurial

2017-08-30 Thread Martin Weissenboeck
I want to try the admin versioning. mercurial is installed, hg --version shows 2.8.2 And a click on versioning gives "Sorry, could not find mercurial installed" What is wrong - any ideas? Regards, Martin -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.

Re: [web2py] Re: book help

2017-08-30 Thread Val K
Field.clone() is still undocumented, but very useful ! On Monday, August 21, 2017 at 5:48:44 PM UTC+3, Richard wrote: > > Delete your branche and start all over: > > git push origin branch-name > > Then go over github see if it works... > > Richard > > On Fri, Aug 18, 2017 at 4:25 PM, Dave S > >

[web2py] Re: db.company.insert() error

2017-08-30 Thread Val K
As I see, it's a scheduler task - show all code of insert_company Is there any _before_insert hook? On Wednesday, August 30, 2017 at 1:22:57 AM UTC+3, Ben Lawrence wrote: > > 2.15.3-stable+timestamp.2017.08.07.07.32.04 > (Running on nginx/1.10.3, Python 2.7.12) > > > Hi > I hesitate to ask this b

[web2py] 2.15.3: storage not found

2017-08-30 Thread Martin Weissenboeck
After an upgrade to 2.15.3 my application did not find "storage". I had to change from storage import Storage to from gluon.storage import Storage Traceback 1. 2. 3. 4. 5. 6. 7. 8. 9. Traceback (most recent call last): File "/home/www-data/web2py/gluon/restricted.py", line 219, in restr