[web2py] Re: disable a/a when not logged in.

2012-02-04 Thread Annet
Hi Anthony, Thanks for you reply. This: $('#addressbook a').click(function(e) {e.preventDefault();}); ... solved the problem. Kind regards, Annet.

[web2py] Re: geo-capabilities for DAL

2012-02-04 Thread sebastian
this is a very old question so probably obsolete... what is the easier way of running spatial queries (PostGIS for example) in today's DAL/web2py ? thanks

[web2py] Sqlform.grid search

2012-02-04 Thread peter
SQLFORM.grid's search box seems to only work with single word search terms. Has anyone looked into it working with multiple words, working as if they are 'and'ed together?

Re: [web2py] Sqlform.grid search

2012-02-04 Thread Michele Comitini
Suppose you have a table: db.define_table('book', Field('author', 'string'), Field('title', 'string'), Filed('description', 'text')) you can search like this: author is cormac mccarthy and title contains horses mic 2012/2/4 peter peterchutchin...@gmail.com: SQLFORM.grid's search box seems

Re: [web2py] Re: URL parsing problems (request.args)

2012-02-04 Thread pbreit
That seems like really poor design to me.

[web2py] bug ticket for IS_IN_DB validator

2012-02-04 Thread Manuele Pesenti
I opened this ticket http://code.google.com/p/web2py/issues/detail?id=647q=is_in_db does anobody else found similar problems in using IS_IN_DB validator with option multiple=True that is the default for 'list:reference' type fields? cheers Manuele

[web2py] Re: Sqlform.grid search

2012-02-04 Thread peter
Yes thanks for this, it is powerful if you know how, but I am building a website for other users. suppose a user types in the search box cormac maccarthy it would be nice if it did a search on all fields and found records that contained both cormac and mccarthy. Maybe it would have to be cormac

Re: [web2py] Re: Debugging in web2py

2012-02-04 Thread ramkrishan bhatt
I am using eclipse and wing IDE , Debugging is working with web2py.

[web2py] newbie question about relationships in model

2012-02-04 Thread air_cooled
I've created a model in the GAE SQL tool - which was great, except it didn't work in web2py. I just got errors. So I created a model from the wizard to get going, but I've got some strange behaviour around relationships. I have a table 'labels' which is linked to a number of other tables. A

[web2py] Re: Book v4.0 translate to spanish

2012-02-04 Thread ambitio
Hello. I bought a copy too. The ETA is 15th February according to the invoice.

[web2py] newbie : Accessing specific form elements' values from a controller.

2012-02-04 Thread Salvation
Hi! I have a html form in my default view. I don't want to create form elements from my controller, but use pure HTML where possible. How can I 1. Access the form elements, and their values into my controller, say default.py. (something like GetElementById ) 2. Detect if the form has been

[web2py] Re: geo-capabilities for DAL

2012-02-04 Thread Massimo Di Pierro
We are working on this and you should expect it as one of the next web2pu features. On Feb 4, 3:02 am, sebastian sebastianov...@gmail.com wrote: this is a very old question so probably obsolete... what is the easier way of running spatial queries (PostGIS for example) in today's DAL/web2py ?

[web2py] Re: newbie : Accessing specific form elements' values from a controller.

2012-02-04 Thread Anthony
When a form is submitted, the submitted values will be in request.post_vars as well as request.vars (the former is specifically for variables submitted via post requests, whereas the latter includes both post and get variables). So, you could do: if request.vars: do something with

Re: [web2py] newbie : Accessing specific form elements' values from a controller.

2012-02-04 Thread Carlos Costa
I think you can do like this: if request.vars: use request.vars.varname to access values else: return . Since you point your form to the right actions the all the vars will be there when you submit. When you dont submit they will not be there. 2012/2/4 Salvation

[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

Re: [web2py] newbie question about relationships in model

2012-02-04 Thread Carlos Costa
Is t_winery being created after this line? 2012/2/4 air_cooled jam...@billson.com: I've created a model in the GAE SQL tool - which was great, except it didn't work in web2py.  I just got errors. So I created a model from the wizard to get going, but I've got some strange behaviour around

[web2py] CSS broken when using LOAD()

2012-02-04 Thread blackthorne
hi, I'm importing a JS gallery system to web2py using the LOAD. The idea is to generate a gallery to a selected option asynchronously (AJAX). I made the request LOAD to generate the right HTML code but the CSS breaks because instead of html body div.background div.navigation-container

[web2py] Re: CSS broken when using LOAD()

2012-02-04 Thread Anthony
LOAD(..., target='your_div_id') You only get that randomly generated id if you don't specify the target argument. Anthony On Saturday, February 4, 2012 2:44:49 PM UTC-5, blackthorne wrote: hi, I'm importing a JS gallery system to web2py using the LOAD. The idea is to generate a gallery

[web2py] Re: CSS broken when using LOAD()

2012-02-04 Thread blackthorne
Thank you On Feb 4, 7:46 pm, Anthony abasta...@gmail.com wrote: LOAD(..., target='your_div_id') You only get that randomly generated id if you don't specify the target argument. Anthony On Saturday, February 4, 2012 2:44:49 PM UTC-5, blackthorne wrote: hi, I'm importing a JS

[web2py] Re: CSS broken when using LOAD()

2012-02-04 Thread blackthorne
btw, is there any way to only load the wrapping page when the loaded component is complete so that JS behaves properly? On Feb 4, 7:46 pm, Anthony abasta...@gmail.com wrote: LOAD(..., target='your_div_id') You only get that randomly generated id if you don't specify the target argument.

[web2py] Re: CSS broken when using LOAD()

2012-02-04 Thread Anthony
On Saturday, February 4, 2012 3:36:18 PM UTC-5, blackthorne wrote: btw, is there any way to only load the wrapping page when the loaded component is complete so that JS behaves properly? Not quite sure what you mean. You could use LOAD(..., ajax=False), but then the component won't load

[web2py] Re: newbie question about relationships in model

2012-02-04 Thread air_cooled
So the order is important I take it, I'll check out the order on the ones that work, and see if moving the definitions around helps. However, surely this isn't going to be possible in every situation. What if you have A - B and B - C and C - A ? You can't satisfy all these by putting them in

[web2py] Self Referential references in models not getting id decoded automatically

2012-02-04 Thread Mark Kirkwood
In order to generate a model with foreign references to itself you need to use'reference table' as opposed to db.table in the Field defines. While this works, I noticed that drop down lists and id-name mapping were missing from the generated grid. I initially thought this was due to using the

[web2py] Re: Self Referential references in models not getting id decoded automatically

2012-02-04 Thread Mark Kirkwood
I see that this has been noted as an issue here: http://code.google.com/p/web2py/issues/detail?id=382 I am using 1.99.4, anything I can try? Regards Mark On 05/02/12 13:17, Mark Kirkwood wrote: In order to generate a model with foreign references to itself you need to use 'reference table'

[web2py] Re: bug ticket for IS_IN_DB validator

2012-02-04 Thread DenesL
In the issue report you say: What steps will reproduce the problem? 1. create a table (for example: db.define.table('mytab', Field('foo'))) ... IS_IN_DB(db, 'mytab.id', '%(foo)s', multiple=True)(value) but IS_IN_DB(..., multiple=True) should be used for field type list:reference as

[web2py] Re: Self Referential references in models not getting id decoded automatically

2012-02-04 Thread Mark Kirkwood
It *almost* works using: db.dog.sire_id.represent = lambda sire_id, row: db(db.dog.id==sire_id).select(db.dog.name) However that brings back a header 'dog.name' that mucks up the appearance of the form. What I wanted to write was: db.dog.sire_id.represent = lambda sire_id, row:

[web2py] DAL patch to support fractional seconds

2012-02-04 Thread nick name
I've posted a patch for DAL that adds support for fractional seconds; the existing dal just silently truncates fractional seconds both when storing to the database and selecting from the database. http://code.google.com/p/web2py/issues/detail?id=542 While I don't think it's ready for prime

[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: DAL patch to support fractional seconds

2012-02-04 Thread Massimo Di Pierro
This is a long issue. The problem here is backward compatibility anyway, will look at the patch and decide. Please make the case why would anybody need fractional seconds in datetime? On Feb 4, 9:46 pm, nick name i.like.privacy@gmail.com wrote: I've posted a patch for DAL that adds