[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: Any way to make web2py SQLFORM.grid accept inserted fields?

2012-02-21 Thread whowhywhat
turning the dict > if form[0].process(onvalidation=add_my_field) > On Feb 21, 10:09 am, whowhywhat wrote: > > > > > > > > > anybody .. please .. pretty please :).. > > > On Feb 21, 10:20 am, whowhywhat wrote: > > > > I need a web2py SQLFORM.

[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 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 like

[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", default=MY_OPTIONS,widg

[web2py] Re: Validate the Checkbox

2012-02-21 Thread whowhywhat
k out the excellent web2py documentation for forms and validators http://web2py.com/books/default/chapter/29/7#Validators On Feb 21, 12:51 pm, whowhywhat wrote: > You can also just write a jquery validator for the same.. > > On Feb 21, 12:49 pm, whowhywhat wrote: > > > > > > >

[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 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: Validate the Checkbox

2012-02-20 Thread whowhywhat
;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&

[web2py] Re: Validate the Checkbox

2012-02-20 Thread whowhywhat
please could post your controller code.. On Feb 21, 10:32 am, Sanjeet Kumar 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 the error message "

[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 (re

[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 wrote: > Congratulations. I tried to open the url of the project and it returns > a 404 error. > > On 4 feb, 12:54, whowhywhat wrote: > > > > > > > > > Dear Web2py community, > > I just finished w

[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 wrote: > http://www.lungojs.com/

[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 me

[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] == )... Ahh yes :D .. will try that, thanks a lot!

[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

[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 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 this one. >

[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 s

[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..

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

2012-01-07 Thread whowhywhat
thanks a lot for the tip and recipe howsec.. will go through and try .. :) will postback On Jan 7, 9:54 pm, howesc wrote: > sounds cool. > > the formula will be similar to what i did here to add facebook, twitter, > google accounts auth to > web2py:http://www.web2pyslices.com/slices/take_slice/7

[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, windo

[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 power

[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 = TR(LABEL('Married'),INPUT(_name='married',value=False,_type='checkbo

[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 cu

[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 will

[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
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 butt

[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 upo

[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 wrote: > I don't mind buying the updated docs once they are available. (I'm thinking > of some sort of local website copy).Me

[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 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 to

[web2py] Re: web2py not using global http_proxy

2011-02-15 Thread whowhywhat
ndex.php?option=com_content&view=ar...> > > 2011/2/14 whowhywhat > > > > > > > > > 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 met

[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 wrote: > Luis i did use the web2py auto config script to try out apache with > WSGI. > I too noticed th

[web2py] Re: web2py not using global http_proxy

2011-02-12 Thread whowhywhat
urastes web2py and Cherokee > > I want to lose the memory consumption and increase performance. > > 2011/2/12 whowhywhat > > > > > > > > > > > Thanks for the quick replies. > > As Luis mentions i have used export http_proxy (but in /etc/ > > environm

[web2py] Re: web2py not using global http_proxy

2011-02-11 Thread whowhywhat
Massimo Di Pierro > > > Thanks for your comments. > > >> WHen you need urllib, and web2py.python makes outbound connections you > >> 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 look

[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 window