[web2py] Upload packed application ... error message clarity

2016-09-13 Thread Dave S
I was having trouble using the upload app button. "errors in form; please check it out", and "invalid package name". It may be that I'm slow today, but it took me a while to realize that I was supposed to fill in the application name, not just the filename. 1) maybe changing the color of

[web2py] Re: How to get dropdown options working on nav-bar

2016-09-13 Thread Dave S
On Tuesday, September 13, 2016 at 3:28:24 PM UTC-7, Peter wrote: > > > Thanks Dave, > stupid.css doesn't look so stupid! but there will be a learning curve for > me to understand it and the more I look at the more I need to understand > css better. > > Start with

[web2py] Re: How to get dropdown options working on nav-bar

2016-09-13 Thread Peter
Thanks Dave, stupid.css doesn't look so stupid! but there will be a learning curve for me to understand it and the more I look at the more I need to understand css better. The change to Bootstrap3 limited the nesting levels of submenus ... only 1 > sub-level now, I believe. This was a

Re: [web2py] Re: GAE integration is MASSIVELY broken again (in multiple ways in multiple versions)

2016-09-13 Thread webmaster
Hi Mathieu! Are you using the default instance_class in your app.yaml? I felt GAE was running a bit slow, but upgrading to the F2 instance_class really improved overall response for a very minor increase in cost. I'd be interested to see what scaling options you have set in the app.yaml. On

[web2py] Re: How to get dropdown options working on nav-bar

