[web2py] Re: Session id gets re-used

2010-04-18 Thread Adi
Update: This seems to work in user(): if request.args(0) == 'login': session.clear() Am I doing something wrong or unnecessary? On Apr 19, 10:57 am, Adi wrote: > Hi all, > > In my application, the session id seems to be getting re-used across > different sessions. > > To explain: > > Lo

[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: , 'last_visit': datetime.datetime(2010, 4, 19, 11, 18, 37, 417024), 'remember': False} >}> Login 2: -

[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] 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 File "/home/thadeusb/Applications/web2py

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

2010-04-18 Thread Matt
Thanks Massimo. Matt On Apr 19, 1:53 pm, mdipierro 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 wrote: > > > > > Hi, > > > Quick question when using web2py with GAE. > > > I need to assign a mo

[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 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 "model instance

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] 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: d

[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 wrote: > http://twitter.com/idlecool/status/12408675362 > > -- > Su

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: http://groups.google.com/gr

[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 als

[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

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 wrote: > I see. Than the current download function could be improved to take > advantage of this. > > On Apr 18, 3:01 pm, Thadeus Burgess wrote: >> It works with apache, as long as you install the module. >> >> Cherokee just h

[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 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 advantages of X-S

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: cool html5 stuff

2010-04-18 Thread Yarko Tymciurak
On Apr 18, 2:02 pm, weheh 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 think, Massimo -- is it rea

[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, md

[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 wrote: > http://bit.ly/ar4k8X > > -- > Thadeus > > -- > Subscription settings:http://

[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 "e

[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

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 wrote: >> Feel free to take these requests with a grain of salt... I know most >> things with development are easier said than done, but

[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) s

[web2py] Re: Reading static files on GAE

2010-04-18 Thread James Mortensen
PanosJee 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 circumvent t

[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 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 rows.colnames, rows.r

[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