Carsten, thank you for your feedback!
I've tried to overload the method (not override, as you suggested
because I'd like to keep the core functionality such as gathering and
evaluating the include file content) but seems to me that I'm not that good
at Python yet, thus I wasn't able to find any helpful references on "Python
overloading" on Google for that matter. Can someone send me some clue on how
to do it?
Just another question; I'm currently decoding all of my values directly into
the interfaces (**.html* files) like the following snippet:
> *... *
*<div class="statistics">*
>
> * <h4 class="highlight">${c.eha.name.decode('utf-8')}</h4>*
>
> *...*
Is there a way for me to set this configuration to the entire
application? I've tried to set "*config [ 'pylons.response_options' ][
'charset' ] = 'utf-8*'" into the environment.py file but nothing
hapenned....
If I don't decode it directly into the .html file I get the following error:
⇝ UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 6:
ordinal not in range(128)
Thank you!
*Felipe Teixeira *
Microsoft Certified Technology Specialist - MCTS
Application Development Foundation MS
Web -based Client Development
Mobile: +55 (11) 8021-6457
http://iguessimnotcrazy.wordpress.com/
http://twitter.com/felipemaynard
2010/6/17 Carsten Klein <[email protected]>
>
> > The thing is, I'm using Pylons with (obviously) Genshi templates but
> > I can't figure out if there's a way to add a remote file as include to
> > my documents... I'd like to do something like this:
> > <xi:include href="htt://www.othersite.com/Header.htm" />
>
> You could always implement you own TemplateLoader and override the load()
> function. That way you can also include from URLs.
>
> See genshi.template.loader.TemplateLoader for more information.
>
> --
>
> Carsten Klein
> Mobil +491 577 666 256 5
> [email protected]
>
> axn software UG (haftungsbeschränkt)
> Wipperfürther Str. 278, 51515 Kürten
>
> Geschäftsführung Carsten Klein
> HRB 66732, Gerichtsstand Amtsgericht Bergisch Gladbach
> Steuernr. 204/5740/0835, USt-IdNr. DE 266 540 939
>
> Telefon +492 268 801 285, Telefax +492 268 801 285
> www.axn-software.de, [email protected]
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Genshi" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<genshi%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/genshi?hl=en.
>
>
--
You received this message because you are subscribed to the Google Groups
"pylons-discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/pylons-discuss?hl=en.