# HG changeset patch # User Sandrine Ribeau <sandrine.ribeau@logilab.fr> # Date 1254850574 25200 # Tue Oct 06 10:36:14 2009 -0700 # Node ID 4cf8c1fd9d0843ef80cbdb54a870ad6e877c28b1 # Parent 8db000e5878dc27ee975023978ddfd192ad2ab12 [views] fix formatting diff --git a/views.py b/views.py --- a/views.py +++ b/views.py @@ -121,7 +121,7 @@ url = self.req.build_ajax_replace_url( 'comment%sHolder' % entity.eid, rql_for_eid(entity.eid), 'inlinecomment') - if req.cnx.anonymous_connection: + if self.req.cnx.anonymous_connection: self.w(u' | <span class="replyto">%s <a href="%s">%s</a></span>' % (_login_register_link(self.req), xml_escape(url), self.req._(replyaction.title))) @@ -242,7 +242,7 @@ #if req.use_fckeditor() and req.property_value('ui.default-text-format') == 'text/html': # req.fckeditor_config() if req.cnx.anonymous_connection: - self.w(u'%s' % (_login_register_link(req), req._(u'to comment'))) + self.w(u'%s %s' % (_login_register_link(req), req._(u'to comment'))) self.w(u'<div id="comment%sHolder"></div>' % eid) if rset.rowcount: self.w(u'<ul class="comment">')