more tests for comments viewlet.

svn path=/plone.app.discussion/trunk/; revision=33217
This commit is contained in:
Timo Stollenwerk
2010-01-18 11:38:57 +00:00
parent ca0aecd170
commit 1bfff5255a
2 changed files with 34 additions and 6 deletions
+2 -2
View File
@@ -293,13 +293,13 @@ class CommentsViewlet(ViewletBase, layout.FormWrapper):
else:
return published_replies()
def get_commenter_home_url(self, username):
def get_commenter_home_url(self, username=None):
if username is None:
return None
else:
return "%s/author/%s" % (self.context.portal_url(), username)
def get_commenter_portrait(self, username):
def get_commenter_portrait(self, username=None):
if username is None:
# return the default user image if no username is given