[web2py] Re: uWSGI + Cherokee + web2py - a howto.

2010-04-18 Thread muybay
Thanks for this great guide Ivan, you saved me hours of configuration time and I learned a lot. On Mar 2, 1:35 am, Ivan P ivanv...@gmail.com wrote: Make that rule ^/app/static On Mar 2, 1:29 am, Ivan P ivanv...@gmail.com wrote: Could you elaborate? You want those two rules to point to a

[web2py] error in book re: response attribute of gluon.sql.Rows?

2010-04-18 Thread Jeremy McNaughton
Hello, I'm learning web2py by working my way through the book (2nd edition). I hit a road block in Chapter 6 (DAL) page 163 where it says: A Rows object is a container for rows.colnames, rows.response and goes on to explain that a Rows cannot be pickled or serialized by XML-RPC while a response

[web2py] Re: error in book re: response attribute of gluon.sql.Rows?

2010-04-18 Thread mdipierro
You are right. This needs to be fixed. Massimo On Apr 18, 1:15 am, Jeremy McNaughton jeremy.mcnaugh...@gmail.com wrote: Hello, I'm learning web2py by working my way through the book (2nd edition). I hit a road block in Chapter 6 (DAL) page 163 where it says: A Rows object is a container for

[web2py] Re: Reading static files on GAE

2010-04-18 Thread James Mortensen
PanosJee panos...@... writes: Hello everyone I am working on a CSS/JS merger/minifier (with expiration tags) and i want to deploy on AppEngine. Unfortunately i cannot read static files on GAE as web2py has declared everything in /static as static files Do you have any ideas on how to

[web2py] Re: _href and src url not rendered

2010-04-18 Thread mdipierro
I am not sure what is wrong here, and the example is complex so I cannot understand the details. Nevertheless, I suggest replace response.render('clublocatormail/send_mail.html',context) with from gluon.template import render render(filename='clublocatormail/send_mail.html',context=context)

Re: [web2py] Re: web2py on IDE

2010-04-18 Thread G. Clifford Williams
Vi/Vim mode would be really nice to have, but it's far from trivial to implement. On Apr 18, 2010, at 12:26 AM, Mengu wrote: On 18 Nisan, 04:10, Doug Elkin drelki...@gmail.com wrote: Feel free to take these requests with a grain of salt... I know most things with development are easier said

[web2py] Let the web server stream your files, not response.download!

2010-04-18 Thread Thadeus Burgess
http://bit.ly/ar4k8X -- Thadeus -- Subscription settings: http://groups.google.com/group/web2py/subscribe?hl=en

[web2py] Re: web2py on IDE

2010-04-18 Thread Yarko Tymciurak
Remember - the simplest, most general initial approach to letting people edit a file in their own preferred editor is to allow external editors, and configuration of same. Yes, this gives up things (i.e. code completion) but at the same time it provides an important stepping stone: a way to do

[web2py] Re: Let the web server stream your files, not response.download!

2010-04-18 Thread mdipierro
Is this cherokee specific? Would it work on apache? Just a comment. This will bypass db.table.field.authorize so auth permissions on downloads will not be enforced. Massimo On Apr 18, 11:34 am, Thadeus Burgess thade...@thadeusb.com wrote: http://bit.ly/ar4k8X -- Thadeus -- Subscription

[web2py] Re: cool html5 stuff

2010-04-18 Thread weheh
Seems like a lot of really nice stuff, but are the browser ready for it, yet? A lot of the presentation didn't display properly or work properly in Firefox, from what I could tell. And IE 8 couldn't display it at all. What do you think, Massimo -- is it ready for prime time? On Apr 17, 3:47 pm,

[web2py] Re: cool html5 stuff

2010-04-18 Thread Yarko Tymciurak
On Apr 18, 2:02 pm, weheh richard_gor...@verizon.net wrote: Seems like a lot of really nice stuff, but are the browser ready for it, yet? A lot of the presentation didn't display properly or work properly in Firefox, from what I could tell. And IE 8 couldn't display it at all. What do you

Re: [web2py] Re: Let the web server stream your files, not response.download!

2010-04-18 Thread Thadeus Burgess
It works with apache, as long as you install the module. Cherokee just has it enabled by default, and is the webserver I use currently. The advantages of X-Sendfile is that you still get to have permissions on downloads, its simply, if they are not authorized, do not set a x-sendfile header. You

[web2py] Re: Let the web server stream your files, not response.download!

