Re: FormEncode and International Languages

2009-01-27 Thread Wichert Akkerman
Previously Jonathan Vanasco wrote: fair on some points, i disagree with others. i'm in the US. the formencode author seems to be as well. 'internationalization' on most things seems to be limited to swapping in text. There is internationalization and localization. You need to deal with

Re: FormEncode and International Languages

2009-01-27 Thread Wichert Akkerman
Previously Gustavo Narea wrote: On Monday January 26, 2009 23:20:37 Jonathan Vanasco wrote: Our project is dealing with a lot of French writers typing things like é , which fails many formencode tests. There is nothing special about the occasional accent in French: French is much simpler

Re: Looking for Pylons speakers

2009-01-27 Thread chris mollis
Trailbender.net uses Postgresql, postgis, and pylons (on EC2), but it's not really finished yet. I could talk about our experiences, but you probably want speakers with finished products or services. On Mon, Jan 26, 2009 at 8:43 PM, Joshua D. Drake j...@commandprompt.comwrote: On Mon,

Re: State of Auth with Pylons

2009-01-27 Thread Chris Miles
I haven't dealt with this problem either. I had a quick look at TurboGears 2 to see if they had a solution for it in a quickstarted app (they use repoze.who/repoze.what) but they don't display an error message for failed logins either. A session based flash message (as suggested by TJ

Re: State of Auth with Pylons

2009-01-27 Thread Jorge Vargas
On Tue, Jan 27, 2009 at 7:29 AM, Chris Miles miles.ch...@gmail.com wrote: I haven't dealt with this problem either. I had a quick look at TurboGears 2 to see if they had a solution for it in a quickstarted app (they use repoze.who/repoze.what) but they don't display an error message for

Re: State of Auth with Pylons

2009-01-27 Thread TJ Ninneman
This was also discuss in the TG list recently and even though this is a great thing it's hard for when you need to do caching of the pages. The current solution turbogears uses is a system with two optional interchangeable components. You have a cookie based flash (this is a package created

Re: State of Auth with Pylons

2009-01-27 Thread Jorge Vargas
On Tue, Jan 27, 2009 at 10:16 AM, TJ Ninneman t...@twopeasinabucket.com wrote: This was also discuss in the TG list recently and even though this is a great thing it's hard for when you need to do caching of the pages. The current solution turbogears uses is a system with two optional

Re: State of Auth with Pylons

2009-01-27 Thread Gustavo Narea
Hello, On Tuesday January 27, 2009 15:16:36 TJ Ninneman wrote: Does the cookie get set within a custom Challenger plugin or within   the Authenticator plugin? It's the way TurboGears itself deals with so-called flash messages, it's not specific to authentication messages. But I'd subclass

Re: State of Auth with Pylons

2009-01-27 Thread TJ Ninneman
On Jan 27, 2009, at 8:50 AM, Jorge Vargas wrote: On Tue, Jan 27, 2009 at 10:16 AM, TJ Ninneman t...@twopeasinabucket.com wrote: This was also discuss in the TG list recently and even though this is a great thing it's hard for when you need to do caching of the pages. The current

Re: Looking for Pylons speakers

2009-01-27 Thread Joshua D. Drake
On Tue, 2009-01-27 at 06:02 -0500, chris mollis wrote: Trailbender.net uses Postgresql, postgis, and pylons (on EC2), but it's not really finished yet. I could talk about our experiences, but you probably want speakers with finished products or services. Not necessarily. Software is never

Re: Is Django more popular than Pylons?

2009-01-27 Thread Akira Kitada
Just a few questions. I hate to pass the buck, but this is Python's fault for not having reliable package management built in. There's nothing Pylons can do about it except switch to another programming language. What programming language has a reliable package management system built in?

Re: Is Django more popular than Pylons?

2009-01-27 Thread Mike Orr
On Tue, Jan 27, 2009 at 1:40 PM, Akira Kitada akit...@gmail.com wrote: Just a few questions. I hate to pass the buck, but this is Python's fault for not having reliable package management built in. There's nothing Pylons can do about it except switch to another programming language. What

Re: Turbogears 2 keywords Pylons

2009-01-27 Thread Bernard Rankin
could you please not post the same question so many times? you just posted this twice to the TG list. This issue has nothing to do with pylons so it's irrelevant here. Sorry about that.. the multi-post was unintentional... I did not look like the first two message went through

moving logic from controller to model

2009-01-27 Thread John Brennan
All the documentation I've found (pylons web site, examples, etc) tell the developer to put all this business logic in the controller and just setup a flimsy old model with the pass keyword. I myself did the same when first learning pylons. As my app grew, so did my needs. I'm trying

Re: moving logic from controller to model

2009-01-27 Thread Ross Vandegrift
On Tue, Jan 27, 2009 at 05:42:48PM -0800, John Brennan wrote: I'm trying encapulate all data stuff in the model. For example, I have a Book object so it would have methods like get, get_all, recent, etc. Those all work fine, but the problem occurs when trying to create a new Book object.

Re: moving logic from controller to model

2009-01-27 Thread TJ Ninneman
On Jan 27, 2009, at 8:02 PM, Ross Vandegrift wrote: SA treats your model object (ie, the class that encapsulates the logic of your application) separately from the Session (ie, the class that encapsulates information on how to save and restore persistent data for object instances). I

Re: moving logic from controller to model

2009-01-27 Thread Mike Orr
On Tue, Jan 27, 2009 at 6:02 PM, Ross Vandegrift r...@kallisti.us wrote: class Book(object): def __init__(self, title, author): self.title = title self.author = author self.bookmark = None def bookmark(self, pageno): self.bookmark = pageno Any normal

Re: State of Auth with Pylons

2009-01-27 Thread Chris Miles
On 24/01/2009, at 2:02 PM, Mike Orr wrote: On Fri, Jan 23, 2009 at 5:51 PM, Chris Miles miles.ch...@gmail.com wrote: I'd like to see the Pylons quickstart template offer an authentication/authorization solution as an option, in the same way that it offers a DB/ORM solution (SQLAlchemy)

Re: Is Django more popular than Pylons?

2009-01-27 Thread Eric Lemoine
Hi I agree that it'd be good to have virtualenv shipped with Python. I wish I did have to tell my Pylons application users to first download virtualenv, dearchive it, extract virtualenv.py, etc. Cheers, Eric 2009/1/27, Mike Orr sluggos...@gmail.com: On Tue, Jan 27, 2009 at 1:40 PM, Akira

Re: Is Django more popular than Pylons?

2009-01-27 Thread Noah Gift
. And the problems are different on Windows vs Mac vs Linux, and App Engine adds another dimension. At work people say, Half the trouble of Pylons is installing it, and I often have to help them install it in person because otherwise they get stuck at some error message and have no idea