Mercurial > public > sg101
diff smiley/__init__.py @ 792:7429c98c8ece
Issue #71: use relative URLs for smileys on the web and absolute for RSS.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Mon, 26 May 2014 14:59:55 -0500 |
parents | 0729c73d5761 |
children | 98d2388b6bb2 |
line wrap: on
line diff
--- a/smiley/__init__.py Fri May 23 21:52:41 2014 -0500 +++ b/smiley/__init__.py Mon May 26 14:59:55 2014 -0500 @@ -43,8 +43,9 @@ A class to "smilify" text by replacing text with Markdown image syntax for smiley images. """ - def __init__(self): - self.regexes = Smiley.objects.get_smiley_regexes() + def __init__(self, relative_urls=True): + self.regexes = Smiley.objects.get_smiley_regexes( + relative_urls=relative_urls) def convert(self, s): """