Hi Anthony,
Thanks for you reply. This:
$('#addressbook a').click(function(e) {e.preventDefault();});
... solved the problem.
Kind regards,
Annet.
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
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?
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
That seems like really poor design to me.
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
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
I am using eclipse and wing IDE , Debugging is working with web2py.
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
Hello. I bought a copy too. The ETA is 15th February according to the
invoice.
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
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 ?
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
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
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
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
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
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
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
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.
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
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
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
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'
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
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:
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
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/
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
29 matches
Mail list logo