summaryrefslogtreecommitdiff
path: root/quoins/controllers.py
diff options
context:
space:
mode:
Diffstat (limited to 'quoins/controllers.py')
-rw-r--r--quoins/controllers.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/quoins/controllers.py b/quoins/controllers.py
index d22cd51..5605c61 100644
--- a/quoins/controllers.py
+++ b/quoins/controllers.py
@@ -352,7 +352,8 @@ class BlogController(TGController):
352 return 'http://%s%s%s'%(tg.config.get('server.webhost'), port, u) 352 return 'http://%s%s%s'%(tg.config.get('server.webhost'), port, u)
353 353
354 def comment_author_url(self, comment): 354 def comment_author_url(self, comment):
355 if comment.author and (not comment.url): 355 if (hasattr(comment, 'author') and comment.author
356 and (not comment.url)):
356 return self.url(comment.author) 357 return self.url(comment.author)
357 return comment.url 358 return comment.url
358 359
@@ -398,10 +399,10 @@ Comment:
398 t.start() 399 t.start()
399 400
400 def __init__(self, *args, **kw): 401 def __init__(self, *args, **kw):
401 super(BlogController, self).__init__(*args, **kw)
402 self.path = kw.pop('path', '/') 402 self.path = kw.pop('path', '/')
403 self.post_paginate = kw.pop('paginate', 5) 403 self.post_paginate = kw.pop('paginate', 5)
404 self.feed.blog_controller = self 404 self.feed.blog_controller = self
405 super(BlogController, self).__init__(*args, **kw)
405 406
406 @expose(template="genshi:quoinstemplates.index") 407 @expose(template="genshi:quoinstemplates.index")
407 def index(self, start=0): 408 def index(self, start=0):