~openerp/openobject-server/web-dashboard

« back to all changes in this revision

Viewing changes to bin/service/web_services.py

  • Committer: HDA(OpenERP)
  • Date: 2010-03-03 07:22:55 UTC
  • mfrom: (2089.1.16)
  • Revision ID: hda@tinyerp.com-20100303072255-5opkt86b0kqlagj9
Merged

Show diffs side-by-side

added added

removed removed

Lines of Context:
383
383
                auth.logout(params[1])
384
384
            logger.notifyChannel("web-service", netsvc.LOG_INFO,'Logout %s from database %s'%(login,db))
385
385
            return True
386
 
        elif method in ['about', 'timezone_get', 'get_server_environment', 'login_message', 'get_stats' ]:
 
386
        elif method in ['about', 'timezone_get', 'get_server_environment',
 
387
                        'login_message','get_stats', 'check_connectivity']:
387
388
            pass
388
389
        elif method in ['get_available_updates', 'get_migration_scripts', 'set_loglevel']:
389
390
            passwd = params[0]
564
565
        res = "OpenERP server: %d threads\n" % threading.active_count()
565
566
        res += netsvc.Server.allStats()
566
567
        return res
567
 
    def check_connectivity(self):
 
568
 
 
569
    def exp_check_connectivity(self):
568
570
        return bool(sql_db.db_connect('template1'))
569
571
 
570
572
common()