[web2py] How to best contribute?

2012-03-26 Thread Simon Bushell
Hi all, So I am a Web2Py convert, and am now using it for pretty much all of my Pythonic WebDev projects. As well as being an excellent framework, I am equally impressed with the passion and friendliness of the Web2Py community and I was wondering what I can I do to help contribute to it. *

[web2py] Using routes.py as a dispatcher for URL shortener app

2012-03-29 Thread Simon Bushell
hi all, So I am coding a little app that acts as a sort of url shortener (like bit.ly). Visiting *myapp.com/tcgata* will search my database for an URL linked to ' tcgata' My reading of the documentation suggests that this can be achieved using pattern-based URL rewriting in routes.py. As such

[web2py] Re: Using routes.py as a dispatcher for URL shortener app

2012-03-29 Thread Simon Bushell
This is a neat solution Anthony (actually, it was my original idea for solving this). however I seem to be getting the same error: *invalid function (default/tcgata)*. Forgive me, is this code in the root-level routes.py? or a routes.py in * applications/shortener*? Should anything else be in

[web2py] Re: Using routes.py as a dispatcher for URL shortener app

2012-03-29 Thread Simon Bushell
Hmm, this is bizarre. I was aware of the reloading routes and it is still not working. I even made a blank 'shortener' scaffold app and added the routes.py from above at root level. http://127.0.0.1/jujuju gives the same errors as above. I'll muck about a bit more and see whats going wrong. I

Re: [web2py] Re: Using routes.py as a dispatcher for URL shortener app

2012-03-30 Thread Simon Bushell
ng else in the url > in that case. > > Anthony > > On Thursday, March 29, 2012 8:34:19 PM UTC-4, Jonathan Lundell wrote: >> >> On Mar 29, 2012, at 11:33 AM, Simon Bushell wrote: >> > This is a neat solution Anthony (actually, it was my original idea for >&

[web2py] Re: Agree on some terms before registration

2012-03-30 Thread Simon Bushell
How are you inserting the form into your view? If you're using SQLFORM you can supply labels to your fields (in your case the 'agree' field) using something like: form = SQLFORM(db.auth_user, fields = ['agree'], labels = {'agree':'Do you agree to the Terms and Conditions?'}) Obviously you will