[web2py] Re: Validating Registration fields

2012-03-28 Thread Peter G.
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

[web2py] Re: Validating Registration fields

2012-03-27 Thread Peter G.
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

[web2py] Validating Registration fields

2012-03-22 Thread Peter G.
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

[web2py] Re: Obtaining URL to image blob in GAE

2012-02-29 Thread Peter G.
@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

[web2py] Obtaining URL to image blob in GAE

2012-02-25 Thread Peter G.
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

[web2py] Re: " float argument required" occurs when registering a user on GAE SDK

2012-02-25 Thread Peter G.
Thanks Massimo, I'll update to trunk in that case.

[web2py] " float argument required" occurs when registering a user on GAE SDK

2012-02-25 Thread Peter G.
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

[web2py] Re: BELONGS is not supported on GAE?

2012-02-24 Thread Peter G.
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

[web2py] Re: BELONGS is not supported on GAE?

2012-02-21 Thread Peter G.
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&

[web2py] BELONGS is not supported on GAE?

2012-02-20 Thread Peter G.
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

[web2py] Re: Cannot serve any pages after fresh install of Python2.5

2011-10-07 Thread Peter G.
Thanks for the advice, pbreit and Christopher! I will give a fresh Ubuntu 10.04 install a spin :)!

[web2py] Re: Cannot serve any pages after fresh install of Python2.5

2011-10-06 Thread Peter G.
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

[web2py] Re: Cannot serve any pages after fresh install of Python2.5

2011-10-06 Thread Peter G.
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

[web2py] Cannot serve any pages after fresh install of Python2.5

2011-10-06 Thread Peter G.
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