diff server_side/blog.py @ 317:bbadd490e63c

misc: gather the constants in a single file, as it is done for other frontends
author souliane <souliane@mailoo.org>
date Fri, 03 Jan 2014 14:14:34 +0100
parents 52b1afd7ac3f
children
line wrap: on
line diff
--- a/server_side/blog.py	Fri Jan 03 13:33:44 2014 +0100
+++ b/server_side/blog.py	Fri Jan 03 14:14:34 2014 +0100
@@ -26,9 +26,7 @@
 from twisted.web.resource import Resource
 from twisted.words.protocols.jabber.jid import JID
 from datetime import datetime
-
-# Security limit for Libervia server_side
-SECURITY_LIMIT = -1
+from constants import Const
 
 
 class MicroBlog(Resource):
@@ -68,7 +66,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', SECURITY_LIMIT, prof_found, callback=d1.callback, errback=d1.errback))
+                JID(self.host.bridge.asyncGetParamA('JabberID', 'Connection', 'value', Const.SERVER_SECURITY_LIMIT, prof_found, callback=d1.callback, errback=d1.errback))
                 d1.addCallbacks(got_jid)
 
                 return server.NOT_DONE_YET