[web2py] Re: Pretty URLs with cgihandler.py

2013-03-05 Thread Michael Haas
y only does that for files with version strings in their name (?). Hope that helps someone. Kind regards, Michael Am Samstag, 16. Februar 2013 23:22:48 UTC+1 schrieb Michael Haas: > > Hello all, > > my webhost only offers Python in CGI mode, so I'm currently using > c

[web2py] Pretty URLs with cgihandler.py

2013-02-16 Thread Michael Haas
Hello all, my webhost only offers Python in CGI mode, so I'm currently using cgihandler.py which works reasonably well. My current URL is http:/host/cgihandler.py/ which shows the main page of my application just fine. However, I'd like the URL to be just http://host/ without the cgihandler.py

[web2py] Re: One database field, two form fields? From seconds to min:sec

2013-02-09 Thread Michael Haas
I accidentally hit sent while still editing the code formatting. Oh well, it should be obvious how it works. I still feel a custom widget with a validator doing the value calculation would be nicer, but I'm not sure if that's possible. Kind regards, Michael -- --- You received this message

[web2py] Re: One database field, two form fields? From seconds to min:sec

2013-02-09 Thread Michael Haas
g.insert(**dict(form.vars)) _updateCurrentExerciseLog(auth.user_id, form.vars.id) session.flash = T('your record has been logged') redirect(URL("list")) Am Donnerstag, 7. Februar 2013 14:07:46 UTC+1 schrieb Michael Haas: > > Hello

Re: [web2py] Re: Auth with Wordpress

2013-02-07 Thread Michael Haas
Am Donnerstag, 7. Februar 2013 19:13:41 UTC+1 schrieb Kenneth: > > Am I understanding you solution completly wrong but isn't it so that > web2py asks WP if a username and password compination is OK. In my case > customer first logs into a WP site, he gets a list of manuals he has paid > for.

[web2py] One database field, two form fields? From seconds to min:sec

2013-02-07 Thread Michael Haas
Hello all, I'm writing a web app where people can log their exercise sessions. Basically, sessions are timed, and the faster the better. To this end, I store seconds in my model: Field('f_record_taken', type='date',notnull=True,default=datetime.date. today(), label=T('Record Taken

[web2py] Re: Auth with Wordpress

2013-02-07 Thread Michael Haas
Hello Kenneth, > But how do I handle that WP takes care of authentication and somehow gives > the customer rights to view the manual. > > I had a similar problem. I added an XMLRPC method to my wordpress instance to check if a given username/password combination is valid and added an auth me