Re: i18n not work?

2007-09-06 Thread Olli Wang
Thanks. It works. :) On Sep 5, 8:29 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: replace : outfile = open(mo_file, 'w') outfile = open(mo_file, 'wb') in frontend.py On 8月30日, 上午1時38分, Olli Wang [EMAIL PROTECTED] wrote: Hi, folk. I just follow pylons doc Internationalization and

Re: turbogears style

2007-09-06 Thread Andrey Gladilin
What are the main differencies between TG2 dispatcher pylons one? Is there any documentation regarding TG dispatcher? Thanks. Regards, skyogre Andrey Gladilin --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: Pylons and twisted?

2007-09-06 Thread Marcin Kasperski
plus Twisted's Deferreds and callbacks are enough to make many other programmers run screaming from the room. Heya, they are beautiful ;-) Especially with the @deferredGenerator and @inlineCallback syntaxes. This is pretty: @deferredGenerator def thingummy(): thing =

Re: turbogears style

2007-09-06 Thread gasolin
On 9月6日, 下午3時36分, Andrey Gladilin [EMAIL PROTECTED] wrote: What are the main differencies between TG2 dispatcher pylons one? Is there any documentation regarding TG dispatcher? Pylons use routes as dispatcher. TG2 dispatcher is a cherrypy style object dispatcher, which has similar behavior

Tuning Pylons for tight memory requirements?

2007-09-06 Thread Marcin Kasperski
How would you tune pylons application to reduce its RAM usage as much as possible? I mean the case of rather-small-application with rather-small-trafic, which is expected to run on machine with 64 or 96MB RAM (sideways some other apps). (*) In case somebody is curious: not, not embedded system.

Re: Pylons and twisted?

2007-09-06 Thread Mike Orr
On 9/6/07, Marcin Kasperski [EMAIL PROTECTED] wrote: plus Twisted's Deferreds and callbacks are enough to make many other programmers run screaming from the room. Heya, they are beautiful ;-) Especially with the @deferredGenerator and @inlineCallback syntaxes. This is pretty:

Locking a page?

2007-09-06 Thread Jose Galvez
Hi all, I'm hunting for advice. I am looking for a way to lock a webpage so that only only one person at a time can edit database data. Here is the scenario, I have a database with a limited number of users who have write access to the database, what I'd like to do is lock the editing page so

Re: Locking a page?

2007-09-06 Thread Micah Elliott
On 2007-09-06 Jose Galvez wrote: I am looking for a way to lock a webpage so that only only one person at a time can edit database data. Here is the scenario, I have a database with a limited number of users who have write access to the database, what I'd like to do is lock the editing

Re: Locking a page?

2007-09-06 Thread voltron
Hi Jose! I am going to face the same problem with the application I am coding, it is a sort of CMS. I have thought about adding a boolean field called lock just as you have used in the past. When a user requests a page to edit and the lock field is not set to true, she can edit the page

Re: Locking a page?

2007-09-06 Thread voltron
This is the plugin I intend to use, it can effectively block user input if needed with notification: http://www.malsup.com/jquery/block/#page On Sep 6, 10:39 pm, voltron [EMAIL PROTECTED] wrote: Hi Jose! I am going to face the same problem with the application I am coding, it is a sort of

URL/Link generation question

2007-09-06 Thread A. Smart
Hi folks, I'm fiddling around with h.link_to and h.url_for - trying to understand the link creation stuff better. What I understood: h.link_to generates the HTML code, h.url_for generates the URL itself based on the routes configuration and the data I provide. What I was wondering which of

Conceptual question for navigation / site structuring

2007-09-06 Thread A. Smart
Hi, I have a conceptual question (or idea) I would like to discuss with the experience people out there. My background: experienced developer for GUI commercial apps, newbie for web based applications. Trigger: I found no structural support for handling the navigation = basic application

Re: URL/Link generation question

2007-09-06 Thread Mike Orr
On 9/6/07, A. Smart [EMAIL PROTECTED] wrote: Hi folks, I'm fiddling around with h.link_to and h.url_for - trying to understand the link creation stuff better. What I understood: h.link_to generates the HTML code, h.url_for generates the URL itself based on the routes configuration and the

Routes config error

2007-09-06 Thread Mike Orr
I have an application with an initialization function called from environment.py, which uses url_for. This worked fine in earlier svn versions of Pylons 0.9.6, but with rc3 and Routes 1.7 I get: Traceback (most recent call last): File /usr/local/bin/paster, line 8, in module

Re: Locking a page?

2007-09-06 Thread David Turner
Don't do this. There is no way to make 100% certain that you don't end up with stale locks. Sure, you can have an ajaxy thing that pings the server every minute or so to say, I'm still editing this, but then the user goes off to lunch and everyone is stuck until they get home. Or a malicious

Re: Routes config error

2007-09-06 Thread Philip Jenvey
On Sep 6, 2007, at 2:28 PM, Mike Orr wrote: I have an application with an initialization function called from environment.py, which uses url_for. This worked fine in earlier svn versions of Pylons 0.9.6, but with rc3 and Routes 1.7 I get: File

Re: Routes config error

2007-09-06 Thread Mike Orr
On 9/6/07, Philip Jenvey [EMAIL PROTECTED] wrote: On Sep 6, 2007, at 2:28 PM, Mike Orr wrote: I have an application with an initialization function called from environment.py, which uses url_for. This worked fine in earlier svn versions of Pylons 0.9.6, but with rc3 and Routes 1.7 I

SQLAlchemy 0.3 transactions inside Pylons controllers

2007-09-06 Thread Jose Figueras
In one of my controller I need to use SQLAlchemy transactions. How must I proceed? Where's the transaction object? Regards, Jose F. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group. To post

Re: Locking a page?

2007-09-06 Thread voltron
Hmm..then things would be harder than I expected,maybe just warning the user as David suggested would be enough, when the users ignore the warning, tough luck. I wonder how the other CMS apps take care of this problem. On Sep 7, 1:29 am, Jose Galvez [EMAIL PROTECTED] wrote: Hey voltron, I'll

Re: Locking a page?

2007-09-06 Thread Jose Galvez
Hey voltron, I'll take a look at the library, it looks pretty cool. David Turner, makes some really good points and is really the main thing that I''ve worried about. My current site (the one that needs lots of work read I don't like the way I did it) uses a database to keep the locks, which I

Re: Locking a page?

2007-09-06 Thread Cliff Wells
On Thu, 2007-09-06 at 17:07 -0400, David Turner wrote: Don't do this. There is no way to make 100% certain that you don't end up with stale locks. Sure, you can have an ajaxy thing that pings the server every minute or so to say, I'm still editing this, but then the user goes off to lunch