[web2py] memcached, web2py and webfaction

2011-04-10 Thread Tyler Laing
Webfaction recommends setting up memcached this way: http://docs.webfaction.com/software/memcached.html#setting-up-memcached ie, with this command: memcached -d -m memory -s ~/memcached.sock The problem here is that this page( http://web2py.com/book/default/chapter/11#Memcache ) gives an incompat

[web2py] Web2py or Apache unable to access python file in modules directory

2010-10-06 Thread Tyler Laing
My site is hosted at webfaction.com, and I find that if no one's visited the site in awhile, then apache or web2py cannot access the file utils.py in modules/ Anyone run into this problem before? I've solved this problem by adding __init__.py to controllers/ and importing utils.py from there.

[web2py] Re: Serve different applications to different URLS

2010-09-30 Thread Tyler Laing
I will try that solution. > >> Thanks. > > >> On Thu, Sep 30, 2010 at 8:14 PM, mdipierro wrote: > > >>> routes does not support this but you can do things like > > >>> app=request.env.http_host.split('.')[0] > >>> if not app=request.appl

[web2py] Serve different applications to different URLS

2010-09-30 Thread Tyler Laing
I have two URLs, novelite.ca and noverotic.ca and I'm trying to figure out how to make web2py serve a different application depending on the base url. Does this involve routes.py?

[web2py] Re: Updating user account while user is still logged in

2010-09-26 Thread Tyler Laing
26, 2:11 pm, mdipierro wrote: > I assume you do > > db().update(field=value) > > similarly you can do > > auth.user.update(field=value) > > On Sep 26, 3:44 pm, Tyler Laing wrote: > > > I ran into an interesting issue in testing my site (http://www.noveli

[web2py] Updating user account while user is still logged in

2010-09-26 Thread Tyler Laing
I ran into an interesting issue in testing my site ( http://www.novelite.ca ). If the user buys tokens while logged in, via paypal, paypal then sends a notification to the server via IPN. Processing this adds the tokens to the user's account. My problem is that the auth.user object isn't updated wh

[web2py] Making file uploads optional?

2010-08-09 Thread Tyler Laing
I'm trying to make file uploads optional, however, SQLFORM is forcing the fields to be filled. Is there any way, without javascript, to have upload fields that are visible, but optional?

[web2py] Using the same auth_user table between apps?

2010-07-24 Thread Tyler Laing
I'm trying to figure out how to have a separate app(same instance) use the same auth_user table I customized in a separate app. I've seen some vague instructions but none of them make sense. Can anyone point me to anything better?

[web2py] Re: Issues with Forms

2010-07-18 Thread Tyler Laing
Jul 17, 9:41 pm, Tyler Laing wrote: > > > I've been struggling with forms all day. > > > Here are the issues I've run into: > > 1) There is no way to manually insert the hidden form values with > > FORM. This should be an option, so people can customiz

[web2py] Issues with Forms

2010-07-18 Thread Tyler Laing
ot;author", db.auth_user, default=user_id), Field("datetime", 'datetime'), Field("forum_id", 'reference forums')) db.define_table("posts", Field("subject", 'string'), Field("body", 'string', length = 10000, r