2016-09-13 Thread Dave S
On Tuesday, September 13, 2016 at 1:02:54 PM UTC-7, Peter wrote: > > I am trying to get a menu item to display additional selectable drop down > options... > > > > > > > > > > > > > > > > > > > > *default.pyif auth.user:response.menu=[ ( 'Home' > , False , url(

[web2py] How to get dropdown options working on nav-bar

2016-09-13 Thread Peter
I am trying to get a menu item to display additional selectable drop down options... *default.pyif auth.user:response.menu=[ ( 'Home' , False , url( 'index' ) , []), ( 'Companies' , False , url( 'list_companies' ) , []),

[web2py] Re: How to code efficiently for multiple database engines with Exceptions

2016-09-13 Thread Dave S
On Tuesday, September 13, 2016 at 11:25:29 AM UTC-7, Joe Barnhart wrote: > > Ooooh.. I like that. I may think of that idea myself! Good job. > > -- Joe > If going this way, I think I'd base it on Anthony's comment. /dps > On Tuesday, September 13, 2016 at 6:33:54 AM UTC-7, >

[web2py] Re: JSON getting the series data into view

2016-09-13 Thread Aydin
Yes, thats the reason i think. 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 message because you are subscribed to the Google

[web2py] Re: Need help to understand (and reproduce) this error

2016-09-13 Thread Niphlod
this is the only proper way, and it relies on the underlying driver implementation. On Tuesday, September 13, 2016 at 5:08:30 PM UTC+2, Lisandro wrote: > > Thank you Niphlod. > I've seen that db.executesql receives the "placeholders" argument in order > to do the escaping. > I've modified my

[web2py] Re: JSON getting the series data into view

2016-09-13 Thread Niphlod
definitely something is going on with your setup: did you play with routes ? the default scheme includes the app name right after the host name, and that's why you got the example with /app/controller/function. On Tuesday, September 13, 2016 at 5:38:11 PM UTC+2, Aydin wrote: > > @Niphlod and

Re: [web2py] Re: GAE integration is MASSIVELY broken again (in multiple ways in multiple versions)

2016-09-13 Thread Mathieu Clabaut
I also do, but didn't try further than 2.14.6 + some git revisions… And it makes me realized I still have no test for password reset… I'll add some ! For now I have quite bad performances on GAE (3 requests / seconds for one instance when facing 20 simultaneous simulated users → leads to more

[web2py] Re: How to code efficiently for multiple database engines with Exceptions

2016-09-13 Thread Joe Barnhart
Ooooh.. I like that. I may think of that idea myself! Good job. -- Joe On Tuesday, September 13, 2016 at 6:33:54 AM UTC-7, tim.n...@conted.ox.ac.uk wrote: > > It may be a bad move, but I defined IntegrityError in a model, so it can > be nice and terse everywhere else: > IntegrityError =

Re: [web2py] Re: web2py resources

2016-09-13 Thread António Ramos
+1 autohotkey 2016-09-12 15:12 GMT+01:00 Alfonso Serra : > Another tool for Firefox that may help to develop your applications. > > This AutoHotKey script reloads your browser and removes the repost > Confirmation dialog whenever you press Ctrl + S. > So if you save your

[web2py] Re: JSON getting the series data into view

2016-09-13 Thread Aydin
Sorry that was my mistake, the actual code was:

[web2py] Re: Need help to understand (and reproduce) this error

2016-09-13 Thread Lisandro
Thank you Niphlod. I've seen that db.executesql receives the "placeholders" argument in order to do the escaping. I've modified my code to this: def search(): results = db.executesql('SELECT * FROM contenido WHERE tsv @@ plainto_tsquery(%s)', placeholders=[request.vars.q]) return

[web2py] Re: GAE integration is MASSIVELY broken again (in multiple ways in multiple versions)

2016-09-13 Thread webmaster
I'm using it! It's very solid except for these two current issues. It'd also be nice if there were some (any) documentation regarding how to use it with Google Cloud Storage and Google Datastore while also using Google Cloud SQL. www.trytha.com On Tuesday, September 13, 2016 at 2:47:43 AM

[web2py] Re: JSON getting the series data into view

2016-09-13 Thread Brian Boatright
Make sure you are using the correct URL to retrieve the data. I just did a test of that example from the book by creating a controller and index view and it works as expected. In your original post you show $.getJSON('/application/default/weekdays', and in your last reply you suggest you

[web2py] Re: JSON getting the series data into view

2016-09-13 Thread Niphlod
then please check with whoever wrote """ function(data){series: [{ type: 'area', name: 'Response(kW)', data: data }] """ PS: may I suggest that you'd need to call /app/default/getdata*.json *that sets automatically also the correct

[web2py] Fetching rows with st_asgeojson()

2016-09-13 Thread Gael Princivalle
Hello. Can someone explain me why when I use this set of rows: events= db(db.events.id>0).select(db.events.id, db.events.title, db.events.geometry.st_asgeojson()) I can't call my rows with event.title but with event[db.events.title] ? It's a problem because if I would like to call for a

[web2py] Re: How to code efficiently for multiple database engines with Exceptions

2016-09-13 Thread tim . nyborg
It may be a bad move, but I defined IntegrityError in a model, so it can be nice and terse everywhere else: IntegrityError = idb._adapter.driver.IntegrityError Where I have two different databases, I just added it to the database objects: db.IntegrityError = db._adapter.driver.IntegrityError

[web2py] Re: JSON getting the series data into view

2016-09-13 Thread Aydin
Im sure it has to do with my code not web2py. Yes in the browser i did /app/default/getdata and it returned correctly [[1,2],[2,3]]. By the way i import json and also use @service.json. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py

[web2py] Re: Need help to understand (and reproduce) this error

2016-09-13 Thread Niphlod
app/controller/function=everythingyoucanthinkof . NEVER . EVER. EVER. build queries without proper escaping. On Monday, September 12, 2016 at 3:12:50 PM UTC+2, Lisandro wrote: > > Hi there! > I have a simple view with a form (with GET method), in order to allow my > visitors to do some search.

[web2py] Re: Turbolinks?

2016-09-13 Thread Niphlod
everything works perfectly fine with pjax-like libraries. What's the issue you're facing ? On Monday, September 12, 2016 at 10:51:47 PM UTC+2, Dave S wrote: > > > > On Monday, September 12, 2016 at 1:21:20 PM UTC-7, pbreit wrote: >> >> Does Python or Web2py have anything like Turbolinks? Has

[web2py] Re: GAE integration is MASSIVELY broken again (in multiple ways in multiple versions)

2016-09-13 Thread Niphlod
I absolutely love when the most used by big guys backend seems to fail for the most basic reasons...is someone really using web2py on GAE or it's just for show ? On Tuesday, September 13, 2016 at 9:02:19 AM UTC+2, webm...@trytha.com wrote: > > First, sometime around the 2.13 or 2.14 change,

[web2py] Re: JSON getting the series data into view

2016-09-13 Thread Niphlod
did you check if your js is working before blaming web2py ? On Tuesday, September 13, 2016 at 3:46:52 AM UTC+2, Aydin wrote: > > The methods to get the data in the view of web2py does not seem working. I > used the method mentioned in > http://web2py.com/books/default/chapter/29/10/services

[web2py] Re: change the default applicaton of web2py

2016-09-13 Thread Alessio Varalta
Very frendly works On Monday, 12 September 2016 08:36:26 UTC+2, Alessio Varalta wrote: > > Hi, I call my application with base_url+ name_application. > > With base_url web2py call welcome application, I want to change and with > base_url i want to call my name_application. Where is the code to

[web2py] GAE integration is MASSIVELY broken again (in multiple ways in multiple versions)

2016-09-13 Thread webmaster
First, sometime around the 2.13 or 2.14 change, the password reset feature stopped working, as I detail here: https://groups.google.com/forum/?pli=1#!topic/web2py/YndwuzoEypw And today I decided to try out the latest version (2.15.x based on changelog) from Git to see if you all had maybe