Re: sqlalchemy objects in beaker cache

2008-12-17 Thread Wichert Akkerman
Previously Tomasz Narloch wrote: Andrey Plotnikov pisze: Hi, Is it safe to cache objects getting from sqlalchemy session query in beaker cache? I was done that but in that way I loose connection with sqlalchemy (Session) so You can re-associate an object with a new session.

Running a program without waiting for it to finish

2008-12-17 Thread tobycat...@gmail.com
hello everybody, I am somewhat confused about the number of ways you can run an external program from python/pylons. I need my app to be able to compile and run a performance test. then gather the results and display the results in a relevant way. the tests are written in autoHotKey which is a

Re: Testing a controller with upload_files ?

2008-12-17 Thread Jorge Vargas
On Wed, Dec 17, 2008 at 3:54 AM, Kurt kurt.haeus...@gmail.com wrote: Hi, I have a controller, that takes a normal param, as well as a couple of files as input. It works fine when called from a client, but I am having trouble getting a unit test to work. response =

Re: If you HAD to use Java...

2008-12-17 Thread Wyatt Baldwin
Thanks for the replies. I spent an inordinate amount of time evaluating Java frameworks, etc. As it turned out, I didn't end up having to use Java (though I could have), so I went with Python, and I'm very glad I did. Today I launched the first version of an internal app built on Pylons/

Testing a controller with upload_files ?

2008-12-17 Thread Kurt
Hi, I have a controller, that takes a normal param, as well as a couple of files as input. It works fine when called from a client, but I am having trouble getting a unit test to work. response = self.app.post(url_for(controller='ff', action='upload'), params={'packxml': packxml}), \

Re: Flickr tutorial under 0.9.7?

2008-12-17 Thread Alex Marandon
2008/12/16 Mike Orr sluggos...@gmail.com: By the way, Pylons homepage says: AJAX: Rails-style WebHelpers based on Prototype, or Mochikit, jQuery, Dojo, Ext more. I'm wondering what that means. I've been curious about that too, since the JavaScript helpers are implemented with Prototype. I

pylons + cheetah

2008-12-17 Thread Vadim
Hi all, I'm new to pylons. Please help to find information how to connect pylons with cheetah thank you for help, Vadim --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this

Re: pylons + cheetah

2008-12-17 Thread Mario Ruggier
On Dec 17, 2008, at 8:55 PM, Vadim wrote: Hi all, I'm new to pylons. Please help to find information how to connect pylons with cheetah thank you for help, Vadim The Templating part of the cookbook? http://wiki.pylonshq.com/display/pylonscookbook/Templating mario

Re: Running mulitple versions of Pylons apps with shared hosting.

2008-12-17 Thread Dave
Thanks, I was using a single virtual python install for all my sites. I'll switch to a virtualenv for each one, that sounds like it'll work. Cheers, Dave On Dec 1, 3:22 pm, Jorge Vargas jorge.var...@gmail.com wrote: On Mon, Dec 1, 2008 at 7:52 AM, Dalius Dobravolskas

SMTPHandler not working

2008-12-17 Thread Pavel Skvazh
Trying to use SMTPHandler for logging with Pylons trunk version. [handler_smtp] class = SMTPHandler args = ('localhost','err...@my.com', ...', '...') formatter = generic File D:\Python25\Scripts\paster-script.py, line 8, in module load_entry_point('pastescript==1.7.3', 'console_scripts',

Problem with pylons install on win XP 32

2008-12-17 Thread Jules Stevenson
Hi All, I've been trying to get pylons up and running on a win 32bit XP box under python 2.6.1. Easy install worked up until the json errors, I then manually installed the rest of the dependancies. JSON I ran without speedups, and therefore bypassed the failure to install. When I try and setup

Re: Testing a controller with upload_files ?

2008-12-17 Thread Kurt Häusler
I am using nosetests. If I only pass one file in it does not work. The only combination that works is params only without the upload_files. I also tried wrapping the file contents in a StringIO but only a string or unicode is accepted. I also tried writing a real file to disk first and only

RE: pylons + cheetah

2008-12-17 Thread Vadim Khaskel
Mario, thank you for quick response. I did look into this coockbook page... but this page looked to me outdated. For example: config.init_app() call is not in middleware.py, but in environment.py and when I tried to use: config.add_template_engine(cheetah, myapp.templates, {}) I got error

Re: Flickr tutorial under 0.9.7?

2008-12-17 Thread Mike Orr
On Wed, Dec 17, 2008 at 3:32 AM, Alex Marandon alex.maran...@gmail.com wrote: 2008/12/16 Mike Orr sluggos...@gmail.com: By the way, Pylons homepage says: AJAX: Rails-style WebHelpers based on Prototype, or Mochikit, jQuery, Dojo, Ext more. I'm wondering what that means. I've been curious

Re: If you HAD to use Java...

2008-12-17 Thread Philip Jenvey
On Oct 31, 2008, at 11:05 AM, Wyatt Baldwin wrote: So, let's say you're a dedicated Python programmer and your Web framework/stack of choice is Pylons/Mako/SQLAlchemy (declarative, thank you very much). Let's also say that you're working on a project where you have, or are at least

Re: Flickr tutorial under 0.9.7?

2008-12-17 Thread Rod Morison
That .6 vs .7 status list is very helpful, esp for a Pylons newbie struggling with documentation which is part .6 and part .7, thanks. Are there any docs or examples for the new .7 helpers? I want to work towards the Pylons 1.0 Factory approved usage for helpers and templating, but am

Re: pylons + cheetah

2008-12-17 Thread Mike Orr
On Wed, Dec 17, 2008 at 1:15 PM, Vadim Khaskel vkhas...@hotmail.com wrote: Mario, thank you for quick response. I did look into this coockbook page... but this page looked to me outdated. For example: config.init_app() call is not in middleware.py, but in environment.py and when I tried

Re: Flickr tutorial under 0.9.7?

2008-12-17 Thread Ben Bangert
On Dec 17, 2008, at 3:01 PM, Rod Morison wrote: That .6 vs .7 status list is very helpful, esp for a Pylons newbie struggling with documentation which is part .6 and part .7, thanks. Are there any docs or examples for the new .7 helpers? I want to work towards the Pylons 1.0 Factory approved

Re: Flickr tutorial under 0.9.7?

2008-12-17 Thread Rod Morison
I didn't have the beta docs url, looks like there's enough to get me going with the intrinsic helpers. I like the Pylons platform a lot already, and have only done minor experiments. When everything is ironed out, it's really gonna rock. Great project! Rod

Re: Flickr tutorial under 0.9.7?

2008-12-17 Thread Mike Orr
On Wed, Dec 17, 2008 at 3:01 PM, Rod Morison r...@morison.biz wrote: That .6 vs .7 status list is very helpful, esp for a Pylons newbie struggling with documentation which is part .6 and part .7, thanks. Are there any docs or examples for the new .7 helpers? The documentation is in the

Re: Testing a controller with upload_files ?

2008-12-17 Thread Jorge Vargas
On Wed, Dec 17, 2008 at 6:22 AM, Kurt Häusler kurt.haeus...@gmail.com wrote: I am using nosetests. If I only pass one file in it does not work. The only combination that works is params only without the upload_files. nose it's a test runner finder not a testing engine in itself, the feature