예제 #1
0
 def _poll(self, dbname, channels, last, options):
     # update the user presence
     if request.session.uid and 'bus_inactivity' in options:
         request.env['bus.presence'].update(options.get('bus_inactivity'))
     request.cr.close()
     request._cr = None
     return dispatch.poll(dbname, channels, last, options)
예제 #2
0
파일: main.py 프로젝트: Antiun/odoo
 def _poll(self, dbname, channels, last, options):
     # update the user presence
     if request.session.uid and 'im_presence' in options:
         request.env['bus.presence'].update(options.get('im_presence'))
     request.cr.close()
     request._cr = None
     return dispatch.poll(dbname, channels, last)
예제 #3
0
파일: main.py 프로젝트: zhlgh603/odoo
 def _poll(self, dbname, channels, last, options):
     channels.append((request.db, 'bus.presence'))
     # update the user presence
     if request.session.uid and 'im_presence' in options:
         request.env['bus.presence'].update(options.get('im_presence'))
     request.cr.close()
     request._cr = None
     return dispatch.poll(dbname, channels, last)
예제 #4
0
파일: main.py 프로젝트: CodeFirstLab/odoo
 def _poll(self, dbname, channels, last, options):
     request.cr.close()
     request._cr = None
     return dispatch.poll(dbname, channels, last)
예제 #5
0
 def _poll(self, dbname, channels, last, options):
     request.cr.close()
     request._cr = None
     return dispatch.poll(dbname, channels, last)