[web2py] Re: did I structure my table and table reference wrong?

2014-10-21 Thread Leonel Câmara
Well if qa is a questions_answered record you can just do qa.question.title (this will do a select to get the question title). -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

[web2py] Re: did I structure my table and table reference wrong?

2014-10-21 Thread LoveWeb2py
You're awesome. Thank you! Web2py is the best! On Tuesday, October 21, 2014 4:49:15 AM UTC-4, Leonel Câmara wrote: Well if qa is a questions_answered record you can just do qa.question.title (this will do a select to get the question title). -- Resources: - http://web2py.com -

[web2py] common way to star developing a new app

2014-10-21 Thread Manuele Pesenti
Hi! Do you think it could be a good approach for starting to develop all my web2py applications with predefined tools such as a logger and a test unit? https://github.com/manuelep/web2py-new-app Does anybody has a similar approach to share? Thank you very mutch Manuele -- Resources: -

Re: [web2py] common way to star developing a new app

2014-10-21 Thread António Ramos
Interesting i would add also Jade and Stylus and Coffeescript https://github.com/ramstein74/Coffee_Jade_Stylus_inside_web2py 2014-10-21 10:44 GMT+01:00 Manuele Pesenti manuele.pese...@gmail.com: Hi! Do you think it could be a good approach for starting to develop all my web2py applications

[web2py] Re: did I structure my table and table reference wrong?

2014-10-21 Thread Anthony
Note, qa.question.title will do a recursive select (a separate additional query for each record), so if you have to loop through all questions, this could be made more efficient with a join: rows = db((db.questions_answered.answered_by == auth.user_id) (db.questions_answered.question

[web2py] Re: web2py setup scripts for windows

2014-10-21 Thread Tim Richardson
On Tuesday, 23 September 2014 14:50:55 UTC+10, Tim Richardson wrote: I made a new docroot folder and cloned web2py into it. So when the site runs for the first time, it attempts to create folders. There is a permission error because it can't do this. I looked at the permissions granted

Re: [web2py] Re: We could have something like this

2014-10-21 Thread António Ramos
differs in the fact that its not only for recipes i can see where to find videos, faqs, books etc as listed in the left Also reviews from users are nice. Maybe web2py slices does the same thing but its not clear for occasionaly users/readers regards 2014-10-20 23:39 GMT+01:00 Dave S

[web2py] Re: Customizing generated columns from SQLFROM.grid

2014-10-21 Thread Francisco Ribeiro
child's play! Answer to my own question: == on the db file, add the following: def get_index(grid, colname): return grid.rows.colnames.index(colname) def apply_title_to_column(grid, title_list, column_number): for cell,title in zip(grid[2][0][0][2], title_list):

[web2py] Re: Web2py on Pythonanywhere

2014-10-21 Thread David Ripplinger
Are you comfortable posting a link to your website so I can see if it also loads as https on my end? On Thursday, October 9, 2014 3:33:37 PM UTC-4, clara wrote: Hello all, I have used python anywhere to deploy simple web2py applications. In the last few I updloaded onto pythonanywhere I

Re: [web2py] Re: Error reading email

2014-10-21 Thread Jim Steil
Thanks - looks like it was a bad name somewhere. The name came back as an empty string and was bombing out. Tried a different account and it worked fine. -Jim On Sat, Oct 18, 2014 at 10:03 AM, Leonel Câmara leonelcam...@gmail.com wrote: It's possible that one of your mailboxes has a name

[web2py] Seeking advice on Heroku db parity

2014-10-21 Thread Jay Martin
According to this Heroku article https://devcenter.heroku.com/articles/development-configuration#dev-prod-parity, subtle differences between Postgres and Sqlite may cause hard to troubleshoot problems when using Sqlite locally and Postgres in production. Web2py includes a script heroku.py

[web2py] Re: web2py as a separate admin process?

2014-10-21 Thread cowbert
The app server that ships with web2py is a fork of the Rocket webserver: https://pypi.python.org/pypi/rocket It's written in pure python, so all of the security is how python sockets and so forth is secure (see also the python httpserver module). Ultimately if you are using web2py for

[web2py] Re: EMAIL | IMAP + SMTP | Compose Email = Save as Draft + Send via SMTP

2014-10-21 Thread PRACHI VAKHARIA
Dear Alan and Massimo, First, please look at this site: *http://www.html5rocks.com/en/tutorials/file/dndfiles/* It shows how to upload and read multiple files directly using HTML5 *(and JavaScript)*. It uses the *File API specification* from W3: http://www.w3.org/TR/file-upload/ How