Esempio n. 1
0
 def get_single_number_reach(self, fkremotedestination):
     sql = 'SELECT enablesinglenumberreach FROM remotedestinationdynamic WHERE fkremotedestination = "%(fkremotedestination)s"'
     return self._genresult(self._exec(sql % dict(fkremotedestination=utils.uuid(fkremotedestination))))
Esempio n. 2
0
 def update_bfcp(self, fkenduser, bfcp):
     sql = 'UPDATE device SET enablebfcp = "%(bfcp)s" WHERE pkid = "%(fkenduser)s"'
     self._execupdate(sql % dict(fkenduser=utils.uuid(fkenduser), bfcp=self._tobool(bfcp)))
Esempio n. 3
0
 def set_single_number_reach(self, fkremotedestination, value):
     sql = 'UPDATE remotedestinationdynamic SET enablesinglenumberreach = "%(value)s" WHERE fkremotedestination = "%(fkremotedestination)s"'
     self._execupdate(sql % dict(fkremotedestination=utils.uuid(fkremotedestination), value=self._tobool(value)))
Esempio n. 4
0
 def remove_cups(self, fkenduser):
     sql = 'DELETE FROM enduserlicense WHERE fkenduser = "******"'
     self._execupdate(sql % dict(fkenduser=utils.uuid(fkenduser)))
Esempio n. 5
0
 def update_cups(self, fkenduser, cupc):
     sql = 'UPDATE enduserlicense SET enablecupc = "%(cupc)s" WHERE fkenduser = "******"'
     self._execupdate(sql % dict(fkenduser=utils.uuid(fkenduser), cupc=self._tobool(cupc)))
Esempio n. 6
0
 def has_cups_cupc(self, fkenduser):
     sql = 'SELECT * FROM enduserlicense WHERE fkenduser="******"'
     return self._genresult(self._exec(sql % dict(fkenduser=utils.uuid(fkenduser))))
Esempio n. 7
0
 def insert_cups(self, fkenduser, cupc):
     sql = 'INSERT INTO enduserlicense (fkenduser, enablecups, enablecupc) VALUES ("%(fkenduser)s", "t", "%(cupc)s")'
     self._execupdate(sql % dict(fkenduser=utils.uuid(fkenduser), cupc=self._tobool(cupc)))
Esempio n. 8
0
 def get_single_number_reach(self, fkremotedestination):
     sql = 'SELECT enablesinglenumberreach FROM remotedestinationdynamic WHERE fkremotedestination = "%(fkremotedestination)s"'
     return self._genresult(
         self._exec(
             sql %
             dict(fkremotedestination=utils.uuid(fkremotedestination))))
Esempio n. 9
0
 def user_phone_association(self, fkenduser):
     sql = 'SELECT * FROM extensionmobilitydynamic WHERE fkenduser="******"'
     return self._genresultlist(self._exec(sql % dict(fkenduser=utils.uuid(fkenduser))))
Esempio n. 10
0
 def update_bfcp(self, fkenduser, bfcp):
     sql = 'UPDATE device SET enablebfcp = "%(bfcp)s" WHERE pkid = "%(fkenduser)s"'
     self._execupdate(
         sql %
         dict(fkenduser=utils.uuid(fkenduser), bfcp=self._tobool(bfcp)))
Esempio n. 11
0
 def set_single_number_reach(self, fkremotedestination, value):
     sql = 'UPDATE remotedestinationdynamic SET enablesinglenumberreach = "%(value)s" WHERE fkremotedestination = "%(fkremotedestination)s"'
     self._execupdate(
         sql % dict(fkremotedestination=utils.uuid(fkremotedestination),
                    value=self._tobool(value)))
Esempio n. 12
0
 def update_cups(self, fkenduser, cupc):
     sql = 'UPDATE enduserlicense SET enablecupc = "%(cupc)s" WHERE fkenduser = "******"'
     self._execupdate(
         sql %
         dict(fkenduser=utils.uuid(fkenduser), cupc=self._tobool(cupc)))
Esempio n. 13
0
 def remove_cups(self, fkenduser):
     sql = 'DELETE FROM enduserlicense WHERE fkenduser = "******"'
     self._execupdate(sql % dict(fkenduser=utils.uuid(fkenduser)))
Esempio n. 14
0
 def insert_cups(self, fkenduser, cupc):
     sql = 'INSERT INTO enduserlicense (fkenduser, enablecups, enablecupc) VALUES ("%(fkenduser)s", "t", "%(cupc)s")'
     self._execupdate(
         sql %
         dict(fkenduser=utils.uuid(fkenduser), cupc=self._tobool(cupc)))
Esempio n. 15
0
 def has_cups_cupc(self, fkenduser):
     sql = 'SELECT * FROM enduserlicense WHERE fkenduser="******"'
     return self._genresult(
         self._exec(sql % dict(fkenduser=utils.uuid(fkenduser))))
Esempio n. 16
0
 def user_phone_association(self, fkenduser):
     sql = 'SELECT * FROM extensionmobilitydynamic WHERE fkenduser="******"'
     return self._genresultlist(
         self._exec(sql % dict(fkenduser=utils.uuid(fkenduser))))