[web2py] Re: Rows not releasing all the memory back

2016-02-09 Thread Jitun John
I believe it is caching everything to memory. Here is the code I have. But yes, not a web2py issue. def read_manager_rows(): manager_db_conn = DAL('sqlite://manager.sqlite', folder=get_current_path(), auto_import=True) global manager_rows manager_rows = manager_db_conn(manager_db_conn

[web2py] Re: Rows not releasing all the memory back

2016-02-11 Thread Jitun John
I am using to remove rows... for row in alerts_rows.exclude(lambda row: row.id > 0): pass On Friday, February 12, 2016 at 5:49:38 AM UTC+5:30, Alfonso Serra wrote: > > You can try "del rows" to remove the reference from memory before > collecting > del a single row raises a TypeError but d

[web2py] Re: Rows not releasing all the memory back

2016-02-18 Thread Jitun John
Issue is kind of resolved. I created a dummy.. small sqlite file and read that sqlite the same way as large ones are done. and then do for row in some_rows.exclude(lambda row: row.id > 0) again. This tends to free up memory. -- Resources: - http://web2py.com - http://web2py.com/book (Document

[web2py] Is this project a good fit for web2py, and if so, what other frameworks will I need?

2016-03-19 Thread John Gall
Hello! I'm starting a new project I plan to work on over the next six months, and I originally planned to use web2py in conjunction with other frameworks to accomplish my goal. I've been told that this project is not possible with web2py, and I wanted to get an opinion from someone who has work

[web2py] Re: Is this project a good fit for web2py, and if so, what other frameworks will I need?

2016-03-19 Thread John Gall
OSX install if that would > help you. It's a bit raw (doesn't actually run yet, I just use it for > reference), but I could post it if it would help. > > On Saturday, March 19, 2016 at 12:22:55 PM UTC-7, John Gall wrote: >> >> Hello! >> >> I&#x

[web2py] Divider in

2018-11-19 Thread Jitun John
web2py 2.16.1 broke LI(_class="divider"), in response.menu I followed Leonel Câmara, added BS4MENU in menu.py and "LI(_class='dropdown-divider')" in the response.menu but the navbar is lost. Just wondering if we have any way to add divider in menu. -- Resources: - http://web2py.com - http://

[web2py] "web2py.app“ wants access to control “System Events.app“

2018-12-06 Thread John McMaster
Just installed web2py 2.17.2 on Mojave 10.14.1: I get this message: "web2py.app“ wants access to control “System Events.app“. Allowing control will provide access to documents and data in “System Events.app“, and to perform actions within that app. Are there any issues by allowing this? Secur

[web2py] Re: "web2py.app“ wants access to control “System Events.app“

2018-12-07 Thread John McMaster
Hello stifen, I am running for MAC version 2.17.2. I have downloaded both for MAC and the Source Code. But I have not run from source yet. I would like to know more about the reason behind the message and what it is doing with the System Events.app? Thank You -- Resources: - http://web2py.c

Re: [web2py] Re: "web2py.app“ wants access to control “System Events.app“

2018-12-08 Thread John McMaster
I just installed and ran the version you included and I get the same. I do see from the two links that you included that my setup has system events.app in the location mentioned. So the question that I have is what in web2py on seeing system events.app is it going to use it for? At this point I do

[web2py] Web2py Windows edition with 3.x Interpreter

2019-02-17 Thread Jitun John
"It requires Python 2.6 (no more supported), Python 2.7 (stable) or Python 3.5+ (*recommended for new projects*) already installed on your system. There are also *binary packages for Windows* and Mac OS X.* They include the Python 2.7 interpreter* so you do not need to have it pre-installed." S

[web2py] Web2py version 2.18.2 Communications Error when in Admin.

2019-02-26 Thread John McMaster
Just installed web2py version 2.18.2 and now I get a communications error when I save changes in an app. I get nothing in the error logs. The apps run but when I go to edit them and click the save button at the top of the lefthand page I get a red communications error in the field to the rig

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

2019-02-27 Thread Jitun John
Fixed the pickle issue by deleting "databases" folder in the app. Wondering if we will ever (if it is possible) to get a 3.x python version of web2py windows ("python37.dll" and "pywintypes37.dll" files.) -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://githu

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

