Re: authauth middleware details

2008-12-15 Thread Dalius Dobravolskas
Hello, Tomasz. On Thu, Dec 11, 2008 at 9:19 AM, Tomasz Narloch toma...@wp.pl wrote: 2) Where can I put @authenticate_form? I don't know such decorator. Haven't you confused it with @authorize? from pylons.decorators.secure import authenticate_form In login I create:

Re: buildout vs virtualenv for pylons and/or other wsgi apps?

2008-12-15 Thread Wichert Akkerman
Previously Mike Orr wrote: On Sun, Dec 14, 2008 at 8:38 PM, Iain Duncan iaindun...@telus.net wrote: Hi folks, I totally do not want to start a flame war here, but was wondering if people could give me their reasons for preferring buildout or virtualenv for automated builds of pylons

Re: serving up generated images

2008-12-15 Thread erowan
Hello Matt, Thanks for your response. The page I serve has a graph plus a link to a csv file of the graph data so I can't dynamically return the data as you suggest. The page looks like this. htmltitledemand/title/headbody a href=/tmp/demand.png title=/tmp/demand img id=/tmp/demand

Re: serving up generated images

2008-12-15 Thread Matthew Zwier
Hi, Using tempfile.NamedTemporaryFile specifying this tmp directory could be an improvement if the deletion works ok. If I don't explictly close the file the docs say they will be closed and therefore deleted with gc is run. Hmm...because gc can be run at any time, there's no guarantee the

small problem using pudge

2008-12-15 Thread przemek.ch
Hi, when I try to generate the documentation for my application using pudge i get the following error File C:\Python25\lib\pydoc.py, line 305, in safeimport raise ErrorDuringImport(path, sys.exc_info()) pydoc.ErrorDuringImport: problem in ajax.tests - type 'exceptions.KeyError': '__file__'

Strange beaker 1.1 error

2008-12-15 Thread alecf
We are unfortunately still on Python 2.4, but we have brought hashlib in (from http://pypi.python.org/pypi/hashlib ) because we needed it elsewhere in our project. We are seeing some strange exceptions when using paste.httpexceptions - I'm theorizing that beaker's hashlib / sha1 / md5 usage is

Flickr tutorial under 0.9.7?

2008-12-15 Thread Rod Morison
I'm going through the tutorials under 0.9.7. The Flickr tutorial says config/middleware.py should have javascripts_app = StaticJavascripts() ... app = Cascade([static_app, javascripts_app, app]) and a /javascripts/effects.js file. Neither are there. I read the What's new in Pylons 0.9.7? at

Re: Flickr tutorial under 0.9.7?

2008-12-15 Thread Tom Longson (nym)
I generally add my javascript files by hand to my base.mako template. Effects.js is from scriptaculous, which is a prototype (.js) effects framework. If you add these manually to your public folder, and add a script tag to the pages that use them, you can forgo the need to use javascripts

Re: Flickr tutorial under 0.9.7?

2008-12-15 Thread Rod Morison
Tom, thanks for google CDN tip. It looks like in 10.1 on http://code.google.com/apis/ajaxlibs/terms.html there are no restrictions on use for commercial applications. Is that your understanding? Rod Tom Longson (nym) wrote: I generally add my javascript files by hand to my base.mako

Re: Flickr tutorial under 0.9.7?

2008-12-15 Thread Mike Orr
On Mon, Dec 15, 2008 at 1:07 PM, Rod Morison r...@morison.biz wrote: I'm going through the tutorials under 0.9.7. The Flickr tutorial says config/middleware.py should have javascripts_app = StaticJavascripts() ... app = Cascade([static_app, javascripts_app, app]) and a

Re: Flickr tutorial under 0.9.7?

2008-12-15 Thread Tom Longson (nym)
Yes Rod, that's my understanding. This comment from a Google employee seems to support that opinion: http://code.google.com/p/google-ajax-apis/issues/detail?id=50#c44 They purposely did not include the ext javascript library because of concern for commercial users. Tom Longson (nym)

doc tools suggestions?

2008-12-15 Thread Iain Duncan
Hi folks, I'm working on a wsgi app that I hope to eventually make public. I'm not sure what to do about documentation, I plan on using Sphinx for hand written docs, but don't know whether I should also use a javadoc style tool like epydoc or doxygen, and if so, which one. If folks could tell me

Re: small problem using pudge

2008-12-15 Thread Wyatt Baldwin
On Dec 15, 3:09 am, przemek.ch przemek...@gmail.com wrote: Hi, when I try to generate the documentation for my application using pudge i get the following error  File C:\Python25\lib\pydoc.py, line 305, in safeimport     raise ErrorDuringImport(path, sys.exc_info())

Re: mycompany.myapp instead of myapp as base package ?

2008-12-15 Thread Wyatt Baldwin
On Dec 12, 7:29 am, Guillaume guillaume.tagl...@gmail.com wrote: Hi, I'm currently developing a set of applications, and I have one problem. They should all reside in the same package. The package structure should look like something like this: mycompany/  +- models  |   +-base.py  |  

Re: mycompany.myapp instead of myapp as base package ?

2008-12-15 Thread Jorge Vargas
On Mon, Dec 15, 2008 at 6:07 PM, Wyatt Baldwin wyatt.lee.bald...@gmail.com wrote: On Dec 12, 7:29 am, Guillaume guillaume.tagl...@gmail.com wrote: Hi, I'm currently developing a set of applications, and I have one problem. They should all reside in the same package. The package structure

Re: doc tools suggestions?

2008-12-15 Thread Wyatt Baldwin
On Dec 15, 3:06 pm, Iain Duncan iaindun...@telus.net wrote: Hi folks, I'm working on a wsgi app that I hope to eventually make public. I'm not sure what to do about documentation, I plan on using Sphinx for hand written docs, but don't know whether I should also use a javadoc style tool like