Mercurial > libervia-web
comparison src/browser/libervia_main.py @ 871:54f6c5b86a87
server, browser: new "allow_registration" option to enable/disable new account registration through Liberia interface
author | Goffi <goffi@goffi.org> |
---|---|
date | Mon, 29 Feb 2016 12:40:14 +0100 |
parents | fa7703642c0e |
children | e8b133b77aa4 |
comparison
equal
deleted
inserted
replaced
870:a05f3b24f2ec | 871:54f6c5b86a87 |
---|---|
323 | 323 |
324 def _getSessionMetadataCB(self, metadata): | 324 def _getSessionMetadataCB(self, metadata): |
325 if not metadata['plugged']: | 325 if not metadata['plugged']: |
326 warning = metadata.get("warning") | 326 warning = metadata.get("warning") |
327 self.panel.setStyleAttribute("opacity", "0.25") # set background transparency | 327 self.panel.setStyleAttribute("opacity", "0.25") # set background transparency |
328 self._register_box = register.RegisterBox(self.logged) | 328 self._register_box = register.RegisterBox(self.logged, metadata) |
329 self._register_box.centerBox() | 329 self._register_box.centerBox() |
330 self._register_box.show() | 330 self._register_box.show() |
331 if warning: | 331 if warning: |
332 dialog.InfoDialog(_('Security warning'), warning).show() | 332 dialog.InfoDialog(_('Security warning'), warning).show() |
333 self._tryAutoConnect(skip_validation=not not warning) | 333 self._tryAutoConnect(skip_validation=not not warning) |