[web2py] Separating login and registration pages

2010-07-09 Thread elfuego1
Hi everybody, I had customized my registration form, but when I go to login page my registration form shows up there too?! It looks like that: Fields like password, password verification and e-mail have valid description in label field. All the other fields are marked "None". Below my custom form

[web2py] Customizing Auth to use Username Instead of Email?

2010-07-09 Thread Phyo Arkar
Hello Web2py I am having trouble with Auth form. As described in Web2py book , i added this : in Model db.py: from gluon.tools import Auth auth = Auth(globals(),db) # authentication/authorization auth.settings.hmac_key = 'mwpk120409' # before define_tables() auth_tabl

[web2py] Re: markmin, t2, t3, cube9 etc. (important update)

2010-07-09 Thread Scott
I think this should replace the Welcome application and the documentation should be integrated into the web2py book. I'm impressed with the complete rewrite! I like the way that you get web2py-admin-esque functionality without having to use the admin directly, and it all works through Google App

[web2py] Re: Fastcgi vs uwsgi

2010-07-09 Thread Jose
On 9 jul, 16:17, mdipierro wrote: > Please comment even if you DO NOT have a problem because we need to > get to bottom of why a few people are having problems and what is > causing that. Knowing that some people do not have the problem is > important. we can compare the OS, the python version,

[web2py] Re: web2py 1.93?

2010-07-09 Thread Scott
Massimo, Is it in the repository hosted on Google Code? I just checked it out and it's showing as version 1.79.2 (2010-06-08 16:40:21) in the Admin. Thanks! On Jul 9, 9:36 am, Massimo Di Pierro wrote: > I am planning to release the nightly build as stable 1.93 on Monday.   > Please check it ou

Re: [web2py] new welcome (scaffolding) app

2010-07-09 Thread Bruno Rocha
Is there any chance to have that options for choose just at the moment of app creation? we put the name for the application, then check what do we want to have within. May be choosing a completely blank new app or a complete one, choosing the theme, to have or not things like Plugins, Wiki, Jquer

[web2py] Re: fedora experts?

2010-07-09 Thread Scott
Line 28: change 'you' to 'yum' 28c28 < you install python2.5 --- > yum install python2.5 Other than that, I can test the script on a RedHat system tomorrow... Cheers! On Jul 9, 9:26 am, mdipierro wrote: > I managed to wrote this script > > http://code.google.com/p/web2py/source/browse/scripts/s

[web2py] Re: multiple checkboxes

2010-07-09 Thread Rob
Hi mdipierro, Thanks for the answer! I have some questions. 1) using the SQLFORM syntax with list comprehension below, how do I add additional fields? I need to add 'hidden' fields that match the name of the 'checkbox' fields - otherwise, non-checked items don't get put in request.vars and I do

[web2py] Re: new web2py site in Poland!

2010-07-09 Thread Mengu
make it english, make it damn global. it'd just work for every country and city. On 7 Temmuz, 23:46, Kuba Kucharski wrote: > Hi, people, > > I would like to present you WRSZW project > > http://wrszw.pl > it is about events in Warsaw, capital of Poland, fully non-commercial > initiative of places

Re: [web2py] Re: web2py Reference Manual -- a call to arms

2010-07-09 Thread Vasile Ermicioi
I like php manual style, where at the bottom are user contributions

[web2py] Re: web2py Reference Manual -- a call to arms

2010-07-09 Thread ra3don
I like this idea alot, it would be a valuable resource for a beginner (like me). I think its important that it be wiki-style so that we can all come in and add our example useages to the statements, helpers, etc. (like weheh mentioned) so we get a feel for how to use it if we're stuck. On Jul 9, 2

Re: [web2py] new welcome (scaffolding) app

2010-07-09 Thread Jason Brower
On Fri, 2010-07-09 at 06:34 -0700, mdipierro wrote: > let's consider a new scaffolding app. > > What should be in it? Minimal and welcome. It's nice to have something I can jsut start with rather than strip down. > What should not be in it? > > possible suggestions: > [ ] js menu > [X] new la

Re: [web2py] Re: label field comment

