Pyramid order of translation directories

2011-06-22 Thread Robert Forkel
Hi all, in my pyramid application i make use of additional translation directories provided by plugins to override messages defined in the default translation. So i have to rely on the order of translation directories. To make sure this can be relied upon, i looked through the pyramid code and

Re: Pyramid order of translation directories

2011-06-22 Thread Chris McDonough
On Tue, 2011-06-21 at 23:41 -0700, Robert Forkel wrote: Hi all, in my pyramid application i make use of additional translation directories provided by plugins to override messages defined in the default translation. So i have to rely on the order of translation directories. To make sure this

Re: Pyramid order of translation directories

2011-06-22 Thread Chris McDonough
On Tue, 2011-06-21 at 23:41 -0700, Robert Forkel wrote: Hi all, in my pyramid application i make use of additional translation directories provided by plugins to override messages defined in the default translation. So i have to rely on the order of translation directories. To make sure this

Re: Pyramid order of translation directories

2011-06-22 Thread Robert Forkel
Hi Chris, I read your commit comment, and think it is a bit ambiguous. While it is true, that translation directories added later will be found earlier in i18n.make_localizer, this doesn't mean that messages defined in these will trump messages defined in translation directories added earlier (at

Re: Pyramid order of translation directories

2011-06-22 Thread Chris McDonough
On Wed, 2011-06-22 at 09:28 +0200, Robert Forkel wrote: Hi Chris, I read your commit comment, and think it is a bit ambiguous. While it is true, that translation directories added later will be found earlier in i18n.make_localizer, this doesn't mean that messages defined in these will trump

Re: Pyramid order of translation directories

2011-06-22 Thread Chris McDonough
On Wed, 2011-06-22 at 09:28 +0200, Robert Forkel wrote: Hi Chris, I read your commit comment, and think it is a bit ambiguous. While it is true, that translation directories added later will be found earlier in i18n.make_localizer, this doesn't mean that messages defined in these will trump

Re: Pyramid order of translation directories

2011-06-22 Thread Robert Forkel
true. It might be worth making the i18n documentation here http://docs.pylonsproject.org/projects/pyramid/1.1/narr/i18n.html#adding-a-translation-directory clearer, though. A message catalog in a translation directory added via add_translation_dirs() will be merged into translations from a

Re: chameleon makes pyramid unfriendly

2011-06-22 Thread Mengu
this is why i use mako. mako ftw. On Jun 21, 2:16 pm, Chris Withers ch...@simplistix.co.uk wrote: Hi All, I just wanted to check if this is just me. I'm working with Pyramid 1.0 and loving it, except when it comes to writing templates. I'm finding I hate this, and it's really slowing me

Re: chameleon makes pyramid unfriendly

2011-06-22 Thread 马叶
mako ,l like it 2011/6/22 Mengu whalb...@gmail.com this is why i use mako. mako ftw. On Jun 21, 2:16 pm, Chris Withers ch...@simplistix.co.uk wrote: Hi All, I just wanted to check if this is just me. I'm working with Pyramid 1.0 and loving it, except when it comes to writing

Re: chameleon makes pyramid unfriendly

2011-06-22 Thread Parnell Springmeyer
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Adding to the discussion... I also use Mako - it's very easy, the Pyramid developers have a mako renderer built in already, you just have to specify the templates directory. Mengu whalb...@gmail.com writes: this is why i use mako. mako ftw. On

Re: chameleon makes pyramid unfriendly

2011-06-22 Thread Michael Merickel
On Tue, Jun 21, 2011 at 9:00 AM, Chris Withers ch...@simplistix.co.ukwrote: 1.x, I don't think Pyramid works with 2.x... The reason chameleon doesn't work with 2.x is because you're using deform, which is currently not compatible with 2.x (at least it's locked to 1.3). Pyramid isn't the issue

Deform and Mako

2011-06-22 Thread Matt Feifarek
Is there a community project to port the templates in Deform to Mako? If so, is there a repo anywhere, and maybe I can help? I'm liking deform mostly, but I know that I will need to customize some of the layout a bit... and I'm a mako guy. It seems that if you're in for a penny, you're in for a

Looking for advice styling deform forms

2011-06-22 Thread Matt Feifarek
Hi. I'm working with deform. I'm resisting the urge to make my own templates, as my needs are not all that custom; I simply want to do simple things like having radio choices side-by-side rather than stacked up, or having some fields on the left column, some in the right. So, I'm looking at the

Re: Looking for advice styling deform forms

2011-06-22 Thread Robert Jackiewicz
Hi Matt, I've had similar problems with formatting the output of deform. When it comes to just changing the styles of the widgets of deform, the task is pretty easy. Take a look at http://docs.pylonsproject.org/projects/deform/dev/widget.html#widget-templates for information about

Re: chameleon makes pyramid unfriendly

2011-06-22 Thread Raviteja
Use mako -- Raviteja http://about.me/raviteja On Tue, Jun 21, 2011 at 4:46 PM, Chris Withers ch...@simplistix.co.ukwrote: Hi All, I just wanted to check if this is just me. I'm working with Pyramid 1.0 and loving it, except when it comes to writing templates. I'm finding I hate this, and

Re: webhelpers SCRIPT_NAME

2011-06-22 Thread Thomi Richards
Hi, On 21 June 2011 14:41, Mike Orr sluggos...@gmail.com wrote: ``url_for`` is deprecated.  Are you maintaining an old Pylons 0.9.7 application? ``pylons.url`` (or ``url`` in templates) was introduced in Pylons 0.9.7, and url_for was retired in Pylons 1. Yes I am - I have plans to upgrade to

Feedback to user

