Re: Calling a controllers method from another method? Is there a 'safe' way without redirecting?

2009-12-07 Thread Jonathan Vanasco
mike- on the subject... does Pylons have a subrequest facility ? Some platforms , like mod_perl , offer it: http://perl.apache.org/docs/2.0/api/Apache2/SubRequest.html internal_redirect Redirect the current request to some other uri internally $r-internal_redirect($new_uri); * obj: $r

Re: Many-to-Many count

2009-12-07 Thread askel
Alexander, Do you want to know how many children some Parent instance has? If that's what you're looking for then len(parent.children) is one of many ways to get answer. It is probably the best one if children are eager loaded but it is most likely the worst one if they are lazy loaded. Cheers

Re: Calling a controllers method from another method? Is there a 'safe' way without redirecting?

2009-12-07 Thread Mike Orr
On Mon, Dec 7, 2009 at 9:58 AM, Jonathan Vanasco jonat...@findmeon.com wrote: mike- on the subject... does Pylons have a subrequest facility ? Some platforms , like mod_perl , offer it: http://perl.apache.org/docs/2.0/api/Apache2/SubRequest.html internal_redirect Redirect the current

Re: Calling a controllers method from another method? Is there a 'safe' way without redirecting?

2009-12-07 Thread Shailesh Kochhar
Mike Orr wrote: On Mon, Dec 7, 2009 at 9:58 AM, Jonathan Vanasco jonat...@findmeon.com wrote: mike- on the subject... does Pylons have a subrequest facility ? Some platforms , like mod_perl , offer it: http://perl.apache.org/docs/2.0/api/Apache2/SubRequest.html internal_redirect

Feedgenerator development / GeoRSS

2009-12-07 Thread Mike Orr
I have printed out the differences between webhelpers.feedgenerator and Django's feedgenerator. They were synchronized January 5th. WebHelpers has: * properties 'generator', 'source', and 'published'. * a bugfix in rfc3339_date(). Django has: * A number of callbacks for adding custom