[web2py] Customize grid ondelete warning message

2017-04-07 Thread Manuele Pesenti
Hi! Is there an easy way to customize the warning message that pops up when I try to delete a record from a table using gird? Both from grid and from edit interface, hopefully from the same place ;) Thanks a lot M. -- Resources: - http://web2py.com - http://web2py.com/book

[web2py] Re: how to get the id of the first row in sqlform.grid when it is loaded?

2017-04-07 Thread A3
> > I made following changes to make it work: > - When the fields rendered the first row is marked as topfield and stored in session.topfield - First time load or reload returns row.id = 0 and forces to row.id stored in session.topfield def view_report(): qry.reportnr.represent =

[web2py] Re: Customize grid ondelete warning message

2017-04-07 Thread Leonel Câmara
You can change it in the web2py_ajax.html view it's the w2p_ajax_confirm_message var. -- 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

[web2py] Re: appconfig.ini versus models/0.py

2017-04-07 Thread Anthony
On Friday, April 7, 2017 at 2:40:47 PM UTC-4, Marlysson Silva wrote: > > But current welcome aplication already have the appconfig.ini file in > wizard .. > > https://github.com/web2py/web2py/tree/master/applications/welcome/private > > Or do you want to say in create application in admin

[web2py] Re: Password Recovery Not Sending (lazyT object being passed to GAE?)

2017-04-07 Thread webmaster
Thanks for bringing this issue back up and posting a workaround. The worst part is the way to fix this is probably about as easy as wrapping something in "str()", just need to know how the web2py internals all link together. On Thursday, April 6, 2017 at 4:51:17 AM UTC-7, Karoly Kantor

[web2py] DAL select inner join to straight field list instead of multiple dicts per table

2017-04-07 Thread lucas
hello one and all, as it is, web2py DAL select inner join separates the fields by a dict for each table, and it makes sense to do that. however, is there a way under the select to merge the field:value list, without the per table dict split out, in the case that the selected field names do

Re: [web2py] SQLFORM.GRID Change Header and labels too?

2017-04-07 Thread Javier Pepe
Hi You can use de label atribute in Field definition, this used in all forms. - label is a string (or a helper or something that can be serialized to a string) that contains the label to be used for this field in auto-generated forms.

[web2py] Re: TABLE and TBODY helpers add TR innapropriately

2017-04-07 Thread Brian M
Leonel thanks for your help. I did need to put everything in the XML the way I was doing it because otherwise it all gets escaped. But that is because I was basically converting everything to a string first which is not what I wanted so you were right and I was confused. As far as why not put

[web2py] Re: web2py behind IIS - 404 File or Directory Not Found. - RESOLVED

2017-04-07 Thread weheh
Hallelujah! Praise to Remco Boerma for his excellent youtube video on how to make web2py work behind IIS. I am beginning to believe my suspicion that there is a version compatibility problem with wfastcgi.py and/or python 2.7.X 32 vs. 64 bit that

[web2py] Re: appconfig.ini versus models/0.py

2017-04-07 Thread Marlysson Silva
But current welcome aplication already have the appconfig.ini file in wizard .. https://github.com/web2py/web2py/tree/master/applications/welcome/private Or do you want to say in create application in admin application.. Em quinta-feira, 30 de março de 2017 11:20:58 UTC-3, Anthony escreveu: >

[web2py] SQLFORM.GRID Change Header and labels too?

2017-04-07 Thread r
So I have changed the header for my sqlform grid: grid = SQLFORM.grid(db.adminis,headers={'adminis.Name':'Name','adminis.Description':'Description','adminis.Rating':'Average Rating'}) and when I click on view/edit I would like the same labels to be used. How is it possible ? -- Resources:

[web2py] Re: TABLE and TBODY helpers add TR innapropriately

2017-04-07 Thread Brian M
Anthony, this is what I was looking for. Thanks! I am trying not to build the html myself and use the helpers instead. I am going for readability and ease of use for others to modify later. In all the examples in the book nowhere did it show the append and insert for the HTML helpers I looked

[web2py] Re: TABLE and TBODY helpers add TR innapropriately

2017-04-07 Thread Anthony
On Friday, April 7, 2017 at 9:48:37 AM UTC-4, Brian M wrote: > > Anthony, this is what I was looking for. Thanks! I am trying not to build > the html myself and use the helpers instead. I am going for readability and > ease of use for others to modify later. In all the examples in the book >

[web2py] [Contribution] Generate Map using google maps sql and web2py

2017-04-07 Thread Juan Carlos Quesada
function initMap() { var myLatLng = {lat: 40.4636670001, lng: -3.74922366}; var map = new google.maps.Map(document.getElementById('map'), { zoom: 5, center: myLatLng }); var markers = []; {{ associa =

[web2py] Re: web2py behind IIS - 404 File or Directory Not Found.

2017-04-07 Thread Brian M
I cannot truly help, but I do use IIS and have found that it can be cantankerous. I would suggest simply trying to get a static file from web2py then you can work on the IIS settings to allow certain types of files that it might be blocking. The 404 on a new IIS installation simply means you