pylons controller's self vs. c global

2007-01-29 Thread Max Ischenko
Hi, From reading the docs at http://pylonshq.com/docs/0.9.4.1/module- pylons.controllers.html I assume that new controller instance is created to handle each incoming request and discarded after it is processed. This means I can safely set and read self.foobar attributes without worrying

Re: Concepts of Pylons (proposal for an introductory article to web frameworks)

2007-01-29 Thread Christoph Haas
On Monday 29 January 2007 00:35, Graham Higgins wrote: On 28 Jan 2007, at 21:00, Christoph Haas wrote: Thanks. It's really hard to compare the three beasts. I am running commercial sites developed in both Django TG, and I've pushed Pylons around a bit. Your characterisation of the three

Re: setting a cookie whether a redirect happens or not

2007-01-29 Thread Max Ischenko
Hello Shannon, Some time ago you wrote: I like to have a facility called action_results. It's a place where I can put amessagethat will show up on the next page. It should work whether aredirecthappens or not. In my old days, I use to put it in the session so that it would survive if

Re: Pagination research

2007-01-29 Thread Christoph Haas
UPDATE... On Thursday 25 January 2007 16:13, Christoph Haas wrote: I'm using SQLAlchemy and have defined my Table()s in models/__init__.py. To use the pagination I used from webhelpers import pagination in the lib/helpers.py. [...] Since the above query object was ugly I tried to feed

Re: Concepts of Pylons (proposal for an introductory article to web frameworks)

2007-01-29 Thread James Gardner
Hi Chris, I think your introduction is very helpful so thanks for writing it up. I've added a note to the TowardsOnePointZero page that we should add something similar to the main docs. Is there a review process? Does the documentation get checked into the svn? After all the main

Re: pylons controller's self vs. c global

2007-01-29 Thread James Gardner
Hi Max, From reading the docs at http://pylonshq.com/docs/0.9.4.1/module- pylons.controllers.html I assume that new controller instance is created to handle each incoming request and discarded after it is processed. This means I can safely set and read self.foobar attributes without

Re: [AuthKit] fallback for no cookie support, AtomPP in a forward auth app

2007-01-29 Thread James Gardner
Hi David, I agree it would be handy to have a way for the app to test for the client's ability to use cookies but I think the fallback mechanism needs to be thought through to be a little more generic. I was discussing this with someone else a while back too so I'll try and find the thread.

Re: Concepts of Pylons (proposal for an introductory article to web frameworks)

2007-01-29 Thread Mike Orr
Forwarded at Christoph Haas's suggestion, to discuss what we want in this tutorial and in Pylons tutorials generally. Some of the points I raise below have already been corrected by Christoph. --Mike -- Forwarded message -- From: Mike Orr [EMAIL PROTECTED] Date: Jan 29, 2007

Re: Concepts of Pylons (proposal for an introductory article to web frameworks)

2007-01-29 Thread Mike Orr
On 1/29/07, Christoph Haas [EMAIL PROTECTED] wrote: On Monday 29 January 2007 21:07, you (Mike Orr) wrote: - Models do not contain any information about the meaning of this data. What do you mean by 'meaning'? The model *does* know the meaning of the data, that's its purpose. If you have

Odd behavior with mapped relations (sqlalchemy)

2007-01-29 Thread dsmath
I've been evaluating pylons and so far I really like the framework ... well, ummm, except for one problem. I've noticed that when running my a web app I'm building, relations that are defined in ORM mapper are not working very well at all. In fact the number of items in a relation varies

Re: Odd behavior with mapped relations (sqlalchemy)

2007-01-29 Thread Ben Bangert
On Jan 29, 2007, at 8:42 PM, dsmath wrote: $ svn co http://svn.xix.python-hosting.com/subprojects/pylons/simple- app SimpleApp (You can also just browse the source at http://xix.python-hosting.com/browser/subprojects/pylons/simple-app/) Please read over: simpapp/models/__init__.py