Пример #1
0
 def execute(self, ip, app_name, query, fields, **kwargs):
   v = Verification()
   try:
     validate = all([v.verify_ip(ip), ])
   except Exception, err:
     logger.info(err)
     raise InfoIllegalException("参数不合法")
Пример #2
0
 def execute(self, ip, uid=None, from_datetime=py_time.now(), to_datetime=py_time.now()):
   v = Verification()
   try:
     validate = all([v.verify_ip(ip), ])
   except Exception, err:
     logger.info(err)
     raise InfoIllegalException("参数不合法")