コード例 #1
0
ファイル: axlsql.py プロジェクト: codeix/pyaxl
 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))))
コード例 #2
0
ファイル: axlsql.py プロジェクト: codeix/pyaxl
 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)))
コード例 #3
0
ファイル: axlsql.py プロジェクト: codeix/pyaxl
 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)))
コード例 #4
0
ファイル: axlsql.py プロジェクト: codeix/pyaxl
 def remove_cups(self, fkenduser):
     sql = 'DELETE FROM enduserlicense WHERE fkenduser = "******"'
     self._execupdate(sql % dict(fkenduser=utils.uuid(fkenduser)))
コード例 #5
0
ファイル: axlsql.py プロジェクト: codeix/pyaxl
 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)))
コード例 #6
0
ファイル: axlsql.py プロジェクト: codeix/pyaxl
 def has_cups_cupc(self, fkenduser):
     sql = 'SELECT * FROM enduserlicense WHERE fkenduser="******"'
     return self._genresult(self._exec(sql % dict(fkenduser=utils.uuid(fkenduser))))
コード例 #7
0
ファイル: axlsql.py プロジェクト: codeix/pyaxl
 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)))
コード例 #8
0
ファイル: axlsql.py プロジェクト: yvigara/pyaxl
 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))))
コード例 #9
0
ファイル: axlsql.py プロジェクト: codeix/pyaxl
 def user_phone_association(self, fkenduser):
     sql = 'SELECT * FROM extensionmobilitydynamic WHERE fkenduser="******"'
     return self._genresultlist(self._exec(sql % dict(fkenduser=utils.uuid(fkenduser))))
コード例 #10
0
ファイル: axlsql.py プロジェクト: yvigara/pyaxl
 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)))
コード例 #11
0
ファイル: axlsql.py プロジェクト: yvigara/pyaxl
 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)))
コード例 #12
0
ファイル: axlsql.py プロジェクト: yvigara/pyaxl
 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)))
コード例 #13
0
ファイル: axlsql.py プロジェクト: yvigara/pyaxl
 def remove_cups(self, fkenduser):
     sql = 'DELETE FROM enduserlicense WHERE fkenduser = "******"'
     self._execupdate(sql % dict(fkenduser=utils.uuid(fkenduser)))
コード例 #14
0
ファイル: axlsql.py プロジェクト: yvigara/pyaxl
 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)))
コード例 #15
0
ファイル: axlsql.py プロジェクト: yvigara/pyaxl
 def has_cups_cupc(self, fkenduser):
     sql = 'SELECT * FROM enduserlicense WHERE fkenduser="******"'
     return self._genresult(
         self._exec(sql % dict(fkenduser=utils.uuid(fkenduser))))
コード例 #16
0
ファイル: axlsql.py プロジェクト: yvigara/pyaxl
 def user_phone_association(self, fkenduser):
     sql = 'SELECT * FROM extensionmobilitydynamic WHERE fkenduser="******"'
     return self._genresultlist(
         self._exec(sql % dict(fkenduser=utils.uuid(fkenduser))))