[web2py] Re: Introducing myself

2012-02-26 Thread whowhywhat
Hi Luciano, You said that right, web2py has a great community :) .. welcome aboard. I'm sure you will find web2py a superb web development framework. I have been using web2py casually for the last one year or so, and on a serious basis for the last 2 months. If you are happy about the inbuilt cron

[web2py] Re: Validate the Checkbox

2012-02-21 Thread whowhywhat
/default/chapter/29/7#Validators On Feb 21, 12:51 pm, whowhywhat mads...@gmail.com wrote: You can also just write a jquery validator for the same.. On Feb 21, 12:49 pm, whowhywhat mads...@gmail.com wrote: This should work. Although it is ugly (it gives a error message under all

[web2py] Re: Validate the Checkbox

2012-02-21 Thread whowhywhat
Good tip Wikus.. you can also do the something similar with SQLFORM.factory and not define in the model (that way no DB table is created) in controller MY_OPTIONS = [a,b,c] form = SQLFORM.factory( Field(my_options, list:string,

[web2py] Re: Any way to make web2py SQLFORM.grid accept inserted fields?

2012-02-21 Thread whowhywhat
anybody .. please .. pretty please :).. On Feb 21, 10:20 am, whowhywhat mads...@gmail.com wrote: I need a web2py SQLFORM.grid to accept and process based on some conditions, which need to be triggered based on some check boxes. I have inserted these checkboxes into the form by doing something

[web2py] Re: Any way to make web2py SQLFORM.grid accept inserted fields?

2012-02-21 Thread whowhywhat
the dict if form[0].process(onvalidation=add_my_field) On Feb 21, 10:09 am, whowhywhat mads...@gmail.com wrote: anybody .. please .. pretty please :).. On Feb 21, 10:20 am, whowhywhat mads...@gmail.com wrote: I need a web2py SQLFORM.grid to accept and process based on some

[web2py] Any way to make web2py SQLFORM.grid accept inserted fields?

2012-02-20 Thread whowhywhat
I need a web2py SQLFORM.grid to accept and process based on some conditions, which need to be triggered based on some check boxes. I have inserted these checkboxes into the form by doing something like : In the controller - def my_grid(): form = SQLFORM.grid() if len(request.args)1 and

[web2py] Re: Validate the Checkbox

2012-02-20 Thread whowhywhat
please could post your controller code.. On Feb 21, 10:32 am, Sanjeet Kumar sanjeet@gmail.com wrote: I have the multiple check-box in one row in Controller I want to validate it form controller when the user submit his request without selecting any of the check-box than it should be shown

[web2py] Re: Validate the Checkbox

2012-02-20 Thread whowhywhat
@gmail.com wrote: TR(Type:,(TD(INPUT(_type=checkbox,_name=a,_value=a,_size=0),A))), (TD(INPUT(_type=checkbox,_name=b,_value=b,_size=0),B)), (TD(INPUT(_type=checkbox,_name=c,_value=c,_size=0),C))), TR(,INPUT(_type=submit,_value=SUBMIT )) On Tue, Feb 21, 2012 at 11:28 AM, whowhywhat mads

[web2py] Re: Validate the Checkbox

2012-02-20 Thread whowhywhat
You can also just write a jquery validator for the same.. On Feb 21, 12:49 pm, whowhywhat mads...@gmail.com wrote: This should work. Although it is ugly (it gives a error message under all the checkboxes :P ).. but does validate as you require. Please check and let me know. def

[web2py] Re: BrowserID web2py authentication plugin done! Please test

2012-02-05 Thread whowhywhat
its share of bad days.. On Feb 5, 6:47 pm, Alan Etkin spame...@gmail.com wrote: Congratulations. I tried to open the url of the project and it returns a 404 error. On 4 feb, 12:54, whowhywhat mads...@gmail.com wrote: Dear Web2py community, I just finished writing a web2py

[web2py] BrowserID web2py authentication plugin done! Please test