2010-07-09 Thread Jean-Guy
Great! Jonhy On 2010-07-09 14:39, mdipierro wrote: crud.settings.formstyle='table2cols' (requires trunk but will be in stable next week). On 9 Lug, 10:00, Jean-Guy wrote: formstyle= It's not working with crud?? The solution is ok with SQLFORM. Jonhy On 2010-07-09 10:24, mdipierro wro

[web2py] Re: Fastcgi vs uwsgi

2010-07-09 Thread mdipierro
Please comment even if you DO NOT have a problem because we need to get to bottom of why a few people are having problems and what is causing that. Knowing that some people do not have the problem is important. we can compare the OS, the python version, the uwsgi version. etc. On 9 Lug, 14:13, Jos

[web2py] Re: Beginner Question

2010-07-09 Thread weheh
I think it's time ... http://groups.google.com/group/web2py/browse_thread/thread/e2e19e698da5bd69# > IS_IN_DB() has a lot of undocumented options. Perhaps you could add something > to the source comment, as a start.

[web2py] web2py Reference Manual -- a call to arms

2010-07-09 Thread weheh
This is an old request, but I haven't heard anything about it of late and wanted to keep it alive. I propose a web2py reference manual where every web2py-native statement, helper, DAL, auth, settable attribute, ... whatever is in indexed and every page has sections: description, usage, arguments l

[web2py] Re: Fastcgi vs uwsgi

2010-07-09 Thread Jose
I comment if I have a problem. The first impression after the change, was running faster. Jose

[web2py] Re: multiselect plugin and filtering options

