[web2py] validators with dependencies

2010-06-26 Thread Alastair Medford
Alright, I'm burned out on trying to solve this. I'm trying to make a form that checks if two fields match, like password + verify password. I noticed in the book that there's an example of this, but I can't seem to get it working. The code given is as follows (this is with a typo correction, a qu

[web2py] Re: bug in SQLFORM?

2010-06-26 Thread Jose
The id returned in the testing are: 263226 263228 263230 263232 263234 ... It is seen that increase in twos. If I go from the admin, the IDs are correct. Jose

[web2py] bug in SQLFORM?

2010-06-26 Thread Jose
I have the following code: if form.accepts(request.vars, session): response.flash = int(form.vars.id) #id = int(form.vars.id) #doc = tb_documentos[id] #doc.update_record(estado=1) #redirect(url_expediente) elif form.errors: ..

[web2py] Re: Forms field spaced by option in db model?

2010-06-26 Thread Yarko Tymciurak
On Jun 26, 6:16 pm, Giuseppe Luca Scrofani wrote: > Hi, something like this is possible? Automatic generation of forms by > db is just too lazy and beautiful to make me manually construct them > just for some space in between fields... > > db.define_table('example', >     Field('one'), >     Fie

[web2py] Re: Newsletter apply form in every page by include, how?

2010-06-26 Thread Yarko Tymciurak
On Jun 26, 4:31 pm, Giuseppe Luca Scrofani wrote: > Hi all, I have to {{include "sidebar.html"}} in every page of a site, ... you might want to then put this in your site's views/layout.html file; > and one of the elements in this include is a little form (a text field > and a submit button) wh

[web2py] Forms field spaced by option in db model?

2010-06-26 Thread Giuseppe Luca Scrofani
Hi, something like this is possible? Automatic generation of forms by db is just too lazy and beautiful to make me manually construct them just for some space in between fields... db.define_table('example', Field('one'), Field('two'), Field('three'), (insert a br here), Field('

[web2py] Newsletter apply form in every page by include, how?

2010-06-26 Thread Giuseppe Luca Scrofani
Hi all, I have to {{include "sidebar.html"}} in every page of a site, and one of the elements in this include is a little form (a text field and a submit button) where user insert email address and apply for a newsletter, effectively writing a record in db.newsletter. How can I do this without a co

[web2py] Re: upload bug in filename

2010-06-26 Thread Yarko Tymciurak
On Jun 26, 12:46 pm, Swell wrote: > Yes i am using web2py 1.79.2 on windows 7 64b > Can someone try to save the web2py files in a very long directory name > ( something like 200 characters ) and use the kind of filename i > provided ( long ) and see what is happening on mac/linux? Sorry - I repli

[web2py] Re: upload bug in filename

2010-06-26 Thread Yarko Tymciurak
On Jun 26, 12:46 pm, Swell wrote: > Yes i am using web2py 1.79.2 on windows 7 64b > Can someone try to save the web2py files in a very long directory name > ( something like 200 characters ) and use the kind of filename i > provided ( long ) and see what is happening on mac/linux? ... well, this

[web2py] Re: upload bug in filename

2010-06-26 Thread Swell
Yes i am using web2py 1.79.2 on windows 7 64b Can someone try to save the web2py files in a very long directory name ( something like 200 characters ) and use the kind of filename i provided ( long ) and see what is happening on mac/linux? I am doing local tests only , it means that the file are o

[web2py] Re: WordPressClone/PyPress GAE fix

2010-06-26 Thread mdmcginn
I deployed Pypress (based on Wordpress Clone) for Google App Engine at http://writers-ear.appspot.com/earblog/ but it's still horribly slow: 06-26 06:27AM 23.966 /earblog 200 5275ms 661cpu_ms 467api_cpu_ms 2kb Any suggestions, or should I try another GAE blog solution? I'm now an owner of http://

[web2py] the best place to define custom widgets + extra info for widget

2010-06-26 Thread Jurgis Pralgauskis
Hello, I found an example http://www.web2py.com/AlterEgo/default/show/170 and also studiet widgets in gluon.sqlforms a bit 1) now I make a separate file in /models probably I could make it in /modules but I need to make extra query to db in this widget 2) I want the options to be presented i

[web2py] Re: WordPressClone/PyPress GAE fix

2010-06-26 Thread mdmcginn
Correction: the owner of pp4gae has just contacted me, saying he has "stopped working on this project since last update" and has given up on further work. Too bad. I have cloned the project at http://github.com/mdmcginn/pp4gae/ and have asked him if he could make me the owner of his Google Code pro

[web2py] Re: WordPressClone/PyPress GAE fix

2010-06-26 Thread mdmcginn
molhokwai, note that we have both filed issues at Google Code, but we shouldn't have. The pp4gae project has moved to Github: http://github.com/zrenx/pp4gae On Jun 22, 10:38 am, molhokwai wrote: > A reply to the message I saw while in a google search for "pypress"... > Saw it on osdir.com (I'm s

Re: [web2py] Re: Anvanced applications in gae

2010-06-26 Thread Carles Gonzalez
Very interesting, i didn't know about collection_name and the associated query. You are shedding some light on doing relationships the GAE way. Thanks again. On Sat, Jun 26, 2010 at 8:52 AM, dlypka wrote: > > For starters: > > Refer to > http://arbingersys.blogspot.com/2008/04/google-app-engine

[web2py] Open menu item in new window.

2010-06-26 Thread annet
In a view I have the following link which opens in a new window: {{=A('Contact form',_href=URL(r=request,a='utilities',c='forms',f='contact_form',args='init'),_target='_blank')}} In a menu I have a menu item which references the same function: ['Contact form',request.function=='contact_form',UR