2019-03-12 Thread Jitun John
ising >> anything. And also a binary Mac version is needed (I only have a Win box), >> plus testing everything. >> >> Cheers, >> Nico >> >> Il giorno mer 27 feb 2019 alle ore 11:45 elisha bere > > ha scritto: >> >>> Hie, >>>

RE: [web2py] Re: Does web2py/DAL allow for creating atomic operations (begin transaction/end transaction)?

2019-03-24 Thread John Underhill
ve lots of users. SQLite is very solid for smaller, single-server deployments. John From: web2py@googlegroups.com On Behalf Of João Matos Sent: Sunday, March 24, 2019 2:47 PM To: web2py-users Subject: [web2py] Re: Does web2py/DAL allow for creating atomic operations (begin transaction/end t

RE: [web2py] Simple didactic integration of web2py with Vue.js

2019-03-24 Thread John Underhill
. This architecture is a very good idea, and will teach marketable skills (Python and JavaScript/Vue.js), but I wish young students had more choices for front-end languages. Hopefully Webassembly is starting to change that. John Underhill QIS Project, Inc. Santa Barbara, California From

Re: [web2py] Re: web3py again....

2019-04-02 Thread John Underhill
exactly what this would look like, but I’ve been pushing it around for a while. At the very least this has the potential to make my life much easier. We probably need some pieces that aren’t there yet (but probably they will be shortly). What do you all think? John

[web2py] Modules not loading in python 3

2019-04-06 Thread John Bannister
Hi all, I have recently upgraded to python 3.6 from 2.7 running on Centos7 with apache. Problem I am having is as follows:- 1: I have a number of apps each of which has a number of modules. Whilst it seems that I can import modules from paython (such as pytz etc) and I can also import modules

RE: [web2py] Re: Modules not loading in python 3

2019-04-11 Thread John Bannister
error, custom_import will give this message of "applications.app_name.modules.module_name" not found. Le dimanche 7 avril 2019 06:18:03 UTC+2, John Bannister a écrit : Hi all, I have recently upgraded to python 3.6 from 2.7 running on Centos7 with apache. Problem I am ha

RE: [web2py] Confirmation forms. The book is unclear. How can I associate a pop confirmation box with a link?

2019-05-03 Thread John Bannister
I came across the same issue recently and managed to solve it as follows:- lambda row: A(SPAN('Delete', _class="button btn btn-info btn-sm", _title='Delete', _onclick = "return confirm('Are you sure?');"), \ _href=URL("default", "delete_company",args=[row.id])),

[web2py] Boolean types with Postgres adapter

2019-05-10 Thread John Underhill
The documentation states the SQLite lacks a boolean data type, so PyDAL maps boolean values to CHAR(1). But why do you do this with Postgres? Looking in my migration logs, I see boolean fields being created as CHAR(1). Postgres does have a boolean type. John -- Resources: - http

[web2py] SQLFORM.grid Export and represent

2014-04-16 Thread John Fraser
Is there an easy way to strip HTML markup from SQLFORM.grid's CSV/TSV export? I realize I probably need to create a custom export function, but curious if there is an argument or a one liner that would do the trick. Or is there a better way to format the display? I have the following controll

Re: [web2py] Re: SQLFORM.grid Export and represent

2014-04-16 Thread John Fraser
1:29:30 PM UTC-4, Cliff Kachinske wrote: > >> There must be something in the request that indicates you want csv or tsv. >> >> If it's in the request.args, for example, something like this would work: >> >> if 'csv' not in request.args and 'tsv

[web2py] SQLFORM.grid search fields

2014-04-17 Thread John Fraser
How would one go about making certain fields readable (visible) to the search, view, edit, etc, but hidden from the actual grid. Below is my code that accomplishes the hiding the fields from the main grid, but struggling with making them readable to the search: @auth.requires_login() def index

[web2py] if statement always true in view

2014-05-03 Thread john smith
Hello! I have a problem with 'reddit-clone' app from this tutorial. I'm stuck at moment in 2:28:00. My problem is with if statement that is supposed to change the button responsible for changing the view. For me the condition is always false, even though when printed, the request.function shows

[web2py] Strange ajax problem

2014-05-04 Thread John Drake
I've created a simple ajax form to update a "post" database. For some strange reason when I post a new message, the button greys out. Here is the model: db.define_table('t_post', Field('f_post', type='text', label=T('Post')), auth.signature, format='%(f_post)s') Here are

Re: [web2py] if statement always true in view

2014-05-04 Thread john smith
Well, that was obvious:/ Thanks for help, works perfectly now. W dniu niedziela, 4 maja 2014 09:52:12 UTC+2 użytkownik Marin Pranjić napisał: > > You have a typo in there. funciton should be function. > > That's why it always returns None. > > > Marin > > > O

[web2py] Simple loan system for library

2014-05-23 Thread john smith
I'm trying to create library system and have a little problem. Here's my current model: db.define_table('tags', Field('name'),format='%(name)s') db.define_table('copies', Field('is_active','boolean',default=True)) db.define_table('book', Field('title',requires=IS_NOT_EMPTY(), label='Tytuł')

[web2py] Re: Simple loan system for library

2014-05-24 Thread john smith
g comes to my mind right now. If that is not what you meant, then I have no idea. I should add that this is a school project so I can change it pretty much any way I like it. If you have better idea on how to create renting system then please do tell. W dniu sobota, 24 maja 2014 04:51:00 UTC+2

[web2py] Can't set registration_key

2014-05-25 Thread john smith
I set my app to require registration approval and cannot set the registration_key programmatically. I can set it through appadmin interface. Here is my code: @auth.requires_membership('librarian') def show_reader(): user = db.auth_user(request.args(0, cast=int)) form=FORM(INPUT(_type='sub

[web2py] Re: Can't set registration_key

2014-05-25 Thread john smith
)).update( > registration_key='') > return locals() > > Anthony > > On Sunday, May 25, 2014 8:45:56 AM UTC-4, john smith wrote: >> >> I set my app to require registration approval and cannot set the >> registration_key programmatically. I

[web2py] Problems with multiple forms and SQLFORM.grid

2014-06-01 Thread john smith
I want to create a page that will display user data, with additional controls. I want librarian to be able to add user to 'readers' and remove group, that part works. I also want admin be able to freely manage groups of a user, I want him to have a widget that will have a list of groups with s

[web2py] Re: Problems with multiple forms and SQLFORM.grid

2014-06-03 Thread john smith
Can anybody help me? I still can't figure it out on my own... W dniu niedziela, 1 czerwca 2014 16:10:07 UTC+2 użytkownik john smith napisał: > > I want to create a page that will display user data, with additional > controls. I want librarian to be able to add user to '

[web2py] Re: Problems with multiple forms and SQLFORM.grid

2014-06-03 Thread john smith
(_type='submit')) > if form2.process(formname='SomeName').accepted: > redirect(URL('index')) > On Sunday, June 1, 2014 9:10:07 AM UTC-5, john smith wrote: >> >> I want to create a page that will display user data, with additional >> contro

[web2py] Re: Problems with multiple forms and SQLFORM.grid

2014-06-03 Thread john smith
ser.id value" > What do you mean are you just trying to hide the id value? like this -> > db.table.id.readable=False ? > > On Sunday, June 1, 2014 9:10:07 AM UTC-5, john smith wrote: >> >> I want to create a page that will display user data, with additional >> c

[web2py] Re: Problems with multiple forms and SQLFORM.grid

2014-06-04 Thread john smith
s for it I found do not work. I get invalid syntax error caused by apostrophes. Anybody have any idea on how to solve it? W dniu wtorek, 3 czerwca 2014 18:18:42 UTC+2 użytkownik john smith napisał: > > Yes, it works if I add writable=False, but I still have to set user_id to > user.id a

[web2py] Re: Problems with multiple forms and SQLFORM.grid

2014-06-04 Thread john smith
Yes, it works perfectly now. Here is my function: @auth.requires(auth.has_membership('librarian') or auth.has_membership('admin')) def deletesomething(): db(db.auth_membership.id==request.args(0)).delete() redirect(URL('show_reader', args=request.args(1)), client_side=True) @auth.requires(auth.ha

[web2py] Getting "invalid view" when trying to access view as JSON

2014-07-17 Thread John Drake
This is odd. On my local test server I can do something like: http://localhost:8000/myapp/mycontroller/myfunction.json and I get back a JSON document. But when I try the same code on the same application running on Pythonanywhere I get: invalid view (mycontroller/myfunction.json) Just to mak

[web2py] select insert record in shell

2014-09-29 Thread John Frank
i am starting to web2py and using shell for all db related stuff. today i notice a bizarre behavior on db select. Instead of selecting a record, it is insert value of last insert query. am i making any mistake here.. this my shell log: In [5] : for x in row: print x In [6] : db.dog.insert(na

[web2py] LinkedIn API

2014-10-13 Thread John Costantino
Hey everyone I was wondering how to integrate the linkedin API with my web2py application I am currently running it on my local host as it is still in development. I found http://www.web2pyslices.com/slice/show/1541/integrating-linkedin-with-web2py. However I am unsure exactly what to do to get

[web2py] SSL configuration with built-in server

2014-10-22 Thread John Lofgren
cert and key in a configuration file instead? 2) When I set the cert and key, does that turn on SSL for every page automatically? Thanks, John -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p

[web2py] populate form with just-submitted values

2014-11-06 Thread John Lofgren
.dictform? Any suggestions? Thanks, John -- 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 message because you are subscribed to the Google

[web2py] Re: populate form with just-submitted values

2014-11-07 Thread John Lofgren
Thanks very much, Leonel! I found that adding keepvalues=True as an argument to form.process() was what I needed. >>> if form.process(keepvalues=True).accepted: ... <<< John On Thursday, November 6, 2014 6:14:56 PM UTC-6, Leonel Câmara wrote: > > FORM has keepv

[web2py] How to fix error "(No module named configuration)"?

2014-11-11 Thread John Davis
using and works ok there. I used the web2py admin interface to pack and download the app where it was working. Then I uploaded the app on a second server. I get the error on the second server when I try to start it. John -- Resources: - http://web2py.com - http://web2py.com/book (Document

[web2py] import app from one web2py server to another

2014-11-11 Thread John Davis
Hello I have an app written by someone which runs on our server. I have tried to copy this app from one server to a new one which also runs web2py. I use the admin site GUI for web2py to import the app, but when I try to run it, I get the following error. error: (No module named configuratio

[web2py] Re: How to fix error "(No module named configuration)"?

2014-11-11 Thread John Davis
On Tuesday, November 11, 2014 11:41:02 AM UTC-5, Leonel Câmara wrote: > > Does it work if you erase all .pyc files in your application modules > folder and subfolders, restart whatever is running web2py and try again? > I will try that. I'm kind of waiting for the next approach to before I do t

Re: [web2py] Re: How to fix error "(No module named configuration)"?

2014-11-11 Thread John Davis
your tips and thank you for your time and expertise, John On Tue, Nov 11, 2014 at 2:08 PM, Leonel Câmara wrote: > Copying the entire web2py directory would work if the module was in the > web2py directory site-packages, but, in that case, it also wouldn't work in > the other serve

[web2py] py and pyc files

2014-11-11 Thread John Davis
Hello If I get an error in the ticket exception output which shows an error at line x in a .pyc file, can I assume that the corresponding .py file on line x is the error? John -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source

[web2py] Ajax call issues.

2015-03-01 Thread John Costantino
Hey so I have a mail script written in python which works fine when I run it from a linux terminal. My issue is I need to make an ajax call passing in parameters from a custom form I created. In the Javascript it calls the script but the mail never sends. I am stumped I have been trying to get t

[web2py] LinkedIn API Please help for the love of god.

2015-03-02 Thread John Costantino
I have been trying to get this to work now for over 3 weeks. I have pulled data with the javascript API no problem but I wan't users to be able to log in using there linkedin accounts. I have tried the way suggested in the book as well as many of the various other implementations on the internet

[web2py] admin pointing to wrong static css in rendered page.

2015-03-04 Thread John McMaster
Just installed web2py on webfaction. Used one of the scripts on the webfaction community site. The domain is working. When I try to access the admin/default/index the css is clearly not being used. After using the Inspect Element to see what went wrong you can clearly see that the admin index.h

[web2py] Retrieve other fields from the LDAP database during login

2017-03-20 Thread John Freking
than these these fields? I would like to find the manager of the user. Thanks, John -- 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] Retrieve other fields from the LDAP database

2017-03-20 Thread John Freking
27;, This code works fine but I want to retrieve more fields from the LDAP database. Is it possible to get more than these these fields? Thanks, John -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google

[web2py] AttributeError: 'SQLite' object has no attribute 'file_open'

2017-07-15 Thread Jitun John
Here is a Code that worked fine on 2.14.6 but doesn't on 2.15.1 import datetime import gc import os from gluon import * from current_config import * from memory_profiler import memory_usage manager_rows = '' dummy_path = os.path.abspath('.') + '/applications/enLIGHTen/static/dummy/' def rea

[web2py] Re: AttributeError: 'SQLite' object has no attribute 'file_open'

2017-08-29 Thread Jitun John
Hi Massimo, I have the 2.15.3 version installed, but the issue remains. I confirm the same code works on 2.14.6 On Sunday, August 13, 2017 at

[web2py] Re: AttributeError: 'SQLite' object has no attribute 'file_open'

2017-08-31 Thread Jitun John
:47:39 UTC-5, Jitun John wrote: >> >> Hi Massimo, >> >> I have the 2.15.3 version installed, but the issue remains. >> I confirm the same code works on 2.14.6 >> >> >> >> <https://lh3.googleusercontent.com/-HVkJkUDVqYs/W

[web2py] Customizing registration fields for linkedin login

2015-05-12 Thread John Costantino
I have my application currently logging in and registering with linkedin. But when I register only a select few fields get filled. (first name, last name, email). I would like to also get the users public-url on registration. I am not sure how to do this. Is it possible for me to custom map spe

[web2py] Customizing registration Fields for Linkedin API log in.

2015-05-12 Thread John Costantino
I have gotten the linkedin Log in functioning properly. However when I register a use I would like to take in a few extra fields from that user. Is it possible to me to perhaps create mappings to specific fields in my DB to the attributes I will be pulling from the API call on registration? --

[web2py] Re: Customizing registration fields for linkedin login

2015-05-13 Thread John Costantino
Yes, that is correct. I added extra fields using the auth.settings.extra_fields['']. So the table is able to support the extra ones I need. My issue is more so with making sure that when logging with the linkedin API. I need to be sure to get the rest of the information from the API, such as th

[web2py] Give hidden form field an id attribute

2015-05-13 Thread John Lofgren
) ' >>> f.hidden_fields().element('input[name=interval]')['_id'] = 'form_interval' >>> f.hidden_fields().element('input[name=interval]').xml() '' I have assigned id's to other fields in the form using f.custom.widget..u

[web2py] Re: Customizing registration fields for linkedin login

2015-05-29 Thread John Costantino
Just giving this a Bump. Would really love a resolution to this one. Thanks guys. On Wednesday, May 13, 2015 at 10:28:43 AM UTC-4, John Costantino wrote: > > Yes, that is correct. I added extra fields using the > auth.settings.extra_fields['']. > So the table is able to

[web2py] IS_IN_DB validation error

2015-10-01 Thread John Smidt
IS_IN_DB to IS_IN_SET, but received an error stating that " 'Query' object does not support indexing". Any information would be greatly appreciated. Thank you, John -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2p

[web2py] Filtering a set of items from a collection issues

2015-10-12 Thread John Smidt
Hi, I am trying to populate a drop down box so that a user may choose a "featured Image" from a collection of images. There are multiple collections, so I need to filter out the other images that are in the different collections. The code I have is shown below: db.geo_collection.f_featured_img.

[web2py] Re: Filtering a set of items from a collection issues

2015-10-13 Thread John Smidt
IS_IN_DB( > db(db.geo_item.f_collection_id == current_collection_id), > db.geo_item.id, ...) > > You'll have to set current_collection_id to the appropriate value. > > Anthony > > > > > On Monday, October 12, 2015 at 12:54:03 PM UTC-4, John Smidt wrote: >> >&g

[web2py] Re: Filtering a set of items from a collection issues

2015-10-14 Thread John Smidt
That worked! Thanks for the quick help! On Tuesday, October 13, 2015 at 9:52:47 PM UTC-6, Anthony wrote: > > > > On Tuesday, October 13, 2015 at 12:21:10 PM UTC-4, John Smidt wrote: >> >> Ok, I get how the IS_IN_SET needs a filtered set as the first argument >> b

[web2py] Redirect url with jqmobile

2015-10-29 Thread John Habermann
Hi I have a web2py application that I have recently upgraded to version 2.12.3 and have been working on converting it to use the jqmobile plugin. I have run into an issue with form submission due to the url not changing when you submit a form so rather than load the page specified by the red

[web2py] Web3Py equivalent of SQLFORM.grid

2019-05-16 Thread John Bannister
Hi All, I have a number of web2py applications that use the grid/smartgrid functionality pretty heavily. The majority of the applications are working with large data sets (some tables have > 20M records) and everything runs fine. With the coming of Web3Py (which looks great) my question is wha

Re: [web2py] Web3Py equivalent of SQLFORM.grid

2019-05-16 Thread John Bannister
advance John On Thursday, 16 May 2019 12:42:17 UTC+2, José L. wrote: > > Hey John, > > I have used datatables with web2py in some projects and it was faster than > smartgrid when used in server mode. > Whenever I had performance problems was because the code used .count() to >

Re: [web2py] Web3Py equivalent of SQLFORM.grid

2019-05-16 Thread John Bannister
Hi Jose, Completely understandable on the code side of things and appreciate your sharing. I will for sure revisit the Datatables option this week with the information you have provided. Once again thanks for your time and assistance John On Thursday, 16 May 2019 13:06:46 UTC+2, José L. wrote

[web2py] Web3py

2019-05-16 Thread John Bannister
ally an option so hopefully I am missing something really simple. Thanks in advance John -- 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) --- Yo

