fix signature URL

This commit is contained in:
Romain Bignon 2011-08-25 14:09:15 +02:00
commit 3254514423
2 changed files with 7 additions and 1 deletions

View file

@ -117,7 +117,7 @@ class PhpBBBackend(BaseBackend, ICapMessages):
signature = post.signature
if signature:
signature += '<br />'
signature += 'URL: %s' % id2url('%s.%s' % (thread.id, post.id))
signature += 'URL: %s/%s' % (self.browser.absurl(id2url('%s.%s' % (thread.id, post.id))))
return Message(thread=thread,
id=post.id,
title=post.title,

View file

@ -48,6 +48,9 @@ class PhpBB(BaseBrowser):
self.BASEPATH = v.path[:v.path.rfind('/')]
BaseBrowser.__init__(self, *args, **kwargs)
def absurl(self, rel):
return BaseBrowser.absurl(self, '%s/%s' % (self.BASEPATH, rel))
def home(self):
self.location(self.url)
@ -140,3 +143,6 @@ class PhpBB(BaseBrowser):
post.parent = self.page.get_last_post_id()
return post
def post_answer(self, topic, title, content):
pass