Re: Testing with the session object

2008-06-29 Thread Marin
I am trying this, but it doesn't work. Any ideas? def test_session(self): from paste.registry import Registry, StackedObjectProxy import pylons self.registry = Registry() self.registry.prepare() self.session = StackedObjectProxy()

Re: Deploying with virtualenv fails

2008-06-29 Thread Mike Orr
On Sun, Jun 29, 2008 at 7:40 AM, Christoph Haas [EMAIL PROTECTED] wrote: On Sonntag, 29. Juni 2008, Christoph Haas wrote: I'm usually deploying Pylons applications with virtualenv and have hardly any problems (just that paster shell doesn't work there - but that doesn't matter here). But on

Re: Testing with the session object

2008-06-29 Thread Wichert Akkerman
Previously Marin wrote: On Jun 28, 8:01 pm, Wichert Akkerman [EMAIL PROTECTED] wrote: I found that when you are writing unit tests it is essential to be able to stuff data into session, c and request. I'm using a base class for unittests which looks like this: from unittest import

Using paste.progress

2008-06-29 Thread Wolverine
Hello. I have a question regarding paste.progress UploadProgressReporter. I have googled for usage of this class, but almost no info can be obtained this way. How one can use UploadProgressReporter class? I have created lib/uploadmon.py with help from this post:

Re: Beaker session API feature request

2008-06-29 Thread Jonathan Vanasco
I don't really understand what you're saying... but from what I think you're trying to suggest, I'd have to disagree with this concept. Sessions simply allow information to persist between requests. Going into sessions and mangling them outside of the request is a very unique requirement that

Re: Deploying with virtualenv fails

2008-06-29 Thread Ben Bangert
On Jun 29, 2008, at 7:40 AM, Christoph Haas wrote: I found out something. If I build the egg with the same version as on the target (deployment) system the easy_install works. Instead of python setup.py bdist_egg (with Python 2.5 being the default here) I explicitly ran python2.4 setup.py