diff libervia_server/blog.py @ 433:bbdbee25123a

import constants.Const as C (according to the coding rules)
author souliane <souliane@mailoo.org>
date Thu, 01 May 2014 11:29:09 +0200
parents 35a43d0dc032
children 73f767a9ac2f
line wrap: on
line diff
--- a/libervia_server/blog.py	Sun Apr 27 18:53:37 2014 +0200
+++ b/libervia_server/blog.py	Thu May 01 11:29:09 2014 +0200
@@ -25,7 +25,7 @@
 from twisted.web.resource import Resource
 from twisted.words.protocols.jabber.jid import JID
 from datetime import datetime
-from constants import Const
+from constants import Const as C
 import uuid
 import re
 
@@ -84,7 +84,7 @@
                         self.host.bridge.getLastGroupBlogs(pub_jid.userhost(), 10, 'libervia', d2.callback, d2.errback)
 
                 d1 = defer.Deferred()
-                JID(self.host.bridge.asyncGetParamA('JabberID', 'Connection', 'value', Const.SERVER_SECURITY_LIMIT, prof_found, callback=d1.callback, errback=d1.errback))
+                JID(self.host.bridge.asyncGetParamA('JabberID', 'Connection', 'value', C.SERVER_SECURITY_LIMIT, prof_found, callback=d1.callback, errback=d1.errback))
                 d1.addCallbacks(got_jid)
 
                 return server.NOT_DONE_YET
@@ -103,7 +103,7 @@
                 style = {}
             self.__render_html_blog(mblog_data, style, request, profile)
         eb = lambda failure: self.render_error_blog(failure, request, profile)
-        self.host.bridge.asyncGetParamA('Blog banner', 'Misc', 'value', Const.SERVER_SECURITY_LIMIT, profile, callback=check_banner, errback=eb)
+        self.host.bridge.asyncGetParamA('Blog banner', 'Misc', 'value', C.SERVER_SECURITY_LIMIT, profile, callback=check_banner, errback=eb)
 
     def __render_html_blog(self, mblog_data, style, request, profile):
         """Actually render the static blog. If mblog_data is a list of dict, we are missing