[Trac] Genshi UnicodeEncodeError

2010-06-23 Thread Rodrik
UnicodeEncodeError error while rendering template (unknown template location) I also should mention that it only occurs with the 0.11.7 version but not with the 0.11.7.1dev-r0, for instance. What should I do to solve the problem? Regards, Rodrik. -- You received this message because you are subscribed

[Trac] matching unicode in expand_macro

2010-06-13 Thread Rodrik
Hi there, I'm trying to write a macro using expand_macro and need to find all unicode mark quotations with regular expressions. My problem is that any unicode letters are simply not matched, as if they weren't there. (The code works, if not embedded as macro.) Any ideas? Thanks for the help!

Re: [Trac] Processing texts permanently with macros

2010-06-08 Thread Rodrik
Remy Blank remy.bl...@... writes: Rodrik wrote: Yeah, it's very intuitive and I actually tried this before you said, but the page is not changed. Maybe I'm doing something wrong. I forgot to mention that this only works with 0.12. In 0.11.x, that function isn't called at all. Ok

Re: [Trac] Processing texts permanently with macros

2010-06-06 Thread Rodrik
Remy Blank remy.bl...@... writes: Rodrik wrote: What I need is something that works like a macro (or even a macro, if possible), but processes the text permanently, not only when instantiated. If this processing should take place once when saving the wiki page, you could do

Re: [Trac] Processing texts permanently with macros

2010-06-06 Thread Rodrik
Remy Blank remy.bl...@... writes: Rodrik wrote: Where exactly can I change the wiki text? With prepare_wiki_page()? Tried it modifying fields['text'] without success. No, in validate_wiki_page(). You get the populated page object, and you can mutate it as you want. In this case

[Trac] Processing texts permanently with macros

2010-06-05 Thread Rodrik
Hi! When creating a macro to process some text, - using expand_macro() - how can I modify the text permanently, i.e. that even if {{{#!macro}}} is deleted, the modifications made by this macro won't get lost? Regards, Rodrik -- You received this message because you are subscribed

Re: [Trac] Processing texts permanently with macros

2010-06-05 Thread Rodrik
Itamar O itamar...@... writes: On Sat, Jun 5, 2010 at 8:43 PM, Rodrik juliocezar.rodrig...@... wrote: Hi! When creating a macro to process some text, - using expand_macro() - how can I modify the text permanently, i.e. that even if {{{#!macro}}} is deleted, the modifications

[Trac] Processing text at editing time

2010-05-26 Thread Rodrik
! Rodrik -- You received this message because you are subscribed to the Google Groups Trac Users group. To post to this group, send email to trac-us...@googlegroups.com. To unsubscribe from this group, send email to trac-users+unsubscr...@googlegroups.com. For more options, visit this group

[Trac] Button instead of Macro Processor

2010-05-25 Thread Rodrik
, I want to have the text processed without the intern {{{ }}} being literally shown. Until now I'm using something like this to show the wiki content: return 'pre class=wiki%s/pre' %text I would be really thankful, if someone could help me! Best greetings, Rodrik. -- You received this message

Re: [Trac] Button instead of Macro Processor

2010-05-25 Thread Rodrik
...@... [mailto:trac-us...@...] On Behalf Of Rodrik Sent: Tuesday, May 25, 2010 10:39 AM To: trac-us...@... Subject: [Trac] Button instead of Macro Processor Hi there! I'm creating a macro for Trac which should check, if parenthesis are correctly opened and closed. Until now, I

Re: [Trac] Creating a syntax checker plugin

2010-05-19 Thread Rodrik
? Thanks in advance! Regards, Rodrik. You should start with this . Please ask further questions once you have more specific doubts .. [1] WikiProcessors – The Trac Project!         (http://trac.edgewall.org/wiki/WikiProcessors) .. [2] Trac Macros         (http://trac.edgewall.org/wiki

[Trac] Creating a syntax checker plugin

2010-05-18 Thread Rodrik
Hello guys, I'm trying to create my very first plugin for Trac and after read most part of the documentation, I'm still not able to get started with it. I need to create a plugin, which simply checks the syntax - if all []'s and ()'s are well-formed - of some text inserted between {{{}}} I