Re: [web2py] Web3Py equivalent of SQLFORM.grid

2019-05-16 Thread John Bannister
Hi Massimo, Had a quick look at the mtable prototype in the _dashboad/dbadmin and re-visiting datatables as well. Will need to spend a bit more time on both before I can come to any sort of solution but thanks very much for the input. On Thursday, 16 May 2019 16:50:48 UTC+2, Massimo Di Pierro

RE: [web2py] Re: Web3py

2019-05-17 Thread John Bannister
the apps in the applications directory. Is this intentional or is there a way to just reload the app currently being developed? BR John From: web2py@googlegroups.com [mailto:web2py@googlegroups.com] On Behalf Of Massimo Di Pierro Sent: 17 May 2019 09:36 To: web2py-users Subject

RE: [web2py] Re: new DBAPI in pydal for both web2py and web3py

2019-05-17 Thread John Bannister
How about Despresso (for database express O ). J From: web2py@googlegroups.com [mailto:web2py@googlegroups.com] On Behalf Of Massimo Di Pierro Sent: 17 May 2019 17:43 To: web2py-users Subject: [web2py] Re: new DBAPI in pydal for both web2py and web3py I am embarrassed I have forgotten all

RE: [web2py] Re: Web3py

2019-05-17 Thread John Bannister
@action.uses(db, 'helloworld.html') def helloworld3(): return dict(name=' 3 ' + request.forms.get('name', 'visitor')) After reload apps only helloworld accessible. After server restart all are. BR John From: web2py@googlegroups.com [mailto:

RE: [web2py] Re: new DBAPI in pydal for both web2py and web3py

2019-05-17 Thread John Bannister
As you are da man I would suggest DaQL .. DALQL is a bit of a mouth full J From: web2py@googlegroups.com [mailto:web2py@googlegroups.com] On Behalf Of Massimiliano Sent: 17 May 2019 18:56 To: web2py@googlegroups.com Subject: Re: [web2py] Re: new DBAPI in pydal for both web2py and web3py DA

Re: [web2py] Re: Web3py

2019-05-17 Thread John Bannister
Update on this :- Just tried it on native windows10 python3.7 and same results. New functions return error 404 until server restart. BR John On Friday, 17 May 2019 18:49:28 UTC+2, 黄祥 wrote: > > problem still exist (in commits 110) only superheroes app traceback error > is gone

Re: [web2py] Re: Web3py

2019-05-17 Thread John Bannister
gonna be the same. Best Regards John On Friday, 17 May 2019 23:47:38 UTC+2, 黄祥 wrote: > > Editing apps and reloading forks for me. Please try again and let's try >> figure out why does not work for you. >> > > after tried latest commit (110), guess when it's

RE: [web2py] Re: Web3py

2019-05-18 Thread John Bannister
I am getting the below reload console output when I fire up tornado as well as when I hit the reload all button on both windows and Ubuntu installations. BR John From: web2py@googlegroups.com [mailto:web2py@googlegroups.com] On Behalf Of Massimo Di Pierro Sent: 18 May 2019 07:20 To

Re: [web2py] Re: Web3py

2019-05-18 Thread John Bannister
Same result unfortunately On Saturday, 18 May 2019 10:50:34 UTC+2, Massimo Di Pierro wrote: > > what if you do not user tornado and replace > > bottle.run(server='tornado', host=host, port=int(port)) > > with > > bottle.run(host=host, port=int(port)) > > it is very strange. Please try test the rel

Re: [web2py] Re: Web3py

2019-05-18 Thread John Bannister
Running reload manually works as advertised on PyPi On Saturday, 18 May 2019 13:03:59 UTC+2, John Bannister wrote: > > Same result unfortunately > > On Saturday, 18 May 2019 10:50:34 UTC+2, Massimo Di Pierro wrote: >> >> what if you do not user tornado and replace

RE: [web2py] Re: Web3py

2019-05-18 Thread John Bannister
Hi Stifan, What OS are you testing on? BR John From: web2py@googlegroups.com [mailto:web2py@googlegroups.com] On Behalf Of ?? Sent: 18 May 2019 08:14 To: web2py-users Subject: Re: [web2py] Re: Web3py Also, web3py uses this: https://pypi.org/project/reloader/ The docs have an

Re: [web2py] Re: Web3py

2019-05-18 Thread John Bannister
opposed to reload when the button is clecked but still same result. Really weird. BR John On Saturday, 18 May 2019 13:36:34 UTC+2, 黄祥 wrote: > > *web3py/web3py/core.py* > tried > bottle.run(server='tornado', host=host, port=int(port), reloader=True) > and > bottle.

Re: [web2py] Re: Web3py

2019-05-18 Thread John Bannister
. So .. I literally created a example.py with a print statement .. loaded it, changed it and reloaded it .. changes were there which tends to indicate that reloader is working. I am also not too familiar at all with reloader unfortunately but am sure we will find the solution. BR John On Saturd

Re: [web2py] Re: Web3py

2019-05-19 Thread John Bannister
hich to me indicates that neither the controllers.py nor the models.py are being reloaded. Hope this helps BR John On Sunday, 19 May 2019 02:37:38 UTC+2, 黄祥 wrote: > > understood, my bad, just test it n report it what think related with the > problem > @massimo > should this

Re: [web2py] Re: Web3py

2019-05-19 Thread John Bannister
just lists the apps/myapp as a dependency BR John On Sunday, 19 May 2019 11:38:07 UTC+2, John Bannister wrote: > > Hi Guys, > > Couple of things. > > 1: I added a print('Dependancies %s ' % reloader.get_dependencies(module)) > just before the output to console in we

[web2py] Re: IS_NOT_EMPTY() "takes away" a dropbox with a list of items referenced by a foreign key -

2019-05-19 Thread John Bannister
Hi Vlad, I think I have come across this issue as well some time ago. Can you try IS_NOT_EMPY() OR IS_IN_DB(id ...) This should hopefully bring back your drop down list. BR John -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py

RE: [web2py] Re: Web2py: Update table content after submit action

2019-05-26 Thread John Bannister
form and the grid in the same function you are loading from the view. My personal preference is to use the standard Web2py SQLFORM.grid which has all the crud functionality already embedded which greatly simplifies coding. BR John From: web2py@googlegroups.com [mailto:web2py

[web2py] Re: Web3py

2019-06-03 Thread John Bannister
assist wherever I can. Thanks again for all the hard work put in so far I am sure its gonna be a really cool solution. Best Regards John On Thursday, 16 May 2019 17:15:44 UTC+2, John Bannister wrote: > > Hi All, > > Had a first real 'play' with web3py' today and hav

RE: [web2py] Re: Web3py

2019-06-09 Thread John Bannister
Subject: [web2py] Re: Web3py try a db.commit() after your define_table(s). On Monday, 3 June 2019 08:16:27 UTC-7, John Bannister wrote: Hi All, Finally gotten round to playing again on the latest Web3py. On _scaffold app .. if I add new tables to model file and then reload from the

[web2py] Re: Datatables serverside JSON/Ajax

2019-06-11 Thread John Bannister
complicated) but doable. As said I could be wrong. BR John On Tuesday, 11 June 2019 10:52:42 UTC+2, Leonel Câmara wrote: > > It's because you're not using the generic.json view and you're also not > setting the response.headers content-type to json. I would simply change >

[web2py] Web3py FORM referenced fields

2019-06-12 Thread John Bannister
ies but on the form=Form(db.pet, record=id) for the edit form .. neither the id of the person or the persons name (format='%(name)s' is displayed even though I can still select from the dropdown list. The id is definately stored in the db. BR John -- Resources: - http://web2py.com

RE: [web2py] Re: Web3py FORM referenced fields

2019-06-12 Thread John Bannister
with db values. BR John From: web2py@googlegroups.com [mailto:web2py@googlegroups.com] On Behalf Of Massimo Di Pierro Sent: 13 June 2019 05:09 To: web2py-users Subject: [web2py] Re: Web3py FORM referenced fields I added an example that works for me. Maybe can help you debug the

RE: [web2py] web2py dynamic queries

2019-06-17 Thread John Bannister
look at the individual field.type (which will tell you the type of field you are dealing with) and treat each field type accordingly. Hope this helps John From: web2py@googlegroups.com [mailto:web2py@googlegroups.com] On Behalf Of Cristina Sig Sent: 17 June 2019 03:36 To: web2py-users

RE: [web2py] Re: Anthony was right... web3py has a big naming conflict

2019-07-22 Thread John Bannister
Why not something as simple as py3web From: web2py@googlegroups.com [mailto:web2py@googlegroups.com] On Behalf Of Leonel Câmara Sent: 22 July 2019 16:26 To: web2py-users Subject: [web2py] Re: Anthony was right... web3py has a big naming conflict I would call it pywebal "python web abstract

[web2py] py4web YATL equivalent of SCRIPT

2019-09-06 Thread John Bannister
Hi All, Have finally had a bit of time to play again with py4web the objective being to port a smallish app from web2py to py4web (very much as a learning and familiarisation/evaluation exercise). The main objective is to see if I can create the equivalent of a working web2py app with py4web w

RE: [web2py] py4web YATL equivalent of SCRIPT

2019-09-07 Thread John Bannister
Thanks Massimo, Will definitely take a look and do the necessary. With regards the general Auth functionalitly, do you have some example or guidelines as to how this will work? Thanks in advance -Original Message- From: web2py@googlegroups.com [mailto:web2py@googlegroups.com] On Beha

RE: [web2py] py4web has now a grid ...

2019-09-12 Thread John Bannister
opinion and is intended purely to provide my own feedback on the py4web new grid. (bucket list is running over) J Best Regards John From: web2py@googlegroups.com [mailto:web2py@googlegroups.com] On Behalf Of Massimo Di Pierro Sent: 12 September 2019 08:32 To: web2py-users Subject: [web2py

[web2py] py4web pythonanywhere bottle_app.py configuration

2019-09-23 Thread John Bannister
Hi All, Just watched the py4web video and would like to know if anyone has the bottle_app.py config that needs to be used in order to get the desired resuolts. Hard to make out in the video BR John -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http

RE: [web2py] Re: py4web pythonanywhere bottle_app.py configuration

2019-09-24 Thread John Bannister
September 2019 02:29:49 UTC-7, John Bannister wrote: Hi All, Just watched the py4web video and would like to know if anyone has the bottle_app.py config that needs to be used in order to get the desired resuolts. Hard to make out in the video BR John -- Resources: - http://web2py.com - http

[web2py] py4web questions

2019-09-25 Thread John Bannister
ing really simple and/or have probably been spoilt by Web2Py Thanks in advance John -- 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 th

RE: [web2py] py4web questions

2019-09-26 Thread John Bannister
Thanks Massimo much appreciated and looking forward to the tutorial. Will check out the tag API in the meantime. -Original Message- From: web2py@googlegroups.com [mailto:web2py@googlegroups.com] On Behalf Of Massimo Di Pierro Sent: 26 September 2019 09:02 To: web2py-users Subject: [web2p

<    1   2   3   4   >