Thank you so much! That worked like a charm :). I'm guessing this type of
construct is valid for other validators as well?
On Tuesday, March 27, 2012 5:57:28 PM UTC-7, Anthony wrote:
>
> Try
>
> IS_EMPTY_OR(IS_IMAGE())
>
>
> Anthony
>
> On Tuesday, March 27, 2012
a file is
uploaded, check for IS_IMAGE(), otherwise ignore."?
On Thursday, March 22, 2012 3:38:01 PM UTC-7, Anthony wrote:
>
> On Thursday, March 22, 2012 6:09:25 PM UTC-4, Peter G. wrote:
>>
>> I'm using the auth.settengs.extra_fields to add an extra upload field for
I'm using the auth.settengs.extra_fields to add an extra upload field for
the user to upload an avatar, how can I add an IS_IMAGE validator to the
upload field so that the user can't upload random files?
Also, how would I add an IS_ALPHANUMERIC to the built in First name and
Last name form fiel
@Anthony & BrendanC: Thank you both for your code snippets! I've got
it working now :). It's loading the image from a blob field in GAE's
DB.
@howesc: Can you possibly expand on how you modified your code to work
with the blob store? That's something I'm also interested at looking
into (would save
How would one obtain the URL to a image blob stored on GAE's
datastore? A lot of the threads I've looked at were all for generating
an download output for views, but I need this for the Controller since
I'm returning this as a JSON element.
For example, the auth_user table has a field 'avatar' and
Thanks Massimo, I'll update to trunk in that case.
The full stack trace is as follows:
Traceback (most recent call last):
File "/home/pyg/Development/capstonemoot/web2py/gluon/
restricted.py", line 204, in restricted
exec ccode in environment
File "/home/pyg/Development/capstonemoot/web2py/applications/init/
controllers/default.py", line 7
BrendanC: Thanks for those resources! I ended up gutting that
functionality for now, but those are some great read :)! The non-
relational database backend requires some "unlearning" of SQL database
practices... New challenge for a new environment.
I also have not gotten a local shell working with
what I just said (read the code, didn't
> test it).
>
> On 21 פברואר, 08:06, "Peter G." wrote:
>
>
>
>
>
>
>
> > I'm trying to obtain a set of rows whose ID values belongs in rows'
> > fields of another table.
>
> > Here&
I'm trying to obtain a set of rows whose ID values belongs in rows'
fields of another table.
Here's the code:
# Construct a query to fetch all the mootid's from the group
mootGroup =
db(db.moot_groups.gid==groupid)._select(db.moot_groups.mootid)
# Gets moots only if the moot ID exists in the Grou
Thanks for the advice, pbreit and Christopher! I will give a fresh
Ubuntu 10.04 install a spin :)!
I did start with a clean install of both web2py and Python 2.5. The
reason why I'm "downgrading" (so to speak) to 2.5 is because I'm
planning on running my web app on Google App Engine, and GAE runs on
Python 2.5.2.
I know that Ubuntu 11.04 comes pre-installed with 2.6 and 2.7, so I
had to manuall
A clean install of Ubuntu, web2py, and/or Python? I did start with a
clean install of both web2py and Python (compiled from source). The
reason I'm "downgrading" (so to speak) to 2.5 is because I'm making an
app that I wish to run on Google App Engine, and GAE runs Python
2.5.2, so I'd like to deve
I had a clean install of Ubuntu 11.04 + Python 2.7.1 running web2py
and it was working fine. Then I installed Python 2.5.6 by source,
tried visiting http://127.0.0.1:8000/ and I get the following errors
via Terminal:
DEBUG_c: Exception (,
AttributeError("'NoneType' object has no attribute
'PARSE_DE
14 matches
Mail list logo