Add support for https in the id2url decorator

This commit is contained in:
Laurent Bachelier 2011-04-21 00:43:45 +02:00 committed by Romain Bignon
commit 31b4892c48

View file

@ -35,7 +35,7 @@ def id2url(id2url):
def wrapper(func):
def inner(self, *args, **kwargs):
arg = unicode(args[0])
if arg.startswith('http://'):
if arg.startswith('http://') or arg.startswith('https://'):
if self.DOMAIN in arg:
url = arg
else: