comparison libervia_server/__init__.py @ 417:2bd609d7dd65

server_side: use XDG recommended paths as the defaults
author souliane <souliane@mailoo.org>
date Sun, 23 Mar 2014 23:05:23 +0100
parents fadbba1d793f
children 39b07289ff42
comparison
equal deleted inserted replaced
416:e9bc7854bce6 417:2bd609d7dd65
1042 for signal_name in ['personalEvent', 'roomJoined', 'roomUserJoined', 'roomUserLeft', 'tarotGameStarted', 'tarotGameNew', 'tarotGameChooseContrat', 1042 for signal_name in ['personalEvent', 'roomJoined', 'roomUserJoined', 'roomUserLeft', 'tarotGameStarted', 'tarotGameNew', 'tarotGameChooseContrat',
1043 'tarotGameShowCards', 'tarotGameInvalidCards', 'tarotGameCardsPlayed', 'tarotGameYourTurn', 'tarotGameScore', 'tarotGamePlayers', 1043 'tarotGameShowCards', 'tarotGameInvalidCards', 'tarotGameCardsPlayed', 'tarotGameYourTurn', 'tarotGameScore', 'tarotGamePlayers',
1044 'radiocolStarted', 'radiocolPreload', 'radiocolPlay', 'radiocolNoUpload', 'radiocolUploadOk', 'radiocolSongRejected', 'radiocolPlayers', 1044 'radiocolStarted', 'radiocolPreload', 'radiocolPlay', 'radiocolNoUpload', 'radiocolUploadOk', 'radiocolSongRejected', 'radiocolPlayers',
1045 'roomLeft', 'roomUserChangedNick', 'chatStateReceived']: 1045 'roomLeft', 'roomUserChangedNick', 'chatStateReceived']:
1046 self.bridge.register(signal_name, self.signal_handler.getGenericCb(signal_name), "plugin") 1046 self.bridge.register(signal_name, self.signal_handler.getGenericCb(signal_name), "plugin")
1047 self.media_dir = self.bridge.getConfig('','media_dir') 1047 self.media_dir = self.bridge.getConfig('', 'media_dir')
1048 self.local_dir = self.bridge.getConfig('','local_dir') 1048 self.local_dir = self.bridge.getConfig('', 'local_dir')
1049 root.putChild('', Redirect('libervia.html')) 1049 root.putChild('', Redirect('libervia.html'))
1050 root.putChild('json_signal_api', self.signal_handler) 1050 root.putChild('json_signal_api', self.signal_handler)
1051 root.putChild('json_api', MethodHandler(self)) 1051 root.putChild('json_api', MethodHandler(self))
1052 root.putChild('register_api', _register) 1052 root.putChild('register_api', _register)
1053 root.putChild('upload_radiocol', _upload_radiocol) 1053 root.putChild('upload_radiocol', _upload_radiocol)