2012-02-04 Thread whowhywhat
Dear Web2py community, I just finished writing a web2py authentication plugin (custom authentication) to authenticate using BrowserID accounts (https:// browserid.org). BrowserID is a project by Mozilla Labs (mozillalabs.org). It aims to provide a de-centralized, free, easy to use authentication

[web2py] Re: lungo.js

2012-02-04 Thread whowhywhat
wow! looks really cool. Thanks for sharing Massimo. I have been playing a bit with Phonegap and JQTouch. This looks promising. On Feb 3, 9:53 pm, Massimo Di Pierro massimo.dipie...@gmail.com wrote: http://www.lungojs.com/

[web2py] Re: Mobile OTP authentication (motp) plugin for web2py

2012-01-30 Thread whowhywhat
Thanks for the suggestions Alan. There is a CRYPT helper object of web2py that can be instanitated with different options. It is used for standard authentication. (I am not sure if if can be of use for AES)http://web2py.com/examples/static/epydoc/web2py.gluon.validators.CRYP... I do not

[web2py] Re: Mobile OTP authentication (motp) plugin for web2py

2012-01-30 Thread whowhywhat
motp_auth(..., userfield=email) And in the custom authentication code's query: db(db.auth_user[userfield] == value)... Ahh yes :D .. will try that, thanks a lot!

[web2py] Mobile OTP authentication (motp) plugin for web2py

2012-01-29 Thread whowhywhat
just finished writing a motp (http://motp.sourceforge.net/) authentication plugin for web2py. Where do i contribute this code? I would appreciate if some one tests this and gives me some feedback. I have uploaded the code to Google code. project is https://web2py-motp-auth.googlecode.com you can

[web2py] Re: TIP: function to help with common filter usage

2012-01-29 Thread whowhywhat
nice tip. thanks for sharing! On Jan 29, 1:51 pm, guruyaya guruy...@gmail.com wrote: I've made a mistake in my tip, please replace:    db.comment._common_filter = inherit_common_filter(db, db.comment) with:    db.comment._common_filter = inherit_common_filter(db, db.comment.post) Sorry for

[web2py] Re: Mobile OTP (motp) and other OTP login methods for web2py

2012-01-08 Thread whowhywhat
. Calculated by md5('epoch_time'[:-1]+'motp_secret'+'motp_pin').hexdigest()[:6] now my question: - how can i retrieve the motp_pin and motp_secret from the auth username table in the custom login method? am i on the right path? please correct me if i am wrong please help.. On Jan 8, 11:56 am, whowhywhat

[web2py] Mobile OTP (motp) and other OTP login methods for web2py

2012-01-06 Thread whowhywhat
Dear web2py community, I am interested in using motp (motp.sourceforge.net) / google authenticator (http://code.google.com/p/google-authenticator/) with my web2py apps. Both motp and google authenticator have clients available for every possible platform (android, ios, blackberry, j2me, java,

[web2py] linux/unix control panel application - would be better if built with web2py

2011-12-19 Thread whowhywhat
http://ajenti.org .. looks interesting. However, would be much more elegant and simpler to extend if built with web2py :D .. another interesting python library/framework for remote sysadmin/ remote execution manager which i just came across is http://saltstack.org/ Looks very useful and more

[web2py] Re: Customizing SQLFORM.grid create, edit and update forms

2011-12-16 Thread whowhywhat
Thanks a lot for the prompt reply Cliff. The tip you gave me is something i did not know about and will be handy.. However this is useful to modify the grid in itself. I need some way to modify the subsequent Create, Edit and Update pages (if grid is editable). That is if i click on the add

[web2py] Re: Pycharm 2 is out

2011-12-16 Thread whowhywhat
i voted :) .. web2py deserves support from every decent IDE

[web2py] Re: Customizing SQLFORM.grid create, edit and update forms

2011-12-16 Thread whowhywhat
i am trying to figure out the SQLFORM.grid from the source. The create and update forms are generated using SQLFORM and not crud.. my mistake thinking this was done by CRUD. I guess i will need to customize the form by passing form.create_form.append(whatever) .. is this the right way? .. i

[web2py] Re: Customizing SQLFORM.grid create, edit and update forms

2011-12-16 Thread whowhywhat
:) .. that sounds right.. i guess i can just add some jquery in the view with a condition to check if the view is for edit or create form. The jquery could just insert the checkbox (if married etc.).. if checked i could use jquery to un-hide the spouse name field row. I will also try out the

[web2py] Re: Customizing SQLFORM.grid create, edit and update forms

2011-12-16 Thread whowhywhat
wow .. it works! :) ... i just added the following in the controller (after calling SQLFORM.grid): #check if form is a create form if len(request.args)1 and request.args[-2]=='new' and form.create_form: my_extra_element =

