1.1 --- a/imiptools/content.py Thu Mar 05 22:27:32 2015 +0100
1.2 +++ b/imiptools/content.py Thu Mar 05 23:58:56 2015 +0100
1.3 @@ -92,8 +92,11 @@
1.4 url_base = MANAGER_URL or "http://%s/" % gethostname()
1.5 return "%s/%s" % (url_base.rstrip("/"), MANAGER_PATH.lstrip("/"))
1.6
1.7 -def get_object_url(uid):
1.8 - return "%s/%s" % (get_manager_url().rstrip("/"), uid)
1.9 +def get_object_url(uid, recurrenceid=None):
1.10 + return "%s/%s%s" % (
1.11 + get_manager_url().rstrip("/"), uid,
1.12 + recurrenceid and "/%s" % recurrenceid or ""
1.13 + )
1.14
1.15 class Handler:
1.16
1.17 @@ -142,7 +145,7 @@
1.18 if link:
1.19 texts.append("If your mail program cannot handle this "
1.20 "message, you may view the details here:\n\n%s" %
1.21 - get_object_url(self.uid))
1.22 + get_object_url(self.uid, self.recurrenceid))
1.23
1.24 return self.add_result(None, None, MIMEText("\n".join(texts)))
1.25