17 messages in com.googlegroups.pylons-discussRe: pylons, genshi and xml| From | Sent On | Attachments |
|---|---|---|
| Matthew Dennis | 11 Feb 2007 16:47 | |
| Bob Ippolito | 11 Feb 2007 17:25 | |
| Damjan | 12 Feb 2007 15:21 | |
| Matt Good | 13 Feb 2007 14:11 | |
| Ben Bangert | 13 Feb 2007 16:16 | |
| Ben Bangert | 13 Feb 2007 16:59 | |
| Shannon -jj Behrens | 14 Feb 2007 13:53 | |
| Bob Ippolito | 14 Feb 2007 14:01 | |
| Ben Bangert | 14 Feb 2007 14:31 | |
| Shannon -jj Behrens | 14 Feb 2007 14:36 | |
| Bob Ippolito | 14 Feb 2007 14:38 | |
| Bob Ippolito | 14 Feb 2007 14:40 | |
| Cliff Wells | 16 Feb 2007 21:05 | |
| Ben Bangert | 17 Feb 2007 12:38 | |
| Bob Ippolito | 17 Feb 2007 13:14 | |
| Cliff Wells | 17 Feb 2007 19:23 | |
| Cliff Wells | 17 Feb 2007 19:25 |
| Subject: | Re: pylons, genshi and xml![]() |
|---|---|
| From: | Bob Ippolito (bob-...@public.gmane.org) |
| Date: | 02/17/2007 01:14:50 PM |
| List: | com.googlegroups.pylons-discuss |
On 2/17/07, Ben Bangert <ben-...@public.gmane.org> wrote:
On Feb 16, 2007, at 9:05 PM, Cliff Wells wrote:
Actually, the "TG spec" is completely superfluous. You can use "/" rather than "." and it will work just fine. I just removed support for dotted path notation from Breve as it causes problems (e.g. paths with dots in them) and provides nothing in return. If you don't have a large userbase of people expecting dot notation to work, I'd get rid of it now before you do.
I tried to remove the '.' handling stuff from my Buffet.... no luck. Here's the logic performed for all engines except Myghty/Mako: if not engine_name.startswith('pylons') and not \ engine_name.startswith('mako'): full_path = os.path.join(engine_config['root'], template_name) full_path = full_path.replace(os.path.sep, '.').lstrip('.')
If I remove that, the Kid test fails. Apparently it needs the '.' replaced with a '/' and needs the engine's root added. This logic is carried over from the stand-alone Buffet package. I'm not entirely sure why Kid and the other engines need this logic performed to handle the dot notation but they seem to require it.
If someone else who knows more about the Buffet/Template plugin stuff could shed some light on this, I'm all ears. :)
It's likely that Kid requires this because it compiles templates into .pyc files and loads them with the normal import machinery? I haven't used Kid in a while, but I the last time I used it I scratched my head for at least *three months* on and off trying to figure out why my pudge templates were rendering incorrectly. It turns out that stale .pyc files from a previous version of Kid were being used, and that Kid had no preventative measures for those kinds of things.
-bob