[web2py] Customizing SQLFORM.grid create, edit and update forms

2011-12-15 Thread whowhywhat
I could not find any post/documentation on how the create, edit and update forms generated by SQLFORM.grid could be customized. I am assuming that it is similar to CRUD form customization. However I have not been able to figure it out. For example if i wished to have a optional field exposed

[web2py] Re: Offline Access to web2py manual?

2011-11-09 Thread whowhywhat
use the Firefox scrapbook extension (https://addons.mozilla.org/en-US/ firefox/addon/scrapbook/).. that way you could annotate, highlight etc. On Nov 10, 4:21 am, BrendanC bren...@gmail.com wrote: I don't mind buying the updated docs once they are available. (I'm thinking of some sort of local

[web2py] Re: looking for web2py users in Mumbai

2011-02-21 Thread whowhywhat
im located at Ahmedabad about 340 miles from Mumbai On Feb 21, 10:43 pm, Massimo Di Pierro massimo.dipie...@gmail.com wrote: If you are there please contact me. Massimo

[web2py] web2py openid login using google account/google for your domain

2011-02-17 Thread whowhywhat
i want to try and avoid using janrain RPX. Is it possible to use openid authentication for web2py and use the google accounts by passing the google accounts openid URL (https://www.google.com/ accounts/o8/id). I tried using the example given in the web2py book (chapter 8), but this does not seem

[web2py] Re: web2py not using global http_proxy

2011-02-15 Thread whowhywhat
=ar... 2011/2/14 whowhywhat mads...@gmail.com Solved the problem! :) .. wsgi has a option to explicitly pass an environment variable (given in the commandline). Once i passed the http_proxy variable by this method web2py works fine.  I think the default uwsgi wizzard in cherokee

[web2py] Re: web2py not using global http_proxy

2011-02-13 Thread whowhywhat
to work. i finally have cherokee + uwsgi + web2py working absolutely fine (with proxy etc.) will document everything and post it. thanks for everything. On Feb 12, 8:47 pm, whowhywhat mads...@gmail.com wrote: Luis i did use the web2py auto config script to try out apache with WSGI. I too

[web2py] Re: web2py not using global http_proxy

2011-02-12 Thread whowhywhat
consumption and increase performance. 2011/2/12 whowhywhat mads...@gmail.com Thanks for the quick replies. As Luis mentions i have used export http_proxy (but in /etc/ environment and in the startup script of cherokee). I will try defining in /etc/profile i did some further testing

[web2py] web2py not using global http_proxy

2011-02-11 Thread whowhywhat
web2py is the first framework i actually enjoy using. :) .. been advocating it to everyone i meet these days. I sincerely thank the entire web2py community for everything. I have been developing a small web2py application for intranet use at the place where i work. During development i used

[web2py] Re: web2py not using global http_proxy

2011-02-11 Thread whowhywhat
should not need a proxy server or any proxy configuration as far as I can tell (and I am not sure about your setup). This looks more of a firewall issue. On Feb 11, 5:19 am, whowhywhat mads...@gmail.com wrote: web2py is the first framework i actually enjoy using. :) .. been advocating