Roundup Tracker - Issues

Message4100

Author ezio.melotti
Recipients ezio.melotti
Date 2010-07-23.16:35:06
Message-id <1279902909.63.0.573654327649.issue2550659@psf.upfronthosting.co.za>
In-reply-to
In templating.py the StringHTMLProperty has an hyperlinked() method that
linkifies URLs, emails and items, but there's no way to linkify only
URLs or only emails or any other intermediate combination.
The attached patch:
 1) breaks the content of _hyper_repl and changes it to call 3 different
methods (for URLs, emails, and items).
 2) adds a register_propclass function that allow to register other classes.
In this way is possible to subclass StringHTMLProperty, override any of
the 3 methods, and use the new subclass instead of StringHTMLProperty.
History
Date User Action Args
2010-07-23 16:35:09ezio.melottisetrecipients: + ezio.melotti
2010-07-23 16:35:09ezio.melottisetmessageid: <1279902909.63.0.573654327649.issue2550659@psf.upfronthosting.co.za>
2010-07-23 16:35:09ezio.melottilinkissue2550659 messages
2010-07-23 16:35:08ezio.melotticreate