Re: [web2py] Re: basics of DOM manipulation with web2py

2012-12-25 Thread Bhaskar Ramachandran
Great!. Thank you all for the clarification. I will then re-write my code to have SQLFORM or SQLFORM.factory to later be able to inject html into the form. Really appreciate the help . I can now move forward!. Regards, Bhaskar On Tuesday, December 25, 2012 9:43:52 AM UTC-6, Anthony wrote: > >

Re: [web2py] Re: basics of DOM manipulation with web2py

2012-12-24 Thread Bhaskar Ramachandran
reate custom form attributes that don't appear in your DB also. > > As for the DOM stuff that you're talking about, listen to Anthony. > > Also use JavaScript in order to not burden your server + give users' a > quicker, more "responsive" response > > On Tue, Dec 25, 2012 at 4:18 PM, Bhaskar Ramachandran > > > wrote: > > Bhaskar > --

[web2py] Re: basics of DOM manipulation with web2py

2012-12-24 Thread Bhaskar Ramachandran
> > to find all input elements within the form. > > Anthony > > On Monday, December 24, 2012 10:46:55 PM UTC-5, Bhaskar Ramachandran wrote: >> >> I am new to web2py and wondering how i can manipulate elements in a form. >> This form is in the view file with

[web2py] Re: help with finding syntax error in nested if loop in view

2012-12-24 Thread Bhaskar Ramachandran
Hi Anthony, I think it is better to keep these if else (or for or while) statements in separate lines for clarity. Otherwise, it is causing trouble... For example. how would you interpret the statement below This assumes the following logic : if ... : if . : else:

[web2py] Re: help with finding syntax error in nested if loop in view

2012-12-24 Thread Bhaskar Ramachandran
; > > > > > Il giorno martedì 25 dicembre 2012 00:40:01 UTC+1, Bhaskar Ramachandran ha > scritto: >> >> >> >> I get a syntax error for the above code in view html file. I am trying to >> dynamically insert a tick icon or a cross icon dependin

[web2py] basics of DOM manipulation with web2py

2012-12-24 Thread Bhaskar Ramachandran
I am new to web2py and wondering how i can manipulate elements in a form. This form is in the view file with the form tags all hand coded in html without using the web2py helpers. Now when an user submits this form, i would like to make some decisions based on the user posted information (I coul

[web2py] help with finding syntax error in nested if loop in view

2012-12-24 Thread Bhaskar Ramachandran
I get a syntax error for the above code in view html file. I am trying to dynamically insert a tick icon or a cross icon depending on some variables. I tried different ways of expressing the if statements and none of them worked. I followed the book that says we should introduce a pass statem

[web2py] Re: Customizing auth login form but unable to set the form class name

2012-12-20 Thread Bhaskar Ramachandran
Great!. Thank you. Web2py is very much customizable!!. Regards, Bhaskar On Thursday, December 20, 2012 10:55:29 PM UTC-6, Anthony wrote: > >Your XML(form.custom..) command worked!!.* But simply writing the >> form statement in HTML did not .* I am customizing the auth.login() form >> h

[web2py] Re: Customizing auth login form but unable to set the form class name

2012-12-20 Thread Bhaskar Ramachandran
but it's probably more straightforward to just manually code the HTML: > > "myclass"> > > Anthony > > On Wednesday, December 19, 2012 6:38:42 PM UTC-5, Bhaskar Ramachandran > wrote: >> >> Hi Anthony, >> >> I tried that earlier also but that

Re: [web2py] Re: web2py interactive shell in windows does not start the browser

2012-12-20 Thread Bhaskar Ramachandran
Thanks very much. This gives me a very good hold to understand web2py internals at my pace, understanding the internal workings step by step. Great!!. Can someone explain the workflow in greater details than what is available in the web2py 4th edition (Chapter: THE CORE page 137). ? One of you

[web2py] Re: web2py interactive shell in windows does not start the browser

2012-12-19 Thread Bhaskar Ramachandran
ould you select from the shell which one to interact with? Moreover each > request lasts ~5ms. > > Massimo > > > > On Tuesday, 18 December 2012 22:16:33 UTC-6, Bhaskar Ramachandran wrote: >> >> Thanks for the reply. But then how do i do interactive debug of the &

[web2py] Re: Customizing auth login form but unable to set the form class name

2012-12-19 Thread Bhaskar Ramachandran
ter/29/05#HTML-helpers > > Anthony > > On Tuesday, December 18, 2012 11:33:32 PM UTC-5, Bhaskar Ramachandran > wrote: >> >> As listed in the "view" code below, i am trying to customize the form >> returned by auth.login(). Note that i have in my controller &q

[web2py] Re: web2py interactive shell in windows does not start the browser

2012-12-18 Thread Bhaskar Ramachandran
s the web server. > The reason is that you may want one without the other. > > > On Sunday, 16 December 2012 14:38:53 UTC-6, Bhaskar Ramachandran wrote: >> >> I am new to web2py but very excited to learn and use it on a long term >> from now. >> I am having trou

[web2py] Customizing auth login form but unable to set the form class name

2012-12-18 Thread Bhaskar Ramachandran
As listed in the "view" code below, i am trying to customize the form returned by auth.login(). Note that i have in my controller "return dict(form=auth.login()). Then in the view code pasted below i am customizing the login form. It seems to work fine except that i am unable to assign a class n

[web2py] web2py interactive shell in windows does not start the browser

2012-12-16 Thread Bhaskar Ramachandran
I am new to web2py but very excited to learn and use it on a long term from now. I am having trouble starting an interactive shell (I am using Windows 7 OS and have installed python2.5 and pywin32 but not ipython as i don't want ipython shell). I have the latest web2py source copied to C:\.