Mercurial > libervia-web
comparison libervia_server/blog.py @ 446:c406e46fe9c0
server_side: update the connection mechanism to handle profile passwords
author | souliane <souliane@mailoo.org> |
---|---|
date | Wed, 07 May 2014 19:46:58 +0200 |
parents | 63017904c4d4 |
children |
comparison
equal
deleted
inserted
replaced
445:c0ff91cabea0 | 446:c406e46fe9c0 |
---|---|
46 """ | 46 """ |
47 | 47 |
48 def __init__(self, host): | 48 def __init__(self, host): |
49 self.host = host | 49 self.host = host |
50 Resource.__init__(self) | 50 Resource.__init__(self) |
51 # FIXME: this can be move to the beginning of Libervia.startService to avoid an initialization issue | |
52 if not host.bridge.isConnected(C.SERVICE_PROFILE): | |
53 host.bridge.connect(C.SERVICE_PROFILE) | |
54 | 51 |
55 def render_GET(self, request): | 52 def render_GET(self, request): |
56 if not request.postpath: | 53 if not request.postpath: |
57 return MicroBlog.ERROR_TEMPLATE % {'root': '', | 54 return MicroBlog.ERROR_TEMPLATE % {'root': '', |
58 'message': "You must indicate a nickname"} | 55 'message': "You must indicate a nickname"} |