2011-06-22 Thread RVince
Perhaps a stupid question with an obvious answer -- my apologies in advance if that is the case. I have inherited a pylons project, wherein extremely lengthy calls to the controller are involved (i.e. typically, when a controller method is invoked, it may rin for as long as 8 hours, over millions

lengthy controller routines

2011-06-22 Thread RVince
Suppose I have a lengthy controller routine, lets say before it gets to rendering a page, the user invokes a different controller routine. Will the first controller routine be allowed to finish? Or does it abort, in favor of the latest controller routine. I suppose I am asking if multiple

Re: webhelpers SCRIPT_NAME

2011-06-22 Thread Michael Merickel
On Wed, Jun 22, 2011 at 2:24 PM, Thomi Richards tho...@gmail.com wrote: Yes I am - I have plans to upgrade to Pylons 1.0, and then to pyramid, but I'm waiting for someone to make an ubuntu package for pyramid, or update the pylons package in ubuntu 11.04 to a later version of pylons. I

Re: Feedback to user

2011-06-22 Thread John Harrison
On Jun 21, 2011, at 8:32 AM, RVince wrote: Perhaps a stupid question with an obvious answer -- my apologies in advance if that is the case. I have inherited a pylons project, wherein extremely lengthy calls to the controller are involved (i.e. typically, when a controller method is invoked,

Re: lengthy controller routines

2011-06-22 Thread Michael Merickel
On Wed, Jun 22, 2011 at 2:42 PM, RVince rvinc...@gmail.com wrote: Will the first controller routine be allowed to finish? Or does it abort, in favor of the latest controller routine. I suppose I am asking if multiple controller routines can be executed by the same client simulataneoulsy?

DEFORM: A SelectWidget that depends on another SelectWidget

2011-06-22 Thread Richie Ward
I have a SelectWidget (dropdown list) which has a few items in it. When a user clicks an item from that list, I need to load up related items in a second SelectWidget below it. This could be done with Ajax or other means. I looked through the demo site and I was surprised to find no example of

Chameleon have template inheritance like mako?

2011-06-22 Thread Bruce Wade
I have used Mako with pylons, now I am trying to rap my head around chameleon for pyramid. How do we keep our templates DRY using chameleon? Does it support template inheritance? (Where you can have a base file and just include it into the other template files) -- -- Regards, Bruce Wade

Re: Chameleon have template inheritance like mako?

2011-06-22 Thread Chris McDonough
On Wed, 2011-06-22 at 14:13 -0700, Bruce Wade wrote: I have used Mako with pylons, now I am trying to rap my head around chameleon for pyramid. How do we keep our templates DRY using chameleon? Does it support template inheritance? (Where you can have a base file and just include it into the

Re: Chameleon have template inheritance like mako?

2011-06-22 Thread Bruce Wade
Is chameleon faster then mako? Is that why it is the default with pyramid? On Wed, Jun 22, 2011 at 2:19 PM, Joe Dallago jd.dall...@gmail.com wrote: You can use Mako with Pyramid, http://docs.pylonsproject.org/projects/pyramid/1.0/narr/templates.html#templating-with-mako-templates . You can

Re: Chameleon have template inheritance like mako?

2011-06-22 Thread Chris McDonough
On Wed, 2011-06-22 at 14:21 -0700, Bruce Wade wrote: Is chameleon faster then mako? Is that why it is the default with pyramid? Not really. There can only be one default; we chose Chameleon in the built-in scaffolds for hysterical documentation raisins. If you want a full-on Pylons experience

Re: Chameleon have template inheritance like mako?

2011-06-22 Thread Bruce Wade
Ok I will check out Akhet thanks. On Wed, Jun 22, 2011 at 2:23 PM, Chris McDonough chr...@plope.com wrote: On Wed, 2011-06-22 at 14:21 -0700, Bruce Wade wrote: Is chameleon faster then mako? Is that why it is the default with pyramid? Not really. There can only be one default; we chose

Re: Chameleon have template inheritance like mako?

2011-06-22 Thread Michael Merickel
There's a bug in the newly released pyramid 1.1 alpha 1. Temporary solution until 1.1 alpha 2 is out: easy_install pyramid==1.0 -- Michael -- You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email to

Re: Chameleon have template inheritance like mako?

2011-06-22 Thread Bruce Wade
That works thanks On Wed, Jun 22, 2011 at 3:37 PM, Michael Merickel mmeri...@gmail.comwrote: There's a bug in the newly released pyramid 1.1 alpha 1. Temporary solution until 1.1 alpha 2 is out: easy_install pyramid==1.0 -- Michael -- You received this message because you are

Pyramid 1.1a2 released

2011-06-22 Thread Chris McDonough
The second alpha of Pyramid 1.1 (1.1a2) has been released. Here are the changes: Bug Fixes - - 1.1a1 broke Akhet by not providing a backwards compatibility import shim for ``pyramid.paster.PyramidTemplate``. Now one has been added, although a deprecation warning is emitted when

Re: Chameleon have template inheritance like mako?

2011-06-22 Thread Michael Merickel
FWIW alpha 2 is now released, so you can continue to use 1.1 if you would like. -- Michael -- You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email to pylons-discuss@googlegroups.com. To unsubscribe from this group,

Re: Pyramid 1.1a2 released

2011-06-22 Thread Joe Dallago
So I asked a few questions in #python, and there seemed to be some disagreement with trying to support 2.5-3.2 all in one code base without the use of 2to3 and 3to2. I wanted to know how you felt about it. Some of their main points were that it makes the code quite messy for both versions, and a

Re: Pyramid 1.1a2 released

2011-06-22 Thread Jayd3e
Did not mean to send that reply to pylons-discuss, doesn't really concern everyone XD. Sorry. On Jun 22, 11:06 pm, Joe Dallago jd.dall...@gmail.com wrote: So I asked a few questions in #python, and there seemed to be some disagreement with trying to support 2.5-3.2 all in one code base