2010-04-18 Thread mdipierro
I see. Than the current download function could be improved to take advantage of this. On Apr 18, 3:01 pm, Thadeus Burgess thade...@thadeusb.com wrote: It works with apache, as long as you install the module. Cherokee just has it enabled by default, and is the webserver I use currently. The

Re: [web2py] Re: Let the web server stream your files, not response.download!

2010-04-18 Thread Thadeus Burgess
Precisely! -- Thadeus On Sun, Apr 18, 2010 at 6:43 PM, mdipierro mdipie...@cs.depaul.edu wrote: I see. Than the current download function could be improved to take advantage of this. On Apr 18, 3:01 pm, Thadeus Burgess thade...@thadeusb.com wrote: It works with apache, as long as you

[web2py] what do you make of this?

2010-04-18 Thread mdipierro
http://twitter.com/idlecool/status/12408675362 -- Subscription settings: http://groups.google.com/group/web2py/subscribe?hl=en

[web2py] Re: what do you make of this?

2010-04-18 Thread Yarko Tymciurak
I wonder if this is an innocent report, from a false positive - or a valid report. Bitdefender had some trouble with false reports recently; see: http://krebsonsecurity.com/2010/03/bad-bitdefender-antivirus-update-hobbles-windows-pcs/ But that Windows expoits exist for / in PDF files is

Re: [web2py] what do you make of this?

2010-04-18 Thread Jonathan Lundell
On Apr 18, 2010, at 5:07 PM, mdipierro wrote: http://twitter.com/idlecool/status/12408675362 You never know, but it seems doubtful, especially since the pdf came from Keynote. Bitdefender has had problems with false positives in the past. -- Subscription settings:

[web2py] Re: what do you make of this?

2010-04-18 Thread Brian M
I ran the PDF file referred to through Microsoft Security Essentials and it was fine. Also checked online at http://www.kaspersky.com/scanforvirus and http://www.virustotal.com and it came out clean. On Apr 18, 7:07 pm, mdipierro mdipie...@cs.depaul.edu wrote:

[web2py] GAE, parents, and row objects.

2010-04-18 Thread Matt
Hi, Quick question when using web2py with GAE. I need to assign a model as the parent of another entity. How can I retrieve the GAE model instance from a web2py query...? book = db.book[request.args(0)] [The book is returned as a row] I'd like to do the following:

Re: [web2py] what do you make of this?

2010-04-18 Thread Jonathan Lundell
On Apr 18, 2010, at 5:07 PM, mdipierro wrote: http://twitter.com/idlecool/status/12408675362 Speaking of viruses in PDFs, I hope that everyone on this list using Acrobat or Adobe Reader knows to disable JavaScript. It's of little to no use in PDFs (except for some interactive forms, I think),

[web2py] Re: GAE, parents, and row objects.

2010-04-18 Thread mdipierro
No but there should. Will look into this. If anybody has come concrete proposals, let me know. Massimo On Apr 18, 7:30 pm, Matt mjwat...@gmail.com wrote: Hi, Quick question when using web2py with GAE. I need to assign a model as the parent of another entity. How can I retrieve the GAE

[web2py] Re: GAE, parents, and row objects.

2010-04-18 Thread Matt
Thanks Massimo. Matt On Apr 19, 1:53 pm, mdipierro mdipie...@cs.depaul.edu wrote: No but there should. Will look into this. If anybody has come concrete proposals, let me know. Massimo On Apr 18, 7:30 pm, Matt mjwat...@gmail.com wrote: Hi, Quick question when using web2py with GAE.

[web2py] Traceback on delete plugin.

2010-04-18 Thread Thadeus Burgess
Traceback (most recent call last): File /home/thadeusb/Applications/web2py/gluon/restricted.py, line 178, in restricted exec ccode in environment File /home/thadeusb/Applications/web2py/applications/admin/controllers/default.py, line 1058, in module File

[web2py] can I hook my code to db.connect() ?

2010-04-18 Thread Alexey Nezhdanov
Hi. Sometimes I have to execute this line prior to making a query: oradb.executesql(ALTER SESSION set NLS_DATE_FORMAT = '-MM-DD HH24:MI:SS';) That is because Oracle by default uses different date format that causes my queries to fail. The problem is that doing that in model is incorrect -

[web2py] Session id gets re-used

2010-04-18 Thread Adi
Hi all, In my application, the session id seems to be getting re-used across different sessions. To explain: Login 1: --- print str(session) on user/logout shows the following: Storage {'_formkey[resources_create]': 'ce48911d-aed8-4fc8- bcba-25bc46eac3ce', '_formkey[login]':