[web2py] Re: hello all and a minor typo

2015-11-15 Thread Niphlod
yes, it's a typo. Regarding the latter, the excerpt is To enable the scheduler you must instantiate the Scheduler class in a model. The recommended way to enable the scheduler to your app is to create a model file named scheduler.py and define your function there. After the functions, you can

[web2py] Re: Creating web apps with Web2py in Azure Web Apps

2015-11-15 Thread Massimo Di Pierro
+1 for github wiki On Friday, 13 November 2015 11:46:13 UTC-6, Paolo Valleri wrote: > > we can start using github wiki for all things in script/* > > Paolo > > On Friday, November 13, 2015 at 9:09:12 AM UTC+1, Niphlod wrote: >> >> we're working towards REDUCING scripts/anything_for_deployment bec

[web2py] Re: how to SQLFORM via ajax?

2015-11-15 Thread Anthony
Read up on components: http://web2py.com/books/default/chapter/29/12/components-and-plugins#Components--LOAD-and-Ajax On Sunday, November 15, 2015 at 10:46:14 PM UTC-5, Anthony wrote: > > In the parent page view, include the form via something like: > > {{=LOAD('default', 'ajaxTask.load', ajax=Tr

[web2py] Re: how to SQLFORM via ajax?

2015-11-15 Thread Anthony
In the parent page view, include the form via something like: {{=LOAD('default', 'ajaxTask.load', ajax=True)}} And then in your Javascript code, just use the clicks to show or hide that div that contains the form (don't make any Ajax calls there). That way, the form will always be on the page -

[web2py] Re: how to SQLFORM via ajax?

2015-11-15 Thread lucas
hey anthony, thanx for the rapid response. i don't quite get it. will you point in the direction so i can understand the implementation better? thank you. you know, i really love programming in web2py. i have a few years under my belt and it really is an excellent system. lucas -- Resour

[web2py] Re: how to SQLFORM via ajax?

2015-11-15 Thread Anthony
You're not trapping the form submission to ensure it happens via Ajax, so instead the form ends up being submitted to the URL of the parent page, so it doesn't get processes. If you want to include a form via Ajax, it will be much easier to put the form in LOAD(..., ajax=True), which will autom

[web2py] Re: getting confused when running select on joined tables

2015-11-15 Thread Anthony
> In a DAL query, you must use & rather than and. By using the latter, you > are getting the standard Python behavior, whereby x and y simply yeilds y. > Just to be clear, if x evaluates to a falsey value (e.g., 0, '', []), then x and y instead yields x. Anthony -- Resources: - http://web2p

[web2py] how to SQLFORM via ajax?

2015-11-15 Thread lucas
alright, so in a view i have: {{block head}} function clk_form(tidi) { if (tidi != 0) { jQuery('div#form').css('display','block'); ajax('/cs/default/ajaxTask?tidi='+tidi, [], 'form'); } else { jQuery('div#form').css('display','none'); jQuery('div#form').htm

[web2py] Re: getting confused when running select on joined tables

2015-11-15 Thread Edward Shave
Nearly forgot to come back, sorry for delay... Switching "&" for "and" fixed my immediate problem and as usual I learnt more interesting stuff from your answer. Many thanks Ed -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source c

Re: [web2py] Re: what if i want bootstrap with semanticui ?

2015-11-15 Thread Anthony
On Sunday, November 15, 2015 at 5:16:26 PM UTC-5, Ramos wrote: > > There is so much knowledge waiting for us about web2py internals if we > start from scratch. > Things that we take for granted and never questioned them. > there should be a chapter about "Starting from scratch" in the book. It

Re: [web2py] Re: what if i want bootstrap with semanticui ?

2015-11-15 Thread António Ramos
Thank you Anthony. As always very informative. There is so much knowledge waiting for us about web2py internals if we start from scratch. Things that we take for granted and never questioned them. there should be a chapter about "Starting from scratch" in the book. It will help me and others. Reg

[web2py] Re: additional software to run postgreSQL/postGIS on web2py

2015-11-15 Thread Leonardo Pires Felix
In the case of PostgreSQL, you only need the PostgreSQL database installed and running, as described in Detailed installation guides[PostgreSQL] . Em domingo, 15 de novembro de 2015 08:57:34 UTC-2, Pierre escreveu: > > Hi all, > > I

[web2py] update_or_insert - Calculation when updating

2015-11-15 Thread Red Beard
Hi, I have only just started learning python and web2py so please bear with me. When a user inserts an item and amount in tr_items, I am trying to have the system check whether the item exists in products_summary, if it does, update the amount by the amount input by the user into tr_items - if

[web2py] Re: auth tables not visible in appadmin

2015-11-15 Thread Red Beard
Thank you Anthony and Massimo - I created a new app and managed to make it work - I'm not too sure what I must have done the first time round. On Wednesday, 11 November 2015 14:54:23 UTC, Massimo Di Pierro wrote: > > It is possible you have a db = DAL(...) in some other model file and that > ove

Re: [web2py] Re: what if i want bootstrap with semanticui ?

2015-11-15 Thread Anthony
By the way, if you don't want to use the scaffolding app at all, to create a new app, just make a new empty folder inside the /applications folder. Once you make a single request to the app (which will initially yield an error), web2py will automatically create all the necessary (empty) sub-fol

Re: [web2py] Re: what if i want bootstrap with semanticui ?

2015-11-15 Thread Anthony
On Sunday, November 15, 2015 at 9:37:34 AM UTC-5, Ramos wrote: > > This is the login form where i see bootstrap all over the place. > I think there is some confusion. Just to be clear, Bootstrap is *not* the default formstyle used by web2py -- the default formstyle is the generic "table3cols" st

Re: [web2py] Re: what if i want bootstrap with semanticui ?

2015-11-15 Thread António Ramos
This is the login form where i see bootstrap all over the place. First nameLast nameE-mailPasswordConfirm Password If i want to use semantic instead i not only have to change layout but also have to look for all of the forms. and remove css classes. I migh

[web2py] Re: ajax need to return 4 values

2015-11-15 Thread lucas
ok, i went with qQuery.getJSON. here is how i did it and it works great. JSON trading is cool. just for sharing: under the default controller's function, i have a section where i implement the javascript/jQuery code via an onchange of a select input. the select input is meant to prepopulate

[web2py] Re: record representation and lambda

2015-11-15 Thread Anthony
> > Traceback (most recent call last): > File "/home/tony/web2py/gluon/restricted.py", line 227, in restricted > exec ccode in environment > File "/home/tony/web2py/applications/cps2d/models/db1.py" > , line 112, in > > d

[web2py] additional software to run postgreSQL/postGIS on web2py

2015-11-15 Thread Pierre
Hi all, It is unclear in the doc what's already included in web2py or what additional software is necessary to use postgreSQL/postGIS ? I tried to connect like this : >>> db= DAL("postgres://:@localhost/test") Traceback (most recent call last): File "", line 1, in File "/opt/web2p

[web2py] Re: Is this the best mailing list ever for web app developers?

2015-11-15 Thread Anthony Smith
That wasn’t suppose the be a question. sorry Guys On Sunday, 15 November 2015 19:08:46 UTC+11, Anthony Smith wrote: > > To All the Web2py Team, > > I speak for myself, but feel there will be others that have the same > opinion. > > As I am quiet new to Web2py and programming as a whole, we are

[web2py] Is this the best mailing list ever for web app developers?

2015-11-15 Thread Anthony Smith
To All the Web2py Team, I speak for myself, but feel there will be others that have the same opinion. As I am quiet new to Web2py and programming as a whole, we are trying/willing learners (if we weren’t we would be here). When I come across a problem/error, I don’t ask for help straight away,