本文整理汇总了Python中DBUtil.update_log方法的典型用法代码示例。如果您正苦于以下问题:Python DBUtil.update_log方法的具体用法?Python DBUtil.update_log怎么用?Python DBUtil.update_log使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DBUtil
的用法示例。
在下文中一共展示了DBUtil.update_log方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1:
# 需要导入模块: import DBUtil [as 别名]
# 或者: from DBUtil import update_log [as 别名]
log.s_ip = "202.168.12.11"
log.cs_method = "HEAD"
log.cs_uri = "http://www.sweetgeorgia.com/cgibin/af.cgi?_browser_out=| echo;id;exit"
log.s_port = 443
log.c_ip = "81.171.1.165"
log.cs_version = "HTTP/1.1"
log.cs_user_agent = "OC/15.0.4569.1503 (Microsoft Lync)"
log.cs_host = "http://www.sweetgeorgia.com/cgibin/af.cgi?_browser_out=|echo;id;exit|"
log.sc_status = 200
log.sc_substatus = 0
log.sc_win32_status = 0
log.sc_bytes = 9749
log.cs_bytes = 273
log.time_taken_ms = 15
DBUtil.update_log(log)
print ids[1]
log = DBUtil.select_one_log(ids[1])
log.s_sitename = "DRUPAL"
log.s_computername = "WWW4"
log.s_ip = "66.138.147.49"
log.cs_method = "GET"
log.cs_uri = "http://login.korea.yahoo.com/config/login?.redir_from=PROFILES?.&login=&.tries=1&.src=jpg&.last=&promo=&.intl=us&.bypass=&.partner=&.chkP=Y&.done=http://jpager.yahoo.com/jpager/pager2.shtml&lo gin=blood`1234567890&passwd=password"
log.s_port = 80
log.c_ip = "166.170.14.96"
log.cs_version = "HTTP/1.1"
log.cs_user_agent = "Mozilla/5.0 (Linux; Android 4.4.2; SAMSUNG-SGH-I747 Build/KOT49H) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/30.0.0.0 Mobile Safari/537.36 [FB_IAB/FB4A;FBAV/32.0.0.23.15;]"
log.cs_host = "http://www.sweetgeorgia.com/cgibin/af.cgi?_browser_out=|echo;id;exit|"
log.cs_cookie = "has_js=1"
log.sc_status = 200