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

Re: Flickr tutorial under 0.9.7?

2008-12-16 Thread Alex Marandon
2008/12/15 Mike Orr sluggos...@gmail.com: You can add the Javascripts app to middleware.py and it will probably work, but that part of WebHelpers is deprecated and will be gone by Pylons 0.9.8. Is it going to be possible to keep the current Rails-style WebHelpers while using newer versions of

Re: Django or Pylons - comparison details

2008-12-08 Thread Alex Marandon
2008/12/6 zunzun [EMAIL PROTECTED]: Seems like I should use Django? Or should it be Pylons instead? Here is the advice of an average programmer with no emotional involvement in any of these projects. I think it depends on your background. The Pylons ecosystem is very powerful but it's quite

Re: books

2008-12-07 Thread Alex Marandon
2008/12/7 jose [EMAIL PROTECTED]: I'm thinking of pre-ordering the pylons book, and Amazon gives you the option to get the sqlalchemy book at the same time. Has anyone red the book? is it good? is is fairly recent or better yet how out of date is it? I've read it a couple of months ago.

Pylons and Python 2.6 (Was: Re: go-pylons.py broken on Python 2.6 in Windows?)

2008-11-12 Thread Alex Marandon
2008/11/11 Ben Bangert [EMAIL PROTECTED]: On Nov 11, 2008, at 7:38 AM, Alex Marandon wrote: As far as I know, Pylons doesn't support Python 2.6, no matter what operating system you're on. At least that's how it was last time I checked. Pylons does run on Python 2.6, and we have buildbots

Re: go-pylons.py broken on Python 2.6 in Windows?

2008-11-11 Thread Alex Marandon
2008/11/11 Eric Ongerth [EMAIL PROTECTED]: In any case, I'm sailing along just fine after setting up Python 2.6 and then virtualenv 1.3. Still, I thought it noteworthy for the careful reviewing of 0.9.7rc3 before it goes final, that the current go-pylons script linked near the top of the

Limiting test coverage to the application code

2008-09-10 Thread Alex Marandon
Hello, I'm trying to get test coverage statistics of a Pylons app using nose and its cover plugin. I've included a cover-package option in my setup.cfg, but when I run 'setup.py nosetests' followed by 'coverage -r', I get stats for all the imported modules. Any idea of what I'm missing?

Re: The Pylons Book

2008-07-14 Thread Alex Marandon
2008/7/11 [EMAIL PROTECTED] [EMAIL PROTECTED]: I'm very pleased to announce that the first draft of the Pylons book is now complete. I've seen that the book is available for pre-ordering from Amazon and I was wondering if some of the money spent on buying the book would go to the Pylons

Re: REST, filtering, and related resources

2008-06-20 Thread Alex Marandon
2008/6/20 Sean Davis [EMAIL PROTECTED]: Therefore, I was planning on a web/web- services approach using REST approaches. It seems that dealing with single collections is pretty straightforward, but I have a couple of questions: 1) What is the standard for filtering a single collection

Re: Calling a WSGI application from an action

2008-06-03 Thread Alex Marandon
2008/6/2 Ian Bicking [EMAIL PROTECTED]: You need code that takes req.POST and turns it into the serialized body, so that the WSGI app you are calling can reconstruct that body. I understand that Pylons parses the body of the POST request and turns into a Python data structure. In particular,

Re: Calling a WSGI application from an action

2008-06-02 Thread Alex Marandon
2008/5/30 Ian Bicking [EMAIL PROTECTED]: I'm trying to apply the recipe from http://wiki.pylonshq.com/display/pylonsdocs/Web+Server+Gateway+Interface+Support#running-a-wsgi-application-from-within-a-controller Unfortunately it works only for the file management features, not for the upload.

Re: advice with configuration/scaling a live Pylons app.

2008-05-30 Thread Alex Marandon
2008/5/30 Graham Dumpleton [EMAIL PROTECTED]: class FooController(BaseController): def bla(self): return 'Hello World! %s' % time.time() def slow_bla(self): time.sleep(10) return 'Hello slow World!' With something like that, manual testing works just fine

Calling a WSGI application from an action

2008-05-30 Thread Alex Marandon
Hello, I'm trying to integrate FCKeditor's file management and upload features into a Pylons app. FCKeditor ships with a WSGI application to handle the server side of these features. I tried to run that application under mod_wsgi and it works fine. Now I'd like to integrate that within my Pylons

Re: advice with configuration/scaling a live Pylons app.

2008-05-29 Thread Alex Marandon
2008/5/28 SamDonaldson [EMAIL PROTECTED]: Running ab benchmark tests revealed many requests were failing. Should I be starting MORE Paster processes to handle the load? Is this the right thing to do, or is the Paster (SCGI) process itself multi-threaded to handle such synchronous requests.

Re: advice with configuration/scaling a live Pylons app.

2008-05-29 Thread Alex Marandon
2008/5/29 Alex Marandon [EMAIL PROTECTED]: 2008/5/28 SamDonaldson [EMAIL PROTECTED]: Running ab benchmark tests revealed many requests were failing. Should I be starting MORE Paster processes to handle the load? Is this the right thing to do, or is the Paster (SCGI) process itself multi