On Wed, Mar 4, 2009 at 1:29 PM, Christian Boos <[email protected]> wrote:
>
> Olemis Lang wrote:
>> ...
>> For devs :
>>   -  You could use FirstTracLinkFormatter [2]_ (... or a better
>> solution ...) to easily expand the possibilities of your macros
>> accepting TracLinks ...
>>   - If people like this and find it helpful, it could be included in
>> Trac itself (... either in utils.py or formatter.py, or ... ;) so that
>> it be at hand for everybody to be used ... ;)
>>
>>
>
> Maybe you missed the trac.wiki.formatter's LinkFormatter and the
> extract_link() function?
> It does a "match" though so it can only be used when the argument you're
> working with is supposed to be /only/ a TracLink and not start with some
> other arbitrary wiki text.
>

Well ... I tried all the formatters in there (believe me ...), but for
some reason I didnt get them to work as I needed (now dont remember
why). I am really resilient to reimplementing the wheel ... Anyway ...
I'll try to do it once again using this formatter (... I insist, I
already did it but now dont remember why I didnt follow this way ;)
After doing this one of two things will happen :

- I remember why I didnt use it before ... and I let you know ... then
I follow my own way ...

- I switch back to using trac.wiki.formatter's LinkFormatter class ...
in order to be consistent with your (std) implementation ... you are
much better programmers that I am ... I mean it ;) ... and I love code
reuse too.

Thnx ... :)

-- 
Regards,

Olemis.

Blog ES: http://simelo-es.blogspot.com/
Blog EN: http://simelo-en.blogspot.com/

Featured article:
No me gustan los templates de Django ...

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac 
Users" 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/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to