2010-07-09 Thread mdipierro
This is what I do to use the multiselect plugin... I put this in my layout.html jQuery(document).ready(function() {jQuery('[multiple]').multiSelect();}); so it works for all . You can can the set the options using the validators IS_IN_SET(,multiple=True) o IS_IN_DB(db(subset),db.table.id

[web2py] multiselect plugin and filtering options

2010-07-09 Thread mgrabau
Good Day, I'm trying to use a multi select plugin (this code is in the controller): view_contents.append(plugin_multiselect(db.vulnerabilities.assets)) Is the line of code to connect (and it does, the plugin works as it is supposed to), but I was wondering if it is possible to make a WHERE clau

[web2py] Re: Fastcgi vs uwsgi

2010-07-09 Thread mdipierro
Thadeus has had some problem on high traffic with web2py+cherokee +uwsgi. could you run ab on it and let us know if you experience or not dropped requests? Massimo On 9 Lug, 11:40, Jose wrote: > I have a server running FreeBSD + Cherokee + web2py. > > Cherokee was configured to serve web2py app

[web2py] Re: label field comment

2010-07-09 Thread mdipierro
crud.settings.formstyle='table2cols' (requires trunk but will be in stable next week). On 9 Lug, 10:00, Jean-Guy wrote: > formstyle= > > It's not working with crud?? > > The solution is ok with SQLFORM. > > Jonhy > > On 2010-07-09 10:24, mdipierro wrote: > > > If you do SQLFORM(formstyle='tab

[web2py] Fastcgi vs uwsgi

2010-07-09 Thread Jose
I have a server running FreeBSD + Cherokee + web2py. Cherokee was configured to serve web2py applications through Fastcgi. For some time, Cherokee supports uwsgi. I changed the configuration to use web2py with uwsgi. Without any formal test, I see that runs faster. Is my assessment correct? Shou

Re: [web2py] Re: Beginner Question

2010-07-09 Thread Jonathan Lundell
On Jul 8, 2010, at 12:10 AM, mdipierro wrote: > That is true... > > IS_IN_DB(db,'table.id', '%(name)s') > > when it build the list of options for > > {{=name}}... > > name is '%(name)s' % row > > since row belongs to a class that extends dict. IS_IN_DB() has a lot of undocumented options. P

[web2py] Re: Problem uploading on GAE

2010-07-09 Thread Ravi
yes sir i am using the command python2.5 On Jul 9, 7:14 pm, mdipierro wrote: > Are you sure you are using python 2.5? > > On 9 Lug, 09:06, Ravi wrote: > > > ok > > now its giving me this- > > Traceback (most recent call last): > >   File "appcfg.py", line 68, in > >     run_file(__file__, globa

Re: [web2py] Re: label field comment

2010-07-09 Thread Jean-Guy
formstyle= It's not working with crud?? The solution is ok with SQLFORM. Jonhy On 2010-07-09 10:24, mdipierro wrote: If you do SQLFORM(formstyle='table2cols') you get: |Field1 Label| |Comment1| |Field1|Comment2| |Field2 Label| | |Field2| else you can use SQLFORM(formstyle='divs

Re: [web2py] new welcome (scaffolding) app

2010-07-09 Thread Jonathan Lundell
On Jul 9, 2010, at 6:34 AM, mdipierro wrote: > let's consider a new scaffolding app. > > What should be in it? > What should not be in it? Either the features should be modular, and easily removable, or IMO there should be two scaffolding apps. One would be a minimal framework, suitable for st

Re: [web2py] new welcome (scaffolding) app

2010-07-09 Thread Thadeus Burgess
[x] new layout [x] less on the views/layout is more, unless you just want to ship a tutorial with web2py instead, good for newbies, not so good for those who have done a few apps [x] id rather a tutorial series written instead of being shipped with web2py [ ] no plugin_wiki, let me install it if I

[web2py] Re: markmin, t2, t3, cube9 etc. (important update)

2010-07-09 Thread mdipierro
I think I forgot to post this: http://www.slideshare.net/mdipierro/cube2py-4709237 It is a summary of what is available. To use this in your own app, export plugin_wiki from admin and re- import it in your app. On 9 Lug, 07:50, mdipierro wrote: > That would belong to admin not to cube2py althou

[web2py] Re: label field comment

2010-07-09 Thread mdipierro
If you do SQLFORM(formstyle='table2cols') you get: |Field1 Label| |Comment1| |Field1|Comment2| |Field2 Label| | |Field2| else you can use SQLFORM(formstyle='divs') and align the divs yourself. On 9 Lug, 09:18, Jean-Guy wrote: > Hello, > > I would like to change the way the grid of SQ

Re: [web2py] Re: Possible addition to IS_IN_DB

2010-07-09 Thread Johann Spies
> You only use ajax if the option of field2 depend o selection for > field1 and you always end up with usability problems when field1 and 2 > are in the same form (because of the ajax delay). > > If the options depend on the logged in user it can be done without > ajax. How depends on details. >

[web2py] label field comment

2010-07-09 Thread Jean-Guy
Hello, I would like to change the way the grid of SQLForm or crud is presented : |Field1 Label|Field1|Comment1| |Field2 Label|Field2|Comment2| I would prefer it be like this : |Field1 Label| | |Field1|Comment1| |Field2 Label| | |Field2|Comment2| How may I change it if it is possible? Thank

[web2py] Re: Problem uploading on GAE

2010-07-09 Thread mdipierro
Are you sure you are using python 2.5? On 9 Lug, 09:06, Ravi wrote: > ok > now its giving me this- > Traceback (most recent call last): >   File "appcfg.py", line 68, in >     run_file(__file__, globals()) >   File "appcfg.py", line 64, in run_file >     execfile(script_path, globals_) >   File

[web2py] Re: Possible addition to IS_IN_DB

2010-07-09 Thread mdipierro
You only use ajax if the option of field2 depend o selection for field1 and you always end up with usability problems when field1 and 2 are in the same form (because of the ajax delay). If the options depend on the logged in user it can be done without ajax. How depends on details. On 9 Lug, 09:

[web2py] Re: Problem uploading on GAE

2010-07-09 Thread Ravi
ok now its giving me this- Traceback (most recent call last): File "appcfg.py", line 68, in run_file(__file__, globals()) File "appcfg.py", line 64, in run_file execfile(script_path, globals_) File "/home/ravi/Desktop/google_appengine/google/appengine/tools/ appcfg.py", line 59, in

Re: [web2py] Re: Possible addition to IS_IN_DB

2010-07-09 Thread Johann Spies
I have a related query. > On Jul 9, 12:35 am, David Marko wrote: >> You can use full DAL query in IS_IN_DB validator e.g. >> IS_IN_DB(db(db.children.sex=='M'),'children.id','%(name)s' ) I want the result of IS_IN_DB to be part of my access control measures and dependent on who is logged in and w

[web2py] Re: Subtle data integrity bug with web2py

2010-07-09 Thread John Heenan
Yes, the bug is now fixed. I checked out the current mercurial trunk for web2py Version 1.79.2 (2010-06-08 16:40:21) All I had to do to confirm the bug was fixed was change a web2py db.Field type from a 'char' type to a 'date' type and confirm database administration worked for the relevant table

[web2py] web2py 1.93?

2010-07-09 Thread Massimo Di Pierro
I am planning to release the nightly build as stable 1.93 on Monday. Please check it out if you have not done so.

[web2py] new welcome (scaffolding) app

2010-07-09 Thread mdipierro
let's consider a new scaffolding app. What should be in it? What should not be in it? possible suggestions: [ ] js menu [ ] new layout (suggestions?) [ ] more complex views/layout? [ ] simpler views/layout.html [ ] example plugins [ ] plugin_wiki from cube2py? [ ] jquery.ui Massimo

[web2py] fedora experts?

2010-07-09 Thread mdipierro
I managed to wrote this script http://code.google.com/p/web2py/source/browse/scripts/setup-web2py-fedora.sh It worked for me but I am no fedora expert. Any advice for imrpovements?

[web2py] Re: Problem uploading on GAE

2010-07-09 Thread mdipierro
Google only supports python 2.5. On 9 Lug, 08:10, Ravi wrote: > no python 3.1 > plz. help > > On Jul 9, 2:28 am, mdipierro wrote: > > > Strange appcfg.py is aGAEfile. Are you using python 2.5? > > > On 8 Lug, 11:47, Ravi wrote: > > > > on running appconfig.py it is showing this error- > > >

[web2py] Re: Problem uploading on GAE

2010-07-09 Thread Ravi
no python 3.1 plz. help On Jul 9, 2:28 am, mdipierro wrote: > Strange appcfg.py is aGAEfile. Are you using python 2.5? > > On 8 Lug, 11:47, Ravi wrote: > > > on running appconfig.py it is showing this error- > > > Traceback (most recent call last): > >   File "appcfg.py", line 68, in > >  

[web2py] Re: Subtle data integrity bug with web2py

2010-07-09 Thread mdipierro
Thanks for the explanation. It helps clarify a long standing problem. I have a solution in trunk based on your comment. Please check it and let us know if this is what you had in mind. Massimo On 9 Lug, 07:55, John Heenan wrote: > This is a report of a subtle data integrity bug that is difficult

[web2py] Subtle data integrity bug with web2py

2010-07-09 Thread John Heenan
This is a report of a subtle data integrity bug that is difficult to describe in a short manner. However the bug is trivial to fix. I noticed the bug when I imported data directly into sqlite3 that had date fields with empty dates. I used the sqlite3 utility .import command as I needed to preserve

[web2py] Re: Changing default value in SELECT

2010-07-09 Thread mdipierro
test = SELECT("1","2", value = "2") test.attributes["value"] = "1" test._postprocessing() # recursively loops over options and fixes them. On 9 Lug, 06:41, Serbitar wrote: > The following code: > > test = SELECT("1","2", value = "2") > test.attributes["value"] = "1" > > still renders as: > > > 1

[web2py] Changing default value in SELECT

2010-07-09 Thread Serbitar
The following code: test = SELECT("1","2", value = "2") test.attributes["value"] = "1" still renders as: 1 2 I have no idea why . . .

[web2py] Re: markmin, t2, t3, cube9 etc. (important update)

2010-07-09 Thread mdipierro
That would belong to admin not to cube2py although we could expose it there. In principle you only need to edit routes.py (look into applications/admin/controllers/default.py, def edit()) and then call gluon.rewrite.load(routes='routes.py'). The problem is logical. If you use admin to edit routes

[web2py] Re: customize form in template

2010-07-09 Thread mdipierro
if you just need to place labels above fields you can just do SQLFORM(...formstyle='table2cols') On 9 Lug, 06:25, Julius Minka wrote: > I am loading the form in the template this way: > {{=LOAD('default','form')}} > > Can I somewhow customize it this way? > {{=form.custom.begin}} > Image name: {

[web2py] Re: why do forms get defined in the controller?

2010-07-09 Thread mdipierro
There are different parts of a form. The logic (structure and validation) and presentation. The logic goes in the controller. The presentation goes in the view. Often you use the default presentation so you only need {{=form}} in the view. Massimo On 9 Lug, 01:10, Rob wrote: > I'm very new to

[web2py] Re: multiple checkboxes

2010-07-09 Thread mdipierro
This should work: def index(): items = db().select(db.Item.ALL) form=SQLFORM.factory(*[Field('need_%s'%item.id, default=item.need) for item in items]) if form.accepts(request.vars,session): for item in items: need = not request.vars['need_%s'%item.id]==None i

Re: [web2py] Re: markmin, t2, t3, cube9 etc. (important update)

2010-07-09 Thread Albert Abril
I thought about the idea of making a frontend (i.e. in the web admin) to edit routes.py and make more customizable the urls. But don't know how implement it. On Fri, Jul 9, 2010 at 12:48 PM, mdipierro wrote: > Please feel free to propose for new features. That was exactly the > intention. > >

[web2py] Re: [web2py:37631] Re: How to limit get_twits function?

2010-07-09 Thread Julius Minka
Was anybody able to resolve this issue? Julius V Pondelok, 21. december 2009 o 20:35 -0300, Tito Garrido napísal(a): > Looks like it just returns 1 result for: > http://search.twitter.com/search.atom?q=from%3Aweb2py > > strange... but thanks for your answers! > > On Mon, Dec 21, 2009 at 12:33 AM

[web2py] customize form in template

2010-07-09 Thread Julius Minka
I am loading the form in the template this way: {{=LOAD('default','form')}} Can I somewhow customize it this way? {{=form.custom.begin}} Image name: {{=form.custom.widget.name}} Click here to upload: {{=form.custom.submit}} {{=form.custom.end}} What I actually need is to place labels above fields

[web2py] Re: is_in_set hoirzontal radio widget and is_empty as default

2010-07-09 Thread mr.freeze
This may help: http://groups.google.com/group/web2py/browse_thread/thread/8b5974af438a436a On Jul 1, 6:08 am, selecta wrote: > *bump* > > could you please at least tell me if I should write the hradio > (horizontally aligned radio boxes) widget? > > On Jun 25, 12:19 pm, selecta wrote: > > > whe

[web2py] why do forms get defined in the controller?

2010-07-09 Thread Rob
I'm very new to web2py and MVC. I see that in a lot of examples, forms get defined in the controller (ie: http://web2py.com/book/default/section/7/1). My question is - why? Why do forms get defined in the controller and not the view in some situations? I have a friend doing a toy app with me -

[web2py] multiple checkboxes

2010-07-09 Thread Rob
Hi All, Sorry for the noob post, but I'm having an issue. I'm trying to do a little toy 'shopping list' app - the index page is to have a list of 'items' on the page with a 'need' checkbox and an 'update' button. When the update button is pressed, the database is to be updated with the new checke

[web2py] Re: markmin, t2, t3, cube9 etc. (important update)

2010-07-09 Thread mdipierro
Please feel free to propose for new features. That was exactly the intention. On 9 Lug, 03:02, aure wrote: > Great news! Thanks for the work Massimo! > > Being new to both, I myself still hesitate for my project between > choosing a CMS and struggle with the programming vs. choosing web2by > and

[web2py] Re: Remove "lost password" link from the standard login form

2010-07-09 Thread mdipierro
You need to edit the views/layout.html page. On 8 Lug, 23:36, Giuseppe Luca Scrofani wrote: > Hi all, how can I remove this function? > I've tried with > > auth.settings.actions_disabled.append('request_reset_password') > > in the user(): controller, but this remove only the target page, not > t

[web2py] Re: Possible addition to IS_IN_DB

2010-07-09 Thread Alastair Medford
I thought there was an easier way. I didn't think of just passing it in with db in the first place. Thanks On Jul 9, 12:35 am, David Marko wrote: > You can use full DAL query in IS_IN_DB validator e.g. > IS_IN_DB(db(db.children.sex=='M'),'children.id','%(name)s' ) > > David > > On 9 čnc, 08:08, A

[web2py] Re: markmin, t2, t3, cube9 etc. (important update)

2010-07-09 Thread aure
Great news! Thanks for the work Massimo! Being new to both, I myself still hesitate for my project between choosing a CMS and struggle with the programming vs. choosing web2by and struggle with all the things which come "for free" in a CMS... And Cube2py starts to bridge the gap in some ways :-)