code stringlengths 1 1.49M | vector listlengths 0 7.38k | snippet listlengths 0 7.38k |
|---|---|---|
#This contains global definition of Browser class and other useful thing
#######################################################################################
# #
# File: browser_bogus.py #
# Part of 2dgal-cheater #
# Home: http://2dgal-cheater.googlecode.com #
# #
# The MIT License #
# #
# Copyright (c) 2010-2011 <araya.akashic@gmail.com> #
# #
# Permission is hereby granted, free of charge, to any person obtaining a copy #
# of this software and associated documentation files (the "Software"), to deal #
# in the Software without restriction, including without limitation the rights #
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell #
# copies of the Software, and to permit persons to whom the Software is #
# furnished to do so, subject to the following conditions: #
# #
# The above copyright notice and this permission notice shall be included in #
# all copies or substantial portions of the Software. #
# #
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR #
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, #
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE #
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER #
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, #
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN #
# THE SOFTWARE. #
# #
#######################################################################################
#Author: Araya
import urllib2
import cookielib
class Browser():
def __init__(self, user, passwd, user_agent="Python-urllib/2.7"):
self.username = user
self.password = passwd
self.user_agent = user_agent
self.cookie = cookielib.CookieJar()
self.urlOpener = urllib2.build_opener(urllib2.HTTPCookieProcessor(self.cookie))
self.logout_URI = ""
#ad link
self.ad_link = "" | [
[
1,
0,
0.7333,
0.0222,
0,
0.66,
0,
345,
0,
1,
0,
0,
345,
0,
0
],
[
1,
0,
0.7556,
0.0222,
0,
0.66,
0.5,
591,
0,
1,
0,
0,
591,
0,
0
],
[
3,
0,
0.9,
0.2222,
0,
0.66,
... | [
"import urllib2",
"import cookielib",
"class Browser():\n def __init__(self, user, passwd, user_agent=\"Python-urllib/2.7\"):\n self.username = user\n self.password = passwd\n self.user_agent = user_agent\n self.cookie = cookielib.CookieJar()\n self.urlOpener = urllib2.buil... |
#! /usr/bin/python
#######################################################################################
# #
# File: ad_auto.py #
# Part of 2dgal-cheater #
# Home: http://2dgal-cheater.googlecode.com #
# #
# The MIT License #
# #
# Copyright (c) 2010-2011 <araya.akashic@gmail.com> #
# #
# Permission is hereby granted, free of charge, to any person obtaining a copy #
# of this software and associated documentation files (the "Software"), to deal #
# in the Software without restriction, including without limitation the rights #
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell #
# copies of the Software, and to permit persons to whom the Software is #
# furnished to do so, subject to the following conditions: #
# #
# The above copyright notice and this permission notice shall be included in #
# all copies or substantial portions of the Software. #
# #
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR #
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, #
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE #
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER #
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, #
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN #
# THE SOFTWARE. #
# #
#######################################################################################
# This code is to automatically click ads on kf bbs
# Author: Araya
import time
import urllib
import urllib2
from browser_bogus import Browser
#customized these
#adding account as "username":"password"
account_list = {"":"",
"":""}
#total attempts
cycle = 1
#wait 1 hr 10 s before each attempt
delay = 3600 * 5
#do not change below this
siteurl = "http://bbs.9gal.com"
login_page = "login.php"
star1_page = "kf_star_1.php"
logout_hint = "login.php?action=quit"
#ad link character
ad_char = "diy_ad_move.php"
class ExamNotAvailable(Exception):
def __init__(self, time):
self.value = time
def __str__(self):
return repr(self.value)
class LoginFailed(Exception):
def __init__(self, str):
self.value = str
def __str__(self):
return repr(self.value)
#method login
def login(user):
logindata = {"pwuser":user.username,
"pwpwd":user.password,
"hideid":"0",
"cktime":"0",
"forward":"index.php",
"jumpurl":"index.php",
"step":"2"}
en_logindata = urllib.urlencode(logindata)
url = siteurl + "/" + login_page
request = urllib2.Request(url)
request.add_header("User-Agent", user.user_agent)
result = user.urlOpener.open(request)
#print "Getting login page"
url = url + "?"
request = urllib2.Request(url, en_logindata)
result = user.urlOpener.open(request)
print "Login " + user.username
#print cookie
def parse_logout_URI(page):
begin = page.find(logout_hint)
if begin >= 0:
end = page[begin:].find("\"")
return page[begin:end]
return ""
def ad_auto(user):
url = siteurl + "/" + star1_page
request = urllib2.Request(url)
request.add_header("User-Agent", user.user_agent)
result = user.urlOpener.open(request)
# pagelines = result.readlines()
#print len(pagelines)
#extracting logout URI
# line = pagelines[74]
# user.logout_URI = line.split("=\"")[-1].split("\"")[0]
user.logout_URI = parse_logout_URI(result)
begin = page.find(ad_char)
if begin >= 0:
end = page[begin:].find("\"")
user.ad_link = page[begin:end]
# for line in pagelines:
# begin = line.find(ad_char)
# if match >= 0:
# end = line[begin:].find("\"")
# user.ad_link = line[begin:end]
# for word in words:
# if word.find(ad_char) >= 0:
# user.ad_link = word.split("\"")[0]
# print user.ad_link
url = siteurl + "/" + user.ad_link
request = urllib2.Request(url)
request.add_header("User-Agent", user.user_agent)
result = user.urlOpener.open(request)
print "Ad click sent"
result_data = result.read()
return result_data.find("<meta http-equiv=\"refresh\"")
# return 1
def logout(user):
url = siteurl + "/" + user.logout_URI
request = urllib2.Request(url)
request.add_header("User-Agent", user.user_agent)
result = user.urlOpener.open(request)
print "Logout " + user.username
def perform_ad_auto():
for n, p in account_list.iteritems():
user = Browser(n, p)
submit_success = -1
try:
login(user)
while submit_success < 0:
submit_success = ad_auto(user)
print submit_success
logout(user)
except:
pass
if __name__ == "__main__":
while cycle:
print "------------------------------------------"
print time.strftime("%a, %b %d %Y %H:%M:%S", time.localtime()) + "-----------------"
perform_ad_auto()
if cycle > 1:
time.sleep(delay)
cycle = cycle - 1 | [
[
1,
0,
0.2011,
0.0057,
0,
0.66,
0,
654,
0,
1,
0,
0,
654,
0,
0
],
[
1,
0,
0.2126,
0.0057,
0,
0.66,
0.0526,
614,
0,
1,
0,
0,
614,
0,
0
],
[
1,
0,
0.2184,
0.0057,
0,
... | [
"import time",
"import urllib",
"import urllib2",
"from browser_bogus import Browser",
"account_list = {\"\":\"\",\n \"\":\"\"}",
"cycle = 1",
"delay = 3600 * 5",
"siteurl = \"http://bbs.9gal.com\"",
"login_page = \"login.php\"",
"star1_page = \"kf_star_1.php\"",
"logout_hint = \"... |
#######################################################################################
# #
# File: gojuon.py #
# Part of 2dgal-cheater #
# Home: http://2dgal-cheater.googlecode.com #
# #
# The MIT License #
# #
# Copyright (c) 2010-2011 <araya.akashic@gmail.com> #
# #
# Permission is hereby granted, free of charge, to any person obtaining a copy #
# of this software and associated documentation files (the "Software"), to deal #
# in the Software without restriction, including without limitation the rights #
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell #
# copies of the Software, and to permit persons to whom the Software is #
# furnished to do so, subject to the following conditions: #
# #
# The above copyright notice and this permission notice shall be included in #
# all copies or substantial portions of the Software. #
# #
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR #
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, #
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE #
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER #
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, #
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN #
# THE SOFTWARE. #
# #
#######################################################################################
#This is the library of encoded gojuon to phonetic symbol
#Author: Araya
gojuon = {
"=%A4%A2":"a",
"=%A5%A2":"a",
"=%A4%A4":"i",
"=%A5%A4":"i",
"=%A4%A6":"u",
"=%A5%A6":"u",
"=%A4%A8":"e",
"=%A5%A8":"e",
"=%A4%AA":"o",
"=%A5%AA":"o",
"=%A4%AB":"ka",
"=%A5%AB":"ka",
"=%A4%AD":"ki",
"=%A5%AD":"ki",
"=%A4%AF":"ku",
"=%A5%AF":"ku",
"=%A4%B1":"ke",
"=%A5%B1":"ke",
"=%A4%B3":"ko",
"=%A5%B3":"ko",
"=%A4%B5":"sa",
"=%A5%B5":"sa",
"=%A4%B7":"shi",
"=%A5%B7":"shi",
"=%A4%B9":"su",
"=%A5%B9":"su",
"=%A4%BB":"se",
"=%A5%BB":"se",
"=%A4%BD":"so",
"=%A5%BD":"so",
"=%A4%BF":"ta",
"=%A5%BF":"ta",
"=%A4%C1":"chi",
"=%A5%C1":"chi",
"=%A4%C4":"tsu",
"=%A5%C4":"tsu",
"=%A4%C6":"te",
"=%A5%C6":"te",
"=%A4%C8":"to",
"=%A5%C8":"to",
"=%A4%CA":"na",
"=%A5%CA":"na",
"=%A4%CB":"ni",
"=%A5%CB":"ni",
"=%A4%CC":"nu",
"=%A5%CC":"nu",
"=%A4%CD":"ne",
"=%A5%CD":"ne",
"=%A4%CE":"no",
"=%A5%CE":"no",
"=%A4%CF":"ha",
"=%A5%CF":"ha",
"=%A4%D2":"hi",
"=%A5%D2":"hi",
"=%A4%D5":"fu",
"=%A5%D5":"fu",
"=%A4%D8":"he",
"=%A5%D8":"he",
"=%A4%DB":"ho",
"=%A5%DB":"ho",
"=%A4%DE":"ma",
"=%A5%DE":"ma",
"=%A4%DF":"mi",
"=%A5%DF":"mi",
"=%A4%E0":"mu",
"=%A5%E0":"mu",
"=%A4%E1":"me",
"=%A5%E1":"me",
"=%A4%E2":"mo",
"=%A5%E2":"mo",
"=%A4%E4":"ya",
"=%A5%E4":"ya",
"=%A4%E6":"yu",
"=%A5%E6":"yu",
"=%A4%E8":"yo",
"=%A5%E8":"yo",
"=%A4%E9":"ra",
"=%A5%E9":"ra",
"=%A4%EA":"ri",
"=%A5%EA":"ri",
"=%A4%EB":"ru",
"=%A5%EB":"ru",
"=%A4%EC":"re",
"=%A5%EC":"re",
"=%A4%ED":"ro",
"=%A5%ED":"ro",
"=%A4%EF":"wa",
"=%A5%EF":"wa",
"=%A4%F2":"o",
"=%A5%F2":"o",
"=%A4%F3":"n",
"=%A5%F3":"n",
"=":"",
"=":"",
"=%A4%AC":"ga",
"=%A5%AC":"ga",
"=%A4%AE":"gi",
"=%A5%AE":"gi",
"=%A4%B0":"gu",
"=%A5%B0":"gu",
"=%A4%B2":"ge",
"=%A5%B2":"ge",
"=%A4%B4":"go",
"=%A5%B4":"go",
"=%A4%B6":"za",
"=%A5%B6":"za",
"=%A4%B8":"ji",
"=%A5%B8":"ji",
"=%A4%BA":"zu",
"=%A5%BA":"zu",
"=%A4%BC":"ze",
"=%A5%BC":"ze",
"=%A4%BE":"zo",
"=%A5%BE":"zo",
"=%A4%C0":"da",
"=%A5%C0":"da",
"=%A4%C2":"ji",
"=%A5%C2":"ji",
"=%A4%C5":"zu",
"=%A5%C5":"zu",
"=%A4%C7":"de",
"=%A5%C7":"de",
"=%A4%C9":"do",
"=%A5%C9":"do",
"=%A4%D0":"ba",
"=%A5%D0":"ba",
"=%A4%D3":"bi",
"=%A5%D3":"bi",
"=%A4%D6":"bu",
"=%A5%D6":"bu",
"=%A4%D9":"be",
"=%A5%D9":"be",
"=%A4%DC":"bo",
"=%A5%DC":"bo",
"=%A4%D1":"pa",
"=%A5%D1":"pa",
"=%A4%D4":"pi",
"=%A5%D4":"pi",
"=%A4%D7":"pu",
"=%A5%D7":"pu",
"=%A4%DA":"pe",
"=%A5%DA":"pe",
"=%A4%DD":"po",
"=%A5%DD":"po",
"=%A4%AD%A4%E3":"kya",
"=%A5%AD%A5%E3":"kya",
"=%A4%AD%A4%E5":"jyu",
"=%A5%AD%A5%E5":"jyu",
"=%A4%AD%A4%E7":"kyo",
"=%A5%AD%A5%E7":"kyo",
"=%A4%B7%A4%E3":"sha",
"=%A5%B7%A5%E3":"sha",
"=%A4%B7%A4%E5":"shu",
"=%A5%B7%A5%E5":"shu",
"=%A4%B7%A4%E7":"sho",
"=%A5%B7%A5%E7":"sho",
"=%A4%C1%A4%E3":"cha",
"=%A5%C1%A5%E3":"cha",
"=%A4%C1%A4%E5":"chu",
"=%A5%C1%A5%E5":"chu",
"=%A4%C1%A4%E7":"cho",
"=%A5%C1%A5%E7":"cho",
"=%A4%CB%A4%E3":"nya",
"=%A5%CB%A5%E3":"nya",
"=%A4%CB%A4%E5":"nyu",
"=%A5%CB%A5%E5":"nyu",
"=%A4%CB%A4%E7":"nyo",
"=%A5%CB%A5%E7":"nyo",
"=%A4%D2%A4%E3":"hya",
"=%A5%D2%A5%E3":"hya",
"=%A4%D2%A4%E5":"hyu",
"=%A5%D2%A5%E5":"hyu",
"=%A4%D2%A4%E7":"hyo",
"=%A5%D2%A5%E7":"hyo",
"=%A4%DF%A4%E3":"mya",
"=%A5%DF%A5%E3":"mya",
"=%A4%DF%A4%E5":"mya",
"=%A5%DF%A5%E5":"mya",
"=%A4%DF%A4%E7":"myo",
"=%A5%DF%A5%E7":"myo",
"=%A4%EA%A4%E3":"rya",
"=%A5%EA%A5%E3":"rya",
"=%A4%EA%A4%E5":"ryu",
"=%A5%EA%A5%E5":"ryu",
"=%A4%EA%A4%E7":"ryo",
"=%A5%EA%A5%E7":"ryo",
"=%A4%AE%A4%E3":"gya",
"=%A5%AE%A5%E3":"gya",
"=%A4%AE%A4%E5":"gyu",
"=%A5%AE%A5%E5":"gyu",
"=%A4%AE%A4%E7":"gyo",
"=%A5%AE%A5%E7":"gyo",
"=%A4%B8%A4%E3":"ja",
"=%A5%B8%A5%E3":"ja",
"=%A4%B8%A4%E5":"ju",
"=%A5%B8%A5%E5":"ju",
"=%A4%B8%A4%E7":"jo",
"=%A5%B8%A5%E7":"jo",
"=%A4%C2%A4%E3":"ja",
"=%A5%C2%A5%E3":"ja",
"=%A4%C2%A4%E5":"ju",
"=%A5%C2%A5%E5":"ju",
"=%A4%C2%A4%E7":"jo",
"=%A5%C2%A5%E7":"jo",
"=%A4%D3%A4%E3":"bya",
"=%A5%D3%A5%E3":"bya",
"=%A4%D3%A4%E5":"byu",
"=%A5%D3%A5%E5":"byu",
"=%A4%D3%A4%E7":"byo",
"=%A5%D3%A5%E7":"byo",
"=%A4%D4%A4%E3":"pya",
"=%A5%D4%A5%E3":"pya",
"=%A4%D4%A4%E5":"pyu",
"=%A5%D4%A5%E5":"pyu",
"=%A4%D4%A4%E7":"pyo",
"=%A5%D4%A5%E7":"pyo"} | [
[
14,
0,
0.568,
0.868,
0,
0.66,
0,
833,
0,
0,
0,
0,
0,
6,
0
]
] | [
"gojuon = {\n\t\"=%A4%A2\":\"a\",\n\t\"=%A5%A2\":\"a\",\n\t\"=%A4%A4\":\"i\",\n\t\"=%A5%A4\":\"i\",\n\t\"=%A4%A6\":\"u\",\n\t\"=%A5%A6\":\"u\",\n\t\"=%A4%A8\":\"e\","
] |
# -*- coding: utf-8 -*-
#######################################################################################
# #
# File: Core.py #
# Part of 2dgal_cheater #
# Home: http://2dgal-cheater.googlecode.com #
# #
# The MIT License #
# #
# Copyright (c) 2010-2011 <araya.akashic@gmail.com> #
# #
# Permission is hereby granted, free of charge, to any person obtaining a copy #
# of this software and associated documentation files (the "Software"), to deal #
# in the Software without restriction, including without limitation the rights #
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell #
# copies of the Software, and to permit persons to whom the Software is #
# furnished to do so, subject to the following conditions: #
# #
# The above copyright notice and this permission notice shall be included in #
# all copies or substantial portions of the Software. #
# #
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR #
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, #
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE #
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER #
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, #
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN #
# THE SOFTWARE. #
# #
#######################################################################################
'''
Created on May 22, 2011
@author: flyxian
'''
import operator
from PyQt4.QtCore import *
from PyQt4.QtGui import *
from MainDialog import *
try:
_fromUtf8 = QtCore.QString.fromUtf8
except AttributeError:
_fromUtf8 = lambda s: s
class MainWindow(QMainWindow, Ui_MainDialog):
write_account_signal = pyqtSignal()
def __init__(self, parent=None):
super(MainWindow, self).__init__(parent)
self.setupUi(self)
'''user defined'''
self.pushButton_ad_auto_start.state = False
self.pushButton_achievement_start.state = False
self.createActions()
self.createTrayIcon()
self.trayIcon.show()
self.trayIcon.setVisible(True)
icon = QtGui.QIcon(_fromUtf8("./images/trash.png"))
self.setWindowIcon(icon)
# def setVisible(self, visible):
# self.minimizeAction.setEnabled(visible)
# self.maximizeAction.setEnabled(not self.isMaximized())
# self.restoreAction.setEnabled(self.isMaximized() or not visible)
# super(MainWindow, self).setVisible(visible)
def closeEvent(self, event):
if self.trayIcon.isVisible():
# QMessageBox.information(self, "Systray",
# _fromUtf8("The program will keep running in the system tray. To "
# "terminate the program, choose <b>退出</b> in the "
# "context menu of the system tray entry."))
self.hide()
event.ignore()
else:
qApp.quit()
def createActions(self):
self.minimizeAction = QAction(_fromUtf8("最小化"), self,
triggered=self.hide)
# self.maximizeAction = QAction("Ma&ximize", self,
# triggered=self.showMaximized)
self.restoreAction = QAction(_fromUtf8("还原"), self,
triggered=self.showNormal)
self.quitAction = QAction(_fromUtf8("退出"), self,
triggered=qApp.quit)
def createTrayIcon(self):
icon = QIcon(_fromUtf8("./images/trash.png"))
# icon.addPixmap(QPixmap(_fromUtf8(":/images/trash.svg")),
# QIcon.Normal, QtGui.QIcon.Off)
self.trayIconMenu = QMenu(self)
self.trayIconMenu.addAction(self.minimizeAction)
# self.trayIconMenu.addAction(self.maximizeAction)
self.trayIconMenu.addAction(self.restoreAction)
self.trayIconMenu.addSeparator()
self.trayIconMenu.addAction(self.quitAction)
self.trayIcon = QSystemTrayIcon(icon, self)
self.trayIcon.setContextMenu(self.trayIconMenu)
def init_display_properties(self):
self.achievement_account_list.setColumnHidden(1, True)
self.ad_auto_account_list.setColumnHidden(1, True)
def achievement_account_list_reset(self):
self.achievement_account_list.reset()
self.achievement_account_list.setColumnHidden(1, True)
def ad_auto_account_list_reset(self):
self.ad_auto_account_list.reset()
self.ad_auto_account_list.setColumnHidden(1, True)
def init_signals(self):
#backgrounds
QObject.connect(self.achievement_dataModel,
SIGNAL(_fromUtf8("dataChanged()")),
self.achievement_account_list_reset)
QObject.connect(self.ad_auto_dataModel,
SIGNAL(_fromUtf8("dataChanged()")),
self.ad_auto_account_list_reset)
#operations
QObject.connect(self.achievement_account_list,
SIGNAL(_fromUtf8("clicked(QModelIndex)")),
self.achievement_get_selection)
QObject.connect(self.pushButton_achievement_add,
SIGNAL(_fromUtf8("clicked()")),
self.achievement_set_account)
QObject.connect(self.pushButton_achievement_del,
SIGNAL(_fromUtf8("clicked()")),
self.achievement_del_account)
# QObject.connect(self.pushButton_achievement_start,
# SIGNAL(_fromUtf8("clicked()")),
# self.achievement_start)
QObject.connect(self.ad_auto_account_list,
SIGNAL(_fromUtf8("clicked(QModelIndex)")),
self.ad_auto_get_selection)
QObject.connect(self.pushButton_ad_auto_add,
SIGNAL(_fromUtf8("clicked()")),
self.ad_auto_set_account)
QObject.connect(self.pushButton_ad_auto_del,
SIGNAL(_fromUtf8("clicked()")),
self.ad_auto_del_account)
# QObject.connect(self.pushButton_ad_auto_start,
# SIGNAL(_fromUtf8("clicked()")),
# self.ad_auto_start)
# def achievement_add_account(self):
# username = self.
def achievement_get_selection(self):
indexlist = self.achievement_account_list.selectionModel().selectedIndexes()
datamodel = self.achievement_account_list.model()
self.achievement_username.setText(datamodel.data(indexlist[0]).toString())
self.achievement_passwd.setText(datamodel.data(indexlist[1]).toString())
def achievement_set_account(self):
indexlist = self.achievement_account_list.selectionModel().selectedIndexes()
datamodel = self.achievement_account_list.model()
# print indexlist
if len(indexlist) > 0:
datamodel.setData(indexlist[0], self.achievement_username.text())
datamodel.setData(indexlist[1], self.achievement_passwd.text())
else:
if len(self.achievement_username.text()) == 0\
or len(self.achievement_passwd.text()) == 0:
return
else:
if not datamodel.insertRows(datamodel.rowCount(), 1):
return
child = datamodel.index(datamodel.rowCount()-1, 0)
datamodel.setData(child, self.achievement_username.text(), Qt.EditRole)
child = datamodel.index(datamodel.rowCount()-1, 1)
datamodel.setData(child, self.achievement_passwd.text(), Qt.EditRole)
child = datamodel.index(datamodel.rowCount()-1, 2)
datamodel.setData(child, _fromUtf8('##'), Qt.EditRole)
self.achievement_username.clear()
self.achievement_passwd.clear()
self.write_account_signal.emit()
def achievement_del_account(self):
indexlist = self.achievement_account_list.selectionModel().selectedIndexes()
model = self.achievement_account_list.model()
if len(indexlist) <= 0:
return
else:
model.removeRow(indexlist[0].row())
self.achievement_username.clear()
self.achievement_passwd.clear()
self.write_account_signal.emit()
def ad_auto_get_selection(self):
indexlist = self.ad_auto_account_list.selectionModel().selectedIndexes()
datamodel = self.ad_auto_account_list.model()
self.ad_auto_username.setText(datamodel.data(indexlist[0]).toString())
self.ad_auto_passwd.setText(datamodel.data(indexlist[1]).toString())
def ad_auto_set_account(self):
indexlist = self.ad_auto_account_list.selectionModel().selectedIndexes()
datamodel = self.ad_auto_account_list.model()
# print indexlist
if len(indexlist) > 0:
datamodel.setData(indexlist[0], self.ad_auto_username.text())
datamodel.setData(indexlist[1], self.ad_auto_passwd.text())
else:
if len(self.ad_auto_username.text()) == 0\
or len(self.ad_auto_passwd.text()) == 0:
return
else:
if not datamodel.insertRows(datamodel.rowCount(), 1):
return
child = datamodel.index(datamodel.rowCount()-1, 0)
datamodel.setData(child, self.ad_auto_username.text(), Qt.EditRole)
child = datamodel.index(datamodel.rowCount()-1, 1)
datamodel.setData(child, self.ad_auto_passwd.text(), Qt.EditRole)
child = datamodel.index(datamodel.rowCount()-1, 2)
datamodel.setData(child, _fromUtf8('##'), Qt.EditRole)
child = datamodel.index(datamodel.rowCount()-1, 3)
datamodel.setData(child, _fromUtf8("##"), Qt.EditRole)
self.ad_auto_username.clear()
self.ad_auto_passwd.clear()
self.write_account_signal.emit()
def ad_auto_del_account(self):
indexlist = self.ad_auto_account_list.selectionModel().selectedIndexes()
model = self.ad_auto_account_list.model()
if len(indexlist) <= 0:
return
else:
model.removeRow(indexlist[0].row())
self.achievement_username.clear()
self.achievement_passwd.clear()
self.write_account_signal.emit()
def achievement_start(self):
if self.pushButton_achievement_start.state:
self.pushButton_achievement_start.state = False
self.achievement_account_list.setDisabled(False)
self.achievement_passwd.setDisabled(False)
self.achievement_username.setDisabled(False)
self.pushButton_achievement_add.setDisabled(False)
self.pushButton_achievement_cancel.setDisabled(False)
self.pushButton_achievement_del.setDisabled(False)
else:
self.pushButton_achievement_start.state = True
self.achievement_account_list.setDisabled(True)
self.achievement_passwd.setDisabled(True)
self.achievement_username.setDisabled(True)
self.pushButton_achievement_add.setDisabled(True)
self.pushButton_achievement_cancel.setDisabled(True)
self.pushButton_achievement_del.setDisabled(True)
def ad_auto_start(self):
if self.pushButton_ad_auto_start.state:
self.pushButton_ad_auto_start.state = False
self.ad_auto_account_list.setDisabled(False)
self.ad_auto_passwd.setDisabled(False)
self.ad_auto_username.setDisabled(False)
self.pushButton_ad_auto_add.setDisabled(False)
self.pushButton_ad_auto_cancel.setDisabled(False)
self.pushButton_ad_auto_del.setDisabled(False)
else:
self.pushButton_ad_auto_start.state = True
self.ad_auto_account_list.setDisabled(True)
self.ad_auto_passwd.setDisabled(True)
self.ad_auto_username.setDisabled(True)
self.pushButton_ad_auto_add.setDisabled(True)
self.pushButton_ad_auto_cancel.setDisabled(True)
self.pushButton_ad_auto_del.setDisabled(True)
#achievement_account_list
def update_achievement_account_list(self, tabledata):
header = [_fromUtf8('用户名'), '', _fromUtf8('运行状态')]
self.achievement_dataModel = Achievement_AccountListModel(tabledata, header)
self.achievement_account_list.setModel(self.achievement_dataModel)
def update_ad_auto_account_list(self, tabledata):
header = [_fromUtf8('用户名'), '', _fromUtf8('运行状态'), _fromUtf8('最近一次任务')]
self.ad_auto_dataModel = AdAuto_AccountListModel(tabledata, header)
self.ad_auto_account_list.setModel(self.ad_auto_dataModel)
class Achievement_AccountListModel(QAbstractTableModel):
def __init__(self, datain, headerdata, parent=None, *args):
""" datain: a list of lists
headerdata: a list of strings
"""
super(Achievement_AccountListModel, self).__init__(parent)
self.arraydata = datain
self.headerdata = headerdata
def rowCount(self, parent=QModelIndex()):
return len(self.arraydata)
def columnCount(self, parent=QModelIndex()):
try:
return len(self.arraydata[0])
except:
return 0
def data(self, index, role=Qt.DisplayRole):
if not index.isValid():
return QVariant()
elif role != Qt.DisplayRole:
return QVariant()
return QVariant(self.arraydata[index.row()][index.column()])
def headerData(self, col, orientation, role):
if orientation == Qt.Horizontal and role == Qt.DisplayRole:
return QVariant(self.headerdata[col])
return QVariant()
def setData(self, index, value, role=Qt.EditRole):
try:
self.arraydata[index.row()][index.column()] = value
# print self.arraydata
self.emit(SIGNAL(_fromUtf8("dataChanged()")))
return True
except:
print "Model.setData == False"
return False
def insertRows(self, position, rows, parent=QModelIndex()):
self.beginInsertRows(parent, position, position + rows - 1)
self.arraydata.append([_fromUtf8(''), _fromUtf8(''), False])
self.endInsertRows()
return True
def removeRows(self, position, rows, parent=QModelIndex()):
self.beginRemoveRows(parent, position, position + rows - 1)
del(self.arraydata[position])
self.endRemoveRows()
return True
class AdAuto_AccountListModel(QAbstractTableModel):
def __init__(self, datain, headerdata, parent=None, *args):
""" datain: a list of lists
headerdata: a list of strings
"""
QAbstractTableModel.__init__(self, parent, *args)
self.arraydata = datain
self.headerdata = headerdata
def rowCount(self, parent=QModelIndex()):
return len(self.arraydata)
def columnCount(self, parent=QModelIndex()):
try:
return len(self.arraydata[0])
except:
return 0
def data(self, index, role=Qt.DisplayRole):
if not index.isValid():
return QVariant()
elif role != Qt.DisplayRole:
return QVariant()
return QVariant(self.arraydata[index.row()][index.column()])
def headerData(self, col, orientation, role):
if orientation == Qt.Horizontal and role == Qt.DisplayRole:
return QVariant(self.headerdata[col])
return QVariant()
def setData(self, index, value, role=Qt.EditRole):
try:
self.arraydata[index.row()][index.column()] = value
# print self.arraydata
self.emit(SIGNAL(_fromUtf8("dataChanged()")))
return True
except:
print "Model.setData == False"
return False
def insertRows(self, position, rows, parent=QModelIndex()):
self.beginInsertRows(parent, position, position + rows - 1)
self.arraydata.append([_fromUtf8(''), _fromUtf8(''), False, _fromUtf8('')])
self.endInsertRows()
return True
def removeRows(self, position, rows, parent=QModelIndex()):
self.beginRemoveRows(parent, position, position + rows - 1)
del(self.arraydata[position])
self.endRemoveRows()
return True
if __name__ == "__main__":
import sys
app = QApplication(sys.argv)
window = MainWindow()
window.show()
sys.exit(app.exec_()) | [
[
8,
0,
0.0801,
0.0121,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0874,
0.0024,
0,
0.66,
0.1111,
616,
0,
1,
0,
0,
616,
0,
0
],
[
1,
0,
0.0922,
0.0024,
0,
0.66... | [
"'''\nCreated on May 22, 2011\n\n@author: flyxian\n'''",
"import operator",
"from PyQt4.QtCore import *",
"from PyQt4.QtGui import *",
"from MainDialog import *",
"try:\n _fromUtf8 = QtCore.QString.fromUtf8\nexcept AttributeError:\n _fromUtf8 = lambda s: s",
" _fromUtf8 = QtCore.QString.fromUtf... |
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'MainDialog.ui'
#
# Created: Sat Jul 02 23:35:22 2011
# by: PyQt4 UI code generator 4.8.4
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
try:
_fromUtf8 = QtCore.QString.fromUtf8
except AttributeError:
_fromUtf8 = lambda s: s
class Ui_MainDialog(object):
def setupUi(self, MainDialog):
MainDialog.setObjectName(_fromUtf8("MainDialog"))
MainDialog.resize(400, 386)
MainDialog.setMinimumSize(QtCore.QSize(400, 386))
MainDialog.setMaximumSize(QtCore.QSize(400, 386))
MainDialog.setLocale(QtCore.QLocale(QtCore.QLocale.Chinese, QtCore.QLocale.China))
self.tabWidget = QtGui.QTabWidget(MainDialog)
self.tabWidget.setGeometry(QtCore.QRect(10, 20, 381, 351))
font = QtGui.QFont()
font.setPointSize(8)
self.tabWidget.setFont(font)
self.tabWidget.setTabsClosable(False)
self.tabWidget.setObjectName(_fromUtf8("tabWidget"))
self.tab_achievement = QtGui.QWidget()
self.tab_achievement.setObjectName(_fromUtf8("tab_achievement"))
self.groupBox = QtGui.QGroupBox(self.tab_achievement)
self.groupBox.setEnabled(True)
self.groupBox.setGeometry(QtCore.QRect(10, 10, 351, 271))
self.groupBox.setFlat(False)
self.groupBox.setCheckable(False)
self.groupBox.setObjectName(_fromUtf8("groupBox"))
self.achievement_username = QtGui.QLineEdit(self.groupBox)
self.achievement_username.setGeometry(QtCore.QRect(50, 210, 113, 20))
self.achievement_username.setObjectName(_fromUtf8("achievement_username"))
self.achievement_passwd = QtGui.QLineEdit(self.groupBox)
self.achievement_passwd.setEnabled(True)
self.achievement_passwd.setGeometry(QtCore.QRect(50, 240, 113, 20))
self.achievement_passwd.setInputMethodHints(QtCore.Qt.ImhHiddenText|QtCore.Qt.ImhNoAutoUppercase|QtCore.Qt.ImhNoPredictiveText)
self.achievement_passwd.setEchoMode(QtGui.QLineEdit.Password)
self.achievement_passwd.setObjectName(_fromUtf8("achievement_passwd"))
self.label = QtGui.QLabel(self.groupBox)
self.label.setGeometry(QtCore.QRect(10, 210, 46, 13))
self.label.setObjectName(_fromUtf8("label"))
self.label_2 = QtGui.QLabel(self.groupBox)
self.label_2.setGeometry(QtCore.QRect(10, 240, 46, 13))
self.label_2.setObjectName(_fromUtf8("label_2"))
self.pushButton_achievement_add = QtGui.QPushButton(self.groupBox)
self.pushButton_achievement_add.setGeometry(QtCore.QRect(180, 210, 151, 23))
self.pushButton_achievement_add.setObjectName(_fromUtf8("pushButton_achievement_add"))
self.pushButton_achievement_cancel = QtGui.QPushButton(self.groupBox)
self.pushButton_achievement_cancel.setGeometry(QtCore.QRect(180, 240, 75, 23))
self.pushButton_achievement_cancel.setObjectName(_fromUtf8("pushButton_achievement_cancel"))
self.pushButton_achievement_del = QtGui.QPushButton(self.groupBox)
self.pushButton_achievement_del.setGeometry(QtCore.QRect(260, 240, 75, 23))
self.pushButton_achievement_del.setObjectName(_fromUtf8("pushButton_achievement_del"))
self.achievement_account_list = QtGui.QTreeView(self.groupBox)
self.achievement_account_list.setGeometry(QtCore.QRect(10, 20, 331, 181))
self.achievement_account_list.setItemsExpandable(False)
self.achievement_account_list.setObjectName(_fromUtf8("achievement_account_list"))
self.pushButton_achievement_start = QtGui.QPushButton(self.tab_achievement)
self.pushButton_achievement_start.setGeometry(QtCore.QRect(10, 290, 351, 23))
self.pushButton_achievement_start.setObjectName(_fromUtf8("pushButton_achievement_start"))
self.tabWidget.addTab(self.tab_achievement, _fromUtf8(""))
self.tab_ad_auto = QtGui.QWidget()
self.tab_ad_auto.setObjectName(_fromUtf8("tab_ad_auto"))
self.pushButton_ad_auto_start = QtGui.QPushButton(self.tab_ad_auto)
self.pushButton_ad_auto_start.setGeometry(QtCore.QRect(10, 290, 351, 23))
self.pushButton_ad_auto_start.setObjectName(_fromUtf8("pushButton_ad_auto_start"))
self.groupBox_2 = QtGui.QGroupBox(self.tab_ad_auto)
self.groupBox_2.setEnabled(True)
self.groupBox_2.setGeometry(QtCore.QRect(10, 10, 351, 271))
self.groupBox_2.setFlat(False)
self.groupBox_2.setCheckable(False)
self.groupBox_2.setObjectName(_fromUtf8("groupBox_2"))
self.ad_auto_username = QtGui.QLineEdit(self.groupBox_2)
self.ad_auto_username.setGeometry(QtCore.QRect(50, 210, 113, 20))
self.ad_auto_username.setObjectName(_fromUtf8("ad_auto_username"))
self.ad_auto_passwd = QtGui.QLineEdit(self.groupBox_2)
self.ad_auto_passwd.setEnabled(True)
self.ad_auto_passwd.setGeometry(QtCore.QRect(50, 240, 113, 20))
self.ad_auto_passwd.setInputMethodHints(QtCore.Qt.ImhHiddenText|QtCore.Qt.ImhNoAutoUppercase|QtCore.Qt.ImhNoPredictiveText)
self.ad_auto_passwd.setEchoMode(QtGui.QLineEdit.Password)
self.ad_auto_passwd.setObjectName(_fromUtf8("ad_auto_passwd"))
self.label_3 = QtGui.QLabel(self.groupBox_2)
self.label_3.setGeometry(QtCore.QRect(10, 210, 46, 13))
self.label_3.setObjectName(_fromUtf8("label_3"))
self.label_4 = QtGui.QLabel(self.groupBox_2)
self.label_4.setGeometry(QtCore.QRect(10, 240, 46, 13))
self.label_4.setObjectName(_fromUtf8("label_4"))
self.pushButton_ad_auto_add = QtGui.QPushButton(self.groupBox_2)
self.pushButton_ad_auto_add.setGeometry(QtCore.QRect(180, 210, 151, 23))
self.pushButton_ad_auto_add.setObjectName(_fromUtf8("pushButton_ad_auto_add"))
self.pushButton_ad_auto_cancel = QtGui.QPushButton(self.groupBox_2)
self.pushButton_ad_auto_cancel.setGeometry(QtCore.QRect(180, 240, 75, 23))
self.pushButton_ad_auto_cancel.setObjectName(_fromUtf8("pushButton_ad_auto_cancel"))
self.pushButton_ad_auto_del = QtGui.QPushButton(self.groupBox_2)
self.pushButton_ad_auto_del.setGeometry(QtCore.QRect(260, 240, 75, 23))
self.pushButton_ad_auto_del.setObjectName(_fromUtf8("pushButton_ad_auto_del"))
self.ad_auto_account_list = QtGui.QTreeView(self.groupBox_2)
self.ad_auto_account_list.setGeometry(QtCore.QRect(10, 20, 331, 181))
self.ad_auto_account_list.setItemsExpandable(False)
self.ad_auto_account_list.setObjectName(_fromUtf8("ad_auto_account_list"))
self.tabWidget.addTab(self.tab_ad_auto, _fromUtf8(""))
self.tab = QtGui.QWidget()
self.tab.setObjectName(_fromUtf8("tab"))
self.textEdit = QtGui.QTextEdit(self.tab)
self.textEdit.setGeometry(QtCore.QRect(10, 10, 351, 301))
self.textEdit.setObjectName(_fromUtf8("textEdit"))
self.tabWidget.addTab(self.tab, _fromUtf8(""))
self.retranslateUi(MainDialog)
self.tabWidget.setCurrentIndex(0)
QtCore.QObject.connect(self.pushButton_achievement_cancel, QtCore.SIGNAL(_fromUtf8("clicked()")), self.achievement_username.clear)
QtCore.QObject.connect(self.pushButton_achievement_cancel, QtCore.SIGNAL(_fromUtf8("clicked()")), self.achievement_passwd.clear)
QtCore.QObject.connect(self.pushButton_ad_auto_cancel, QtCore.SIGNAL(_fromUtf8("clicked()")), self.ad_auto_username.clear)
QtCore.QObject.connect(self.pushButton_ad_auto_cancel, QtCore.SIGNAL(_fromUtf8("clicked()")), self.ad_auto_passwd.clear)
QtCore.QObject.connect(self.pushButton_ad_auto_cancel, QtCore.SIGNAL(_fromUtf8("clicked()")), self.ad_auto_account_list.clearSelection)
QtCore.QObject.connect(self.pushButton_achievement_cancel, QtCore.SIGNAL(_fromUtf8("clicked()")), self.achievement_account_list.clearSelection)
QtCore.QMetaObject.connectSlotsByName(MainDialog)
def retranslateUi(self, MainDialog):
MainDialog.setWindowTitle(QtGui.QApplication.translate("MainDialog", "苍雪小工具", None, QtGui.QApplication.UnicodeUTF8))
self.groupBox.setTitle(QtGui.QApplication.translate("MainDialog", "账号", None, QtGui.QApplication.UnicodeUTF8))
self.label.setText(QtGui.QApplication.translate("MainDialog", "用户名", None, QtGui.QApplication.UnicodeUTF8))
self.label_2.setText(QtGui.QApplication.translate("MainDialog", "密码", None, QtGui.QApplication.UnicodeUTF8))
self.pushButton_achievement_add.setText(QtGui.QApplication.translate("MainDialog", "确认/添加", None, QtGui.QApplication.UnicodeUTF8))
self.pushButton_achievement_cancel.setText(QtGui.QApplication.translate("MainDialog", "清除", None, QtGui.QApplication.UnicodeUTF8))
self.pushButton_achievement_del.setText(QtGui.QApplication.translate("MainDialog", "删除", None, QtGui.QApplication.UnicodeUTF8))
self.pushButton_achievement_start.setText(QtGui.QApplication.translate("MainDialog", "开始/停止", None, QtGui.QApplication.UnicodeUTF8))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_achievement), QtGui.QApplication.translate("MainDialog", "星成就", None, QtGui.QApplication.UnicodeUTF8))
self.pushButton_ad_auto_start.setText(QtGui.QApplication.translate("MainDialog", "开始/停止", None, QtGui.QApplication.UnicodeUTF8))
self.groupBox_2.setTitle(QtGui.QApplication.translate("MainDialog", "账号", None, QtGui.QApplication.UnicodeUTF8))
self.label_3.setText(QtGui.QApplication.translate("MainDialog", "用户名", None, QtGui.QApplication.UnicodeUTF8))
self.label_4.setText(QtGui.QApplication.translate("MainDialog", "密码", None, QtGui.QApplication.UnicodeUTF8))
self.pushButton_ad_auto_add.setText(QtGui.QApplication.translate("MainDialog", "确认/添加", None, QtGui.QApplication.UnicodeUTF8))
self.pushButton_ad_auto_cancel.setText(QtGui.QApplication.translate("MainDialog", "清除", None, QtGui.QApplication.UnicodeUTF8))
self.pushButton_ad_auto_del.setText(QtGui.QApplication.translate("MainDialog", "删除", None, QtGui.QApplication.UnicodeUTF8))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_ad_auto), QtGui.QApplication.translate("MainDialog", "自动广告", None, QtGui.QApplication.UnicodeUTF8))
self.textEdit.setHtml(QtGui.QApplication.translate("MainDialog", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
"p, li { white-space: pre-wrap; }\n"
"</style></head><body style=\" font-family:\'MS Shell Dlg 2\'; font-size:8pt; font-weight:400; font-style:normal;\">\n"
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-weight:600;\">苍雪小工具</span></p>\n"
"<p style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-weight:600;\"></p>\n"
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">制作:<a href=\"mailto:araya.akashic@gmail.com\"><span style=\" text-decoration: underline; color:#0000ff;\">araya.akashic@gmail.com</span></a></p>\n"
"<p style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"></p>\n"
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">项目地址:<a href=\"http://stage1st-cheater.googlecode.com\"><span style=\" text-decoration: underline; color:#0000ff;\">http://2dgal-cheater.googlecode.com</span></a></p>\n"
"<p style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"></p>\n"
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">MIT LICENSE</p>\n"
"<hr />\n"
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-family:\'monospace\'; color:#494949;\">Copyright (c) 2010-2011 araya.akashic@gmail.com</span></p>\n"
"<p style=\" margin-top:8px; margin-bottom:16px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-family:\'monospace\'; color:#494949;\">Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:</span></p>\n"
"<p style=\" margin-top:8px; margin-bottom:16px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-family:\'monospace\'; color:#494949;\">The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.</span></p>\n"
"<p style=\" margin-top:8px; margin-bottom:16px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-family:\'monospace\'; color:#494949;\">THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.</span></p>\n"
"<hr />\n"
"<p style=\" margin-top:8px; margin-bottom:16px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">更多信息请移步:<a href=\"http://thegaran.info/blog\"><span style=\" text-decoration: underline; color:#0000ff;\">http://thegaran.info/blog</span></a></p></body></html>", None, QtGui.QApplication.UnicodeUTF8))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab), QtGui.QApplication.translate("MainDialog", "程序信息", None, QtGui.QApplication.UnicodeUTF8))
| [
[
1,
0,
0.0606,
0.0061,
0,
0.66,
0,
154,
0,
2,
0,
0,
154,
0,
0
],
[
7,
0,
0.0818,
0.0242,
0,
0.66,
0.5,
0,
0,
1,
0,
0,
0,
0,
0
],
[
14,
1,
0.0788,
0.0061,
1,
0.21,
... | [
"from PyQt4 import QtCore, QtGui",
"try:\n _fromUtf8 = QtCore.QString.fromUtf8\nexcept AttributeError:\n _fromUtf8 = lambda s: s",
" _fromUtf8 = QtCore.QString.fromUtf8",
" _fromUtf8 = lambda s: s",
"class Ui_MainDialog(object):\n def setupUi(self, MainDialog):\n MainDialog.setObjectNa... |
#######################################################################################
#
# File: user_agent_lib
# Part of stage1st-cheater
# Home: http://stage1st-cheater.googlecode.com
#
# The MIT License
#
# Copyright (c) 2010-2011 <araya.akashic@gmail.com>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.
#
#######################################################################################
'''
Created on May 29, 2011
@author: flyxian
'''
import random
UA_MSIE10 = ["Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; WOW64; Trident/6.0)",
"Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; Trident/6.0)",
"Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; Trident/5.0)",
"Mozilla/4.0 (compatible; MSIE 10.0; Windows NT 6.1; Trident/5.0)",
"Mozilla/1.22 (compatible; MSIE 10.0; Windows 3.1)"]
UA_MSIE9 = ["Mozilla/5.0 (Windows; U; MSIE 9.0; WIndows NT 9.0; en-US))",
"Mozilla/5.0 (Windows; U; MSIE 9.0; Windows NT 9.0; en-US)",
"Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 7.1; Trident/5.0)",
"Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0; SLCC2; Media Center PC 6.0; InfoPath.3; MS-RTC LM 8; Zune 4.7)",
"Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0; SLCC2; Media Center PC 6.0; InfoPath.3; MS-RTC LM 8; Zune 4.7",
"Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; Zune 4.0; InfoPath.3; MS-RTC LM 8; .NET4.0C; .NET4.0E)",
"Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET CLR 2.0.50727; Media Center PC 6.0)",
"Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Win64; x64; Trident/5.0; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET CLR 2.0.50727; Media Center PC 6.0)",
"Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Win64; x64; Trident/5.0; .NET CLR 2.0.50727; SLCC2; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; Zune 4.0; Tablet PC 2.0; InfoPath.3; .NET4.0C; .NET4.0E)",
"Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Win64; x64; Trident/5.0",
"Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0; chromeframe/11.0.696.57)",
"Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0) chromeframe/10.0.648.205",
"Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.0; Trident/5.0; chromeframe/11.0.696.57)",
"Mozilla/5.0 ( ; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)",
"Mozilla/4.0 (compatible; MSIE 9.0; Windows NT 5.1; Trident/5.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 7.1; Trident/5.0; .NET CLR 2.0.50727; SLCC2; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.3; .NET4.0C)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/5.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E; AskTB5.5)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/5.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; InfoPath.2; .NET4.0C; .NET4.0E)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; Win64; x64; Trident/5.0; .NET CLR 2.0.50727; SLCC2; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.3; .NET4.0C)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; Trident/5.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; FDM; .NET CLR 1.1.4322; .NET4.0C; .NET4.0E; Tablet PC 2.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; Trident/5.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; Tablet PC 2.0; InfoPath.3; .NET4.0E)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; Trident/5.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.30729; .NET CLR 3.0.30729; FDM; .NET4.0C; .NET4.0E; chromeframe/11.0.696.57)"]
UA_MSIE8 = ["Mozilla/5.0 (compatible; MSIE 8.0; Windows NT 5.2; Trident/4.0; Media Center PC 4.0; SLCC1; .NET CLR 3.0.04320)",
"Mozilla/5.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; SLCC1; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET CLR 1.1.4322)",
"Mozilla/5.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; InfoPath.2; SLCC1; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET CLR 2.0.50727)",
"Mozilla/5.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
"Mozilla/5.0 (compatible; MSIE 8.0; Windows NT 5.0; Trident/4.0; InfoPath.1; SV1; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET CLR 3.0.04506.30)",
"Mozilla/5.0 (compatible; MSIE 7.0; Windows NT 5.0; Trident/4.0; FBSMTWB; .NET CLR 2.0.34861; .NET CLR 3.0.3746.3218; .NET CLR 3.5.33652; msn OptimizedIE8;ENUS)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.2; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; Media Center PC 6.0; InfoPath.2; MS-RTC LM 8)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; Media Center PC 6.0; InfoPath.2; MS-RTC LM 8",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; Media Center PC 6.0; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; InfoPath.3; .NET4.0C; .NET4.0E; .NET CLR 3.5.30729; .NET CLR 3.0.30729; MS-RTC LM 8)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; Zune 3.0)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; msn OptimizedIE8;ZHCN)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; MS-RTC LM 8; InfoPath.3; .NET4.0C; .NET4.0E) chromeframe/8.0.552.224",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; MS-RTC LM 8; .NET4.0C; .NET4.0E; Zune 4.7; InfoPath.3)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; MS-RTC LM 8; .NET4.0C; .NET4.0E; Zune 4.7)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; MS-RTC LM 8)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.3; Zune 4.0)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.3; .NET4.0C; .NET4.0E; MS-RTC LM 8; Zune 4.7)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.3)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2; OfficeLiveConnector.1.4; OfficeLivePatch.1.3; yie8)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2; OfficeLiveConnector.1.3; OfficeLivePatch.0.0; Zune 3.0; MS-RTC LM 8)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2; OfficeLiveConnector.1.3; OfficeLivePatch.0.0; MS-RTC LM 8; Zune 4.0)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2; MS-RTC LM 8)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2; FDM; OfficeLiveConnector.1.4; OfficeLivePatch.1.3; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2; .NET4.0C; .NET4.0E; FDM)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; eSobiSubscriber 2.0.4.16; OfficeLiveConnector.1.4; OfficeLivePatch.1.3; InfoPath.3)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; eSobiSubscriber 2.0.4.16; InfoPath.2; OfficeLiveConnector.1.5; OfficeLivePatch.1.3)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; InfoPath.1; AskTbMYC/5.9.1.14019)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E; OfficeLiveConnector.1.5; OfficeLivePatch.1.3; AskTB5.6)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E; MS-RTC EA 2; MS-RTC LM 8; Zune 4.7)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET CLR 4.0.20402; MS-RTC LM 8)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET CLR 1.1.4322; InfoPath.2; MS-RTC LM 8)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET CLR 1.1.4322; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; InfoPath.3; .NET CLR 4.0.20506)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; QQPinyin 686; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; OfficeLiveConnector.1.5; OfficeLivePatch.1.3; .NET4.0C)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; MRA 5.5 (build 02842); SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; MRA 5.5 (build 02842); GTB6.3; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.3; Zune 4.0; .NET CLR 1.",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; GTB6.6; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; OfficeLiveConnector.1.4; OfficeLivePatch.1.3; MEGAUPLOAD 1.0)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; GTB6.6; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET CLR 1.1.4322; .NET4.0C; .NET4.0E)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; GTB6.5; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; eSobiSubscriber 2.0.4.16; .NET4.0C)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; GTB6.5; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; eSobiSubscriber 2.0.4.16; .NET CLR 1.1.4322; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; GTB6.5; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; GTB6.4; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; MSSDMC2.5.2219.1)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; GTB0.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.3; MS-RTC LM 8)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; FunWebProducts; GTB6.5; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; eSobiSubscriber 2.0.4.16; OfficeLiveConnector.1.5; OfficeLivePatch.",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; chromeframe; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.3)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; chromeframe; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2; MS-RTC LM 8)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; .NET4.0C; .NET4.0E)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Win64; x64; Trident/4.0; SLCC2)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Win64; x64; Trident/4.0; GTB6; .NET CLR 2.0.50727; SLCC2; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; AskTbIJBME/5.9.1.14019)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Win64; x64; Trident/4.0; GTB6.6; .NET CLR 2.0.50727; SLCC2; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; Media Center PC 5.0; SLCC1; Tablet PC 2.0; .NET4.0C)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Win64; x64; Trident/4.0; GTB6.6; .NET CLR 2.0.50727; SLCC2; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; AskTbGOM2/5.9.1.14019)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Win64; x64; Trident/4.0; .NET CLR 2.0.50727; SLCC2; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; Tablet PC 2.0)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Win64; x64; Trident/4.0; .NET CLR 2.0.50727; SLCC2; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET CLR 3.0.04506; Media Center PC 5.0; SLCC1)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Win64; x64; Trident/4.0; .NET CLR 2.0.50727; SLCC2; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Win64; x64; Trident/4.0)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; Media Center PC 6.0; InfoPath.3; .NET4.0C; .NET4.0E)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; Media Center PC 6.0; InfoPath.2; .NET CLR 1.1.4322; .NET CLR 3.5.30729; .NET CLR 3.0.30729; OfficeLiveConnector.1.5; OfficeLivePatch.1.3)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Tablet PC 2.0; .NET4.0C; AskTbPTV2/5.9.1.14019)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Tablet PC 2.0; .NET CLR 1.1.4322; .NET4.0C; .NET4.0E)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; Tablet PC 2.0; OfficeLiveConnector.1.4; OfficeLivePatch.1.3; MSSDMC2.5.2219.1)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; Tablet PC 2.0; InfoPath.2; OfficeLiveConnector.1.4; OfficeLivePatch.1.3; MS-RTC LM 8)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; Tablet PC 2.0; InfoPath.1; OfficeLiveConnector.1.5; OfficeLivePatch.1.3; .NET4.0C)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; Tablet PC 2.0; .NET CLR 3.0.04506; Media Center PC 5.0; SLCC1)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; SLCC1)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; OfficeLiveConnector.1.4; OfficeLivePatch.1.3; Zune 4.0)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; OfficeLiveConnector.1.4; OfficeLivePatch.1.3; .NET CLR 1.1.4322; .NET4.0C; .NET4.0E)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; MS-RTC LM 8; Tablet PC 2.0; InfoPath.3)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; MS-RTC LM 8; .NET4.0C; .NET4.0E; InfoPath.3; AskTbBT4/5.9.1.14019)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.3; .NET CLR 1.0.3705; .NET4.0C; .NET4.0E)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2; MS-RTC LM 8; Tablet PC 2.0; .NET CLR 1.1.4322; .NET4.0C)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2; .NET4.0C; FDM)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2; .NET4.0C; .NET CLR 1.1.4322; .NET4.0E; Zune 4.7)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.1; OfficeLiveConnector.1.4; OfficeLivePatch.1.3; SLCC1; MSSDMC2.5.2219.1)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; FDM; Tablet PC 2.0; .NET CLR 4.0.20506; OfficeLiveConnector.1.4; OfficeLivePatch.1.3)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; Zune 4.7; InfoPath.2; MS-RTC LM 8)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; InfoPath.2; OfficeLiveConnector.1.5; OfficeLivePatch.1.3; Tablet PC 2.0)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C) chromeframe/8.0.552.237",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET CLR 3.0.30618; Media Center PC 5.0; MS-RTC LM 8; SLCC1; Tablet PC 2.0; MSSDMC2.5.2219.1)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET CLR 3.0.30618; .NET4.0C; InfoPath.2; SLCC1)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET CLR 3.0.04506; Media Center PC 5.0; SLCC1; Tablet PC 2.0)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET CLR 1.1.4322; Tablet PC 2.0; OfficeLiveConnector.1.3; OfficeLivePatch.1.3; MS-RTC LM 8; InfoP",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET CLR 1.1.4322; InfoPath.2; .NET4.0C; .NET4.0E)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET CLR 1.1.4322; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET CLR 1.1.4322; .NET CLR 3.5.21022; SLCC1; Zune 4.0)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; InfoPath.3; MS-RTC LM 8)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.3029; Media Center PC 6.0; Tablet PC 2.0)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; QQDownload 661; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; MRA 5.7 (build 03797); SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2; Tablet PC 2.0)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; SLCC2; .NET CLR 2.0.50727; Media Center PC 6.0; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; Tablet PC 2.0)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; FDM; InfoPath.2; Tablet PC 2.0)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; Media Center PC 3.1; SV1; WOW64; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET CLR 4.0.20402; MS-RTC LM 8)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; MathPlayer 2.20; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.3; .NET4.0C; .NET4.0E; Tablet PC 2.0)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; iCafeMedia; QQDownload 667; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2; .NET4.0C; .NET4.0E)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; GTB6; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; OfficeLiveConnector.1.4; OfficeLivePatch.1.3)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; GTB6; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; GTB6; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET CLR 3.0.04506; SLCC1)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; GTB6.6; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; Tablet PC 2.0; InfoPath.2; OfficeLiveConnector.1.5; OfficeLivePatch.1.3; .NET4.0C) chromef",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; GTB6.6; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; SLCC1; Tablet PC 2.0; OfficeLiveConnector.1.5; OfficeLivePatch.1.3; .NET4.0C)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; GTB6.6; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.3; .NET4.0C; .NET4.0E)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; GTB6.6; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; eSobiSubscriber 2.0.4.16; .NET4.0C; InfoPath.3)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; GTB6.6; chromeframe; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; OfficeLiveConnector.1.4; OfficeLivePatch.1.3; .NET4.0C; .NET4.0E; InfoPath.3)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; GTB6.5; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; SLCC1)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; GTB6.5; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; MS-RTC LM 8; OfficeLiveConnector.1.4; OfficeLivePatch.1.3; Media Center PC 6.0)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; GTB6.5; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.3; .NET4.0C; AskTbFWV5/5.9.1.14019)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; GTB6.5; QQDownload 667; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; Tablet PC 2.0)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; GTB6.4; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2; MS-RTC LM 8; .NET4.0C; .NET4.0E)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; GTB6.4; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2; .NET4.0C; .NET4.0E; Tablet PC 2.0)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; GTB6.3; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E; InfoPath.3; MS-RTC LM 8)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; GTB0.0; SLCC2; .NET CLR 2.0.50727; Media Center PC 6.0)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; GTB0.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; eSobiSubscriber 2.0.4.16; InfoPath.2; .NET CLR 3.0.04506.30)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; chromeframe; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; Tablet PC 2.0)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; chromeframe; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET CLR 1.1.4322; OfficeLiveConnector.1.4; OfficeLivePatch.1.3; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; chromeframe; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; chromeframe/10.0.648.151; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; InfoPath.2; .NET4.0C)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; SV1; Alexa Toolbar)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; SV1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Alexa Toolbar)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; WOW64; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; InfoPath.2; .NET CLR 3.5.21022; .NET CLR 3.5.30729; .NET CLR 3.0.30618)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; WOW64; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.30729; OfficeLiveConnector.1.4; OfficeLivePatch.1.3; .NET CLR 3.0.30618)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; WOW64; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.30729; .NET CLR 3.0.30729; MSSDMC1.3.1020.3)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; WOW64; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.30729; .NET CLR 3.0.30618)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; WOW64; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.21022; FDM; .NET CLR 3.5.30729; InfoPath.2; .NET CLR 3.0.30729)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; WOW64; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.21022; .NET CLR 3.5.30729; MS-RTC LM 8; .NET CLR 3.0.30729)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; WOW64; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.30729; .NET CLR 3.5.30729; InfoPath.2; MS-RTC LM 8; .NET4.0C; .NET4.0E)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; WOW64; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.30618; .NET CLR 3.5.30729; .NET CLR 4.0.20506; OfficeLiveConnector.1.4; OfficeLivePatch.0.0)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; WOW64; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.30618)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; WOW64; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 1.1.4322; .NET CLR 3.5.30729; OfficeLiveConnector.1.4; OfficeLivePatch.1.3; .NET CLR 3.0.30729)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; WOW64; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 1.1.4322; .NET CLR 3.5.21022; InfoPath.2; .NET CLR 3.5.30729; .NET CLR 3.0.30618)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; WOW64; Trident/4.0; SLCC1; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 3.5.30729; .NET CLR 3.0.30729)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; WOW64; Trident/4.0; SLCC1; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 3.5.30729; .NET CLR 3.0.30618; MS-RTC LM 8)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; WOW64; Trident/4.0; SLCC1; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 3.5.21022; .NET CLR 3.5.30729; .NET CLR 3.0.30618; MS-RTC LM 8)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; WOW64; Trident/4.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30618; FDM)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; WOW64; Trident/4.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.5.21022; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C; .NET4.0E) chromeframe/6.0.472.63",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; WOW64; Trident/4.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.5.21022; .NET CLR 3.5.30729; .NET CLR 3.0.30618; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; WOW64; Trident/4.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.0.30729; .NET CLR 1.1.4322; .NET CLR 3.5.30729; InfoPath.2; MS-RTC LM 8; .NET4.0C; .NET4.0E)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; WOW64; Trident/4.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.0.30618; .NET4.0C; .NET4.0E; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; WOW64; Trident/4.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.0.30618; .NET CLR 3.5.30729; Media Center PC 5.0)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; WOW64; Trident/4.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.0.04506; Media Center PC 5.0; InfoPath.2; .NET CLR 3.5.21022)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; WOW64; Trident/4.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.0.04506; InfoPath.2; .NET CLR 3.5.21022; MS-RTC LM 8)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; WOW64; Trident/4.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 1.1.4322; MS-RTC LM 8; .NET CLR 3.5.21022; OfficeLiveConnector.1.3; OfficeLivePatch.0.0; .NET CLR 3.5.30729; .NET CLR 3.0.30618; InfoPath.3)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; WOW64; Trident/4.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 1.1.4322; InfoPath.2; MS-RTC LM 8; .NET CLR 3.5.21022; .NET CLR 3.5.30729; .NET CLR 3.0.30618)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; WOW64; Trident/4.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.5.30729; .NET CLR 3.0.30729)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; WOW64; Trident/4.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.0.30729; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; WOW64; Trident/4.0; SLCC1; .NET CLR 1.1.4322; InfoPath.2; MS-RTC LM 8)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; WOW64; Trident/4.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.30729; .NET CLR 3.0.30729)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; WOW64; Trident/4.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.21022; .NET CLR 3.5.30729; .NET CLR 3.0.30618)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; WOW64; Trident/4.0; GTB6; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; InfoPath.2; .NET CLR 3.5.21022; .NET CLR 1.1.4322; .NET CLR 3.5.30729; .NET CLR 3.0.30618)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; WOW64; Trident/4.0; GTB6; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.30729; .NET CLR 3.0.30618; MSSDMC2.4.2011.2)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; WOW64; Trident/4.0; GTB6; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 1.1.4322; OfficeLiveConnector.1.3; OfficeLivePatch.0.0; .NET CLR 3.5.30729; .NET CLR 3.0.30618; yie8)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; WOW64; Trident/4.0; GTB6; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 1.1.4322; .NET CLR 3.0.30618)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; WOW64; Trident/4.0; GTB6; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; WOW64; Trident/4.0; GTB6; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.0.30618; .NET CLR 1.1.4322; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; WOW64; Trident/4.0; GTB6.6; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.30729; .NET CLR 1.1.4322; .NET CLR 3.0.30729)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; WOW64; Trident/4.0; GTB6.4; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 1.1.4322; .NET CLR 3.5.30729; .NET CLR 3.0.30729)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; WOW64; Trident/4.0; GTB6.4; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30618; InfoPath.2; .NET CLR 1.1.4322; OfficeLiveConnector.1.4; OfficeLivePatch.0.0)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; WOW64; Trident/4.0; GTB5; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.0.30618; .NET CLR 3.5.30729; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; WOW64; Trident/4.0; GTB0.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.30618; .NET CLR 3.5.30729; .NET4.0C)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; WOW64; Trident/4.0; FunWebProducts; GTB6.6; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.30729; WinNT-PAR 03.09.2009; .NET CLR 3.0.30729; .NET4.0C)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; WOW64; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.0.04506; Media Center PC 5.0; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Win64; x64; Trident/4.0; .NET CLR 2.0.50727; SLCC1; Tablet PC 2.0; .NET CLR 3.5.30729; .NET CLR 3.0.30618)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Win64; x64; Trident/4.0; .NET CLR 2.0.50727; SLCC1; Media Center PC 5.0; .NET CLR 3.5.30729; .NET CLR 3.0.30729)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Win64; x64; Trident/4.0; .NET CLR 2.0.50727; SLCC1; Media Center PC 5.0; .NET CLR 3.5.30729; .NET CLR 3.0.30618)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Win64; x64; Trident/4.0; .NET CLR 2.0.50727; SLCC1; Media Center PC 5.0)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Win64; x64; Trident/4.0; .NET CLR 2.0.50727; SLCC1)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Win64; x64; Trident/4.0)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SV1; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 1.1.4322; .NET CLR 3.5.30729; .NET CLR 3.0.30618)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SV1; GTB6; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; InfoPath.2; .NET CLR 1.1.4322; .NET CLR 3.5.30729; .NET CLR 3.0.30618)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1;)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; Media Center PC 5.0; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30618)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Tablet PC 2.0; .NET CLR 3.5.30729; .NET CLR 3.0.30618; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Tablet PC 2.0; .NET CLR 1.1.4322; .NET CLR 3.5.30729; InfoPath.2; .NET CLR 3.0.30729)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; OfficeLiveConnector.1.3; OfficeLivePatch.0.0; .NET CLR 3.5.30729; .NET CLR 3.0.30618; MS-RTC LM 8; yie8)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; Tablet PC 2.0; InfoPath.1; .NET CLR 3.5.30729; .NET CLR 3.0.30729)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; Tablet PC 2.0; .NET CLR 3.5.30729; .NET CLR 3.0.30618; MS-RTC LM 8)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; Tablet PC 2.0; .NET CLR 3.5.30729; .NET CLR 3.0.30618)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; Tablet PC 2.0; .NET CLR 3.5.21022; .NET CLR 3.5.30729; .NET CLR 3.0.30618)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; Tablet PC 2.0)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; InfoPath.2; .NET CLR 3.5.30729; .NET CLR 3.0.30729)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; InfoPath.2; .NET CLR 3.5.30729; .NET CLR 3.0.30618; FDM; .NET CLR 1.1.4322; MS-RTC LM 8)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; InfoPath.2; .NET CLR 3.5.21022; .NET CLR 3.5.30729; OfficeLiveConnector.1.3; OfficeLivePatch.0.0; .NET CLR 1.1.4322; .NET CLR 3.0.30729)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; InfoPath.2; .NET CLR 3.5.21022; .NET CLR 3.5.30729; .NET CLR 3.0.30729)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; InfoPath.2; .NET CLR 3.5.21022; .NET CLR 3.5.30729; .NET CLR 3.0.30618)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; InfoPath.2; .NET CLR 1.1.4322; .NET CLR 3.5.30729; .NET CLR 3.0.30729; yie8)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; InfoPath.2; .NET CLR 1.1.4322; .NET CLR 3.5.30729; .NET CLR 3.0.30618)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; InfoPath.1; .NET CLR 3.5.30729; .NET CLR 3.0.30729)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; InfoPath.1; .NET CLR 3.5.30729; .NET CLR 3.0.30618; .NET4.0C)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; InfoPath.1; .NET CLR 3.5.30729; .NET CLR 3.0.30618)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; InfoPath.1; .NET CLR 3.5.21022; .NET CLR 3.5.30729; .NET CLR 3.0.30618)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.30729; InfoPath.2; .NET CLR 3.0.30729; OfficeLiveConnector.1.4; OfficeLivePatch.1.3)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.30729; .NET CLR 3.0.30729; yie8)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.30729; .NET CLR 3.0.30729; OfficeLiveConnector.1.5; OfficeLivePatch.1.3; InfoPath.1; .NET4.0C; .NET4.0E; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.30729; .NET CLR 3.0.30729; FDM; .NET4.0C; .NET4.0E; chromeframe/11.0.696.57)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.30729; .NET CLR 3.0.30729)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.30729; .NET CLR 3.0.30618; InfoPath.2; OfficeLiveConnector.1.3; OfficeLivePatch.1.3)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.30729; .NET CLR 3.0.30618; .NET CLR 1.1.4322; MS-RTC LM 8; .NET4.0C; InfoPath.3)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.30729; .NET CLR 3.0.30618; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.21022; Tablet PC 2.0; .NET CLR 3.5.30729; .NET CLR 3.0.30618)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.21022; InfoPath.2; Zune 3.0; .NET CLR 3.5.30729; .NET CLR 3.0.30618)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.21022; InfoPath.2; .NET CLR 3.5.30729; .NET CLR 3.0.30618)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.21022; .NET CLR 3.5.30729; .NET CLR 3.0.30618; Tablet PC 2.0; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.21022; .NET CLR 3.5.30729; .NET CLR 3.0.30618; InfoPath.2; OfficeLiveConnector.1.4; OfficeLivePatch.1.3)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.21022; .NET CLR 3.5.30729; .NET CLR 3.0.30618; FDM; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.30729; .NET4.0C; .NET4.0E; .NET CLR 3.5.30729; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.30618)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506; Tablet PC 2.0)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506; InfoPath.2; MEGAUPLOAD 3.0)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506; InfoPath.2; FDM)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 1.1.4322; Zune 2.5; InfoPath.2; .NET CLR 3.5.30729; .NET CLR 3.0.30618)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 1.1.4322; .NET CLR 3.5.30729; .NET CLR 3.0.30729)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; InfoPath.2; Windows-Media-Player/10.00.00.3990; .NET CLR 3.5.30428; .NET CLR 1.1.4322; .NET CLR 3.5.30729; .NET CLR 3.0.30618)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; InfoPath.2; MS-RTC LM 8; .NET CLR 3.5.30729; .NET CLR 3.0.30618)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 3.5.30729; MS-RTC LM 8; OfficeLiveConnector.1.3; OfficeLivePatch.0.0; .NET CLR 3.0.30729)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 3.5.30729; .NET CLR 3.0.30618; .NET CLR 1.1.4322; OfficeLiveConnector.1.3; OfficeLivePatch.0.0)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.5.30729; InfoPath.1; .NET CLR 3.0.30729; msn OptimizedIE8;ENUS)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; yie8)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; OfficeLivePatch.1.3; MS-RTC LM 8; OfficeLiveConnector.1.5; .NET4.0C)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30618; yie8)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30618; InfoPath.2; MS-RTC LM 8)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.5.21022; MS-RTC LM 8; Tablet PC 2.0; .NET CLR 3.5.30729; .NET CLR 3.0.30618)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.5.21022; .NET CLR 3.5.30428; .NET CLR 3.5.30729; Media Center PC 5.1; OfficeLiveConnector.1.4; OfficeLivePatch.1.3; .NET CLR 3.0.30729)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.5.21022; .NET CLR 3.0.30729; .NET CLR 3.5.30729; .NET4.0C; .NET4.0E; MS-RTC LM 8)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.5.21022; .NET CLR 1.1.4322; OfficeLiveConnector.1.3; OfficeLivePatch.0.0; .NET CLR 3.0.30729)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.0.30729; MS-RTC LM 8)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.0.30729; .NET CLR 3.5.30729; InfoPath.2; MS-RTC LM 8; OfficeLiveConnector.1.4; OfficeLivePatch.1.3)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.0.30729; .NET CLR 3.5.30729; .NET4.0C; .NET4.0E; Zune 4.7)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.0.30729; .NET CLR 1.1.4322; Tablet PC 2.0; InfoPath.2; MS-RTC LM 8)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.0.30618; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.0.30618; .NET CLR 3.5.30729; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.0.30618; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.0.04506; Tablet PC 2.0; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.0.04506; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.0.04506; .NET CLR 1.1.4322; InfoPath.2; .NET CLR 3.5.21022; MS-RTC LM 8)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.0.04506; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 3.5.21022; .NET CLR 3.5.30729; .NET CLR 3.0.30729)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Tablet PC 2.0; OfficeLiveConnector.1.5; OfficeLivePatch.1.3; .NET4.0C; .NET4.0E)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.5.30729; .NET CLR 3.0.30729)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 1.0.3705; .NET CLR 1.1.4322; InfoPath.2; .NET CLR 3.5.30729; .NET CLR 3.0.30729)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 1.0.3705; .NET CLR 1.1.4322; InfoPath.2; .NET CLR 3.5.30729; .NET CLR 3.0.30618)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; QQDownload 627; SLCC1; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 3.0.30729; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; QQDownload 627; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.0.04506)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; QQDownload 627; GTB6.6; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.5.21022; .NET CLR 3.5.30729; .NET CLR 3.0.30729)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; QQDownload 590; SLCC1; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; Q312461; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.30729; .NET CLR 3.0.30618)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; MS-RTC LM 8)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; InfoPath.2; .NET CLR 1.1.4322; .NET CLR 3.5.30729; .NET CLR 3.0.30729)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; InfoPath.1; .NET CLR 3.5.30729; .NET CLR 3.0.30618)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.21022; InfoPath.2; .NET CLR 3.5.30729; .NET CLR 3.0.30618)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.30729; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506; Tablet PC 2.0; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506; InfoPath.2; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.5.30729; InfoPath.2; .NET CLR 3.0.30729; Zune 4.0; MS-RTC LM 8; MSN Optimized;US)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30618)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) )",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; MathPlayer 2.10d; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506; InfoPath.2; .NET CLR 3.5.21022)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; MathPlayer 2.10d; GTB6.4; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.0.04506; .NET CLR 1.1.4322; InfoPath.2; Tablet PC 2.0)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; InfoPath.2; AskTbMYC-ST/5.9.1.14019)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; GTB7.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; GTB6; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; GTB6; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; Zune 3.0; InfoPath.2; .NET CLR 3.5.30729; .NET CLR 3.0.30618)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; GTB6; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; Zune 3.0; .NET CLR 3.5.30729; InfoPath.1; .NET CLR 3.0.30729; OfficeLiveConnector.1.4; OfficeLivePatch.1.3; MSN Optimized;US)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; GTB6; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; Windows-Media-Player/10.00.00.3990; Zune 3.0; .NET CLR 3.5.30729; .NET CLR 3.0.30729; yie8)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; GTB6; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; InfoPath.2; .NET CLR 1.1.4322; Dealio Toolbar 3.4; .NET CLR 3.5.30729; .NET CLR 3.0.30618)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; GTB6; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.30729; .NET CLR 3.0.30729; OfficeLiveConnector.1.4; OfficeLivePatch.1.3; MSN Optimized;US)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; GTB6; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.5.21022; .NET CLR 3.5.30729; .NET CLR 1.1.4322; .NET CLR 3.0.30729)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; GTB6; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) )",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; GTB6.6; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.1; .NET CLR 3.5.30729; .NET CLR 3.0.30729; InfoPath.2; OfficeLiveConnector.1.5; OfficeLivePatch.1.3; .NET4.0C)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; GTB6.6; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; InfoPath.1; .NET CLR 3.5.30729; OfficeLiveConnector.1.3; OfficeLivePatch.0.0; .NET4.0C; .NET CLR 3.0.30729)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; GTB6.6; SLCC1; .NET CLR 2.0.50727; InfoPath.1; .NET CLR 3.5.30729; .NET4.0C; .NET CLR 3.0.30729)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; GTB6.6; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.0.04506; .NET CLR 3.5.21022)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; GTB6.6; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; Tablet PC 2.0; .NET CLR 3.5.30729; .NET CLR 3.0.30618; OfficeLiveConnect",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; GTB6.5; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; FDM; .NET CLR 3.5.30729; .NET CLR 3.0.30729)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; GTB6.4; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; InfoPath.2; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; GTB6.4; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.30729; .NET4.0C; .NET CLR 3.0.30729; yie8)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; GTB6.4; SLCC1; .NET CLR 2.0.50727; eSobiSubscriber 2.0.4.16; .NET CLR 3.5.30729; .NET CLR 3.0.30729; InfoPath.2; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; GTB6.4; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; msn OptimizedIE8;ENUS)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; GTB5; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; Tablet PC 2.0; .NET CLR 3.5.30729; .NET CLR 3.0.30618)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; GTB5; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; MEGAUPLOAD 3.0; .NET CLR 3.0.30618; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; GTB5; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; InfoPath.1; .NET CLR 3.5.30729; .NET CLR 3.0.30618)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; GTB5; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 1.1.4322; InfoPath.2; .NET CLR 3.5.30729; .NET CLR 3.0.30618)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; GTB5; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 1.1.4322; .NET CLR 3.5.21022; .NET CLR 3.5.30729; .NET CLR 3.0.30618; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; GTB5; SLCC1; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 3.5.21022; .NET CLR 3.5.30729; .NET CLR 3.0.30618; MS-RTC LM 8)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; GTB5; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.0.04506; InfoPath.2; MS-RTC LM 8; .NET CLR 3.5.21022; Tablet PC 2.0)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; GTB5; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.0.04506; .NET CLR 1.1.4322; InfoPath.2; MS-RTC LM 8; .NET CLR 3.5.21022)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; GTB5; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 1.1.4322; InfoPath.2; .NET CLR 3.5.30729; .NET CLR 3.0.30618)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; GTB0.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 1.1.4322; .NET CLR 3.5.30729; .NET CLR 3.0.30729; InfoPath.1; A",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; GTB0.0; (R1 1.6); SLCC1; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30618; .NET4.0C)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; FunWebProducts; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; FunWebProducts; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.30729; .NET CLR 3.0.30618)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; FunWebProducts; GTB6; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; SLCC1; .NET CLR 2.0.50727; InfoPath.1; .NET CLR 3.5.30729; .NET CLR 3.0.30729)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; FunWebProducts; GTB6.6; SLCC1; .NET CLR 2.0.50727; eSobiSubscriber 2.0.4.16; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; FunWebProducts; GTB6.3; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.30729; OfficeLiveConnector.1.4; OfficeLivePatch.0.0; .NET CLR 3.0.30729; InfoPath.2; MS-RTC LM 8; .NE",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; FunWebProducts; GTB5; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.0.04506)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; FunWebProducts; GTB0.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.0.30618; .NET CLR 3.5.30729; OfficeLiveConnector.1.3; OfficeLivePatch.0.0; AskTB5.6)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; FDM)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; FBSMTWB; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.30729; .NET CLR 3.0.30618; OfficeLiveConnector.1.3; OfficeLivePatch.0.0; AskTB5.5)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; FBSMTWB; GTB6.3; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; FBSMTWB; FunWebProducts; GTB6.6; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.30729; InfoPath.3; .NET CLR 3.0.30729)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; chromeframe; SLCC1; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.5.30729; .NET CLR 3.0.30729)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; .NET CLR 3.5.30729; .NET4.0C; OfficeLiveConnector.1.5; .NET4.0E; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; ja)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.2; WOW64; Trident/4.0; .NET CLR 2.0.50727; InfoPath.1; .NET CLR 3.0.04506.30)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.2; WOW64; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.2; OfficeLiveConnector.1.5; OfficeLivePatch.1.3)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.2; WOW64; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.2; WOW64; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; InfoPath.1; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.2; Win64; x64; Trident/4.0)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.2; Trident/4.0; .NET CLR 3.0.04506.648; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.2; Trident/4.0; .NET CLR 1.1.4322; FDM; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.2; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.2; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 3.0.04506.30; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.2; .NET4.0C; .NET4.0E)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.2; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.2; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.2; OfficeLiveConnector.1.3; OfficeLivePatch.0.0)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.2; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.2; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.2; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.2; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.2; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.2; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.0450",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; Zango 10.1.181.0)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; YPC 3.2.0; MSN Optimized;GB; .NET CLR 2.0.50727; InfoPath.1; MSN Optimized;GB)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; Windows-Media-Player/10.00.00.3990; .NET CLR 3.0.04506.30; InfoPath.1; .NET CLR 3.0.04506.648; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; Tablet PC 1.7; .NET CLR 1.0.3705; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; InfoPath.2; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; Tablet PC 1.7; .NET CLR 1.0.3705; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; SV1; .NET CLR 2.0.50727; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; SV1)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; InfoPath.2; .NET CLR 3.5.21022; .NET CLR 3.5.30729; .NET CLR 3.0.30618)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; QQPinyinSetup 620; QQPinyin 730; GTB6.5; QQDownload 661; AskTB5.5)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; QQPinyinSetup 620; QQPinyin 689; QQPinyin 730)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; QQDownload 665; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C; .NET4.0E; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; MS-RTC LM 8; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; MS-RTC LM 8; .NET CLR 3.0.04506.30; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET CLR 2.0.50727; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; MS-RTC LM 8; .NET CLR 2.0.50727; Zune 2.5; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; MS-RTC LM 8; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; MS-RTC LM 8; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; MRA 4.3 (build 01218); .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; chromeframe; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; chromeframe)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 2.0.50727; MS-RTC LM 8; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 2.0.50727; FDM)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; FDM)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; OfficeLiveConnector.1.4; OfficeLivePatch.1.3)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.0.04506.30)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; MathPlayer 2.10d; FDM; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; MathPlayer 2.10d; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; MathPlayer 2.10b)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; iOpus-I-M; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; InfoPath.2; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; InfoPath.2; .NET CLR 2.0.50727; Zune 3.0; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; InfoPath.2; .NET CLR 2.0.50727; MS-RTC LM 8; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; InfoPath.2; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C; .NET4.0E; MS-RTC LM 8)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; InfoPath.2; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 1.1.4322; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; InfoPath.2; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; InfoPath.1; .NET CLR 2.0.50727; msn OptimizedIE8;ENUS)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; InfoPath.1; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; InfoPath.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; InfoPath.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; InfoPath.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; yie8)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; InfoPath.1; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.0.04506.30)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; InfoPath.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; AskTbARS/5.8.0.12304)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; InfoPath.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; iCafeMedia; GTB6.5; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6; QQDownload 672)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6; InfoPath.2; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6; InfoPath.2; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET CLR 1.1.4322; OfficeLiveConnector.1.4; OfficeLivePatch.1.3)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6; InfoPath.1; .NET CLR 3.0.04506.648; InfoPath.2; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6; InfoPath.1; .NET CLR 2.0.50727; OfficeLiveConnector.1.3; OfficeLivePatch.0.0; .NET CLR 1.1.4322; yie8)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6; InfoPath.1; .NET CLR 2.0.50727; Dealio Toolbar 3.4; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6; FBSMTWB; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6; chromeframe; .NET CLR 3.0.04506.30; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6; chromeframe; .NET CLR 2.0.50727; OfficeLiveConnector.1.3; OfficeLivePatch.0.0; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; msn OptimizedIE8;DEAT)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6; chromeframe; .NET CLR 2.0.50727; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6; chromeframe; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; msn OptimizedIE8;ENGB)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET CLR 1.1.4322; .NET CLR 4.0.20506)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6; .NET CLR 2.0.50727; .NET CLR 3.0.04506.590; .NET CLR 3.5.20706; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6; .NET CLR 1.1.4322; Zune 3.0)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.1; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; MS-RTC LM 8)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; Zune 2.0; .NET CLR 3.0.04506.648; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.0.4506.2152; .NET CLR",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6; .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0; MEGAUPLOAD 2.0; .NET CLR 2.0.50727; OfficeLiveConnector.1.3; OfficeLivePatch.0.0; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0; .NET CLR 2.0.50727; Zango 10.3.75.0; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; yie8)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6; (R1 1.5); .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6.6; InfoPath.2; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C; .NET4.0E; AskTbARS/5.8.0.12304)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6.6; InfoPath.2; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET CLR 1.1.4322; OfficeLiveConnector.1.3; OfficeLivePatch.0.0; .NET4.0C)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6.6; .NET CLR 2.0.50727; InfoPath.3; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6.6; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729) chromeframe/8.0.552.224",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6.6; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729) chromeframe/8.0.552.215",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6.6; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 1.1.4322; msn OptimizedIE8;ZHTW)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6.6; .NET CLR 2.0.50727; eSobiSubscriber 2.0.4.16; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6.6; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; Windows-Media-Player/10.00.00.3990; .NET CLR 3.5.30729; AskTbBT5/5.8.0.12304)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6.6; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; WinNT-EVI 30.03.2010; InfoPath.2; yie8)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6.6; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; OfficeLiveConnector.1.3; OfficeLivePatch.0.0; InfoPath.1; InfoPath.2; .NET4.0C; .NET4.0E)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6.6; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; msn OptimizedIE8;JAJP)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6.6; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.2; OfficeLiveConnector.1.3; OfficeLivePatch.0.0)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6.6; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C; .NET4.0E; InfoPath.3; Windows-Media-Player/10.00.00.3990; msn OptimizedIE8;ENUS)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6.6; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET CLR 1.1.4322; OfficeLiveConnector.1.4; OfficeLivePatch.1.3; .NET4.0C)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6.6; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET CLR 1.1.4322; InfoPath.2; AskTbX-SD/5.9.1.14019)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6.6; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C; .NET4.0E)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6.6; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET CLR 3.0.04506.30; .NET4.0C; .NET4.0E)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6.6; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; InfoPath.1; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6.6; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6.6; .NET CLR 2.0.50727; .NET CLR 1.1.4322; InfoPath.2; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C; .NET4.0E; AskTbMP3R7/5.9.1.14019)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6.6; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729) chromeframe/8.0.552.224",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6.6; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.0.04506.30; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; msn OptimizedIE8;JAJP)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6.6; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.1; AskTbF-ET/5.11.3.15590)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6.6; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6.6; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; InfoPath.2; MS-RTC LM 8; .NET CLR 3.0.04506.648; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6.6; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; InfoPath.2; .NET CLR 3.0.04506.648; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; MS-RTC LM 8; .NET4.0C; .NET4.0E)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6.6; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 1.0.3705; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C; .NET4.0E)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6.5; yie8; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 3.0.04506.648; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6.5; InfoPath.2; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; OfficeLiveConnector.1.3; OfficeLivePatch.0.0; .NET CLR 1.1.4322; AskTB5.6)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6.5; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; InfoPath.1; .NET4.0C; .NET4.0E; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6.5; .NET CLR 2.0.50727; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6.5; .NET CLR 2.0.50727; eSobiSubscriber 2.0.4.16; InfoPath.3; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6.5; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; OfficeLiveConnector.1.3; OfficeLivePatch.0.0)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6.5; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C; .NET4.0E; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6.5; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.2; MS-RTC LM 8)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6.5; .NET CLR 2.0.50727; .NET CLR 1.1.4322; InfoPath.2; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6.5; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 3.5.20706; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; MS-RTC LM 8)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6.5; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.1; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6.5; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.1; AskTB5.6)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6.5; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; AskTB5.4)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6.5; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.3; AskTB5.5)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6.5; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.3)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6.5; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; InfoPath.2; MS-RTC LM 8; .NET CLR 3.0.04506.648; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6.5; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; InfoPath.2; MS-RTC LM 8)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6.4; Tablet PC 1.7; .NET CLR 1.0.3705; .NET CLR 1.1.4322; yie8)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6.4; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6.3; .NET CLR 2.0.50727; InfoPath.1; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6.3; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6.3; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0; InfoPath.2; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6.3; (R1 1.6); .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB5; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB5; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB5; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.0.4506.2152; .NET CLR 3.5",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB5; InfoPath.2; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB5; InfoPath.2; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB5; InfoPath.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB5; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB5; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB5; .NET CLR 2.0.50727; .NET CLR 1.1.4322; InfoPath.1; InfoPath.2; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; MS-RTC LM 8)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB5; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.1; .NET CLR 3.0.04506.30)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB5; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB5; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB5; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB5; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB5; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 1.0.3705; .NET CLR 3.0.04506.648)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB5; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB0.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C; .NET4.0E)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB0.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; OfficeLiveConnector.1.3; OfficeLivePatch.1.3; InfoPath.1; MS-RTC LM 8)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB0.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729) chromeframe/7.0.517.44",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; FunWebProductsp; GTB6; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0; MS-RTC LM 8; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; InfoPath.2; .NET CLR 3.0.45",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; FunWebProducts; GTB6; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; MS-RTC LM 8; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; FunWebProducts; GTB6; .NET CLR 1.1.4322; HbTools 4.8.2)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; FunWebProducts; GTB6; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; FunWebProducts; GTB6; (R1 1.6); .NET CLR 1.1.4322; .NET CLR 2.0.50727; OfficeLiveConnector.1.3; OfficeLivePatch.0.0)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; FunWebProducts; GTB6.6; .NET CLR 2.0.50727; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; FunWebProducts; GTB6.6; .NET CLR 1.1.4322; InfoPath.2; .NET CLR 2.0.50727; FDM; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; FunWebProducts; GTB6.4)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; FunWebProducts; GTB6.3; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; MS-RTC LM 8; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; FunWebProducts; .NET CLR 2.0.50727; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; FunWebProducts; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.2) chromeframe/8.0.552.224",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; FunWebProducts; .NET CLR 1.1.4322; Zango 10.0.370.0; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; FunWebProducts; .NET CLR 1.1.4322; Zango 10.0.370.0)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; FunWebProducts; .NET CLR 1.1.4322; InfoPath.2; .NET CLR 2.0.50727; msn OptimizedIE8;ENUS)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; FDM; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; FDM; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET4.0C; .NET4.0E; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; FDM; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; FBSMTWB; GTB6.6; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; yie8)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; FBSMTWB; GTB6.6; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 3.1)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; FBSMTWB; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; chromeframe; .NET CLR 3.5.30729; FDM)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; chromeframe; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; InfoPath.2; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; chromeframe; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; chromeframe; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; chromeframe; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; OfficeLiveConnector.1.4; OfficeLivePatch.1.3)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; chromeframe/10.0.648.204; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; chromeframe)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; ABPlayer_3.0.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.2; .NET4.0C; .NET4.0E)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET4.0C; .NET4.0E; .NET CLR 2.0.50727; InfoPath.3; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET4.0C; .NET4.0E; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.2; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET4.0C; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 3.5.30729; FDM; MS-RTC LM 8; OfficeLiveConnector.1.4; OfficeLivePatch.1.3; .NET CLR 3.0.4506.2152)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 3.5.30729; FDM)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; Zune 3.0)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 3.0.04506.30; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 3.0.04506.30; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C; .NET4.0E; InfoPath.3)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 3.0.04506.30; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.2; MS-RTC LM 8; .NET4.0C; .NET4.0E)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; OfficeLiveConnector.1.3; OfficeLivePatch.0.0; .NET CLR 3.0.04506.30; .NET CLR 1.1.4322; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; MS-RTC LM 8; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; MEGAUPLOAD 1.0)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; InfoPath.1; .NET CLR 3.0.4506.2152; .NET4.0C; .NET4.0E; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; InfoPath.1; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; InfoPath.1; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 1.1.4322; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; FDM)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET4.0C; .NET4.0E)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; InfoPath.1; .NET CLR 3.5.30729; Zune 4.7)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; OfficeLiveConnector.1.3; OfficeLivePatch.0.0; .NET4.0C; .NET4.0E; Alexa Toolbar)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.2; msn OptimizedIE8;KOKR)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.1; MS-RTC LM 8)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; AskTbF-ET/5.8.0.12304)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C; Zune 4.7)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C; yie8)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET CLR 1.1.4322; OfficeLiveConnector.1.5; OfficeLivePatch.1.3; .NET4.0C)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET CLR 1.1.4322; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; InfoPath.2; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; OfficeLiveConnector.1.3; OfficeLivePatch.0.0)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 1.1.4322; OfficeLiveConnector.1.3; OfficeLivePatch.0.0)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 1.1.4322; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; MS-RTC LM 8)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022;",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; InfoPath.1; .NET CLR 3.0.04506.648; MS-RTC LM 8; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; InfoPath.2; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; OfficeLiveConnector.1.4; OfficeLivePatch.1.",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; OfficeLiveConnector.1.4; OfficeLivePatch.1.3)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; yie8)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 1.1.4322; FDM; InfoPath.1; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; OfficeLiveConnector.1.3; OfficeLivePatch.0.0; yie8)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.0.04506.30; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; OfficeLiveConnector.1.3; OfficeLivePatch.0.0)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.0.04506.30; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.2; .NET4.0C)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; Trident/4.0; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; OfficeLiveConnector.1.4; OfficeLivePatch.1.3)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; MS-RTC LM 8)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; InfoPath.2; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; InfoPath.2; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; MS-RTC LM 8; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; InfoPath.1; FDM; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; yie8)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 3.5.20404; .NET CLR 3.0.04506.30; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 3.0.04506.30; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; OfficeLiveConnector.1.3; OfficeLivePatch.1.3; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.2; MS-RTC LM 8; .NET4.0C)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.2; Zune 3.0; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; OfficeLiveConnector.1.3; OfficeLivePatch.0.0)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.2; MS-RTC LM 8; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; MS-RTC EA 2)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 3.0.04506.648)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 3.0.04506.30)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.1; .NET CLR 3.0.04506.30; MS-RTC LM 8; .NET CLR 3.0.04506.648)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.1; .NET CLR 3.0.04506.30; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; MS-RTC LM 8)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.1; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; MS-RTC LM 8; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C; .NET4.0E)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; Zune 3.0)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; MSN Optimized;ENAU)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.2; MSSDMC2.4.2011.2; AskTB5.6)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.2; MSSDMC2.4.2011.2)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729) Paros/3.2.13",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; Zune 3.0; MS-RTC LM 8)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; InfoPath.2; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; MS-RTC LM 8)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; InfoPath.1; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; OfficeLiveConnector.1.4; OfficeLivePatch.1.3; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.2; MS-RTC LM 8)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; InfoPath.2; MS-RTC LM 8)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; InfoPath.2; .NET CLR 3.0.04506.648; MS-RTC LM 8; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C; InfoPath.1; .NET4.0E)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; Zango 10.3.74.0)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; Windows-Media-Player/10.00.00.3990; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; InfoPath.2; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; OfficeLiveConnector.1.4;)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 1.0.3705; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.4506.2152)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 1.0.3705; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.3)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.0.3705; Media Center PC 3.1; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Tablet PC 1.7)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0; InfoPath.2; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.0.3705; .NET CLR 1.1.4322; .NET CLR 2.0.50727; MS-RTC LM 8; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.0.3705; .NET CLR 1.1.4322; .NET CLR 2.0.50727; Media Center PC 4.0; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.0.3705; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.1; MS-RTC LM 8; .NET4.0C; .NET4.0E)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.0.3705; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; (R1 1.5); .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; AskTbSPC/5.9.1.14019)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; (R1 1.5); .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; (R1 1.5); .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; ; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; InfoPath.2; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0) chromeframe/8.0.552.237",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; SV1; Alexa Toolbar)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; InfoPath.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; fr-CA)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; en-GB)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; InfoPath.2; .NET CLR 3.5.21022; .NET CLR 3.5.30729; .NET CLR 3.0.30618)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows 98; Win 9x 4.90; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; Tablet PC 2.0)",
"Mozilla/4.0 (compatible; MSIE 8.0; ; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/5.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; InfoPath.3; .NET4.0E) chromeframe/8.0.552.237",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; InfoPath.3; .NET4.0C; .NET4.0E; .NET CLR 3.5.30729; .NET CLR 3.0.30729; MS-RTC LM 8)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; OfficeLiveConnector.1.4; OfficeLivePatch.1.3; InfoPath.3; MS-RTC LM 8; .NET4.0C; .NET4.0E)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; OfficeLiveConnector.1.4; OfficeLivePatch.1.3)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.3; Zune 3.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.3)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2; OfficeLiveConnector.1.4; OfficeLivePatch.1.3; MSSDMC2.5.2219.1)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2; AskTbARS/5.9.1.14019)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; FDM; OfficeLiveConnector.1.4; OfficeLivePatch.1.3; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/4.0; GTB6.3; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; OfficeLivePatch.1.3; InfoPath.3)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/4.0; chromeframe; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.3; Zune 3.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/4.0; chromeframe; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; InfoPath.3; .NET4.0E)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; Win64; x64; Trident/4.0; .NET CLR 2.0.50727; SLCC2; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; Win64; x64; Trident/4.0; .NET CLR 2.0.50727; SLCC2; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Tablet PC 2.0; InfoPath.3; .NET4.0C; .NET4.0E)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; Zune 3.0; InfoPath.1; msn OptimizedIE8;ENUS)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; Tablet PC 2.0; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; MS-RTC LM 8; .NET4.0C; .NET4.0E)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2; Tablet PC 2.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET CLR 1.1.4322; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET CLR 1.1.4322; .NET CLR 3.0.30618; SLCC1)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; InfoPath.2; FDM)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; Trident/4.0; QQDownload 665; QQDownload 667; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; Trident/4.0; QQDownload 663; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.1; Tablet PC 2.0; .NET4.0C)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; Trident/4.0; QQDownload 663; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; Trident/4.0; QQDownload 661; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; Trident/4.0; QQDownload 661; GTB6.5; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; Tablet PC 2.0; .NET4.0C)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; Trident/4.0; QQDownload 646; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; Trident/4.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Tablet PC 2.0; Media Center PC 6.0; .NET4.0C)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; Trident/4.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2; Tablet PC 2.0; FDM)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; Trident/4.0; Media Center PC 3.1; .NET CLR 3.0.04320)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; Trident/4.0; GTB6.6; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2; OfficeLiveConnector.1.5; OfficeLivePatch.1.3; .NET4.0C; .NET4.0E)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; Trident/4.0; GTB6.6; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; eSobiSubscriber 2.0.4.16)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; Trident/4.0; GTB6.5; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; Alexa Toolbar)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; WOW64; Trident/5.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; WOW64; Trident/4.0; SLCC1; .NET CLR 2.0.50727; InfoPath.2; Media Center PC 5.0; .NET CLR 3.5.21022; .NET CLR 1.1.4322; .NET CLR 3.5.30729; .NET CLR 3.0.30618)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; WOW64; Trident/4.0; SLCC1; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 3.5.21022; .NET CLR 3.5.30729; .NET CLR 3.0.30729; OfficeLiveConnector.1.4; OfficeLivePatch.1.3; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; WOW64; Trident/4.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.5.30729; .NET CLR 3.0.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; WOW64; Trident/4.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.5.21022; .NET CLR 3.5.30729; .NET CLR 3.0.30618)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; WOW64; Trident/4.0; GTB6; SLCC1; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 3.5.30729; .NET CLR 3.0.30618; MSN Optimized;US)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; WOW64; Trident/4.0; GTB6; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.0.04506; Media Center PC 5.0; Zune 3.0; MSN Optimized;US)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; WOW64; Trident/4.0; GTB0.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.30729; .NET CLR 3.5.30729; .NET4.0C; .NET4.0E)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; WOW64; Trident/4.0; FunWebProducts; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.30729; .NET CLR 3.0.30618)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; WOW64; Trident/4.0; FBSMTWB; GTB6.6; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.30729; .NET CLR 3.0.30618; .NET CLR 1.1.4322; InfoPath.2; .NET4.0C)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; Win64; x64; Trident/4.0; .NET CLR 2.0.50727; SLCC1; Media Center PC 5.0; .NET CLR 3.5.21022; .NET CLR 3.5.30729; .NET CLR 3.0.30618)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; Win64; x64; Trident/4.0; .NET CLR 2.0.50727; SLCC1; Media Center PC 5.0; .NET CLR 3.0.04506)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; Zune 3.0; .NET CLR 3.5.30729; .NET CLR 3.0.30618)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; InfoPath.2; .NET CLR 3.5.30729; .NET CLR 3.0.30618)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; InfoPath.2; .NET CLR 3.0.30618; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; InfoPath.1; .NET CLR 3.5.30729; .NET CLR 3.0.30618)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; FDM; .NET CLR 3.5.30729; .NET CLR 3.0.30618)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.30729; .NET CLR 3.0.30618; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.21022; .NET CLR 3.0.30618; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.20706; .NET CLR 3.5.21022; .NET CLR 3.5.30729; .NET CLR 3.0.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.30618; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 1.1.4322; .NET CLR 3.5.30729; .NET CLR 3.0.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; InfoPath.2; Alexa Toolbar; MEGAUPLOAD 1.0; OfficeLiveConnector.1.3; OfficeLivePatch.0.0; .NET CLR 3.0.30729; msn OptimizedIE8;ZHHK)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 3.5.21022; .NET CLR 3.5.30729; .NET CLR 3.0.30618; MS-RTC LM 8)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 1.1.4322; .NET CLR 3.0.30729; .NET CLR 3.5.30729; MS-RTC LM 8)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.0.30618; .NET CLR 3.5.30729; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.0.04506; InfoPath.2; msn OptimizedIE8;ENUS)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.0.04506; .NET CLR 1.1.4322; InfoPath.2; .NET CLR 3.5.21022)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; Trident/4.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.30729; InfoPath.2; .NET CLR 3.0.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; Trident/4.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; Trident/4.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; Trident/4.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; SLCC1; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.5.30729; .NET CLR 3.0.30618)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; Trident/4.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) )",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; Trident/4.0; GTB6; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; InfoPath.1; InfoPath.2; .NET CLR 3.5.21022; .NET CLR 1.1.4322; .NET CLR 3.5.30729; .NET CLR 3.0.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; Trident/4.0; GTB6; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.21022; .NET CLR 3.5.30729; .NET CLR 3.0.30618; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; Trident/4.0; GTB6; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; Trident/4.0; GTB6; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.30729; .NET CLR 3.0.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; Trident/4.0; GTB6.6; SLCC1; .NET CLR 2.0.50727; .NET CLR 1.1.4322; InfoPath.2; .NET CLR 3.5.30729; .NET CLR 3.0.30618)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; Trident/4.0; GTB6.4; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.30729; .NET CLR 3.0.30729; OfficeLiveConnector.1.3; OfficeLivePatch.0.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; Trident/4.0; GTB6.4; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET CLR 1.1.4322; .NET4.0C)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; Trident/4.0; GTB6.3; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.5.21022; .NET CLR 3.5.30729; .NET CLR 3.0.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; Trident/4.0; GTB5; SLCC1; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 3.5.21022; .NET CLR 3.5.30729; .NET CLR 3.0.30618)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; Trident/4.0; GTB5; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.0.30618; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; Trident/4.0; GTB5; SLCC1; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.5.30729; .NET CLR 3.0.30618)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; Trident/4.0; GTB5; QQDownload 667; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.0.04506; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; Trident/4.0; GTB5; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506; .NET CLR 1.1.4322; .NET CLR 3.5.21022; .NET CLR 3.5.30",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; Trident/4.0; GTB5; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 1.1.4322; InfoPath.2; .NET CLR 3.5.30729; .NET CLR 3.0.30618)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; Trident/4.0; GTB0.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; Trident/4.0; .NET CLR 2.0.50727; SLCC2; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; Tablet PC 2.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; Trident/4.0; (R1 1.6); SLCC1; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 3.5.30729; .NET CLR 3.0.30618)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2; Trident/4.0; SLCC1; .NET CLR 1.0.3705; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2; Trident/4.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; eSobiSubscriber 2.0.4.16; InfoPath.2; OfficeLiveConnector.1.5; OfficeLivePatch.1.3)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; SV1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; SLCC1; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; InfoPath.2; .NET CLR 3.5.21022; .NET CLR 3.5.30729; .NET CLR 3.0.30618)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; QQDownload 1.7; GTB6.6; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; chromeframe)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; FDM)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; InfoPath.2; SV1; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; InfoPath.2; SLCC1; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET CLR 1.0.3705; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; InfoPath.2; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; MS-RTC LM 8; .NET4.0C; .NET4.0E)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; InfoPath.2; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; InfoPath.2; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; InfoPath.2; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; InfoPath.1; MS-RTC LM 8; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; InfoPath.1) Paros/3.2.13",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; GTB6; InfoPath.1; .NET CLR 2.0.50727; OfficeLiveConnector.1.3; OfficeLivePatch.0.0; yie8)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; GTB6; chromeframe; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; GTB6; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; InfoPath.2; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; MS-RTC LM 8)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; GTB6.6; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; OfficeLiveConnector.1.3; OfficeLivePatch.0.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; GTB6.6; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0; Alexa Toolbar; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; GTB6.4; Tablet PC 1.7; .NET CLR 1.0.3705; .NET CLR 1.1.4322; yie8)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; GTB6.4; AskTB5.6)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; GTB6.3; InfoPath.2; MS-RTC LM 8; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; GTB5; .NET CLR 1.1.4322; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; GTB5; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.2; MSN Optimized;US)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; GTB5; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; GTB5; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; GTB5; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0; InfoPath.1; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; GTB5)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; FunWebProducts; InfoPath.1; .NET CLR 2.0.50727; MSN OptimizedIE8;ENUS)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; FunWebProducts; GTB6; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; FunWebProducts; .NET CLR 1.1.4322; Zango 10.3.37.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; chromeframe; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; chromeframe; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; chromeframe; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; chromeframe; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 3.0.04506.30)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; .NET CLR 3.5.30729; FDM)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; Zune 4.7; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729) chromeframe/8.0.552.237",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; InfoPath.2; OfficeLiveConnector.1.3; OfficeLivePatch.0.0; MSN Optimized;US)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET CLR 1.1.4322; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; InfoPath.2; OfficeLiveConnector.1.3; OfficeLivePatch.0.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET CLR 4.0.20506)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 4.0.20506; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; AskTB5.6)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET CLR 1.1.4322; AskTB5.4)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; yie8)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; OfficeLiveConnector.1.3; OfficeLivePatch.0.0; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.1; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; yie8; yie8)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; msn OptimizedIE8;ENUS)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; MS-RTC LM 8; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; FDM)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; InfoPath.2; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; MSN Optimized;US)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.2; MSN Optimized;US)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.2)",
"Mozilla/4.0 ( ; MSIE 8.0; Windows NT 6.0; Trident/4.0; GTB6.6; .NET CLR 3.5.30729)",
"Mozilla/4.0 ( ; MSIE 7.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0)",
"(Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0))"]
UA_MSIE7 = ["Mozilla/4.0(compatible; MSIE 7.0b; Windows NT 6.0)",
"Mozilla/4.0 (compatible; MSIE 7.0b; Windows NT 6.0)",
"Mozilla/4.0 (compatible; MSIE 7.0b; Windows NT 5.2; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 3.0.04506.30)",
"Mozilla/4.0 (compatible; MSIE 7.0b; Windows NT 5.1; Media Center PC 3.0; .NET CLR 1.0.3705; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 7.0b; Windows NT 5.1; FDM; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 7.0b; Windows NT 5.1; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 7.0b; Windows NT 5.1; .NET CLR 1.1.4322; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 7.0b; Windows NT 5.1; .NET CLR 1.1.4322; Alexa Toolbar; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 7.0b; Windows NT 5.1; .NET CLR 1.1.4322; Alexa Toolbar)",
"Mozilla/4.0 (compatible; MSIE 7.0b; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 7.0b; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.40607)",
"Mozilla/4.0 (compatible; MSIE 7.0b; Windows NT 5.1; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 7.0b; Windows NT 5.1; .NET CLR 1.0.3705; Media Center PC 3.1; Alexa Toolbar; .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
"Mozilla/5.0 (Windows; U; MSIE 7.0; Windows NT 6.0; en-US)",
"Mozilla/5.0 (Windows; U; MSIE 7.0; Windows NT 6.0; el-GR)",
"Mozilla/5.0 (MSIE 7.0; Macintosh; U; SunOS; X11; gu; SV1; InfoPath.2; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648)",
"Mozilla/5.0 (compatible; MSIE 7.0; Windows NT 6.0; WOW64; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; c .NET CLR 3.0.04506; .NET CLR 3.5.30707; InfoPath.1; el-GR)",
"Mozilla/5.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; c .NET CLR 3.0.04506; .NET CLR 3.5.30707; InfoPath.1; el-GR)",
"Mozilla/5.0 (compatible; MSIE 7.0; Windows NT 6.0; fr-FR)",
"Mozilla/5.0 (compatible; MSIE 7.0; Windows NT 6.0; en-US)",
"Mozilla/5.0 (compatible; MSIE 7.0; Windows NT 5.2; WOW64; .NET CLR 2.0.50727)",
"Mozilla/5.0 (compatible; MSIE 7.0; Windows 98; SpamBlockerUtility 6.3.91; SpamBlockerUtility 6.2.91; .NET CLR 4.1.89;GB)",
"Mozilla/4.79 [en] (compatible; MSIE 7.0; Windows NT 5.0; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 1.1.4322; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648)",
"Mozilla/4.0 (Windows; MSIE 7.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727)",
"Mozilla/4.0 (Mozilla/4.0; MSIE 7.0; Windows NT 5.1; FDM; SV1; .NET CLR 3.0.04506.30)",
"Mozilla/4.0 (Mozilla/4.0; MSIE 7.0; Windows NT 5.1; FDM; SV1)",
"Mozilla/4.0 (compatible;MSIE 7.0;Windows NT 6.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; SLCC2; .NET CLR 2.0.50727; InfoPath.3; .NET4.0C; .NET4.0E; .NET CLR 3.5.30729; .NET CLR 3.0.30729; MS-RTC LM 8)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; MS-RTC LM 8; .NET4.0C; .NET4.0E; InfoPath.3)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0;)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; YPC 3.2.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; InfoPath.2; .NET CLR 3.5.30729; .NET CLR 3.0.30618)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; YPC 3.2.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.0.04506)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; WOW64; SLCC1; Media Center PC 5.0; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; WOW64; SLCC1; .NET CLR 3.0.04506)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; WOW64; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; InfoPath.2; .NET CLR 3.5.30729; .NET CLR 3.0.30618; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; WOW64; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; InfoPath.2; .NET CLR 1.1.4322; .NET CLR 3.5.30729; .NET CLR 3.0.30618; FDM)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; WOW64; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.30707; .NET CLR 3.0.30618)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; WOW64; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.21022; .NET CLR 3.5.30729; .NET CLR 3.0.30618)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; WOW64; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.21022; .NET CLR 3.5.30428; .NET CLR 3.0.30422)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; WOW64; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; WOW64; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.30618; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; WOW64; SLCC1; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 3.5.21022; .NET CLR 3.5.30729; .NET CLR 3.0.30618)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; WOW64; SLCC1; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 3.5.21022; .NET CLR 1.1.4322; .NET CLR 3.5.30729; .NET CLR 3.0.30618)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; WOW64; SLCC1; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 3.0.30618; .NET CLR 3.5.30729; Media Center PC 5.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; WOW64; SLCC1; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 1.1.4322; .NET CLR 3.5.30729; .NET CLR 3.0.30618)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; WOW64; SLCC1; .NET CLR 2.0.50727; InfoPath.1; .NET CLR 3.5.30729; .NET CLR 3.0.30618)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; WOW64; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30618)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; WOW64; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.5.21022; InfoPath.2; MS-RTC LM 8; .NET CLR 3.5.30729; .NET CLR 3.0.30618)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; WOW64; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.5.21022; InfoPath.2; .NET CLR 3.5.30729; .NET CLR 3.0.30618)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; WOW64; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.5.21022; .NET CLR 3.0.30618; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; WOW64; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.0.30729; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; WOW64; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.0.04506; Zango 10.3.75.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; WOW64; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.0.04506; Media Center PC 5.0; .NET CLR 3.5.21022; MEGAUPLOAD 2.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; WOW64; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.0.04506; Media Center PC 5.0; .NET CLR 3.5.21022; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; WOW64; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.0.04506; Media Center PC 5.0; .NET CLR 1.1.4322; .NET CLR 3.5.21022)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; WOW64; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.0.04506; InfoPath.1; Media Center PC 5.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; WOW64; SLCC1; .NET CLR 2.0.50727; .NET CLR 1.1.4322; InfoPath.2; MS-RTC LM 8; .NET CLR 3.5.21022; .NET CLR 3.5.30729; .NET CLR 3.0.30618)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; WOW64; SLCC1; .NET CLR 2.0.50727; .NET CLR 1.1.4322; InfoPath.2; .NET CLR 3.5.21022; .NET CLR 3.5.30729; .NET CLR 3.0.30618)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; WOW64; SLCC1; .NET CLR 2.0.50727; .NET CLR 1.1.4322; InfoPath.2; .NET CLR 3.5.21022; .NET CLR 3.0.30729; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; WOW64; SLCC1; .NET CLR 1.1.4322; InfoPath.2; MS-RTC LM 8; .NET CLR 3.5.30729; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; WOW64; SLCC1; .NET CLR 1.1.4322; InfoPath.2; MS-RTC LM 8; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; WOW64; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.30729; .NET CLR 3.0.30618; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; WOW64; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.21022; .NET CLR 3.5.30729; .NET CLR 3.0.30618)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; WOW64; GTB6; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; InfoPath.2; .NET CLR 3.5.21022; .NET CLR 3.5.30729; .NET CLR 3.0.30618; .NET CLR 1.1.4322; MS-RTC LM 8)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; WOW64; GTB6; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.0.04506; Media Center PC 5.0; InfoPath.2; .NET CLR 3.5.21022; .NET CLR 1.1.4322; MS-RTC LM 8)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; WOW64; GTB6.6; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.21022; InfoPath.2; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; WOW64; GTB5; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; Media Center PC 5.1; .NET CLR 3.5.21022; .NET CLR 3.5.30729; .NET CLR 3.0.30618)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; WOW64; GTB5; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; InfoPath.2; .NET CLR 3.5.30729; .NET CLR 3.0.30618)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; WOW64; GTB5; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.30729; .NET CLR 3.0.30618)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; WOW64; GTB5; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.21022; .NET CLR 3.5.30729; .NET CLR 3.0.30618)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; WOW64; GTB5; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.21022; .NET CLR 3.0.30618; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; WOW64; GTB5; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.0.04506; Media Center PC 5.0; InfoPath.2; .NET CLR 3.5.21022; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; WOW64; FunWebProducts; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; InfoPath.2; .NET CLR 3.5.30729; .NET CLR 3.0.30618)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; WOW64; chromeframe; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30618; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; Win64; x64; .NET CLR 2.0.50727; SLCC1; Media Center PC 5.1; .NET CLR 3.5.21022; .NET CLR 3.5.30729; .NET CLR 3.0.30618)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; Win64; x64; .NET CLR 2.0.50727; SLCC1; Media Center PC 5.0; .NET CLR 3.5.30729; .NET CLR 3.0.30618; Tablet PC 2.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; Win64; x64; .NET CLR 2.0.50727; SLCC1; .NET CLR 3.0.30618; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; User-agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1;); SLCC1; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.5.30729; .NET CLR 3.0.30618)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; Tablet PC 2.0; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SV1; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.30729; .NET CLR 3.0.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SV1; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 1.1.4322; .NET CLR 3.5.30729; .NET CLR 3.0.30618; MSN Optimized;US)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SV1; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.0.04506; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SV1; SLCC1; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.5.21022; .NET CLR 3.5.30729; .NET CLR 3.0.30618)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SV1; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SV1; InfoPath.1; .NET CLR 1.1.4322; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SV1; FunWebProducts; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; Zango 10.3.75.0; .NET CLR 3.5.30729; .NET CLR 3.0.30618)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; MS-RTC LM 8; .NET CLR 3.5.30729; .NET CLR 3.0.30618)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.1; .NET CLR 3.5.21022; .NET CLR 3.0.30618; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; Tablet PC 2.0; .NET CLR 3.5.30729; .NET CLR 3.0.30618; InfoPath.1; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; Tablet PC 2.0; .NET CLR 3.5.21022; .NET CLR 3.5.30729; .NET CLR 3.0.30618)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; InfoPath.2; FDM; .NET CLR 3.5.21022; .NET CLR 3.5.30729; .NET CLR 3.0.30618)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; InfoPath.2; Dealio Toolbar 3.4; .NET CLR 3.5.30729; .NET CLR 3.0.30618)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; InfoPath.2; .NET CLR 3.5.30729; .NET CLR 3.0.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; InfoPath.2; .NET CLR 3.5.21022; MS-RTC LM 8; .NET CLR 3.5.30729; .NET CLR 3.0.30618)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.30729; .NET CLR 3.0.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.30729; .NET CLR 3.0.30618; yie8)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.30729; .NET CLR 3.0.30618; .NET CLR 1.1.4322; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.21022; InfoPath.2; MS-RTC LM 8; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C; .NET4.0E)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.21022; InfoPath.2; .NET CLR 3.5.30729; .NET CLR 3.0.30618)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.21022; .NET CLR 3.5.30729; .NET CLR 3.0.30618)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.21022; .NET CLR 1.1.4322; .NET CLR 3.5.30729; .NET CLR 3.0.30618)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.30618; InfoPath.2; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.30618; .NET CLR 3.5.30729; Tablet PC 2.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.30618; .NET CLR 3.5.30729; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.30618; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.30618; .NET CLR 3.5.30628)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506; Zango 10.3.70.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506; Zango 10.0.370.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506; Tablet PC 2.0; InfoPath.2; .NET CLR 3.5.21022)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506; Seekmo 10.0.406.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506; PeoplePal 3.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506; MEGAUPLOAD 2.0; .NET CLR 3.5.21022)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506; InfoPath.2; Seekmo 10.0.341.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506; InfoPath.2; .NET CLR 3.5.21022; Tablet PC 2.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506; InfoPath.1; Windows-Media-Player/10.00.00.3990)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506; InfoPath.1; MS-RTC LM 8; .NET CLR 3.5.21022)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506; FDM; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506; FDM; .NET CLR 3.5.21022)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506; Alexa Toolbar; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506; .NET CLR 1.1.4322; Zango 10.3.65.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506; .NET CLR 1.1.4322; Zango 10.3.37.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506; .NET CLR 1.1.4322; Windows-Media-Player/10.00.00.3990)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506; .NET CLR 1.1.4322; Tablet PC 2.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506; .NET CLR 1.1.4322; InfoPath.2; Zango 10.3.75.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506; .NET CLR 1.1.4322; FDM)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506; .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 1.1.4322; .NET CLR 3.5.30729; InfoPath.2; .NET CLR 3.0.30729; .NET4.0C; .NET4.0E)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 1.1.4322; .NET CLR 3.5.21022; InfoPath.2; .NET CLR 3.5.30729; .NET CLR 3.0.30618)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 1.1.4322; .NET CLR 3.0.04506; Tablet PC 2.0; Zango 10.3.65.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; InfoPath.2; Zango 10.3.37.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; InfoPath.2; MS-RTC LM 8; .NET CLR 3.5.30729; .NET CLR 3.0.30618; FDM)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 3.0.30729; MS-RTC LM 8; .NET CLR 3.5.21022)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 3.0.30618; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 3.0.30618; .NET CLR 3.5.21022)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 3.0.30618)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 3.0.04506; .NET CLR 3.5.21022; MS-RTC LM 8)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 3.0.04506; .NET CLR 3.5.21022; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 1.1.4322; .NET CLR 3.5.30729; .NET CLR 3.0.30618; Zune 3.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 1.1.4322; .NET CLR 3.5.30729; .NET CLR 3.0.30618; MS-RTC LM 8)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; InfoPath.1; .NET CLR 3.5.21022; .NET CLR 3.5.30729; .NET CLR 3.0.30618)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; InfoPath.2; OfficeLiveConnector.1.5; OfficeLivePatch.1.3; .NET4.0C; AskTB5.6)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30618; Zango 10.3.75.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30618; FDM)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30618; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.5.21022; MS-RTC LM 8; .NET CLR 3.5.30729; .NET CLR 3.0.30618)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.5.21022; InfoPath.2; .NET CLR 3.5.30729; .NET CLR 3.0.30618; FDM)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.5.21022; InfoPath.2; .NET CLR 1.1.4322; .NET CLR 3.5.30428; .NET CLR 3.0.30422)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.5.21022; InfoPath.1; .NET CLR 1.1.4322; .NET CLR 3.5.30729; .NET CLR 3.0.30618)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.5.21022; .NET CLR 3.5.30729; .NET CLR 3.0.30618; yie8)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.5.21022; .NET CLR 3.5.30729; .NET CLR 3.0.30618; MS-RTC LM 8)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.5.21022; .NET CLR 3.5.30729; .NET CLR 3.0.30618; InfoPath.2; .NET4.0C; AskTB5.6)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.5.21022; .NET CLR 3.0.04506; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.0.30729; .NET4.0C; .NET4.0E; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.0.30729; .NET CLR 3.5.30729; InfoPath.2; .NET4.0C)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.0.04506; Zango 10.3.74.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.0.04506; Zango 10.3.37.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.0.04506; Zango 10.3.35.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.0.04506; Tablet PC 2.0; InfoPath.2; .NET CLR 3.5.21022; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.0.04506; Tablet PC 2.0; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.0.04506; Tablet PC 2.0; .NET CLR 1.1.4322; InfoPath.2; .NET CLR 3.5.21022)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.0.04506; InfoPath.2; FDM)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.0.04506; InfoPath.2; .NET CLR 3.5.21022; Tablet PC 2.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.0.04506; InfoPath.2; .NET CLR 3.5.21022; FDM)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.0.04506; InfoPath.2; .NET CLR 1.1.4322; FDM)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.0.04506; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.0.04506; .NET CLR 3.5.21022; .NET CLR 1.1.4322; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.0.04506; .NET CLR 1.1.4322; Zune 3.0; MS-RTC LM 8; InfoPath.3)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.0.04506; .NET CLR 1.1.4322; .NET CLR 3.5.21022; .NET4.0C; .NET4.0E)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.0.04506; .NET CLR 1.0.3705; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 1.1.4322; InfoPath.2; MS-RTC LM 8; .NET CLR 3.5.20706; .NET CLR 3.0.590)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 1.1.4322; InfoPath.2; .NET CLR 3.5.21022; .NET CLR 3.5.30729; OfficeLiveConnector.1.3; OfficeLivePatch.0.0; .NET CLR 3.0.30729; MS-RTC LM 8)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.5.21022; InfoPath.2; .NET CLR 3.5.30729; .NET CLR 3.0.30618)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.5.21022; .NET CLR 3.0.04506)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1); SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.30729; .NET CLR 3.0.30618)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; SLCC1; .NET CLR 2.0.50727; Seekmo 10.0.406.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; InfoPath.2; .NET CLR 3.5.30729; .NET CLR 3.0.30618)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506; Zango 10.3.75.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506; .NET CLR 1.1.4322; Zango 10.3.65.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506; .NET CLR 1.1.4322; .NET CLR 3.5.21022)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.0.04506; .NET CLR 1.1.4322; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; SLCC1; .NET CLR 2.0.50727; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 3.5.30729; .NET CLR 3.0.30618)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; SLCC1; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.5.21022; .NET CLR 3.5.30729; .NET CLR 3.0.30618)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; MathPlayer 2.10d; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.30729; .NET CLR 3.0.30618)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; MathPlayer 2.10d; GTB5; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.30618; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; MathPlayer 2.10d; GTB5; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; InfoPath.1; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; GTB6; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; InfoPath.2; .NET CLR 3.5.30729; .NET CLR 3.0.30618; Zune 3.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; GTB6; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.30618; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; GTB6; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506; InfoPath.2; Zune 2.5; OfficeLiveConnector.1.3; OfficeLivePatch.0.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; GTB6; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506; InfoPath.2; .NET CLR 1.1.4322; Dealio Toolbar 3.4)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; GTB6; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506; InfoPath.2; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; GTB6; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; GTB6; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506; Dealio Toolbar 3.4; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; GTB6; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.0.04506; AskTB5.3)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; GTB6; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.0.04506; .NET CLR 1.1.4322; InfoPath.1; Zune 3.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; GTB6; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.0.04506; .NET CLR 1.1.4322; InfoPath.1; Zune 2.5)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; GTB6; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.0.04506; .NET CLR 1.1.4322; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; GTB6.6; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 1.1.4322; .NET CLR 3.5.30729; .NET CLR 3.0.30618; InfoPath.3; .NET4.0C)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; GTB6.6; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.5.30729; InfoPath.2; .NET CLR 3.0.30729; .NET CLR 1.1.4322; .NET4.0C)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; GTB6.6; SLCC1; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.5.30729; .NET CLR 3.0.30618; .NET4.0C)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; GTB6.5; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; eSobiSubscriber 2.0.4.16; .NET CLR 3.5.30729; .NET CLR 3.0.30618; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; GTB6.4; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.0.30618; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; GTB6.3; FBSMTWB; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.30729; .NET CLR 3.0.30618; OfficeLiveConnector.1.3; OfficeLivePatch.0.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; GTB5; SLCC1; .NET CLR 2.0.50727; Seekmo 10.0.406.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; GTB5; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.1; .NET CLR 3.5.30729; .NET CLR 3.0.30618)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; GTB5; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; Tablet PC 2.0; .NET CLR 3.5.21022; .NET CLR 3.5.30729; .NET CLR 3.0.04506)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; GTB5; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; Tablet PC 2.0; .NET CLR 3.0.30618)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; GTB5; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; InfoPath.2; FDM; .NET CLR 3.5.30729; .NET CLR 3.0.30618)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; GTB5; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; InfoPath.2; .NET CLR 3.5.30729; .NET CLR 3.0.30618)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; GTB5; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; InfoPath.2; .NET CLR 3.5.21022; .NET CLR 3.5.30729; .NET CLR 3.0.30618)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; GTB5; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; InfoPath.2; .NET CLR 3.0.04506)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; GTB5; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; InfoPath.1; .NET CLR 3.0.30618)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; GTB5; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.30729; .NET CLR 3.0.30618; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; GTB5; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.30729; .NET CLR 3.0.30618; FDM)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; GTB5; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506; Zune 3.0; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; GTB5; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506; InfoPath.2; .NET CLR 3.5.21022)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; GTB5; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506; InfoPath.2; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; GTB5; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506; FDM)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; GTB5; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506; .NET CLR 1.1.4322; .NET CLR 3.5.21022; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; GTB5; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 1.1.4322; .NET CLR 3.5.21022; InfoPath.2; .NET CLR 3.5.30729; .NET CLR 3.0.30618)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; GTB5; SLCC1; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 1.1.4322; .NET CLR 3.5.30729; .NET CLR 3.0.30618)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; GTB5; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.0.04506; Media Center PC 5.1; .NET CLR 3.5.21022)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; GTB5; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.0.04506; Media Center PC 5.1; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; GTB5; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.0.04506; InfoPath.1; FDM)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; GTB5; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.0.04506; .NET CLR 1.1.4322; MS-RTC LM 8; InfoPath.2; OfficeLiveConnector.1.2; Zune 3.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; GTB5; SLCC1; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.5.21022; .NET CLR 3.0.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; GTB5; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; InfoPath.1; .NET CLR 3.5.30729; .NET CLR 3.0.30618)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; GTB5; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; SLCC1; .NET CLR 2.0.50727; InfoPath.1; .NET CLR 3.5.30729; .NET CLR 3.0.30618)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; GTB5; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30618; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; GTB5; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.0.04506; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; GTB5; MathPlayer 2.10d; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; GTB5; FunWebProducts; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; InfoPath.1; .NET CLR 3.5.30729; .NET CLR 3.0.30618)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; GTB5; FunWebProducts; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.30618)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; GTB5; FunWebProducts; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; SLCC1; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 3.5.30729; .NET CLR 3.0.30618)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; GTB5; FunWebProducts; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.0.04506)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; GTB5; (R1 1.5); SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; GTB5; (R1 1.5); SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506; .NET CLR 3.5.21022)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; FunWebProducts; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; InfoPath.2; .NET CLR 3.5.30729; .NET CLR 3.0.30618)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; FunWebProducts; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.30618)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; FunWebProducts; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506; Zango 10.3.74.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; FunWebProducts; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506; InfoPath.2; Seekmo 10.0.406.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; FunWebProducts; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506; .NET CLR 1.1.4322; InfoPath.2; Zango 10.3.74.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; FunWebProducts; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506; .NET CLR 1.1.4322; AskTB5.3)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; FunWebProducts; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; SLCC1; .NET CLR 2.0.50727; Seekmo 10.0.406.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; FunWebProducts; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; FunWebProducts; GTB6; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.0.04506)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; FunWebProducts; GTB5; SLCC1; .NET CLR 2.0.50727; Zango 10.3.75.0; .NET CLR 3.5.30729; .NET CLR 3.0.30618)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; FunWebProducts; GTB5; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; InfoPath.2; .NET CLR 3.5.30729; .NET CLR 3.0.30618)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; FunWebProducts; GTB5; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506; Tablet PC 2.0; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; FunWebProducts; GTB5; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; FunWebProducts; GTB5; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 1.1.4322; .NET CLR 3.5.30729; .NET CLR 3.0.30618)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; FBSMTWB; SLCC1; .NET CLR 2.0.50727; .NET CLR 1.1.4322; InfoPath.2; .NET CLR 3.5.30729; .NET CLR 3.0.30729; OfficeLiveConnector.1.5; OfficeLivePatch.1.3; .NET4.0C)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; chromeframe; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.0.30618; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; chromeframe; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.0.04506; MS-RTC LM 8)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; Alexa Toolbar)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; ABPlayer_1.3.22; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.21022; InfoPath.2; .NET CLR 3.5.30729; .NET CLR 3.0.30618)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506; FDM)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30618)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; .NET CLR 2.0.50727; .NET CLR 3.0.04506)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; .NET CLR 1.1.4322; InfoPath.2; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; (R1 1.6); SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506; InfoPath.2; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; (R1 1.6); SLCC1; .NET CLR 2.0.50727; .NET CLR 1.1.4322; InfoPath.2; .NET CLR 3.5.30729; .NET CLR 3.0.30618)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; (R1 1.5); SLCC1; .NET CLR 2.0.50727; .NET CLR 3.0.04506; InfoPath.2; FDM)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0 SLCC1; .NET CLR 2.0.50727; .NET CLR 3.0.04506)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.5)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2; WOW64; Seekmo 10.0.431.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2; WOW64; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; FDM; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2; WOW64; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 1.1.4322; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2; WOW64; InfoPath.2; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2; WOW64; InfoPath.1; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.0.04506.30)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2; WOW64; InfoPath.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2; WOW64; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2; WOW64; GTB6.5; MathPlayer 2.20; InfoPath.2; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2; WOW64; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 1.1.4322; MS-RTC LM 8)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2; WOW64; .NET CLR 2.0.50727; InfoPath.1; SV1)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2; WOW64; .NET CLR 2.0.50727; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2; WOW64; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2; WOW64; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2; WOW64; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2; WOW64; .NET CLR 2.0.50727; .NET CLR 3.0.04506.590; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2; WOW64; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; InfoPath.2; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2; WOW64; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2; WOW64; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2; WOW64; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.0.04506.30)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2; WOW64; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.0.04506.03)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2; WOW64; .NET CLR 2.0.50727; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2; WOW64; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2; WOW64; .NET CLR 1.1.4322; InfoPath.2; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2; WOW64; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 3.0.04506.30; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2; WOW64; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2; WOW64; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2; WOW64; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.1; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2; WOW64; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.1; .NET CLR 3.0.04506.30)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2; WOW64; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2; WOW64; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2; WOW64; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; InfoPath.2; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2; WOW64; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; InfoPath.2; .NET CLR 3.0.04506.648)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2; WOW64; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2; WOW64; .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2; WOW64)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2; Win64; x64; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2; Win64; x64; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2; Q312461; .NET CLR 1.0.3705; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2; MathPlayer 2.10; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2; GTB6; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2; GTB6; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; InfoPath.2; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; MS-RTC LM 8)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2; GTB5; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2; FunWebProducts; .NET CLR 1.1.4322; InfoPath.2; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2; .NET CLR 2.0.50727; FDM)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2; .NET CLR 1.1.4322; InfoPath.2; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2; .NET CLR 1.1.4322; .NET CLR 3.0.04506.30)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2; .NET CLR 1.1.4322; .NET CLR 2.0.50727; WinFX RunTime 3.0.50727; InfoPath.2; .NET CLR 3.0.04506.30)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 3.0.04506.30)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.1; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.1; .NET CLR 3.0.04506.30)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2; .NET CLR 1.1.4322; .NET CLR 2.0.50727; Avalon 6.0.5070; WinFX RunTime 3.0.50727; .NET CLR 3.0.04506.30)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; InfoPath.2; .NET CLR 3.0.04506.648)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; InfoPath.1; .NET CLR 3.0.04506.648; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; FDM; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; InfoPath.2; .NET CLR 3.5.21022; MS-RTC LM 8; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; InfoPath.2; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; MS-RTC LM 8)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; InfoPath.1; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; FDM; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2; .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2; .NET CLR 1.1.4322; .NET CLR 1.0.3705; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1;)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; zh-cn)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Zango 10.3.75.0; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Zango 10.0.370.0; .NET CLR 2.0.50727; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; YPC 3.2.0; yplus 5.3.04b)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; YPC 3.2.0; SV1; FunWebProducts; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; YPC 3.2.0; Media Center PC 3.0; .NET CLR 1.0.3705; .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; YPC 3.2.0; GTB5; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; YPC 3.2.0; GTB5; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; YPC 3.2.0; GTB5; .NET CLR 2.0.50727; yplus 5.3.04b)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; YPC 3.2.0; GTB5; .NET CLR 1.1.4322; yplus 5.3.04b)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; YPC 3.2.0; GTB5; .NET CLR 1.1.4322; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; YPC 3.2.0; GTB5; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; YPC 3.2.0; GTB5; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; YPC 3.2.0; GTB5; .NET CLR 1.0.3705; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET CLR 1.1.4322; Media Center PC 4.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; YPC 3.2.0; FunWebProducts; PeoplePal 3.0; yplus 5.6.04b)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; YPC 3.2.0; FunWebProducts; GTB5; .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; YPC 3.2.0; FunWebProducts; .NET CLR 1.1.4322; Zango 10.0.314.0; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; YPC 3.2.0; FunWebProducts; .NET CLR 1.1.4322; .NET CLR 2.0.50727; yplus 5.3.04b)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; YPC 3.2.0; FunWebProducts; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0; .NET CLR 2.0.50727; InfoPath.1; yplus 5.3.04b)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; YPC 3.2.0; FunWebProducts; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; YPC 3.2.0; .NET CLR 2.0.50727; yplus 5.1.04b)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; YPC 3.2.0; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; YPC 3.2.0; .NET CLR 1.1.4322; Zango 10.0.314.0; yplus 5.1.02b)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; YPC 3.2.0; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; YPC 3.2.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; Seekmo 10.0.424.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; YPC 3.2.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; Seekmo 10.0.345.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; YPC 3.2.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; YPC 3.2.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; YPC 3.2.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; YPC 3.2.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; YPC 3.2.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; YPC 3.2.0; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; YPC 3.2.0; .NET CLR 1.0.3705; .NET CLR 2.0.50727; .NET CLR 1.1.4322; Media Center PC 4.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; YPC 3.2.0; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0; .NET CLR 2.0.50727; yplus 5.5.04b)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; YPC 3.2.0; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; yplus 5.1.04b)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; YPC 3.2.0; (R1 1.5); .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; YPC 3.2.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; YPC 3.0.3; yplus 4.2.00b)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; YPC 3.0.3; .NET CLR 1.1.4322; yplus 5.1.04b)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; YPC 3.0.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; YPC 3.0.0; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727; Zango 10.3.36.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; YComp 5.0.0.0; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; YComp 5.0.0.0; .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Wysigot 5.5; .NET CLR 2.0.50727; .NET CLR 3.0.04307.00; FDM; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Wanadoo 6.2)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; GTB5; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Tablet PC 1.7; .NET CLR 1.0.3705; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Tablet PC 1.7; .NET CLR 1.0.3705; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Tablet PC 1.7; .NET CLR 1.0.3705; .NET CLR 1.1.4322; InfoPath.2; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Tablet PC 1.7; .NET CLR 1.0.3705; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Tablet PC 1.7; .NET CLR 1.0.3705; .NET CLR 1.1.4322; .NET CLR 2.0.50727; Zango 10.3.75.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Tablet PC 1.7; .NET CLR 1.0.3705; .NET CLR 1.1.4322; .NET CLR 2.0.50727; WinFX RunTime 3.0.50727; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Tablet PC 1.7; .NET CLR 1.0.3705; .NET CLR 1.1.4322; .NET CLR 2.0.50727; MS-RTC LM 8; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Tablet PC 1.7; .NET CLR 1.0.3705; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Tablet PC 1.7; .NET CLR 1.0.3705; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Tablet PC 1.7; .NET CLR 1.0.3705; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; InfoPath.2; .NET CLR 3.0.04506.648)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Tablet PC 1.7; .NET CLR 1.0.3705; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Tablet PC 1.7; .NET CLR 1.0.3705; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Tablet PC 1.7; .NET CLR 1.0.3705; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Tablet PC 1.7; .NET CLR 1.0.3705; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; T312461; GTB5; InfoPath.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; SV1; YPC 3.2.0; InfoPath.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; SV1; YPC 3.2.0; FunWebProducts; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 3.1; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; SV1; Wanadoo 6.2; .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; SV1; Tablet PC 1.7; .NET CLR 1.0.3705; .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; SV1; Stardock Blog Navigator 1.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; SV1; Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; SV1) ; .NET CLR 2.0.50727; FDM)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; SV1; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 2.0.50727; FDM)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; SV1; iOpus-I-M; .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; SV1; iOpus-I-M; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; SV1; InfoPath.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; HbTools 4.8.4)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; SV1; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; SV1; GTB6.6; AskTbPTV2/5.9.1.14019)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; SV1; GTB5; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; SV1; FunWebProducts; Zango 10.0.341.0; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; SV1; FunWebProducts; GTB5; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; SV1; FunWebProducts; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; SV1; FunWebProducts; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; SV1; FDM)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; SV1; Alexa Toolbar)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727; FDM)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727; .NET CLR 1.1.4322; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727; .NET CLR 1.1.4322; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; InfoPath.2; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; InfoPath.1; Alexa Toolbar)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727; Avalon 6.0.5070; WinFX RunTime 3.0.50727)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727; .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; FDM; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; FDM)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 3.0.04506.03)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; WinFX RunTime 3.0.50727; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; FDM)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; Alexa Toolbar)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; InfoPath.2; InfoPath.1; .NET CLR 3.0.04506.648)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50215)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 1.0.3705; InfoPath.1; .NET CLR 2.0.50727; WinFX RunTime 3.0.50727)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Tablet PC 1.7; .NET CLR 2.0.40607)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0; Media Center PC 2.8)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 3.1; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 3.1)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; InfoPath.2; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; SV1; (R1 1.5); .NET CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; SV1; (R1 1.5); .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; SV1; (R1 1.5); .NET CLR 1.0.3705; .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; SV1; (R1 1.3))",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; SV1)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Stardock Blog Navigator 1.1; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; SiteKiosk 6.5 Build 150)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Seekmo 10.0.406.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Seekmo 10.0.345.0; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Q312461; YPC 3.2.0; FunWebProducts; .NET CLR 1.1.4322; PeoplePal 6.1; PeoplePal 3.0; yplus 5.1.03b)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Q312461; HbTools 4.8.2)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Q312461; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; MS-RTC LM 8; .NET CLR 2.0.50727; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; MS-RTC LM 8; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 1.1.4322; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; Zune 4.0; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; MRA 5.2 (build 02405); GTB6.3; InfoPath.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; MRA 4.2 (build 01102); GTB6.3; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; SV1) ; .NET CLR 3.0.04506.648; MEGAUPLOAD 2.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; Zango 10.3.37.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; Zango 10.1.181.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; Zango 10.0.314.0; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; MS-RTC LM 8; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; chromeframe; InfoPath.1; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 2.0.50727; Zango 10.3.36.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 2.0.50727; Seekmo 10.0.431.0; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 2.0.50727; InfoPath.1; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; Zango 10.3.36.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 1.1.4322; .NET CLR 3.0.04506.648; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 2.0.50727; .NET CLR 1.1.4322; Seekmo 10.0.427.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727; Zango 10.1.181.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 1.1.4322; .NET CLR 2.0.50727; Zango 10.3.74.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 1.1.4322; .NET CLR 2.0.50727; Zango 10.3.37.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 1.1.4322; .NET CLR 2.0.50727; Zango 10.1.181.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; InfoPath.2; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 1.0.3705; Media Center PC 4.0; InfoPath.2; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 1.0.3705; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0; MEGAUPLOAD 2.0; Seekmo 10.0.341.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0; InfoPath.1; .NET CLR 2.0.50727; Zango 10.3.37.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 1.0.3705; .NET CLR 1.1.4322; .NET CLR 2.0.50727; Media Center PC 4.0; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; (R1 1.6); .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; MEGAUPLOAD 2.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Media Center PC 3.0; .NET CLR 1.0.3705; FDM; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Media Center PC 3.0; .NET CLR 1.0.3705; .NET CLR 2.0.50727; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Media Center PC 3.0; .NET CLR 1.0.3705; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Media Center PC 3.0; .NET CLR 1.0.3705; .NET CLR 2.0.50727; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Media Center PC 3.0; .NET CLR 1.0.3705; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Media Center PC 3.0; .NET CLR 1.0.3705; .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Media Center PC 3.0; .NET CLR 1.0.3705; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; MathPlayer 2.10d; GTB6; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; MathPlayer 2.10d; .NET CLR 1.1.4322; InfoPath.2; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; MathPlayer 2.10d; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; MathPlayer 2.10d; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; MathPlayer 2.10d; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; InfoPath.2; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; MathPlayer 2.10d; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; MathPlayer 2.10d; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; MathPlayer 2.10b; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; MathPlayer 2.10b; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; InfoPath.2; .NET CLR 3.5.21022)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; MathPlayer 2.10b; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; MathPlayer 2.10b; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; MathPlayer 2.10b; .NET CLR 1.0.3705; .NET CLR 1.1.4322; .NET CLR 2.0.50727; Media Center PC 4.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; MathPlayer 2.10b; (R1 1.1); .NET CLR 2.0.50727; .NET CLR 1.1.4322; InfoPath.2; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; MathPlayer 2.0; InfoPath.1; .NET CLR 2.0.50727; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; MathPlayer 2.0; GTB5; .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; MathPlayer 2.0; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; MathPlayer 2.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; iOpus-I-M; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.577; .NET CLR 3.5.20526)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; iOpus-I-M; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; iOpus-I-M; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.590)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; iOpus-I-M; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; InfoPath.2; AskTB5.3)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; InfoPath.2; Alexa Toolbar; .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; InfoPath.2; .NET CLR 2.0.50727; Windows-Media-Player/10.00.00.3990)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; InfoPath.2; .NET CLR 2.0.50727; FDM; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; InfoPath.2; .NET CLR 2.0.50727; Alexa Toolbar; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; InfoPath.2; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; InfoPath.2; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 1.1.4322; MS-RTC LM 8; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; InfoPath.2; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 1.1.4322; MS-RTC LM 8)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; InfoPath.2; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; InfoPath.2; .NET CLR 2.0.50727; .NET CLR 1.1.4322; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; InfoPath.2; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.590; .NET CLR 3.5.20706)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; InfoPath.2; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.0.04506.30)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; InfoPath.2; .NET CLR 2.0.50727; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; InfoPath.2; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; InfoPath.2; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; OfficeLiveConnector.1.3; OfficeLivePatch.0.0; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; InfoPath.2; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; InfoPath.2; .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; InfoPath.1; Zango 10.0.370.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; InfoPath.1; Seekmo 10.0.406.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; InfoPath.1; MS-RTC LM 8; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; InfoPath.1; MS-RTC LM 8; .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; InfoPath.1; .NET CLR 2.0.50727; Zango 10.3.75.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; InfoPath.1; .NET CLR 2.0.50727; MS-RTC LM 8; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; InfoPath.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; MS-RTC LM 8)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; InfoPath.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; MS-RTC LM 8)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; InfoPath.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 1.1.4322; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; InfoPath.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 1.1.4322; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; InfoPath.1; .NET CLR 2.0.50727; .NET CLR 1.1.4322; MS-RTC LM 8; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; InfoPath.1; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; InfoPath.1; .NET CLR 2.0.50727; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; InfoPath.1; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; InfoPath.1; .NET CLR 1.1.4322; msn Optimized IE build03;JP)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; InfoPath.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; Zango 10.3.65.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; InfoPath.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; HbTools 4.8.4; Zango 10.0.275.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; InfoPath.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; Alexa Toolbar; MEGAUPLOAD 1.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; InfoPath.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; InfoPath.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; InfoPath.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; InfoPath.1; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; iebar; GTB5; .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; iebar; .NET CLR 1.0.3705; .NET CLR 1.1.4322; .NET CLR 2.0.50727; Zango 10.1.181.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; iCafeMedia; GTB6; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Hotbar 4.5.0.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB6; OfficeLiveConnector.1.3; OfficeLivePatch.0.0; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB6; InfoPath.2; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB6; InfoPath.2; .NET CLR 1.1.4322; .NET CLR 2.0.50727; Zune 3.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB6; InfoPath.1; FDM; OfficeLiveConnector.1.3; OfficeLivePatch.0.0; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB6; InfoPath.1; .NET CLR 2.0.50727; FDM; .NET CLR 3.0.04506.30; .NET CLR 1.1.4322; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB6; InfoPath.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB6; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB6; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB6; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB6; .NET CLR 1.1.4322; .NET CLR 2.0.50727; Zune 2.5; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB6; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB6; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1))",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB6; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; Zune 3.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB6; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB6; .NET CLR 1.1.4322; .NET CLR 1.0.3705; .NET CLR 2.0.50727; InfoPath.1; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB6; .NET CLR 1.0.3705; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.1; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB6; (R1 1.6); .NET CLR 1.0.3705; .NET CLR 1.1.4322; Zango 10.3.75.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB6.6; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C; .NET4.0E; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB6.6; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET CLR 1.1.4322; MS-RTC LM 8; AskTbARS/5.9.1.14019)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB6.6; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 1.0.3705; .NET CLR 3.0.04506.30; InfoPath.2; .NET CLR 3.0.04506.648; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB6.5; InfoPath.2; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C; .NET4.0E)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB6.5; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; InfoPath.2; .NET CLR 1.1.4322; .NET CLR 3.0.04506.648; WinNT-PAI 28.08.2009; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB6.3; MRA 5.2 (build 02405); InfoPath.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB6.3; MRA 5.0 (build 02094); .NET CLR 1.1.4322; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB6.3; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 1.1.4322; MS-RTC LM 8; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; OfficeLiveConnector.1.3; OfficeLivePatc",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB6.3; .NET CLR 1.1.4322; .NET CLR 2.0.50727; MS-RTC LM 8; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB6.3; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; OfficeLiveConnector.1.3; OfficeLivePatch.0.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB6.3; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; OfficeLiveConnector.1.3; OfficeLivePatch.0.0; InfoPath.1; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB6.3; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB6.3; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB6.3; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB6.3; (R1 1.3); .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.0.04506.30; InfoPath.1; .NET CLR 3.0.04506.648; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB6.3; (R1 1.3); .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; InfoPath.1; .NET CLR 3.0.04506.648; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB6)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB5; Zango 10.3.75.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB5; Zango 10.3.36.0; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB5; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB5; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; AskTB5.5)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB5; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; InfoPath.2; .NET CLR 3.0.04506.648; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB5; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 1.1.4322; Zango 10.0.314.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB5; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 1.1.4322; InfoPath.2; Zango 10.3.75.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB5; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 1.1.4322; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB5; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 1.1.4322; .NET CLR 2.0.50727; Zango 10.3.75.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB5; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB5; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0; Seekmo 10.0.341.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB5; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 1.0.3705; .NET CLR 1.1.4322; .NET CLR 2.0.50727; Media Center PC 4.0; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB5; InfoPath.2; MS-RTC LM 8; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB5; InfoPath.2; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB5; InfoPath.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; FDM)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB5; InfoPath.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB5; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB5; FunWebProducts; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB5; FunWebProducts; (R1 1.6); .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB5; .NET CLR 3.0.04506.30; InfoPath.2; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB5; .NET CLR 2.0.50727; Zango 10.3.74.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB5; .NET CLR 2.0.50727; yie8)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB5; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB5; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 3.0.04506.30)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB5; .NET CLR 2.0.50727; InfoPath.1; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB5; .NET CLR 2.0.50727; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB5; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; FDM)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB5; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 1.1.4322; InfoPath.1; InfoPath.2; .NET CLR 3.0.04506.648)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB5; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 1.1.4322; InfoPath.1; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB5; .NET CLR 2.0.50727; .NET CLR 1.1.4322; InfoPath.2; .NET CLR 3.0.04506.30)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB5; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB5; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.0.04506.30; InfoPath.1; .NET CLR 3.0.04506.648)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB5; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; InfoPath.2; MS-RTC LM 8)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB5; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB5; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB5; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB5; .NET CLR 1.1.4322; Zango 10.3.37.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB5; .NET CLR 1.1.4322; SpamBlockerUtility 4.8.4; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB5; .NET CLR 1.1.4322; PeoplePal 6.2; PeoplePal 3.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB5; .NET CLR 1.1.4322; MS-RTC LM 8; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB5; .NET CLR 1.1.4322; MS-RTC LM 8; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB5; .NET CLR 1.1.4322; MS-RTC LM 8)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB5; .NET CLR 1.1.4322; InfoPath.2; Zango 10.3.75.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB5; .NET CLR 1.1.4322; InfoPath.2; InfoPath.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB5; .NET CLR 1.1.4322; InfoPath.2; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB5; .NET CLR 1.1.4322; InfoPath.2; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB5; .NET CLR 1.1.4322; InfoPath.1; SpamBlockerUtility 4.8.4)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB5; .NET CLR 1.1.4322; InfoPath.1; MS-RTC LM 8)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB5; .NET CLR 1.1.4322; InfoPath.1; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB5; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727; MS-RTC LM 8; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB5; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB5; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; MS-RTC LM 8; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB5; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB5; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB5; .NET CLR 1.1.4322; Hotbar 10.2.236.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB5; .NET CLR 1.1.4322; FDM; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB5; .NET CLR 1.1.4322; .NET CLR 3.0.04506.30; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB5; .NET CLR 1.1.4322; .NET CLR 2.0.50727; Zango 10.3.79.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB5; .NET CLR 1.1.4322; .NET CLR 2.0.50727; Zango 10.3.37.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB5; .NET CLR 1.1.4322; .NET CLR 2.0.50727; Zango 10.2.191.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB5; .NET CLR 1.1.4322; .NET CLR 2.0.50727; Seekmo 10.3.79.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB5; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; MS-RTC LM 8)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB5; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; Zango 10.3.75.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB5; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.1; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB5; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.1; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB5; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.1; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB5; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.1; .NET CLR 3.0.04506.30)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB5; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; MS-RTC LM 8)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB5; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; FDM)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB5; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.5.30428; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; MS-RTC LM 8)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB5; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; InfoPath.2; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB5; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; Zango 10.3.75.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB5; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; InfoPath.2; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; MS-RTC LM 8)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB5; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; InfoPath.2; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB5; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB5; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; InfoPath.1; Zune 3.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB5; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; InfoPath.1; FDM)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB5; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB5; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB5; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB5; .NET CLR 1.1.4322; .NET CLR 1.0.3705; Media Center PC 4.0; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB5; .NET CLR 1.0.3705; Media Center PC 4.0; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB5; .NET CLR 1.0.3705; .NET CLR 2.0.50727; MS-RTC LM 8)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB5; .NET CLR 1.0.3705; .NET CLR 2.0.50727; .NET CLR 1.1.4322; Media Center PC 4.0; InfoPath.2; .NET CLR 3.0.04506.30)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB5; .NET CLR 1.0.3705; .NET CLR 2.0.50727; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB5; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB5; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB5; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 3.1; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB5; .NET CLR 1.0.3705; .NET CLR 1.1.4322; .NET CLR 2.0.50727; Media Center PC 4.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB5; .NET CLR 1.0.3705; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB5; .NET CLR 1.0.3705; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB5; .NET CLR 1.0.3705; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB5; (R1 1.6); .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB5; (R1 1.6); .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB5; (R1 1.6); .NET CLR 1.0.3705; .NET CLR 1.1.4322; Zango 10.3.75.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB5; (R1 1.5); .NET CLR 1.1.4322; InfoPath.1; MS-RTC LM 8)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB5; (R1 1.5); .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB0.0; .NET4.0C; .NET4.0E; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; AskTbARS/5.8.0.12304)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB0.0; .NET CLR 2.0.50727; InfoPath.1; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB0.0; .NET CLR 1.1.4322; InfoPath.2; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; FunWebProducts; Zango 10.3.75.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; FunWebProducts; Zango 10.3.74.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; FunWebProducts; Zango 10.3.65.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; FunWebProducts; Zango 10.0.314.0; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; FunWebProducts; SV1; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; FunWebProducts; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 1.1.4322; Seekmo 10.0.345.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; FunWebProducts; GTB6; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; FunWebProducts; GTB6; .NET CLR 1.1.4322; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; FunWebProducts; GTB6; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.1; .NET CLR 3.0.04506.30; MS-RTC LM 8)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; FunWebProducts; GTB6; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; FunWebProducts; GTB6; .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; FunWebProducts; GTB6.3; InfoPath.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; FunWebProducts; GTB5; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; MEGAUPLOAD 2.0; Zango 10.3.65.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; FunWebProducts; GTB5; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; FunWebProducts; GTB5; InfoPath.1; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; FunWebProducts; GTB5; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; FunWebProducts; GTB5; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; FunWebProducts; GTB5; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; FunWebProducts; GTB5; .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; FunWebProducts; GTB5; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0; .NET CLR 2.0.50727; SpamBlockerUtility 4.8.4)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; FunWebProducts; GTB5; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; FunWebProducts; GTB5; (R1 1.5); .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; FunWebProducts; .NET CLR 2.0.50727; Zune 2.5)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; FunWebProducts; .NET CLR 1.1.4322; Zango 10.3.36.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; FunWebProducts; .NET CLR 1.1.4322; Zango 10.3.35.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; FunWebProducts; .NET CLR 1.1.4322; Zango 10.0.341.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; FunWebProducts; .NET CLR 1.1.4322; Zango 10.0.328.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; FunWebProducts; .NET CLR 1.1.4322; Zango 10.0.314.0; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; FunWebProducts; .NET CLR 1.1.4322; yplus 5.1.04b)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; FunWebProducts; .NET CLR 1.1.4322; Windows-Media-Player/10.00.00.3990; InfoPath.2; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; FunWebProducts; .NET CLR 1.1.4322; Windows-Media-Player/10.00.00.3990; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; FunWebProducts; .NET CLR 1.1.4322; Windows-Media-Player/10.00.00.3990; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; FunWebProducts; .NET CLR 1.1.4322; Windows-Media-Player/10.00.00.3990; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; FunWebProducts; .NET CLR 1.1.4322; SpamBlockerUtility 4.8.6)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; FunWebProducts; .NET CLR 1.1.4322; SpamBlockerUtility 10.2.203.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; FunWebProducts; .NET CLR 1.1.4322; Seekmo 10.0.345.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; FunWebProducts; .NET CLR 1.1.4322; PeoplePal 3.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; FunWebProducts; .NET CLR 1.1.4322; InfoPath.1; SpamBlockerUtility 4.8.4)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; FunWebProducts; .NET CLR 1.1.4322; InfoPath.1; Seekmo 10.0.406.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; FunWebProducts; .NET CLR 1.1.4322; HbTools 4.8.4; SpamBlockerUtility 4.8.4)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; FunWebProducts; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; FunWebProducts; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; FunWebProducts; .NET CLR 1.1.4322; .NET CLR 2.0.50727; FDM)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; FunWebProducts; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; Seekmo 10.0.341.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; FunWebProducts; .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; FunWebProducts; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0; .NET CLR 2.0.50727; InfoPath.1; .NET CLR 3.0.04506.30; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; FunWebProducts; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; FunWebProducts; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; FunWebProducts; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 3.1; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; FunWebProducts; (R1 1.6); .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; FunWebProducts; (R1 1.5); .NET CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; FunWebProducts-MyWay; .NET CLR 1.1.4322; .NET CLR 1.0.3705; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; FunWebProducts)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; FDM; SV1; .NET CLR 3.0.04506.30)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; FDM; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; FDM; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; FDM; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; FDM; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 3.0.04506.30; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; FDM; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; FDM; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR.3.0.04131.06)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; FDM; .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; FDM; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; FBSMTWB; GTB6.3; InfoPath.1; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; FBSMTWB; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.1; OfficeLiveConnector.1.3; OfficeLivePatch.0.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; FBSMTWB; .NET CLR 1.1.4322; .NET CLR 2.0.50727; OfficeLiveConnector.1.3; OfficeLivePatch.0.0; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; msn OptimizedIE8;ESES)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; en-US; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; en-US)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; DigExt; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; chromeframe; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; chromeframe; .NET CLR 1.1.4322; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; chromeframe; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; chromeframe/10.0.648.204; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; InfoPath.2; MS-RTC LM 8; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C; .NET4.0E)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Alexa Toolbar; .NET CLR 2.0.50727; InfoPath.1; .NET CLR 3.0.04506.648; .NET CLR 1.1.4322; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Alexa Toolbar; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; InfoPath.2; SLCC1; Media Center PC 5.0; .NET CLR 3.0.04506; MEGAUPLOAD 2.0; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Alexa Toolbar)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Advanced Searchbar; .NET CLR 2.0.50727; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Advanced Searchbar)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Advanced Searchbar 3.36; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; ; .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 3.0.04506.648; InfoPath.2; .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 3.0.04506.30; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; InfoPath.1; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 3.0.04506.30; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 3.0.04506.30; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 3.0.04506.30; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 3.0.04506.30; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.2; Windows-Media-Player/10.00.00.3990)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 3.0.04506.30; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 3.0.04506.30; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; Zune 3.0; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; Zango 10.0.370.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; yplus 5.1.04b)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; Windows-Media-Player/10.00.00.3990; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; Windows-Media-Player/10.00.00.3990)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; MS-RTC LM 8; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; MS-RTC LM 8; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; MS-RTC LM 8; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; MS-RTC LM 8; .NET CLR 3.0.04506.30; .NET CLR 1.1.4322; .NET CLR 3.0.04506.648)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; MEGAUPLOAD 2.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; MEGAUPLOAD 1.0; .NET CLR 1.1.4322; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; Zune 2.5)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; MEGAUPLOAD 1.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; InfoPath.2; MS-RTC LM 8; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; InfoPath.2; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; InfoPath.2; FDM; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; InfoPath.2; Alexa Toolbar)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; AskTB5.3)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 3.0.04506.590; Alexa Toolbar; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 3.0.04506.590; .NET CLR 3.5.20706)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 1.1.4322; MS-RTC LM 8; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 1.1.4322; MS-RTC LM 8)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 1.1.4322; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 1.1.4322; .NET CLR 3.0.04506.30; MS-RTC LM 8)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; InfoPath.1; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; InfoPath.1; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; InfoPath.1; .NET CLR 3.0.04506.30; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; InfoPath.1; .NET CLR 1.1.4322; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; InfoPath.1; .NET CLR 1.1.4322; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; InfoPath.1; .NET CLR 1.1.4322; .NET CLR 3.0.04506.30)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; InfoPath.1; .NET CLR 1.1.4322; .NET CLR 1.0.3705; .NET CLR 3.0.04506.30)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; InfoPath.1; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; Hotbar 10.0.342.0; .NET CLR 3.0.04506.30; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; FDM; .NET CLR 3.0.04506.30; InfoPath.2; MS-RTC LM 8)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; FDM; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; Alexa Toolbar)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 3.5.30428; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.2; .NET CLR 1.1.4322; OfficeLiveConnector.1.4; OfficeLivePatch.1.3)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET CLR 1.1.4322; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; MS-RTC LM 8; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; FDM)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 1.1.4322; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 1.1.4322; Zune 4.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 1.1.4322; InfoPath.2; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; FDM)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 1.1.4322; .NET CLR 3.5.30428)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 1.1.4322; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 1.1.4322; .NET CLR 3.5.21022)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; Zango 10.3.75.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; MS-RTC LM 8; .NET CLR 3.0.04506.648; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; MEGAUPLOAD 1.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; InfoPath.2; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; MS-RTC LM 8; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; InfoPath.2; .NET CLR 3.0.04506.648; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; MS-RTC LM 8)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; InfoPath.1; MS-RTC LM 8; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; InfoPath.1; .NET CLR 3.0.04506.648)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; InfoPath.1; .NET CLR 1.1.4322; .NET CLR 3.0.04506.648; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; FDM; .NET CLR 3.0.04506.648)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; InfoPath.2; InfoPath.1; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; InfoPath.2; .NET CLR 3.5.21022)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; InfoPath.2; .NET CLR 1.1.4322; MS-RTC LM 8)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; InfoPath.2; .NET CLR 1.1.4322; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; InfoPath.2; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; InfoPath.1; MS-RTC LM 8; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; FDM)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; InfoPath.2; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; InfoPath.1; MS-RTC LM 8)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET CLR 1.1.4322; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 1.1.4322; yplus 5.1.04b)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 1.1.4322; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.590; .NET CLR 3.5.20706; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 1.1.4322; InfoPath.2; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; AskTB5.5)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 1.1.4322; InfoPath.2; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 1.1.4322; InfoPath.2; .NET CLR 3.0.04506.648)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 1.1.4322; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 1.1.4322; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 1.1.4322; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; AskTB5.6)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 1.1.4322; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 1.1.4322; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 1.1.4322; .NET CLR 3.0.04506.648; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; yplus 5.6.04b)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 1.1.4322; .NET CLR 3.0.04506.648; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C; .NET4.0E)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 1.1.4322; .NET CLR 1.0.3705; Tablet PC 1.7; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 2.0.50215; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 1.1.4322; Zango 10.3.36.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 1.1.4322; Zango 10.0.370.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 1.1.4322; Zango 10.0.275.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 1.1.4322; Seekmo 10.0.341.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 1.1.4322; PeoplePal 3.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 1.1.4322; MEGAUPLOAD 2.0; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 1.1.4322; InfoPath.2; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 1.1.4322; InfoPath.2; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 1.1.4322; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; AskTB5.4)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 3.0.04506.30)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 1.1.4322; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.0.04506.30; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.0.04506.30; InfoPath.1; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.0.04506.30; InfoPath.1; .NET CLR 3.0.04506.648; MS-RTC LM 8; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.0.04506.30; InfoPath.1; .NET CLR 3.0.04506.648; MS-RTC LM 8)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.0.04506.30; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.2; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 1.0.3705; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 1.0.3705; .NET CLR 3.5.21022; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.0.04506.30)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.0.04307.00; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 1.0.3705; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 1.0.3705; .NET CLR 1.1.4322; .NET CLR 3.0.04506.30)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 1.0.3705; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50215; Avalon 6.0.5070; WinFX RunTime 3.0.50215; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.40607; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.40301; InfoPath.2; .NET CLR 1.1.4322; MS-RTC LM 8)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; Zango 10.3.74.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; Zango 10.3.65.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; Zango 10.3.36.0; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; Zango 10.1.181.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; Zango 10.0.370.0; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; Zango 10.0.341.0; Windows-Media-Player/10.00.00.3990)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; Zango 10.0.314.0; SpamBlockerUtility 4.8.4; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; Zango 10.0.275.0; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; yplus 5.1.03b)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; Windows-Media-Player/10.00.00.3990; Zango 10.0.341.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; Windows-Media-Player/10.00.00.3990; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; Windows-Media-Player/10.00.00.3990; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; Windows-Media-Player/10.00.00.3990; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; Windows-Media-Player/10.00.00.3990; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; Windows-Media-Player/10.00.00.3990)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; Seekmo 10.0.370.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; Seekmo 10.0.345.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; Seekmo 10.0.341.0; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; Seekmo 10.0.341.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; Seekmo 10.0.314.0; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; MS-RTC LM 8; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; InfoPath.2; AskTB5.3)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; InfoPath.2; .NET CLR 3.0.04506.30)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; InfoPath.2; .NET CLR 2.0.50727; Zango 10.0.341.0; .NET CLR 3.0.04506.30)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; InfoPath.2; .NET CLR 2.0.50727; Windows-Media-Player/10.00.00.3990; .NET CLR 3.0.04506.30)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; InfoPath.2; .NET CLR 2.0.50727; Windows-Media-Player/10.00.00.3990)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; InfoPath.2; .NET CLR 2.0.50727; AskTB5.4)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; InfoPath.2; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; InfoPath.2; .NET CLR 2.0.50727; .NET CLR 3.0.04506.590; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; InfoPath.2; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; Zango 10.3.65.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; InfoPath.2; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; InfoPath.2; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; MS-RTC LM 8)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; InfoPath.2; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; InfoPath.2; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30) (383; 383; 383)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; InfoPath.2; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; InfoPath.1; Zango 10.3.75.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; InfoPath.1; Zango 10.0.370.0; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; InfoPath.1; Zango 10.0.314.0; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; InfoPath.1; Seekmo 10.0.275.0; Zango 10.0.341.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; InfoPath.1; MS-RTC LM 8; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; InfoPath.1; InfoPath.2; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; InfoPath.1; InfoPath.2; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; InfoPath.1; FDM; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; InfoPath.1; Alexa Toolbar)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727; Zango 10.0.370.0; SpamBlockerUtility 4.8.4)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727; SpamBlockerUtility 4.8.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727; MS-RTC LM 8; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 3.0.04506.30)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727; Alexa Toolbar)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; MS-RTC LM 8)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; MS-RTC LM 8; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; Zune 2.0; OfficeLiveConnector.1.3; OfficeLivePatch.0.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; MS-RTC LM 8)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.590; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727; .NET CLR 2.0.50215)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; FDM; InfoPath.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; FDM; InfoPath.1; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; FDM)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; Alexa Toolbar; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; Alexa Toolbar)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 3.0.04506.30; InfoPath.2; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 3.0.04506.30; InfoPath.2; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 3.0.04506.30; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; FDM)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 3.0.04506.30; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 3.0.04506.30)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; WinFX RunTime 3.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; WinFX RunTime 3.0.50727)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; Seekmo 10.0.427.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; Seekmo 10.0.406.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; Seekmo 10.0.345.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; Seekmo 10.0.314.0; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; MS-RTC LM 8; InfoPath.2; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; MS-RTC LM 8; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; MEGAUPLOAD 1.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; OfficeLiveConnector.1.4; OfficeLivePatch.1.3; AskTB5.6)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; MS-RTC LM 8)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 3.0.04506.30; FDM)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; MS-RTC LM 8)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.1; OfficeLiveConnector.1.3; OfficeLivePatch.0.0; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; MS-RTC LM 8)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.1; InfoPath.2; OfficeLiveConnector.1.3; OfficeLivePatch.0.0; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.1; InfoPath.2; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.1; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.1; .NET CLR 3.0.04506.30)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; FDM; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; FDM; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; FDM)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; Avalon 6.0.5070; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; AskTB5.5)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; Alexa Toolbar)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; OfficeLiveConnector.1.3; OfficeLivePatch.0.0; FDM)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.2; MEGAUPLOAD 3.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; AskTB5.6)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; AskTB5.2; MSSDMC2.5.2219.1)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET CLR 3.0.04506.30)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; MS-RTC LM 8; InfoPath.2; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; InfoPath.2; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.2; MS-RTC LM 8)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C; .NET4.0E; OfficeLiveConnector.1.3; OfficeLivePatch.0.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.590)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; Zune 3.0; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; MS-RTC LM 8; .NET CLR 3.0.04506.648; InfoPath.1; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; Media Center PC 3.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; InfoPath.2; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; OfficeLiveConnector.1.4; OfficeLivePatch.1.3)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; InfoPath.2; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; InfoPath.2; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; InfoPath.2; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; InfoPath.2; .NET CLR 3.0.04506.648)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; InfoPath.1; Seekmo 10.0.275.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; InfoPath.1; InfoPath.2; MS-RTC LM 8)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; InfoPath.1; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; InfoPath.1; .NET CLR 3.0.04506.590; .NET CLR 3.5.20706)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; FDM; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; FDM)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; Zune 4.7)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.2; AskTB5.5)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C; .NET4.0E; MS-RTC LM 8)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; MEGAUPLOAD 2.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; Alexa Toolbar)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; InfoPath.2; .NET CLR 3.5.30428)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.5.30428)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 1.0.3705; InfoPath.2; MS-RTC LM 8)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 1.0.3705; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.590; .NET CLR 3.5.20706; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04324.17; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04324.17; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04324.17; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.5.30428)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04324.17)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 1.0.3705; Media Center PC 4.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 1.0.3705; InfoPath.2; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 1.0.3705; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; OfficeLiveConnector.1.3; OfficeLivePatch.0.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 1.0.3705; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 1.0.3705; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 1.0.3705; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 1.0.3705; .NET CLR 3.0.04506.30)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.507277777)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50215; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50215; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50215)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50110; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.40607)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 1.0.3705; Media Center PC 4.0; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 1.0.3705; InfoPath.1; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 1.0.3705; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 1.0.3705; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 1.0.3705; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322) Paros/3.2.13",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.0.3705; MEGAUPLOAD 1.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.0.3705; InfoPath.1; Media Center PC 4.0; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.0.3705; .NET CLR 2.0.50727; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.0.3705; .NET CLR 2.0.50727; InfoPath.1; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.0.3705; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.0.3705; .NET CLR 2.0.50727; .NET CLR 1.1.4322; Media Center PC 4.0; FDM)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.0.3705; .NET CLR 2.0.50727; .NET CLR 1.1.4322; Media Center PC 4.0; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.0.3705; .NET CLR 2.0.50727; .NET CLR 1.1.4322; Media Center PC 4.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.0.3705; .NET CLR 2.0.50727; .NET CLR 1.1.4322; InfoPath.1; InfoPath.2; .NET CLR 3.0.04506.590; .NET CLR 3.5.20706)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.0.3705; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Tablet PC 1.7)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0; Zango 10.0.370.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0; Seekmo 10.0.406.0; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0; Seekmo 10.0.406.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0; FDM; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0; Compatible; SV1)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0; Alexa Toolbar)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0; .NET CLR 3.0.04506.30; .NET CLR 2.0.50727; .NET CLR 3.0.04506.590)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0; .NET CLR 2.0.50727; Seekmo 10.0.424.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0; .NET CLR 2.0.50727; PeoplePal 3.0; SpamBlockerUtility 4.8.4)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0; .NET CLR 2.0.50727; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0; .NET CLR 2.0.50727; InfoPath.1; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; MS-RTC LM 8; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; OfficeLiveConnector",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; MS-RTC LM 8; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 3.1; yplus 5.6.04b)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 3.1; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 3.1; InfoPath.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 3.1; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 3.1; FDM; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 3.1; .NET CLR 2.0.50727; Seekmo 10.0.341.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 3.1; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 3.1; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; FDM)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; .NET CLR 2.0.50727; Media Center PC 4.0; Zango 10.0.314.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; .NET CLR 2.0.50727; Media Center PC 4.0; InfoPath.1; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; yplus 5.3.04b)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; .NET CLR 2.0.50727; Media Center PC 4.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; Media Center PC 4.0; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; InfoPath.2; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.0.3705; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; (R1 1.6); Zune 3.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; (R1 1.6); InfoPath.2; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; (R1 1.6); InfoPath.2; .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; (R1 1.6); InfoPath.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; Seekmo 10.0.314.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; (R1 1.6); .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; (R1 1.6); .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; (R1 1.6); .NET CLR 1.1.4322; Hotbar 10.0.368.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; (R1 1.6); .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; InfoPath.1; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; (R1 1.6); .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0; .NET CLR 2.0.50727; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; (R1 1.5); Tablet PC 1.7; .NET CLR 1.0.3705; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; (R1 1.5); .NET CLR 1.1.4322; Seekmo 10.0.341.0; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; (R1 1.5); .NET CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; (R1 1.5); .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; (R1 1.5); .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; (R1 1.5); .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; (R1 1.5); .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; (R1 1.3); .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; (R1 1.3); .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; (R1 1.3); .NET CLR 1.0.3705; .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; (R1 1.1); .NET CLR 2.0.50727; InfoPath.1; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; (R1 1.1); .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; SLCC2; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.5.30729; Tablet PC 2.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1, .NET CLR 1.1.4322, .NET CLR 2.0.50727, .NET CLR 3.0.04506.30)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1)",
"Mozilla/4.0 (Compatible; MSIE 7.0; Windows NT 5.0; SLCC1; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 3.0.04506; .NET CLR 3.5.21022; MS-RTC LM 8)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.0; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 4.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows 95)",
"Mozilla/4.0 (compatible; MSIE 7.0; CP/M 2.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; ; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0)",
"Mozilla/4.0 (compatible; Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727); Windows NT 5.1; .NET CLR 2.0.50727)",
"Mozilla/2.0 (compatible; MSIE 7.0; Windows NT 5.1; InfoPath.2)",
"Mozilla/10.0 (compatible; MSIE 7.0; Windows NT 5.1; InfoPath.2)",
"Mozilla/1.0 (compatible; MSIE 7.0; Windows NT 5.1; InfoPath.2)",
"Mozilla /4.0 (compatible;MSIE 7.0;Windows NT6.0)"]
UA_MSIE6 = ["Mozilla/4.0 (compatible; MSIE 6.1; Windows XP; .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.1; Windows XP)",
"Mozilla/4.0 (compatible; MSIE 6.01; Windows NT 6.0)",
"Mozilla/4.0 (compatible; MSIE 6.0b; Windows NT 5.1; DigExt)",
"Mozilla/4.0 (compatible; MSIE 6.0b; Windows NT 5.1)",
"Mozilla/4.0 (compatible; MSIE 6.0b; Windows NT 5.0; YComp 5.0.2.6)",
"Mozilla/4.0 (compatible; MSIE 6.0b; Windows NT 5.0; YComp 5.0.0.0) (Compatible; ; ; Trident/4.0)",
"Mozilla/4.0 (compatible; MSIE 6.0b; Windows NT 5.0; YComp 5.0.0.0)",
"Mozilla/4.0 (compatible; MSIE 6.0b; Windows NT 5.0; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0b; Windows NT 5.0)",
"Mozilla/4.0 (compatible; MSIE 6.0b; Windows NT 4.0; .NET CLR 1.0.2914)",
"Mozilla/4.0 (compatible; MSIE 6.0b; Windows NT 4.0)",
"Mozilla/4.0 (compatible; MSIE 6.0b; Windows 98; YComp 5.0.0.0)",
"Mozilla/4.0 (compatible; MSIE 6.0b; Windows 98; Win 9x 4.90)",
"Mozilla/4.0 (compatible; MSIE 6.0b; Windows 98)",
"Mozilla/4.0 (compatible; MSIE 6.0b; Windows NT 5.1)",
"Mozilla/4.0 (compatible; MSIE 6.0b; Windows NT 5.0; .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 6.0b; Windows NT 4.0)",
"Mozilla/5.0 (Windows; U; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727)",
"Mozilla/5.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727)",
"Mozilla/5.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4325)",
"Mozilla/5.0 (compatible; MSIE 6.0; Windows NT 5.1)",
"Mozilla/45.0 (compatible; MSIE 6.0; Windows NT 5.1)",
"Mozilla/4.08 (compatible; MSIE 6.0; Windows NT 5.1)",
"Mozilla/4.01 (compatible; MSIE 6.0; Windows NT 5.1)",
"Mozilla/4.0 (X11; MSIE 6.0; i686; .NET CLR 1.1.4322; .NET CLR 2.0.50727; FDM)",
"Mozilla/4.0 (Windows; MSIE 6.0; Windows NT 6.0)",
"Mozilla/4.0 (Windows; MSIE 6.0; Windows NT 5.2)",
"Mozilla/4.0 (Windows; MSIE 6.0; Windows NT 5.0)",
"Mozilla/4.0 (Windows; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727)",
"Mozilla/4.0 (MSIE 6.0; Windows NT 5.1)",
"Mozilla/4.0 (MSIE 6.0; Windows NT 5.0)",
"Mozilla/4.0 (compatible;MSIE 6.0;Windows 98;Q312461)",
"Mozilla/4.0 (Compatible; Windows NT 5.1; MSIE 6.0) (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; U; MSIE 6.0; Windows NT 5.1)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; InfoPath.3; Tablet PC 2.0)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; GTB6.5; QQDownload 534; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; SLCC2; .NET CLR 2.0.50727; Media Center PC 6.0; .NET CLR 3.5.30729; .NET CLR 3.0.30729)",
"Mozilla/4.0 (Compatible; MSIE 8.0; Windows NT 6.1; FDM; .NET CLR 1.1.4322; Windows NT 6.1; Trident/4.0; Mozilla/4.0; MSIE 6.0; Windows NT 5.1; SV1 ; SLCC2; .NET CLR 2.0.50727; Media Center PC 6.0; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET CLR 1.1.",
"Mozilla/4.0 (Compatible; MSIE 8.0; Windows NT 6.1; .NET CLR 1.1.4322; Windows NT 6.1; Trident/4.0; Mozilla/4.0; MSIE 6.0; Windows NT 5.1; SV1 ; SLCC2; .NET CLR 2.0.50727; Media Center PC 6.0; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; QQDownload 590; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.30729; .NET CLR 3.0.30618)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.30729; OfficeLivePatch.1.3; .NET4.0C; .NET4.0E; OfficeLiveConnector",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506; .NET CLR 3.5.21022)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506; .NET CLR 1.1.4322; .NET CLR 3.5.21022; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; InfoPath.2; AskTbMYC-ST/5.9.1.14019)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; Embedded Web Browser from: http://bsalsa.com/; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.30729; .NET CLR 3.0",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; QQWubi 87; QQDownload 665; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) )",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; InfoPath.2; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022)",
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; FBSMTWB; QQDownload 627; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; InfoPath.2; .NET CLR 1.1.4322; .NET CLR 2.0.50727; AskTbPSI/5.9.1.14019)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; WOW64; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.0.04506; Media Center PC 5.0; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; WOW64; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.0.04506; InfoPath.2; .NET CLR 3.5.21022)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; User-agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; http://bsalsa.com) ; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.0.04506; Media Center PC 5.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; Trident/4.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; Tablet PC 2.0; .NET CLR 3.5.30729; .NET CLR 3.0.30618)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.21022; .NET CLR 3.0.04506; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506; InfoPath.2; .NET CLR 3.5.21022; FDM)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506; FDM; .NET CLR 3.5.21022; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 1.1.4322; .NET CLR 3.5.30729; .NET CLR 3.0.30618)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.0.04506; InfoPath.1; .NET CLR 3.5.21022)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; SLCC1; .NET CLR 2.0.50727; .NET CLR 1.1.4322; Tablet PC 2.0; .NET CLR 3.5.21022; .NET CLR 3.5.30729; .NET CLR 3.0.30618)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; MathPlayer 2.10b; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506; Tablet PC 2.0; .NET CLR 1.1.4322; .NET CLR 3.5.21022)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; GTB5; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 3.5.30729; InfoPath.3)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; GTB6.6; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; MEGAUPLOAD 1.0; MEGAUPLOAD 2.0; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; MEGAUPLOAD 1.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; InfoPath.2; .NET CLR 2.0.50727; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; FDM; MEGAUPLOAD 1.0; MEGAUPLOAD 2.0; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; FDM; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; MEGAUPLOAD 2.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 3.0.04506.648; MEGAUPLOAD 2.0)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 2.0.50727; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 2.0.50727; FDM; .NET CLR 3.0.04506.648)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 2.0.50727; FDM)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 1.1.4322; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 1.1.4322; InfoPath.2; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; FDM; .NET CLR 3.0.04506.648)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 1.0.3705; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB5; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0; .NET CLR 2.0.50727; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB5; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; FunWebProducts; GTB5; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 1.0.3705; Media Center PC 3.1; .NET CLR 1.1.4322; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 6.1; Windows XP) (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows; U; Win98; en-US)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows XP; InfoPath.2; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows XP; DigExt)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows XP)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT; SV1; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT; SiteKiosk 4.9; SiteCoach 1.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT; SiteKiosk 4.9)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT; SiteKiosk 4.8)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 6.2; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 6.1; WOW64; SLCC2; .NET CLR 2.0.50727; InfoPath.3; MS-RTC LM 8; .NET4.0C; .NET4.0E; .NET CLR 3.5.30729; .NET CLR 3.0.30729)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 6.1; WOW64; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; MS-RTC LM 8; .NET4.0C; .NET4.0E; InfoPath.3)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 6.1; en)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 6.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 6.0; WOW64; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30618)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 6.0; SV1; InfoPath.1; .NET CLR 1.1.4322; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.30729; .NET CLR 3.0.30618)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; InfoPath.2; MS-RTC LM 8; .NET CLR 1.1.4322; .NET CLR 3.5.30729; .NET CLR 3.0.30618)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 1.1.4322; MS-RTC LM 8; .NET CLR 3.5.30729; .NET CLR 3.0.30618)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.0.04506)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 6.0; GTB5; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.0.04506)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 6.0; en)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; WOW64; SV1; InfoPath.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; WOW64; SV1; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; WOW64; SV1; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 1.1.4322; .NET CLR 3.0.04506.30)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; WOW64; SV1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; WOW64; SV1; .NET CLR 2.0.50727; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; WOW64; SV1; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; WOW64; SV1; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; WOW64; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; WOW64; SV1; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; WOW64; SV1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; Trident/4.0; SV1; .NET CLR 3.0.04506.30)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; Trident/4.0; Media Center PC 3.1; SV1; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; SV1; QQDownload 627; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; SV1; QQDownload 1.7; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; SV1; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; SV1; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; SV1; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; SV1; InfoPath.1; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; SV1; InfoPath.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; SV1; iCafeMedia; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; SV1; i-NavFourF; .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; SV1; i-NavFourF; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; SV1; GTB6.6; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; SV1; GTB5; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; InfoPath.1; .NET CLR 3.0.04506.648)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; SV1; .NET CLR 1.1.4322; InfoPath.2; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; SV1; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727; Avalon 6.0.5070; WinFX RunTime 3.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; SV1; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; SV1; .NET CLR 1.1.4322; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; SV1; .NET CLR 1.1.4322; FDM)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; SV1; .NET CLR 1.1.4322; Alexa Toolbar)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; SV1; .NET CLR 1.1.4322; .NET CLR 3.0.04506.30; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.1; Alexa Toolbar)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; FDM; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET4.0C; .NET4.0E)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.1; .NET4.0C; .NET4.0E)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; )",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50215)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.40607; .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; SV1; .NET CLR 1.1.4322; .NET CLR 1.0.3705; .NET CLR 2.0.50727; InfoPath.1; MS-RTC LM 8)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; SV1; .NET CLR 1.1.4322; .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; SV1; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; SV1; (R1 1.3); .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; MathPlayer 2.0; SV1; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; GTB6.6; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; FunWebProducts; SV1; .NET CLR 1.1.4322; Alexa Toolbar; InfoPath.1; .NET CLR 2.0.50727; MSIECrawler)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; FunWebProducts; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; en)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; .NET CLR 1.1.4322; InfoPath.2; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; FDM)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; .NET CLR 1.1.4322; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; .NET CLR 1.1.4322; .NET CLR 2.0.50215)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; .NET CLR 1.1.4322; .NET CLR 1.0.3705; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; .NET CLR 1.1.4322; .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; .NET CLR 1.1.1399)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1;SV1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1;)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; yplus 5.6.02b)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; YPC 3.2.0; yplus 5.3.04b)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; YPC 3.2.0; yplus 5.3.01b)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; YPC 3.2.0; yplus 5.1.02b)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; YPC 3.2.0; yplus 4.1.00b)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; YPC 3.2.0; SV1; yplus 5.3.03b)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; YPC 3.2.0; SV1; yplus 5.3.02b)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; YPC 3.2.0; SV1; yplus 4.1.00b)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; YPC 3.2.0; SV1; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; YPC 3.2.0; SV1; .NET CLR 1.0.3705; yplus 5.1.03b)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; YPC 3.2.0; SV1; .NET CLR 1.0.3705; InfoPath.1; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; YPC 3.2.0; SV1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; yplus 5.3.02b)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; YPC 3.2.0; SV1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 2.8)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; YPC 3.2.0; SV1; .NET CLR 1.0.3705; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; YPC 3.2.0; SV1; (R1 1.5; yplus 4.1.00b); .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; YPC 3.2.0; SV1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; YPC 3.2.0; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; YPC 3.2.0; .NET CLR 1.1.4322; yplus 5.1.02b)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; YPC 3.2.0; .NET CLR 1.1.4322; yplus 4.1.00b)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; YPC 3.2.0; .NET CLR 1.1.4322; .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; YPC 3.2.0; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; YPC 3.2.0; .NET CLR 1.0.3705; yplus 4.3.02b)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; YPC 3.2.0; .NET CLR 1.0.3705; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; YPC 3.2.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; YPC 3.1.0; SV1; FunWebProducts)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; YPC 3.1.0; SV1; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; YPC 3.1.0; .NET CLR 1.0.3705; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; YPC 3.0.3; SV1; .NET CLR 1.1.4322; yplus 4.1.00b)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; YPC 3.0.3; SV1; .NET CLR 1.1.4322; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; YPC 3.0.3; SV1; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; YPC 3.0.3; SV1; .NET CLR 1.0.3705; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; YPC 3.0.3; .NET CLR 1.0.3705; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; YPC 3.0.2; SV1; FunWebProducts; yplus 4.3.02b)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; YPC 3.0.2; SV1; FunWebProducts)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; YPC 3.0.2; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; YPC 3.0.2; SV1; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; YPC 3.0.1; yplus 4.1.00b)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; YPC 3.0.1; SV1; .NET CLR 1.1.4322; HbTools 4.8.2; yplus 4.1.00b)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; YPC 3.0.1; SV1; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; YPC 3.0.1; SV1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; YPC 3.0.1; SV1; .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; YPC 3.0.1; FunWebProducts; .NET CLR 1.0.3705; Hotbar 4.6.1; yplus 4.1.00b)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; YPC 3.0.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; YPC 3.0.0; YPC 3.0.1; SV1; .NET CLR 1.0.3705; HbTools 4.7.0; yplus 4.1.00b)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; YPC 3.0.0; SV1; YPC 3.0.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; YPC 3.0.0; SV1; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; YPC 3.0.0; SV1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; YComp 5.0.2.6; SV1; .NET CLR 1.1.4322; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; YComp 5.0.2.6)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; YComp 5.0.2.5; Hotbar 4.1.8.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; YComp 5.0.2.5; .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; YComp 5.0.2.5)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; YComp 5.0.2.4; .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; YComp 5.0.0.0; SV1; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; YComp 5.0.0.0; SV1; .NET CLR 1.0.3705; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; YComp 5.0.0.0; SV1; .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; YComp 5.0.0.0; SV1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; YComp 5.0.0.0; Hotbar 4.3.1.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; YComp 5.0.0.0; Hotbar 4.1.8.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; YComp 5.0.0.0; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; YComp 5.0.0.0; .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; YComp 5.0.0.0; (R1 1.3))",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; YComp 5.0.0.0; (R1 1.1))",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Windows 98; Windows NT 5.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Wanadoo 7.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Wanadoo 6.7; SV1; .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Wanadoo 6.7; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Wanadoo 6.7; .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Wanadoo 6.7)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Wanadoo 6.6)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Wanadoo 6.2; SV1; MathPlayer 2.0; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Wanadoo 6.2; SV1; i-NavFourF)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Wanadoo 6.2; SV1; FunWebProducts; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Wanadoo 6.2; SV1; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Wanadoo 6.2; SV1; .NET CLR 1.0.3705; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Wanadoo 6.2; SV1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Wanadoo 6.2; HbTools 4.7.2)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Wanadoo 6.2; FDM)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Wanadoo 6.2; .NET CLR 1.1.4322; SpamBlockerUtility 4.7.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Wanadoo 6.2; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Wanadoo 6.2; (R1 1.3); .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Wanadoo 6.2)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Wanadoo 6.1; SV1; Wanadoo 6.2; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Wanadoo 6.1; SV1; Wanadoo 5.6)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Wanadoo 6.1; SV1; HbTools 4.7.2)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Wanadoo 6.1; SV1; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Wanadoo 6.1; SV1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Wanadoo 6.1; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Wanadoo 6.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Wanadoo 6.0; SV1; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Wanadoo 6.0; SV1; .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Wanadoo 6.0; SV1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Wanadoo 5.6; Wanadoo 6.1; SV1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Wanadoo 5.6; Wanadoo 6.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Wanadoo 5.6; Wanadoo 6.0; SV1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Wanadoo 5.6; SV1; .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Wanadoo 5.6; FunWebProducts; SV1; Wanadoo 6.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Wanadoo 5.6; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Wanadoo 5.6; .NET CLR 1.0.3705; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Wanadoo 5.6)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Wanadoo 5.5; SV1; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Wanadoo 5.5; SV1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Wanadoo 5.5; MSIECrawler)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Wanadoo 5.5; Hotbar 4.1.8.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Wanadoo 5.5)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Wanadoo 5.4; Wanadoo 5.5)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Wanadoo 5.4)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; U; en)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; U)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Trident/4.0; User-agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) )",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Trident/4.0; SV1; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; Tablet PC 2.0; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Trident/4.0; SV1; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET CLR 3.0.04506; SLCC1; Tablet PC 2.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Trident/4.0; SV1; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Trident/4.0; SV1; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Trident/4.0; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; SV1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; tr)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; TMCID=SIEMENS-SK55; .NET CLR 1.1.4322; SiteKiosk 5.5 Build 45; SiteCoach 2.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; TMCID=AMT000201; .NET CLR 1.1.4322; SiteKiosk 5.5 Build 45; SiteCoach 2.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; T312461; YComp 5.0.2.4)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; T312461; SV1; InfoPath.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; T312461; SV1; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; T312461; SV1; .NET CLR 1.0.3705; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; T312461; SV1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; T312461; Q312461; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; T312461; Q312461; .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; T312461; .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; T312461)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Zango 10.0.370.0; Seekmo 10.0.370.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; yplus 5.3.02b)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; yplus 5.1.04b)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; yplus 5.1.02b)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; yplus 4.1.00b)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; YPC 3.2.0; yplus 5.5.03b)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; YPC 3.2.0; yplus 5.4.02b)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; YPC 3.2.0; yplus 5.3.03b)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; YPC 3.2.0; yplus 5.3.02d)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; YPC 3.2.0; yplus 5.3.02b)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; YPC 3.2.0; yplus 5.3.01d)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; YPC 3.2.0; yplus 5.1.02b)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; YPC 3.2.0; yplus 4.1.00b)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; YPC 3.2.0; Media Center PC 3.0; .NET CLR 1.0.3705; .NET CLR 1.1.4322; yplus 4.1.00b)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; YPC 3.2.0; Media Center PC 3.0; .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; YPC 3.2.0; InfoPath.1; .NET CLR 2.0.50727; yplus 5.3.02b)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; YPC 3.2.0; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; YPC 3.2.0; GTB5; .NET CLR 1.1.4322; .NET CLR 2.0.50727; yplus 5.3.04b)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; YPC 3.2.0; FunWebProducts; yplus 5.3.02b)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; YPC 3.2.0; FunWebProducts; GTB5; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; YPC 3.2.0; FunWebProducts; .NET CLR 1.1.4322; Seekmo 10.0.341.0; yplus 5.6.03b)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; YPC 3.2.0; FunWebProducts; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; YPC 3.2.0; FunWebProducts; .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; YPC 3.2.0; FunWebProducts; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; YPC 3.2.0; FunWebProducts)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; YPC 3.2.0; .NET CLR 2.0.50727; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; YPC 3.2.0; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; YPC 3.2.0; .NET CLR 1.1.4322; yplus 5.5.01b)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; YPC 3.2.0; .NET CLR 1.1.4322; yplus 5.3.02b)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; YPC 3.2.0; .NET CLR 1.1.4322; yplus 5.3.01d)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; YPC 3.2.0; .NET CLR 1.1.4322; yplus 5.3.01b)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; YPC 3.2.0; .NET CLR 1.1.4322; yplus 5.3.00b)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; YPC 3.2.0; .NET CLR 1.1.4322; yplus 5.1.03b)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; YPC 3.2.0; .NET CLR 1.1.4322; yplus 5.1.02b)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; YPC 3.2.0; .NET CLR 1.1.4322; yplus 4.1.00b)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; YPC 3.2.0; .NET CLR 1.1.4322; PeoplePal 6.2)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; YPC 3.2.0; .NET CLR 1.1.4322; MSIECrawler)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; YPC 3.2.0; .NET CLR 1.1.4322; InfoPath.1; yplus 5.3.03b)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; YPC 3.2.0; .NET CLR 1.1.4322; InfoPath.1; yplus 5.1.02b)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; YPC 3.2.0; .NET CLR 1.1.4322; FDM)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; YPC 3.2.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; yplus 5.1.03b)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; YPC 3.2.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; Seekmo 10.0.341.0; yplus 5.1.04b)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; YPC 3.2.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.1; yplus 5.3.02b)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; YPC 3.2.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; YPC 3.2.0; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; YPC 3.2.0; .NET CLR 1.0.3705; .NET CLR 1.1.4322; yplus 5.6.02b)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; YPC 3.2.0; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0; yplus 5.1.03b)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; YPC 3.2.0; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0; yplus 5.1.02b)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; YPC 3.2.0; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0; InfoPath.1; yplus 5.3.02d)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; YPC 3.2.0; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; YPC 3.2.0; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0; .NET CLR 2.0.50727; yplus 5.3.00b)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; YPC 3.2.0; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; YPC 3.2.0; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; YPC 3.2.0; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 3.1; yplus 4.1.00b)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; YPC 3.2.0; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 3.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; YPC 3.2.0; .NET CLR 1.0.3705; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; YPC 3.2.0; (R1 1.5; yplus 5.3.01b); .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; YPC 3.2.0; (R1 1.5); .NET CLR 1.0.3705; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; YPC 3.2.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; YPC 3.1.0; Rogers Hi-Speed Internet; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; YPC 3.1.0; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; YPC 3.0.3; InfoPath.1; yplus 4.1.00b)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; YPC 3.0.3; FunWebProducts)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; YPC 3.0.3; .NET CLR 1.1.4322; yplus 4.1.00b)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; YPC 3.0.3; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; YPC 3.0.3; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 3.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; YPC 3.0.2; yplus 4.3.02d)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; YPC 3.0.2; yplus 4.3.02b)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; YPC 3.0.2; yplus 4.3.01d)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; YPC 3.0.2; .NET CLR 1.1.4322; yplus 4.3.02d)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; YPC 3.0.2; .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; YPC 3.0.2; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; YPC 3.0.2)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; YPC 3.0.1; FreeprodTB; .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; YPC 3.0.1; .NET CLR 1.1.4322; yplus 4.1.00b)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; YPC 3.0.1; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; YPC 3.0.1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; YPC 3.0.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; YPC 3.0.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; yplus 4.0.00d) ; .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; YPC 3.0.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; yie8; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Wanadoo 7.1; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Wanadoo 7.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Wanadoo 6.7; SpamBlockerUtility 4.7.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Wanadoo 6.7; Media Center PC 3.0; .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Wanadoo 6.7; .NET CLR 2.0.50727; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Wanadoo 6.7; .NET CLR 1.1.4322; HbTools 4.7.2)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Wanadoo 6.7; .NET CLR 1.1.4322; HbTools 4.7.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Wanadoo 6.7; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Wanadoo 6.7; .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Wanadoo 6.7; (R1 1.3); .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Wanadoo 6.7)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Wanadoo 6.6; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Wanadoo 6.6; .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Wanadoo 6.6)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Wanadoo 6.2; HbTools 4.7.2)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Wanadoo 6.2; FunWebProducts; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Wanadoo 6.2; FDM)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Wanadoo 6.2; .NET CLR 1.1.4322; HbTools 4.7.2)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Wanadoo 6.2; .NET CLR 1.1.4322; HbTools 4.7.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Wanadoo 6.2; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Wanadoo 6.2; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Wanadoo 6.2; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 3.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Wanadoo 6.2; .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Wanadoo 6.1; .NET CLR 1.1.4322; HbTools 4.7.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Wanadoo 6.1; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Wanadoo 6.1; .NET CLR 1.0.3705; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Wanadoo 6.1; .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Wanadoo 6.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Wanadoo 6.0; Wanadoo 6.7; .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Wanadoo 6.0; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Wanadoo 6.0; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 3.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Wanadoo 6.0; .NET CLR 1.0.3705; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Wanadoo 6.0; .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Wanadoo 6.0; (R1 1.5); .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Wanadoo 6.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Wanadoo 5.6; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Wanadoo 5.6)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Wanadoo 5.5)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Tablet PC 1.7; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; InfoPath.2; .NET CLR 1.1.4322; OfficeLiveConnector.1.4; OfficeLivePatch.1.3; .NET CLR 3.0.4506.2152; .NET CLR 3.5.3",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Tablet PC 1.7; .NET CLR 1.0.3705; MSIECrawler)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Tablet PC 1.7; .NET CLR 1.0.3705; InfoPath.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Tablet PC 1.7; .NET CLR 1.0.3705; .NET CLR 1.1.4322; InfoPath.1; Alexa Toolbar; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Tablet PC 1.7; .NET CLR 1.0.3705; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Tablet PC 1.7; .NET CLR 1.0.3705; .NET CLR 1.1.4322; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Tablet PC 1.7; .NET CLR 1.0.3705; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.1; .NET CLR 3.0.04506.30; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Tablet PC 1.7; .NET CLR 1.0.3705; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Tablet PC 1.7; .NET CLR 1.0.3705; .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Tablet PC 1.7; .NET CLR 1.0.3705; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Tablet PC 1.7; .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Stardock Blog Navigator 1.1; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; SpamBlockerUtility 4.7.5)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; SpamBlockerUtility 4.7.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; SpamBlockerUtility 4.6.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.0.04506; Media Center PC 5.0; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; SiteKiosk 6.5 Build 150)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; SiteKiosk 6.0 Build 98; SiteCoach 2.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; SiteKiosk 6.0 Build 98)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Seekmo 10.0.424.0; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Seekmo 10.0.424.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Seekmo 10.0.406.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Seekmo 10.0.345.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Rogers Hi-Speed Internet; Media Center PC 3.0; .NET CLR 1.0.3705; .NET CLR 1.1.4322; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Rogers Hi-Speed Internet; .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Rogers Hi-Speed Internet; (R1 1.5); .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; QQDownload 681; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; QQDownload 1.7; GTB6; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; PeoplePal 6.6)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; PeoplePal 6.2)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; PeoplePal 3.0; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; PeoplePal 3.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; msn OptimizedIE8;ENUS; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; MSIECrawler)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; MS-RTC LM 8; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.1; AskTbNCE/5.8.0.12304)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; MRA 5.4 (build 02625))",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; MRA 5.3 (build 02564))",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; MRA 4.9 (build 01849); .NET CLR 2.0.50727; InfoPath.1; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; Seekmo 10.0.345.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; InfoPath.1; MEGAUPLOAD 2.0; Seekmo 10.0.370.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; Alexa Toolbar)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 3.0.04506.30; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 2.0.50727; InfoPath.1; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 2.0.50727; .NET CLR 1.0.3705; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 1.1.4322; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; MS-RTC LM 8)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.1; MEGAUPLOAD 2.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 1.0.3705; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 2.0.40607; .NET CLR 1.1.4322; FDM; MS-RTC LM",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; MEGAUPLOAD 1.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Media Center PC 4.0; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Media Center PC 3.0; .NET CLR 1.0.3705; Media Center PC 2.8)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Media Center PC 3.0; .NET CLR 1.0.3705; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Media Center PC 3.0; .NET CLR 1.0.3705; FDM)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Media Center PC 3.0; .NET CLR 1.0.3705; .NET CLR 2.0.50727; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Media Center PC 3.0; .NET CLR 1.0.3705; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Media Center PC 3.0; .NET CLR 1.0.3705; .NET CLR 2.0.50215)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Media Center PC 3.0; .NET CLR 1.0.3705; .NET CLR 1.1.4322; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Media Center PC 3.0; .NET CLR 1.0.3705; .NET CLR 1.1.4322; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Media Center PC 3.0; .NET CLR 1.0.3705; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Media Center PC 3.0; .NET CLR 1.0.3705; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Media Center PC 3.0; .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Media Center PC 2.8; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; MathPlayer 2.10d; GTB5; .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; MathPlayer 2.10b)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; MathPlayer 2.10 beta 2; .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; MathPlayer 2.10 beta 2)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; MathPlayer 2.10 beta 1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; MathPlayer 2.0; .NET CLR 1.1.4322; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; MathPlayer 2.0; .NET CLR 1.1.4322; FDM)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; MathPlayer 2.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; MathPlayer 2.0; .NET CLR 1.1.4322; .NET CLR 1.0.3705; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; MathPlayer 2.0; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; MathPlayer 2.0; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Tablet PC 1.7)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; MathPlayer 2.0; .NET CLR 1.0.3705; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; MathPlayer 2.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; KB0:718886; .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; IPOffice; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; iOpus-I-M; .NET CLR 2.0.50727; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; iOpus-I-M; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; iOpus-I-M; .NET CLR 1.1.4322; InfoPath.2; MEGAUPLOAD 1.0; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; iOpus-I-M; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; iOpus-I-M; .NET CLR 1.1.4322; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; iOpus-I-M; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; iOpus-I-M; .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; iOpus-I-M; .NET CLR 1.1.4322; .NET CLR 1.0.3705; InfoPath.1; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; iOpus-I-M; .NET CLR 1.1.4322; .NET CLR 1.0.3705; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; iOpus-I-M; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; iOpus-I-M)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; InfoPath.2; InfoPath.1; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; InfoPath.2; .NET4.0C; .NET4.0E; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; InfoPath.2; .NET CLR 3.0.04506.30; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; InfoPath.2; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; InfoPath.2; .NET CLR 2.0.50727; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; InfoPath.2; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; InfoPath.2; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; AskTB5.3)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; InfoPath.1; Seekmo 10.0.424.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; InfoPath.1; MS-RTC LM 8; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; InfoPath.1; MS-RTC LM 8)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; InfoPath.1; FDM; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; InfoPath.1; FDM)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; InfoPath.1; .NET CLR 3.0.04506.30; .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; InfoPath.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; InfoPath.1; .NET CLR 2.0.50727; .NET CLR 1.1.4322; FDM)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; InfoPath.1; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; InfoPath.1; .NET CLR 2.0.50727; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; InfoPath.1; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; InfoPath.1; .NET CLR 2.0.50215; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; InfoPath.1; .NET CLR 1.1.4322; FDM)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; InfoPath.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; MEGAUPLOAD 1.0; MEGAUPLOAD 2.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; InfoPath.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; InfoPath.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; Windows-Media-Player/10.00.00.3990; MS-RTC LM 8)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; InfoPath.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; MS-RTC LM 8; .NET CLR 3.0.04506.648)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; InfoPath.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; InfoPath.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; MS-RTC LM 8)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; InfoPath.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; InfoPath.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; InfoPath.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 1.0.3705; .NET CLR 3.0.04506.30; MS-RTC LM 8)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; InfoPath.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; InfoPath.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 1.0.2914)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; InfoPath.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; InfoPath.1; .NET CLR 1.1.4322; .NET CLR 2.0.50215)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; InfoPath.1; .NET CLR 1.1.4322; .NET CLR 1.0.3705; .NET CLR 2.0.50727; MS-RTC LM 8)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; InfoPath.1; .NET CLR 1.1.4322; .NET CLR 1.0.3705; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; InfoPath.1; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; InfoPath.1; .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; image_azv; i-NavFourF; .NET CLR 1.1.4322; (R1 1.5))",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; image_azv; i-NavFourF; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; image_azv; .NET CLR 1.1.4322; Alexa Toolbar)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; image_azv; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; iebar; FunWebProducts; .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; iebar; .NET CLR 1.1.4322; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; iebar; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; iebar; .NET CLR 1.0.3705; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; iebar; .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; iebar)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; ie4.com; GTB5; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; iCafeMedia; QQPinyinSetup 614; .NET CLR 2.0.50727; Media Center PC 6.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; iCafeMedia; QQDownload 627; GTB6.6)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; iCafeMedia; QQDownload 1.7; User-agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; http://bsalsa.com) ; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; iCafeMedia; InfoPath.2; InfoPath.3)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; icafe8; QQDownload 667; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; Media Center PC 6.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; icafe8; QQDownload 615; Media Center PC 6.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; icafe8; QQDownload 1.7; Media Center PC 6.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; i-NavFourF; MSIECrawler)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; i-NavFourF; .NET CLR 2.0.50727; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; i-NavFourF; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; i-NavFourF; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.1; .NET CLR 3.0.04506.30)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; i-NavFourF; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; i-NavFourF; .NET CLR 1.1.4322; .NET CLR 1.0.3705; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; i-NavFourF; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; i-NavFourF; .NET CLR 1.0.3705; Alexa Toolbar)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; i-NavFourF; .NET CLR 1.0.3705; .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; i-NavFourF; .NET CLR 1.0.3705; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; i-NavFourF; .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; i-NavFourF)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Hotbar 4.6.1; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Hotbar 4.6.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Hotbar 4.5.1.0; FunWebProducts; (R1 1.5))",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Hotbar 4.5.1.0; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Hotbar 4.4.2.0; FunWebProducts; .NET CLR 1.0.3705; PeoplePal 3.0; .NET CLR 1.1.4322; PeoplePal 6.2)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Hotbar 4.4.2.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Hotbar 4.4.1.1381)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; HbTools 4.8.2)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; HbTools 4.7.7)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; HbTools 4.7.5; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; HbTools 4.7.2)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; HbTools 4.7.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; HbTools 4.7.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; HbTools 4.6.4)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; GTB6; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; GTB6; Media Center PC 3.0; .NET CLR 1.0.3705; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; GTB6; InfoPath.2; MS-RTC LM 8)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; GTB6; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; GTB6; chromeframe)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; GTB6; .NET CLR 1.1.4322; InfoPath.2; Dealio Toolbar 3.1.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; GTB6; .NET CLR 1.1.4322; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; GTB6; .NET CLR 1.1.4322; .NET CLR 2.0.50727; Zune 3.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; GTB6; .NET CLR 1.1.4322; .NET CLR 2.0.50727; msn Optimized IE build03;JP)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; GTB6; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; AskTB5.3)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; GTB6; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; GTB6; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; GTB6; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; GTB6; .NET CLR 1.0.3705; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; GTB6.6; InfoPath.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; MS-RTC LM 8)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; GTB6.5; .NET CLR 2.0.50727; InfoPath.2; AskTB5.5)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; GTB6.5; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727) chromeframe/6.0.472.33",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; GTB6.5; .NET CLR 1.1.4322; .NET CLR 3.5.21022)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; GTB6.5; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; GTB6.3; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; InfoPath.1; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; GTB6.3; .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; GTB5; Zango 10.0.370.0; Seekmo 10.0.370.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; GTB5; Tablet PC 1.7; .NET CLR 1.0.3705; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; GTB5; MS-RTC LM 8)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; GTB5; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; InfoPath.2; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; GTB5; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; GTB5; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; GTB5; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 1.0.3705; .NET CLR 2.0.50727; .NET CLR 1.1.4322; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; GTB5; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 3.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; GTB5; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) )",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; GTB5; InfoPath.1; MS-RTC LM 8)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; GTB5; InfoPath.1; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; GTB5; InfoPath.1; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; GTB5; InfoPath.1; .NET CLR 2.0.50727; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; GTB5; InfoPath.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; MS-RTC LM 8)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; GTB5; InfoPath.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; GTB5; InfoPath.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; GTB5; InfoPath.1; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; GTB5; FunWebProductsn)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; GTB5; FunWebProducts; .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; GTB5; FunWebProducts; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; GTB5; FunWebProducts; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; GTB5; FunWebProducts)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; GTB5; .NET CLR 3.0.04506.30; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; GTB5; .NET CLR 2.0.50727; MS-RTC LM 8)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; GTB5; .NET CLR 2.0.50727; InfoPath.1; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; GTB5; .NET CLR 2.0.50727; FDM; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; GTB5; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; GTB5; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; InfoPath.1; .NET CLR 3.0.04506.648; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; GTB5; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; InfoPath.1; .NET CLR 3.0.04506.648; .NET CLR 1.1.4322; MS-RTC LM 8)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; GTB5; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; InfoPath.1; .NET CLR 1.1.4322; .NET CLR 3.0.04506.648; MS-RTC LM 8)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; GTB5; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 1.1.4322; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; GTB5; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 1.1.4322; .NET CLR 3.0.04506.648)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; GTB5; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; GTB5; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; GTB5; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.0.04506.30; InfoPath.1; .NET CLR 3.0.04506.648)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; GTB5; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.0.04506.30)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; GTB5; .NET CLR 1.1.4322; Windows-Media-Player/10.00.00.3990)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; GTB5; .NET CLR 1.1.4322; SpamBlockerUtility 4.8.4)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; GTB5; .NET CLR 1.1.4322; InfoPath.2; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; GTB5; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; GTB5; .NET CLR 1.1.4322; .NET CLR 2.0.50727; Zango 10.3.75.0; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; GTB5; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; InfoPath.1; OfficeLiveConnector.1.3; OfficeLivePatch.0.0; MS-RTC LM 8)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; GTB5; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; InfoPath.1; MS-RTC LM 8)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; GTB5; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; GTB5; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; InfoPath.2; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; GTB5; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; GTB5; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; GTB5; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0; InfoPath.2; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; GTB5; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; GTB5; .NET CLR 1.0.3705; .NET CLR 1.1.4322; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; GTB5; .NET CLR 1.0.3705; .NET CLR 1.1.4322; .NET CLR 2.0.50727; Media Center PC 4.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; GTB5; .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; GTB0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; GTB0.0; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; YPC 3.2.0; yplus 5.1.03b)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; YPC 3.2.0; yplus 5.1.02b)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; YPC 3.2.0; .NET CLR 1.1.4322; yplus 5.1.02b)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; YPC 3.2.0; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; YPC 3.2.0; .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; YPC 3.2.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; Wanadoo 7.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; Wanadoo 6.7; .NET CLR 1.1.4322; HbTools 4.7.2)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; SpamBlockerUtility 4.7.7)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; MSIECrawler)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; Media Center PC 3.0; .NET CLR 1.0.3705; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; Media Center PC 3.0; .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; InfoPath.1; Windows-Media-Player/10.00.00.3990)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; InfoPath.1; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.0.04506.30)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; InfoPath.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; i-NavFourF; .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; i-NavFourF; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; Hotbar 4.6.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; Hotbar 4.5.1.0; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; Hotbar 4.5.1.0; .NET CLR 1.0.3705; .NET CLR 1.1.4322; HbTools 4.7.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; HbTools 4.8.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; HbTools 4.7.7)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; HbTools 4.7.2)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; HbTools 4.7.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; HbTools 4.7.0; MSIECrawler)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; HbTools 4.7.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; GTB6; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 1.0.3705; Media Center PC 4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; GTB5; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 1.0.3705; .NET CLR 2.0.50727; .NET CLR 1.1.4322; Media Center PC 4.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; GTB5; .NET CLR 1.1.4322; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; FDM)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; Alexa Toolbar)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; Advanced Searchbar; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; .NET CLR 2.0.50727; SpamBlockerUtility 4.7.5)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; .NET CLR 2.0.50727; InfoPath.1; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; .NET CLR 2.0.40607)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; .NET CLR 1.1.4322; yplus 5.1.02b)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; .NET CLR 1.1.4322; yplus 4.1.00b)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; .NET CLR 1.1.4322; SpamBlockerUtility 4.7.5)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; .NET CLR 1.1.4322; SpamBlockerUtility 4.7.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; .NET CLR 1.1.4322; MSIECrawler)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; .NET CLR 1.1.4322; MS-RTC LM 8)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; .NET CLR 1.1.4322; InfoPath.2; Seekmo 10.0.341.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; .NET CLR 1.1.4322; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727; SpamBlockerUtility 4.7.5)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; .NET CLR 1.1.4322; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; .NET CLR 1.1.4322; Hotbar 4.6.1; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; .NET CLR 1.1.4322; Hotbar 4.6.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; .NET CLR 1.1.4322; HbTools 4.7.7)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; .NET CLR 1.1.4322; HbTools 4.7.5)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; .NET CLR 1.1.4322; HbTools 4.7.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; .NET CLR 1.1.4322; HbTools 4.7.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; .NET CLR 1.1.4322; HbTools 4.6.4)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; .NET CLR 1.1.4322; .NET CLR 2.0.50727; Seekmo 10.0.427.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; .NET CLR 1.1.4322; .NET CLR 2.0.50727; Seekmo 10.0.406.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.1; MS-RTC LM 8)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.1; Hotbar 10.2.217.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; .NET CLR 1.1.4322; .NET CLR 2.0.50727; Hotbar 10.2.191.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; Seekmo 10.0.427.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; MS-RTC LM 8; .NET CLR 3.0.04506.648; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; .NET CLR 1.1.4322; .NET CLR 2.0.50215; SpamBlockerUtility 4.8.4)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; .NET CLR 1.1.4322; .NET CLR 2.0.50215)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; .NET CLR 1.0.3705; MEGAUPLOAD 1.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; .NET CLR 1.0.3705; Media Center PC 4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; .NET CLR 1.0.3705; Media Center PC 3.1; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; .NET CLR 1.0.3705; Media Center PC 3.1; .NET CLR 1.1.4322; SpamBlockerUtility 4.8.0; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; .NET CLR 1.0.3705; Media Center PC 3.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; .NET CLR 1.0.3705; Media Center PC 3.1; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; .NET CLR 1.0.3705; Media Center PC 2.8; .NET CLR 2.0.40607)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; .NET CLR 1.0.3705; Media Center PC 2.8)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; .NET CLR 1.0.3705; InfoPath.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; .NET CLR 1.0.3705; InfoPath.1; .NET CLR 2.0.50727; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; .NET CLR 1.0.3705; InfoPath.1; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; .NET CLR 1.0.3705; FDM)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; .NET CLR 1.0.3705; .NET CLR 2.0.50727; .NET CLR 1.1.4322; Media Center PC 4.0; SpamBlockerUtility 4.8.4)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; .NET CLR 1.0.3705; .NET CLR 2.0.50727; .NET CLR 1.1.4322; Media Center PC 4.0; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; .NET CLR 1.0.3705; .NET CLR 2.0.50727; .NET CLR 1.1.4322; Media Center PC 4.0; .NET CLR 3.0.04506.30)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; .NET CLR 1.0.3705; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0; Windows-Media-Player/10.00.00.3990; .NET CLR 2.0.50727; Media Center PC 3.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0; SpamBlockerUtility 4.8.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0; Seekmo 10.0.345.0; SpamBlockerUtility 4.8.4)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0; PeoplePal 6.6; Zango 10.0.314.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0; InfoPath.2; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0; InfoPath.1; Hotbar 10.2.217.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0; HbTools 4.7.7)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0; FDM)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0; .NET CLR 2.0.50727; yplus 5.6.04)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0; .NET CLR 2.0.50727; yplus 5.1.04b)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0; .NET CLR 2.0.50727; SpamBlockerUtility 10.0.327.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0; .NET CLR 2.0.50727; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0; .NET CLR 2.0.50727; InfoPath.1; yplus 5.1.04b)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0; .NET CLR 2.0.50727; HbTools 4.8.4)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 3.1; SpamBlockerUtility 4.8.6)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 3.1; SpamBlockerUtility 4.8.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 3.1; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 3.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 2.8; .NET CLR 2.0.50727; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 2.8)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; .NET CLR 1.0.3705; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; .NET CLR 1.0.3705; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; .NET CLR 1.0.3705; .NET CLR 1.1.4322; .NET CLR 2.0.50727; Media Center PC 4.0; HbTools 4.7.7; SpamBlockerUtility 4.7.5)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; .NET CLR 1.0.3705; .NET CLR 1.1.4322; .NET CLR 2.0.50727; Media Center PC 4.0; .NET CLR 3.0.04506.30)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; .NET CLR 1.0.3705; .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; .NET CLR 1.0.3705; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; (R1 1.6); .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; (R1 1.6))",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; (R1 1.5); .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; (R1 1.5))",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; (R1 1.3))",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts-MyWay; .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts-MyWay; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts-MyWay)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FreeprodTB; Alexa Toolbar)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FreeprodTB; .NET CLR 1.1.4322; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FreeprodTB; .NET CLR 1.1.4322; .NET CLR 2.0.50215)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FreeprodTB; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FreeprodTB)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FDM; InfoPath.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04324.17)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FDM; .NET CLR 2.0.50727; InfoPath.1; MEGAUPLOAD 1.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FDM; .NET CLR 2.0.50727; InfoPath.1; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FDM; .NET CLR 2.0.50727; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FDM; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FDM; .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FDM; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FDM; .NET CLR 1.0.3705; .NET CLR 2.0.50727; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FDM; .NET CLR 1.0.3705; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FDM; .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FDM)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FBSMTWB; GTB6.6; .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FBSMTWB; FunWebProducts; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; MS-RTC LM 8; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; DigExt; .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; DigExt; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; DigExt)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; CursorZone Grip Toolbar 2.08.552; FunWebProducts; .NET CLR 1.0.3705; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; chromeframe)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; AskTB5.3)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Alexa Toolbar; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Alexa Toolbar; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Alexa Toolbar; .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Alexa Toolbar; .NET CLR 1.1.4322; .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Alexa Toolbar; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Alexa Toolbar)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Advanced Searchbar; .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Advanced Searchbar; .NET CLR 1.1.4322; .NET CLR 2.0.50215)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Advanced Searchbar; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Advanced Searchbar 3.25)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Advanced Searchbar 3.24; EmbeddedWB 14.5 from: http://www.bsalsa.com/ EmbeddedWB 14.5; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Advanced Searchbar 3.24; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR SV.4.0.329; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 3.0.04506.30; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 3.0.04506.30; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; InfoPath.2; .NET CLR 3.5.21022)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 3.0.04506.30; .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727; MEGAUPLOAD 1.0; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727; MEGAUPLOAD 1.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 1.1.4322; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727; InfoPath.1; Zune 3.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727; InfoPath.1; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727; InfoPath.1; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727; InfoPath.1; .NET CLR 1.1.4322; Windows-Media-Player/10.00.00.3990)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727; InfoPath.1; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727; FDM; MEGAUPLOAD 1.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727; FDM)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727; Alexa Toolbar)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET4.0C; .NET4.0E)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET CLR 1.1.4322; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET CLR 1.1.4322; .NET4.0C; .NET4.0E)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; MS-RTC LM 8; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 1.1.4322; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.590)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; InfoPath.1; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; InfoPath.1; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET4.0C; .NET4.0E; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 1.1.4322; MS-RTC LM 8)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 1.1.4322; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 1.1.4322; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 1.1.4322; .NET CLR 3.0.04506.648; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727; .NET CLR 3.0.04324.17; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727; .NET CLR 2.0.40607)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727; .NET CLR 1.1.4322; Seekmo 10.0.341.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727; .NET CLR 1.1.4322; MSIECrawler)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727; .NET CLR 1.1.4322; MS-RTC LM 8; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727; .NET CLR 1.1.4322; MEGAUPLOAD 1.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727; .NET CLR 1.1.4322; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 3.0.04506.30)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727; .NET CLR 1.1.4322; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR.3.0.04131.06)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.0.04506.30; InfoPath.2; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; MS-RTC LM 8)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.0.04506.30)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 2.0.50215; Alexa Toolbar)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727; .NET CLR 1.0.3705; .NET CLR 1.1.4322; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50215; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50215; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50215)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50110; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.41115; .NET CLR 1.1.4322; .NET CLR 2.0.50215; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.40607; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.40607; Alexa Toolbar)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.40607; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.40607; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.40607)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; Zango 10.0.314.0; .NET CLR 2.0.50727; Seekmo 10.0.370.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; yplus 4.1.00b)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; Windows-Media-Player/10.00.00.3990)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; Tablet PC 1.7; .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; SpamBlockerUtility 4.7.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; SpamBlockerUtility 4.6.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; SiteKiosk 6.0 Build 98; SiteCoach 2.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; SiteKiosk 6.0 Build 98)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; Seekmo 10.0.431.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; Seekmo 10.0.424.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; Seekmo 10.0.406.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; Seekmo 10.0.370.0; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; Seekmo 10.0.345.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; Seekmo 10.0.275.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; PeoplePal 6.2)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; PeoplePal 6.1; PeoplePal 6.2; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; PeoplePal 3.0; PeoplePal 6.2)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; PeoplePal 3.0; .NET CLR 1.0.3705; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; PeoplePal 3.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; MSIECrawler)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; MS-RTC LM 8; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; InfoPath.2; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; InfoPath.1; Windows-Media-Player/10.00.00.3990; SpamBlockerUtility 4.8.4)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; InfoPath.1; MS-RTC LM 8; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; InfoPath.1; FDM)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727; Tablet PC 1.7; .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727; Seekmo 10.0.370.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727; Seekmo 10.0.345.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727; FDM)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727; Avalon 6.0.5070; WinFX RunTime 3.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727; Alexa Toolbar)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; yie8)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.04506.30; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50215; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 1.0.3705; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; Hotbar 4.6.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; HbTools 4.7.7)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; HbTools 4.7.5)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; HbTools 4.7.3; Alexa Toolbar)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; HbTools 4.7.3)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; HbTools 4.7.2)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; HbTools 4.7.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; HbTools 4.7.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; FDM; InfoPath.2; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; FDM; InfoPath.1; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; FDM; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; FDM; Alexa Toolbar) (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; FDM; .NET CLR 2.0.50727; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; FDM; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; FDM)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; Alexa Toolbar; FDM)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; Alexa Toolbar; .NET CLR 2.0.50727; MEGAUPLOAD 1.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; Alexa Toolbar; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; Alexa Toolbar)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 3.0.04506.30)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; Zango 10.3.65.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; yplus 5.1.02b)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; SiteKiosk 6.2 Build 51)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; Seekmo 10.0.427.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; MSIECrawler)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; MS-RTC LM 8; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; MS-RTC LM 8; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; MEGAUPLOAD TOOLBAR 1.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; MEGAUPLOAD 1.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.2; FDM)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.1; Windows-Media-Player/10.00.00.3990)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.1; MS-RTC LM 8)Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.1; MS-RTC LM 8)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.1; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.1; FDM)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.1; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.1; .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; HbTools 4.7.2)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; FDM; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; FDM; .NET CLR 3.0.04506.30)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; FDM)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; Avalon 6.0.5070; WinFX RunTime 3.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; Alexa Toolbar; yplus 5.3.03b)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; Alexa Toolbar)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; ;ja)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; msn OptimizedIE8;ENUS)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.2; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; SiteKiosk)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; MS-RTC LM 8; .NET CLR 3.0.04506.648; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C; .NET4.0E)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; InfoPath.2; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; InfoPath.1; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET4.0C; .NET4.0E; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.3; MS-RTC LM 8)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; MS-RTC LM 8; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; InfoPath.1; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.6",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.590)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30) Paros/3.2.13",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04324.17)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 1.0.3705; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50215; InfoPath.1; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50215; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50215; Avalon 6.0.5070; WinFX RunTime 3.0.50215; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50215; Avalon 6.0.4030; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50215; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50215; .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50215; .NET CLR 1.0.2914)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50215)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.40903)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.40607)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 1.0.3705; yplus 5.1.02b)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 1.0.3705; InfoPath.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 1.0.3705; InfoPath.1; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 1.0.3705; .NET CLR 2.0.50727; InfoPath.1; .NET CLR 3.0.04506.30)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 1.0.3705; .NET CLR 2.0.50727; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 1.0.3705; .NET CLR 2.0.50727; .NET CLR 3.0.04506.590; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 1.0.3705; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 1.0.3705; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 1.0.3705; .NET CLR 2.0.40607)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 1.0.3705; (R1 1.5))",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; FDM)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.1432)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; Tablet PC 1.7; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; Tablet PC 1.7; .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; Tablet PC 1.7; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; Tablet PC 1.7)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; PeoplePal 3.0; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; PeoplePal 3.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; Media Center PC 4.0; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; Media Center PC 4.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; Media Center PC 3.1; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; Media Center PC 3.1; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; Media Center PC 3.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; Media Center PC 2.8; InfoPath.1; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; Media Center PC 2.8; .NET CLR 1.1.4322; HbTools 4.7.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; Media Center PC 2.8; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; Media Center PC 2.8)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; InfoPath.2; MS-RTC LM 8)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; InfoPath.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; Hotbar 4.6.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; FDM)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; Alexa Toolbar)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; .NET CLR 2.0.50727; MSIECrawler)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; .NET CLR 2.0.50727; .NET CLR 1.1.4322; Media Center PC 4.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; .NET CLR 2.0.50727; .NET CLR 1.1.4322; InfoPath.1; MSIECrawler)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; .NET CLR 2.0.50727; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 3.0.04506.30; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; MS-RTC LM 8)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; .NET CLR 2.0.50727; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 3.0.04506.30)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; .NET CLR 2.0.50727; .NET CLR 1.1.4322; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; .NET CLR 2.0.50727; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; .NET CLR 2.0.50215; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; .NET CLR 2.0.50215)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Tablet PC 1.7; InfoPath.1; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Tablet PC 1.7; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Tablet PC 1.7; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Tablet PC 1.7)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; MSIECrawler)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0; .NET CLR 2.0.50727; yplus 5.1.04b)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0; .NET CLR 2.0.50727; WinFX RunTime 3.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0; .NET CLR 2.0.50727; SpamBlockerUtility 4.8.6)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0; .NET CLR 2.0.50727; PeoplePal 3.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0; .NET CLR 2.0.50727; Media Center PC 3.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 3.1; yplus 4.1.00b)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 3.1; Media Center PC 3.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 3.1; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 3.1; HbTools 4.8.2)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 3.1; HbTools 4.7.2)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 3.1; Alexa Toolbar)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 3.1; .NET CLR 2.0.50727; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 3.1; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 3.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 2.8; HbTools 4.7.2)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 2.8; .NET CLR 2.0.50727; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 2.8; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 2.8)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; InfoPath.1; Media Center PC 4.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; HbTools 4.7.2)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; FDM)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Avalon 6.0.5070; .NET CLR 2.0.50215; WinFX RunTime 3.0.50215; Media Center PC 4.0; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Alexa Toolbar)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; .NET CLR 2.0.50727; Media Center PC 4.0; Zango 10.3.75.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; .NET CLR 2.0.50727; Media Center PC 4.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; .NET CLR 2.0.50727; Media Center PC 2.8)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.1; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.1; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; .NET CLR 2.0.50727; FDM)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; .NET CLR 2.0.50727; Alexa Toolbar)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; InfoPath.2; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; Media Center PC 4.0; FDM; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; .NET CLR 2.0.50215)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; .NET CLR 2.0.40607; InfoPath.1; Media Center PC 4.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; .NET CLR 2.0.40607)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.2914)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; (R1 1.6); InfoPath.2; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; (R1 1.6); .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; (R1 1.6); .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; (R1 1.6); .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; (R1 1.6); .NET CLR 1.0.3705; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.1; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; (R1 1.6); .NET CLR 1.0.3705; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.1; .NET CLR 3.0.04506.30)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; (R1 1.5); PeoplePal 3.0; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; (R1 1.5); InfoPath.1; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; (R1 1.5); InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; (R1 1.5); HbTools 4.6.2)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; (R1 1.5); .NET CLR 2.0.50727; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; (R1 1.5); .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; (R1 1.5); .NET CLR 1.1.4322; InfoPath.1; Seekmo 10.0.345.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; (R1 1.5); .NET CLR 1.1.4322; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; (R1 1.5); .NET CLR 1.1.4322; FDM)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; (R1 1.5); .NET CLR 1.1.4322; Alexa Toolbar)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; (R1 1.5); .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; (R1 1.5); .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; (R1 1.5); .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; (R1 1.5); .NET CLR 1.1.4322; .NET CLR 2.0.50215)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; (R1 1.5); .NET CLR 1.1.4322; .NET CLR 1.0.3705; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; (R1 1.5); .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; (R1 1.5); .NET CLR 1.0.3705; Tablet PC 1.7; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; (R1 1.5); .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; (R1 1.5); .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; (R1 1.5); .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 3.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; (R1 1.5); .NET CLR 1.0.3705; .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; (R1 1.5); .NET CLR 1.0.3705; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; (R1 1.5); .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; (R1 1.5))",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; (R1 1.3); InfoPath.1; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; (R1 1.3); HbTools 4.7.2)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; (R1 1.3); .NET CLR 1.1.4322; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; (R1 1.3); .NET CLR 1.1.4322; Alexa Toolbar)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; (R1 1.3); .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; (R1 1.3); .NET CLR 1.1.4322; .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; (R1 1.3); .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; (R1 1.3); .NET CLR 1.0.3705; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; (R1 1.3); .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; (R1 1.3))",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; (R1 1.1); InfoPath.1; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; (R1 1.1); .NET CLR 1.1.4322; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; (R1 1.1); .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; (compatible; MSIE 6.0; Windows NT 5.1; SV1))",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; stumbleupon.com 1.927; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; stumbleupon.com 1.926; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; stumbleupon.com 1.926; .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; stumbleupon.com 1.926; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; stumbleupon.com 1.926)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; StumbleUpon.com 1.906; SV1; .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; StumbleUpon.com 1.763; SV1; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; StumbleUpon.com 1.763; SV1; .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SpamBlockerUtility 4.7.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SiteKiosk 6.0 Build 98)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SiteKiosk 5.5 Build 45; SiteCoach 2.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SiteCoach 1.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Rogers Hi-Speed Internet; SV1; YPC 3.2.0; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Rogers Hi-Speed Internet; SV1; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Rogers Hi-Speed Internet; SV1; .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Rogers Hi-Speed Internet; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Q312461; YPC 3.0.1; SV1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; yplus 4.1.00b)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Q312461; YComp 5.0.2.6; Hotbar 4.2.11.0; .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Q312461; YComp 5.0.2.6)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Q312461; YComp 5.0.2.5)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Q312461; YComp 5.0.2.4; SV1; .NET CLR 1.0.3705; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Q312461; YComp 5.0.2.4; Hotbar 3.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Q312461; YComp 5.0.2.4)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Q312461; YComp 5.0.0.0; SV1; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Q312461; YComp 5.0.0.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Q312461; Wanadoo 6.1; SV1; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Q312461; Wanadoo 5.5)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Q312461; SV1; YPC 3.2.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Q312461; SV1; YPC 3.0.1; FunWebProducts; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Q312461; SV1; InfoPath.1; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Q312461; SV1; Hotbar 4.6.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Q312461; SV1; Hotbar 4.5.1.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Q312461; SV1; FunWebProducts; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Q312461; SV1; FunWebProducts)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Q312461; SV1; Alexa Toolbar)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Q312461; SV1; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Q312461; SV1; .NET CLR 1.1.4322; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Q312461; SV1; .NET CLR 1.1.4322; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Q312461; SV1; .NET CLR 1.1.4322; FDM)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Q312461; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Q312461; SV1; .NET CLR 1.1.4322; .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Q312461; SV1; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Q312461; SV1; .NET CLR 1.0.3705; Alexa Toolbar; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Q312461; SV1; .NET CLR 1.0.3705; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Q312461; SV1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Q312461; SV1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Q312461; SV1; .NET CLR 1.0.3705; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Q312461; SV1; .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Q312461; SV1; (R1 1.5); .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Q312461; SV1; (R1 1.5))",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Q312461; SV1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Q312461; MSIECrawler)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Q312461; Hotbar 4.3.6.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Q312461; Hotbar 4.3.1.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Q312461; Hotbar 4.1.8.0; .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Q312461; Hotbar 4.1.8.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Q312461; Hotbar 4.1.7.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Q312461; Hotbar 4.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Q312461; Hotbar 3.0; SV1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Q312461; FunWebProducts; SV1; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Q312461; FunWebProducts; SV1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Q312461; .NET CLR 1.1.4322; .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Q312461; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Q312461; .NET CLR 1.0.3705; MSIECrawler)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Q312461; .NET CLR 1.0.3705; .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Q312461; .NET CLR 1.0.3705; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Q312461; .NET CLR 1.0.3705; .NET CLR 1.0.3617; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Q312461; .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Q312461; (R1 1.3); .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Q312461; (R1 1.1); MSIECrawler)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Q312461)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; pl)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; PeoplePal 6.1; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; nb)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; msn OptimizedIE8;ZHCN; SV1; QQDownload 661; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; MSN Optimized;US)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; MSIECrawler)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT); SV1; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT); .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT))",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; InfoPath.2; .NET CLR 2.0.50727; Zango 10.3.75.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 1.1.4322; .NET CLR 2.0.50727; MEGAUPLOAD 1.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.2; OfficeLiveConnector.1.3; OfficeLivePatch.0.0; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; MEGAUPLOAD 1.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; MathPlayer 2.0; SV1; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; MathPlayer 2.0; SV1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; MathPlayer 2.0; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; MathPlayer 2.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; LN; SV1; .NET CLR 1.1.4322; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; iOpus-I-M; SV1; Hotbar 4.6.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; iOpus-I-M; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; iOpus-I-M; SV1; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; iOpus-I-M; SV1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; iOpus-I-M; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; iOpus-I-M; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; iOpus-I-M; .NET CLR 1.0.3705; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; iOpus-I-M; .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; iOpus-I-M)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; InfoPath.1; .NET CLR 2.0.50727; MS-RTC LM 8; .NET CLR 1.1.4322; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; InfoPath.1; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; InfoPath.1; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; image_azv; SV1; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; iebar; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; iebar; SV1; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; iebar; SV1; .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; iebar; SV1; (R1 1.5); .NET CLR 1.1.4322; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; iebar; SV1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; iebar; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; iebar)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; i-NavFourF; SV1; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; i-NavFourF; InfoPath.1; .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; i-NavFourF; Hotbar 4.6.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; i-NavFourF; .NET CLR 1.1.4322; .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; i-NavFourF; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; i-NavFourF; .NET CLR 1.0.3705; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; i-NavFourF; .NET CLR 1.0.3705; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; i-NavFourF)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Hotbar 4.6.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Hotbar 4.5.1.0; SV1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Hotbar 4.5.0.0; SV1; (R1 1.5); .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Hotbar 4.4.7.0; SV1; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Hotbar 4.4.6.0; SV1; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Hotbar 4.4.5.0; SV1; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Hotbar 4.4.2.0; FunWebProducts)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Hotbar 4.4.1.1406)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Hotbar 4.4.1.1388)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Hotbar 4.3.5.0; MSIECrawler)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Hotbar 4.3.5.0; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Hotbar 4.3.5.0; .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Hotbar 4.3.5.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Hotbar 4.3.2.0; FunWebProducts; i-NavFourF)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Hotbar 4.3.1.0; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Hotbar 4.3.1.0; .NET CLR 1.0.3705; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Hotbar 4.3.1.0; .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Hotbar 4.3.1.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Hotbar 4.2.8.0; .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Hotbar 4.2.8.0; (R1 1.3))",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Hotbar 4.2.6.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Hotbar 4.2.4.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Hotbar 4.2.14.0; .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Hotbar 4.2.14.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Hotbar 4.2.13.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Hotbar 4.2.11.0; SV1; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Hotbar 4.2.11.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Hotbar 4.2.10.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Hotbar 4.1.8.0; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Hotbar 4.1.8.0; .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Hotbar 4.1.8.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Hotbar 4.1.7.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Hotbar 4.1.5.0; YComp 5.0.0.0; .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Hotbar 4.1.5.0; .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Hotbar 4.1.5.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Hotbar 4.1.2.0; YComp 5.0.2.6)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Hotbar 4.0; YComp 5.0.2.5)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Hotbar 4.0; .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Hotbar 4.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Hotbar 3.0; YComp 5.0.2.4)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Hotbar 3.0; Q312461)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Hotbar 3.0; .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Hotbar 3.0; (R1 1.3))",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Hotbar 3.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; HbTools 4.7.3)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; HbTools 4.7.2)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; HbTools 4.7.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; HbTools 4.7.0; FDM)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; HbTools 4.7.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; HbTools 4.6.2)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; GTB6; FunWebProducts; SV1; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; MSN Optimized;US)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; GTB6.4; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; GTB5; SV1; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.0.04506; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; GTB5; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; GTB5; .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Grip Toolbar 2.07a; SV1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; FunWebProducts; YPC 3.2.0; SV1; .NET CLR 1.1.4322; yplus 5.1.02b)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; FunWebProducts; YPC 3.2.0; .NET CLR 1.1.4322; HbTools 4.7.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; FunWebProducts; Wanadoo 6.2)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; FunWebProducts; Wanadoo 5.6; SV1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; FunWebProducts; SV1; YPC 3.2.0; .NET CLR 1.1.4322; HbTools 4.8.0; yplus 5.3.00b)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; FunWebProducts; SV1; YPC 3.2.0; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; FunWebProducts; SV1; YPC 3.2.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; FunWebProducts; SV1; Wanadoo 6.2; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; FunWebProducts; SV1; Wanadoo 6.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; FunWebProducts; SV1; InfoPath.2; .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; FunWebProducts; SV1; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; FunWebProducts; SV1; i-NavFourF; .NET CLR 1.1.4322; HbTools 4.7.3)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; FunWebProducts; SV1; Hotbar 4.5.1.0; .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; FunWebProducts; SV1; HbTools 4.7.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; FunWebProducts; SV1; HbTools 4.7.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; FunWebProducts; SV1; .NET CLR 1.1.4322; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; FunWebProducts; SV1; .NET CLR 1.1.4322; Alexa Toolbar; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; FunWebProducts; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; FunWebProducts; SV1; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; FunWebProducts; SV1; .NET CLR 1.0.3705; Hotbar 4.6.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; FunWebProducts; SV1; .NET CLR 1.0.3705; Hotbar 10.0.356.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; FunWebProducts; SV1; .NET CLR 1.0.3705; HbTools 4.7.7)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; FunWebProducts; SV1; .NET CLR 1.0.3705; HbTools 4.7.5)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; FunWebProducts; SV1; .NET CLR 1.0.3705; HbTools 4.7.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; FunWebProducts; SV1; .NET CLR 1.0.3705; Alexa Toolbar)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; FunWebProducts; SV1; .NET CLR 1.0.3705; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; FunWebProducts; SV1; .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; FunWebProducts; SV1; (R1 1.6); .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; FunWebProducts; SV1; (R1 1.5); .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; FunWebProducts; SV1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; FunWebProducts; Seekmo 10.0.275.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; FunWebProducts; PeoplePal 6.2)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; FunWebProducts; iOpus-I-M)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; FunWebProducts; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; FunWebProducts; iebar)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; FunWebProducts; i-NavFourF; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; FunWebProducts; Hotbar 4.6.1; HbTools 4.7.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; FunWebProducts; Hotbar 4.6.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; FunWebProducts; Hotbar 4.3.5.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; FunWebProducts; HbTools 4.7.2)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; FunWebProducts; HbTools 4.7.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; FunWebProducts; HbTools 4.7.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; FunWebProducts; FunWebProducts-MyTotalSearch; iebar)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; FunWebProducts; .NET CLR 1.1.4322; SpamBlockerUtility 4.6.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; FunWebProducts; .NET CLR 1.1.4322; Hotbar 4.6.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; FunWebProducts; .NET CLR 1.1.4322; HbTools 4.7.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; FunWebProducts; .NET CLR 1.1.4322; HbTools 4.7.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; FunWebProducts; .NET CLR 1.1.4322; FDM)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; FunWebProducts; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; FunWebProducts; .NET CLR 1.0.3705; HbTools 4.7.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; FunWebProducts; .NET CLR 1.0.3705; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; FunWebProducts; .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; FunWebProducts; (R1 1.5); .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; FunWebProducts-MyWay; SV1; MathPlayer 2.0; .NET CLR 1.1.4322; .NET CLR 2.0.50215)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; FunWebProducts-MyWay; SV1; MathPlayer 2.0; (R1 1.5); .NET CLR 1.1.4322; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; FunWebProducts-MyWay; SV1; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; FunWebProducts-MyWay; SV1; .NET CLR 1.0.3705; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; FunWebProducts-MyWay; SV1; .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; FunWebProducts-MyWay; SV1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; FunWebProducts-MyWay; iebar; .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; FunWebProducts-MyWay; FunWebProducts)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; FunWebProducts-MyWay)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; FunWebProducts-MyTotalSearch)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; FunWebProducts)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; FreeprodTB; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; FreeprodTB)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; FDM; SV1; .NET CLR 3.0.04506.30)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; FDM; .NET CLR 2.0.50727; .NET CLR 1.1.4322; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; FDM; .NET CLR 2.0.50727; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; FDM; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; FDM)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; FBSMTWB)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; es-es)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; DigExt; YPC 3.2.0; SV1; .NET CLR 1.1.4322; yplus 5.3.02d)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; DigExt; YComp 5.0.0.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; DigExt; Wanadoo 5.6)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; DigExt; SV1; YPC 3.2.0; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; DigExt; SV1; GTB5; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; DigExt; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; DigExt; SV1; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; DigExt; SV1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; DigExt; Q312461; SV1; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; DigExt; Q312461)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; DigExt; Hotbar 4.2.4.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; DigExt; FunWebProducts)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; DigExt; .NET CLR 2.0.50215; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; DigExt; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; DigExt; .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; DigExt; (R1 1.1))",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; DigExt)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Dealio Toolbar 3.4; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; de)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; chromeframe; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Alexa Toolbar; SV1; FDM)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Alexa Toolbar; SV1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Alexa Toolbar; MEGAUPLOAD 1.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Alexa Toolbar; .NET CLR 1.1.4322; .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Alexa Toolbar; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Alexa Toolbar)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Advanced Searchbar 3.25; SV1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET4.0C; .NET4.0E)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 2.0.50727; SV1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 2.0.50727; MEGAUPLOAD 1.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 2.0.50727; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 2.0.50727; InfoPath.1; .NET CLR 1.1.4322; SV1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 1.1.4322; InfoPath.2; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; FDM)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; InfoPath.1; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 2.0.50215)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322; SiteKiosk 5.5 Build 45; SiteCoach 2.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322; SiteKiosk 5.5 Build 45)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322; PeoplePal 3.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322; MSIECrawler)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322; MEGAUPLOAD 1.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322; HbTools 4.7.2)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322; HbTools 4.7.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322; HbTools 4.7.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322; FDM)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322; Alexa Toolbar; .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322; Alexa Toolbar)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; MEGAUPLOAD 2.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.2)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; FDM)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; Avalon 6.0.5070; WinFX RunTime 3.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; Alexa Toolbar)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; OfficeLiveConnector.1.3; OfficeLivePatch.0.0; FDM)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 2.0.50215)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50215)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.40607)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 1.0.3705; Hotbar 4.6.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 1.0.3705; .NET CLR 2.0.40607)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.0.3705; Seekmo 10.0.427.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.0.3705; MSIECrawler)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.0.3705; Media Center PC 2.8)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.0.3705; InfoPath.1; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.0.3705; Hotbar 4.6.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.0.3705; HbTools 4.7.2)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.0.3705; Alexa Toolbar)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.0.3705; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; MSIECrawler)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 3.1; Alexa Toolbar)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 3.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04324.17)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; .NET CLR 2.0.40607; Alexa Toolbar)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; .NET CLR 1.2.30703)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.0.3705; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.0.3705; .NET CLR 1.0.2914)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.0.3328)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.0.3215)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.0.2914)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; (R1 1.5); .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; (R1 1.5); .NET CLR 1.0.3705; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; (R1 1.5); .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; (R1 1.5))",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; (R1 1.3); .NET CLR 1.1.4322; .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; (R1 1.3); .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; (R1 1.3); .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; (R1 1.3))",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; (R1 1.1); .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; (R1 1.1); .NET CLR 1.0.3512)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; (R1 1.1))",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1;",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.12)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1) (compatible; MSIE 6.0; Windows NT 5.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; YPC 3.2.0; .NET CLR 1.1.4322; yplus 5.1.03b)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; YPC 3.2.0; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; YPC 3.2.0; (R1 1.5; yplus 5.1.02b))",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; YPC 3.2.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; YPC 3.0.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; YComp 5.0.8.6)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; YComp 5.0.2.6; Hotbar 4.2.8.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; YComp 5.0.2.6; Hotbar 4.1.8.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; YComp 5.0.2.6; .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; YComp 5.0.2.6; (R1 1.3))",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; YComp 5.0.2.6)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; YComp 5.0.2.5)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; YComp 5.0.2.4; .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; YComp 5.0.2.4)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; YComp 5.0.0.0; Hotbar 4.1.8.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; YComp 5.0.0.0; .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; YComp 5.0.0.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; Wanadoo 6.2)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; Wanadoo 6.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; Wanadoo 5.6)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; Wanadoo 5.5)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; Wanadoo 5.3)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; T312461; YPC 3.2.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; T312461; YComp 5.0.2.6; .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; T312461; YComp 5.0.2.6)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; T312461; YComp 5.0.0.0; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; T312461; Q312461; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; T312461; Q312461; .NET CLR 1.0.3705; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; T312461; Q312461; .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; T312461; Q312461; (R1 1.1))",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; T312461; Q312461)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; T312461; iebar)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; T312461; Hotbar 4.3.2.0; .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; T312461; Hotbar 4.2.8.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; T312461; Hotbar 4.1.8.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; T312461; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; T312461; .NET CLR 1.1.4322; .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; T312461; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; T312461; .NET CLR 1.0.3705; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; T312461; .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; T312461)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; SV1; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; SV1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; SpamBlockerUtility 4.7.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; SpamBlockerUtility 4.6.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; SiteKiosk 6.2 Build 51)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; SiteKiosk 6.0 Build 98; SiteCoach 2.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; Rogers Hi-Speed Internet; Hotbar 4.4.2.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; Q312461; YComp 5.0.2.6; .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; Q312461; YComp 5.0.2.6)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; Q312461; YComp 5.0.2.5; MSIECrawler)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; Q312461; YComp 5.0.0.0; .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; Q312461; YComp 5.0.0.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; Q312461; MSIECrawler)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; Q312461; Hotbar 4.3.1.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; Q312461; Hotbar 4.2.8.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; Q312461; Hotbar 4.2.4.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; Q312461; Hotbar 4.1.8.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; Q312461; Hotbar 4.1.5.0; .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; Q312461; FunWebProducts)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; Q312461; .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; Q312461; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; Q312461; .NET CLR 1.0.3705; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; Q312461; .NET CLR 1.0.3705; .NET CLR 1.0.2914)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; Q312461; .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; Q312461; .NET CLR 1.0.2914; .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; Q312461; .NET CLR 1.0.2914)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; Q312461)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; MSIECrawler)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 1.1.4322; .NET CLR 2.0.50727; MEGAUPLOAD 1.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; MathPlayer 2.0; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; MathPlayer 2.0; FunWebProducts; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; MathPlayer 2.0; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; MathPlayer 2.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; iOpus-I-M; FunWebProducts-MyWay; .NET CLR 1.1.4322; FDM; Alexa Toolbar)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; iOpus-I-M; FunWebProducts-MyWay; .NET CLR 1.1.4322; FDM)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; iOpus-I-M; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; iOpus-I-M; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; iOpus-I-M; .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; iOpus-I-M)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; InfoPath.1; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; InfoPath.1; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; iebar; HbTools 4.6.4)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; iebar; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; IE6SP1; .NET CLR 1.0.3705; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; i-NavFourF; .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; i-NavFourF; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; i-NavFourF; .NET CLR 1.0.3705; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; i-NavFourF)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; Hotbar 4.6.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; Hotbar 4.5.1.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; Hotbar 4.5.0.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; Hotbar 4.3.5.0; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; Hotbar 4.3.5.0; .NET CLR 1.0.3705; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; Hotbar 4.3.5.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; Hotbar 4.3.2.0; (R1 1.3))",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; Hotbar 4.3.2.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; Hotbar 4.3.1.0; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; Hotbar 4.3.1.0; .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; Hotbar 4.3.1.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; Hotbar 4.2.8.0; .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; Hotbar 4.2.4.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; Hotbar 4.2.2.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; Hotbar 4.2.13.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; Hotbar 4.2.11.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; Hotbar 4.1.8.0; .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; Hotbar 4.1.8.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; Hotbar 4.1.5.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; Hotbar 4.0; YComp 5.0.0.0; .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; Hotbar 4.0; YComp 5.0.0.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; Hotbar 4.0; .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; Hotbar 4.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; Hotbar 3.0; T312461; Q312461)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; Hotbar 3.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; HbTools 4.7.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; FunWebProducts; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; FunWebProducts; i-NavFourF)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; FunWebProducts; Hotbar 4.3.5.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; FunWebProducts; .NET CLR 1.1.4322; HbTools 4.7.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; FunWebProducts; .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; FunWebProducts; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; FunWebProducts; .NET CLR 1.0.3705; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; FunWebProducts; .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; FunWebProducts-MyWay; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; FunWebProducts)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; FreeprodTB; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; FDM; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; FDM; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; FDM)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; en)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; DigExt; T312461)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; DigExt; Q312461)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; DigExt; MSIECrawler)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; DigExt; FunWebProducts)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; DigExt; .NET CLR 1.1.4322; .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; DigExt; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; DigExt; .NET CLR 1.0.3705; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; DigExt; .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; DigExt; .NET CLR 1.0.2914)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; DigExt)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; Alexa Toolbar; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; Alexa Toolbar)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; Advanced Searchbar; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 2.0.50727; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 2.0.50727; .NET CLR 1.1.4322; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 2.0.50727; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 2.0.50215)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 2.0.40607)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.1.4322; yplus 4.1.00b)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.1.4322; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.1.4322; HbTools 4.7.2)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.1.4322; FDM; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.1.4322; FDM)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.1.4322; Alexa Toolbar; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; FDM)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; Alexa Toolbar)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.1.4322; .NET CLR 2.0.50215)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.1.4322; .NET CLR 2.0.40607)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.1.4322; .NET CLR 1.0.3705; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.1.4322; .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.0.3705; SpamBlockerUtility 4.7.5)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.0.3705; MSIECrawler)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.0.3705; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.0.3705; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.0.3705; .NET CLR 1.1.4322; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Alexa Toolbar; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Alexa Toolbar)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.0.3705; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.0.3705; .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.0.3705; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.0.2914)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; (R1 1.5); .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; (R1 1.5); .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; (R1 1.5))",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; (R1 1.3); .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; (R1 1.3); .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; (R1 1.3))",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; (R1 1.1); .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; (R1 1.1); .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; (R1 1.1))",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 4; SV1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 4.0; YComp 5.0.2.6)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 4.0; YComp 5.0.2.4)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 4.0; YComp 5.0.0.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 4.0; T312461; Q312461)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 4.0; T312461; .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 4.0; T312461)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 4.0; Q312461; YComp 5.0.0.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 4.0; Q312461; Hotbar 4.1.8.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 4.0; Q312461; .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 4.0; Q312461; (R1 1.1))",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 4.0; Q312461)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 4.0; Hotbar 4.3.5.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 4.0; Hotbar 4.2.4.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 4.0; Hotbar 4.2.11.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 4.0; Hotbar 4.1.8.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 4.0; Hotbar 3.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 4.0; FunWebProducts)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 4.0; DigExt; Q312461; .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 4.0; DigExt)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 4.0; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 4.0; .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 4.0; (R1 1.3))",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 4.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows CE; SV1; .NET CLR 2.0.50727; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows CE; InfoPath.2; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows CE)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; YPC 3.2.0; yplus 5.3.01b)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; YPC 3.2.0; yplus 5.1.02b)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; YPC 3.2.0; yplus 4.1.00b)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; YPC 3.2.0; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; YPC 3.2.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; YPC 3.0.2)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; YPC 3.0.1; .NET CLR 1.1.4322; yplus 4.1.00b)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; YComp 5.0.2.6)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; YComp 5.0.2.5; Hotbar 4.1.8.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; YComp 5.0.2.5)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; YComp 5.0.0.0; Hotbar 4.2.4.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; YComp 5.0.0.0; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; YComp 5.0.0.0; .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; YComp 5.0.0.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; www.direktanlagebank.com)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Win 9x4.90)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Win 9x 4.90; YPC 3.2.0; yplus 5.1.02b)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Win 9x 4.90; YPC 3.2.0; .NET CLR 1.1.4322; yplus 5.3.01b)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Win 9x 4.90; YPC 3.2.0; .NET CLR 1.1.4322; yplus 5.1.02b)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Win 9x 4.90; YPC 3.2.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Win 9x 4.90; YPC 3.1.0; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Win 9x 4.90; YComp 5.0.2.6; .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Win 9x 4.90; YComp 5.0.2.6)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Win 9x 4.90; YComp 5.0.2.5)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Win 9x 4.90; YComp 5.0.2.4; Hotbar 4.1.7.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Win 9x 4.90; YComp 5.0.2.4)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Win 9x 4.90; YComp 5.0.0.0; Hotbar 4.1.8.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Win 9x 4.90; Wanadoo 6.2)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Win 9x 4.90; Wanadoo 6.1; Wanadoo 6.2)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Win 9x 4.90; Wanadoo 5.6)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Win 9x 4.90; Wanadoo 5.5; Hotbar 4.2.4.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Win 9x 4.90; Wanadoo 5.5; Hotbar 4.1.8.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Win 9x 4.90; T312461; Q312461)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Win 9x 4.90; Rogers Hi-Speed Internet)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Win 9x 4.90; Q312461; YPC 3.0.3)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Win 9x 4.90; Q312461; Hotbar 3.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Win 9x 4.90; Q312461; .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Win 9x 4.90; Q312461)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Win 9x 4.90; PeoplePal 6.6)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Win 9x 4.90; PeoplePal 6.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Win 9x 4.90; PeoplePal 3.0; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Win 9x 4.90; MSIECrawler)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Win 9x 4.90; MEGAUPLOAD 3.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Win 9x 4.90; MathPlayer 2.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Win 9x 4.90; iOpus-I-M)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Win 9x 4.90; i-NavFourF; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Win 9x 4.90; i-NavFourF)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Win 9x 4.90; Hotbar 4.4.2.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Win 9x 4.90; Hotbar 4.3.5.0; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Win 9x 4.90; Hotbar 4.3.1.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Win 9x 4.90; Hotbar 4.2.8.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Win 9x 4.90; Hotbar 4.2.4.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Win 9x 4.90; Hotbar 4.2.3.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Win 9x 4.90; Hotbar 4.1.8.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Win 9x 4.90; Hotbar 4.1.5.0; .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Win 9x 4.90; Hotbar 4.1.2.0; .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Win 9x 4.90; Hotbar 4.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Win 9x 4.90; Hotbar 3.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Win 9x 4.90; HbTools 4.8.2)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Win 9x 4.90; FunWebProducts; i-NavFourF; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Win 9x 4.90; FunWebProducts; Hotbar 4.2.14.0; YPC 3.2.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Win 9x 4.90; FunWebProducts; .NET CLR 1.1.4322; HbTools 4.8.4)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Win 9x 4.90; FunWebProducts; (R1 1.5))",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Win 9x 4.90; FunWebProducts)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Win 9x 4.90; FDM; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Win 9x 4.90; FDM)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Win 9x 4.90; Alexa Toolbar)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Win 9x 4.90; .NET CLR 2.0.50727; FDM)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Win 9x 4.90; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Win 9x 4.90; .NET CLR 1.1.4322; SpamBlockerUtility 4.8.4)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Win 9x 4.90; .NET CLR 1.1.4322; PeoplePal 6.2)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Win 9x 4.90; .NET CLR 1.1.4322; PeoplePal 3.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Win 9x 4.90; .NET CLR 1.1.4322; MSIECrawler)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Win 9x 4.90; .NET CLR 1.1.4322; Alexa Toolbar)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Win 9x 4.90; .NET CLR 1.1.4322; .NET CLR 2.0.40607)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Win 9x 4.90; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Win 9x 4.90; .NET CLR 1.0.3705; .NET CLR 1.1.4322; SpamBlockerUtility 4.8.4)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Win 9x 4.90; .NET CLR 1.0.3705; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Win 9x 4.90; .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Win 9x 4.90; (R1 1.5); .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Win 9x 4.90; (R1 1.5))",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Win 9x 4.90; (R1 1.3); .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Win 9x 4.90; (R1 1.3))",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Win 9x 4.90; (R1 1.1))",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Win 9x 4.90)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Wanadoo 7.1; Hotbar 4.2.6.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Wanadoo 7.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Wanadoo 6.2; HbTools 4.7.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Wanadoo 6.2; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Wanadoo 6.2)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Wanadoo 6.1; Wanadoo 6.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Wanadoo 6.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Wanadoo 5.6; Wanadoo 5.2)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Wanadoo 5.6)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Wanadoo 5.5; Wanadoo 6.2)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Wanadoo 5.5; Wanadoo 6.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Wanadoo 5.5)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Wanadoo 5.4)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Wanadoo 5.3; YComp 5.0.0.0; Wanadoo 5.5)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Wanadoo 5.3; Wanadoo 5.5; Wanadoo 6.0; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Wanadoo 5.3; Wanadoo 5.5)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; T312461; YComp 5.0.2.6)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; T312461; YComp 5.0.0.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; T312461; Q312461; FunWebProducts; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; T312461; Q312461)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; T312461; Hotbar 4.3.5.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; T312461; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; T312461; (R1 1.1))",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; T312461)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; SpamBlockerUtility 4.7.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; SpamBlockerUtility 4.6.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; SiteKiosk 4.9; SiteCoach 1.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; SiteKiosk 4.9)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; SEARCHALOT.COM; .NET CLR 1.0.3705; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; ru)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Rogers Hi-Speed Internet)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Q312461; YComp 5.0.2.6; Hotbar 4.2.8.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Q312461; YComp 5.0.2.4)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Q312461; YComp 5.0.0.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Q312461; T312461)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Q312461; MSIECrawler)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Q312461; Hotbar 4.3.2.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Q312461; FunWebProducts)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Q312461; Alexa Toolbar)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Q312461; .NET CLR 1.0.3705; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Q312461; .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Q312461)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; MSIECrawler)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; MEGAUPLOAD 1.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; MathPlayer 2.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; iOpus-I-M)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; i-NavFourF; HbTools 4.7.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; i-NavFourF)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Hotbar 4.6.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Hotbar 4.4.6.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Hotbar 4.3.5.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Hotbar 4.3.2.0; .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Hotbar 4.3.1.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Hotbar 4.2.8.0; MSIECrawler)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Hotbar 4.2.8.0; (R1 1.3))",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Hotbar 4.2.11.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Hotbar 4.2.1.1198)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Hotbar 4.1.8.0; YComp 5.0.2.6)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Hotbar 4.1.8.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Hotbar 4.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Hotbar 3.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Hotbar 2.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; HbTools 4.7.3)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; HbTools 4.7.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; HbTools 4.7.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; FunWebProducts; YPC 3.2.0; yplus 4.1.00b)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; FunWebProducts; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; FunWebProducts; (R1 1.5); SpamBlockerUtility 4.7.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; FunWebProducts; (R1 1.5); MSIECrawler)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; FunWebProducts; (R1 1.5))",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; FunWebProducts-MyWay)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; FunWebProducts-MyTotalSearch)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; FunWebProducts)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; FDM; Alexa Toolbar)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; FDM)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; en)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Alexa Toolbar)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Advanced Searchbar 3.25)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; .NET CLR 2.0.50727; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Alexa Toolbar)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; .NET CLR 1.0.3705; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; (R1 1.5); .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; (R1 1.5))",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; (R1 1.3))",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; (R1 1.1))",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 3.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 3.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; ; Windows NT 5.1;SV1;Alexa Toolbar)",
"Mozilla/4.0 (compatible; MSIE 6.0; ; SV1; .NET CLR 1.1.4322)",
"Mozilla/4.0 (compatible; MSIE 6.0; )",
"Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) )",
"Mozilla/4.0 (compatible; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322); Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; SLCC1; .NET CLR 1.1.4325; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4325; .NET CLR 2.0.50727; .NET CLR 3.0.30729; .NET CLR 3.5.30707; MS-RTC LM 8)",
"Mozilla/4.0 (compatible ; MSIE 6.0; Windows NT 5.1)",
"Mozilla/4.0 ( compatible; MSIE 6.0; Windows NT 5.1; SV1; Alexa Toolbar )",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT; SiteKiosk 4.9; SiteCoach 1.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; YComp 5.0.0.0; Hotbar 4.1.7.0; .NET CLR 1.0.3705; MSIECrawler)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Wanadoo 5.5)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; T312461)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Q312461; MSIECrawler)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Q312461; Hotbar 4.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Q312461; .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; MSIECrawler)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Hotbar 4.1.8.0; .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Hotbar 4.1.8.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Hotbar 4.1.5.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; DigExt; YComp 5.0.0.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; DigExt; (R1 1.1))",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.0.3705; .NET CLR 1.0.2914)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; YComp 5.0.0.0; Hotbar 4.1.8.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; Wanadoo 5.3)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; Wanadoo 5.1)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; Q312461; Hotbar 4.1.8.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; MSIECrawler)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; Hotbar 4.1.8.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; Hotbar 4.1.2.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; DigExt; Q312461)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; DigExt)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; (R1 1.1))",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 4.0; T312461; Q312461)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 4.0; DigExt)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 4.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; YComp 5.0.2.4)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; YComp 5.0.0.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Win 9x 4.90; T312461; Hotbar 4.1.8.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Win 9x 4.90; T312461)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Win 9x 4.90; (R1 1.3))",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; T312461)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Hotbar 3.0)",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98)"]
UA_tabs = [UA_MSIE10, UA_MSIE9, UA_MSIE8, UA_MSIE7, UA_MSIE6]
#print len(UA_MSIE10)
#print len(UA_MSIE9)
#print len(UA_MSIE8)
#print len(UA_MSIE7)
#print len(UA_MSIE6)
def get_random_user_agent():
random.seed()
i = random.randrange(0, len(UA_tabs) - 1)
# print i
ua_tab = UA_tabs[i]
# print len(ua_tab)
j = random.randint(0, len(ua_tab) - 1)
# print j
return ua_tab[j]
if __name__ == "__main__":
print get_random_user_agent()
| [
[
8,
0,
0.0082,
0.0012,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.009,
0.0002,
0,
0.66,
0.1111,
715,
0,
1,
0,
0,
715,
0,
0
],
[
14,
0,
0.01,
0.0012,
0,
0.66,
... | [
"'''\nCreated on May 29, 2011\n\n@author: flyxian\n'''",
"import random",
"UA_MSIE10 = [\"Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; WOW64; Trident/6.0)\",\n\"Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; Trident/6.0)\",\n\"Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; Trident/5.0)\",\n\"Mo... |
#! /usr/bin/python
#######################################################################################
# #
# File: ad_auto.py #
# Part of 2dgal-cheater #
# Home: http://2dgal-cheater.googlecode.com #
# #
# The MIT License #
# #
# Copyright (c) 2010-2011 <araya.akashic@gmail.com> #
# #
# Permission is hereby granted, free of charge, to any person obtaining a copy #
# of this software and associated documentation files (the "Software"), to deal #
# in the Software without restriction, including without limitation the rights #
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell #
# copies of the Software, and to permit persons to whom the Software is #
# furnished to do so, subject to the following conditions: #
# #
# The above copyright notice and this permission notice shall be included in #
# all copies or substantial portions of the Software. #
# #
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR #
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, #
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE #
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER #
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, #
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN #
# THE SOFTWARE. #
# #
#######################################################################################
# This code is to automatically click ads on kf bbs
# Author: Araya
import time
import urllib
import urllib2
from browser_bogus import Browser
#customized these
#adding account as "username":"password"
account_list = {"":"",
"":""}
#total attempts
cycle = 1
#wait 1 hr 10 s before each attempt
delay = 3600 * 5
#do not change below this
siteurl = "http://bbs.9gal.com"
login_page = "login.php"
star1_page = "kf_star_1.php"
logout_hint = "login.php?action=quit"
#ad link character
ad_char = "diy_ad_move.php"
class ExamNotAvailable(Exception):
def __init__(self, time):
self.value = time
def __str__(self):
return repr(self.value)
class LoginFailed(Exception):
def __init__(self, str):
self.value = str
def __str__(self):
return repr(self.value)
#method login
def login(user):
logindata = {"pwuser":user.username,
"pwpwd":user.password,
"hideid":"0",
"cktime":"0",
"forward":"index.php",
"jumpurl":"index.php",
"step":"2"}
en_logindata = urllib.urlencode(logindata)
url = siteurl + "/" + login_page
request = urllib2.Request(url)
request.add_header("User-Agent", user.user_agent)
result = user.urlOpener.open(request)
#print "Getting login page"
url = url + "?"
request = urllib2.Request(url, en_logindata)
result = user.urlOpener.open(request)
print "Login " + user.username
#print cookie
def parse_logout_URI(page):
begin = page.find(logout_hint)
if begin >= 0:
end = page[begin:].find("\"")
return page[begin:end]
return ""
def ad_auto(user):
url = siteurl + "/" + star1_page
request = urllib2.Request(url)
request.add_header("User-Agent", user.user_agent)
result = user.urlOpener.open(request)
# pagelines = result.readlines()
#print len(pagelines)
#extracting logout URI
# line = pagelines[74]
# user.logout_URI = line.split("=\"")[-1].split("\"")[0]
user.logout_URI = parse_logout_URI(result)
begin = page.find(ad_char)
if begin >= 0:
end = page[begin:].find("\"")
user.ad_link = page[begin:end]
# for line in pagelines:
# begin = line.find(ad_char)
# if match >= 0:
# end = line[begin:].find("\"")
# user.ad_link = line[begin:end]
# for word in words:
# if word.find(ad_char) >= 0:
# user.ad_link = word.split("\"")[0]
# print user.ad_link
url = siteurl + "/" + user.ad_link
request = urllib2.Request(url)
request.add_header("User-Agent", user.user_agent)
result = user.urlOpener.open(request)
print "Ad click sent"
result_data = result.read()
return result_data.find("<meta http-equiv=\"refresh\"")
# return 1
def logout(user):
url = siteurl + "/" + user.logout_URI
request = urllib2.Request(url)
request.add_header("User-Agent", user.user_agent)
result = user.urlOpener.open(request)
print "Logout " + user.username
def perform_ad_auto():
for n, p in account_list.iteritems():
user = Browser(n, p)
submit_success = -1
try:
login(user)
while submit_success < 0:
submit_success = ad_auto(user)
print submit_success
logout(user)
except:
pass
if __name__ == "__main__":
while cycle:
print "------------------------------------------"
print time.strftime("%a, %b %d %Y %H:%M:%S", time.localtime()) + "-----------------"
perform_ad_auto()
if cycle > 1:
time.sleep(delay)
cycle = cycle - 1 | [
[
1,
0,
0.2011,
0.0057,
0,
0.66,
0,
654,
0,
1,
0,
0,
654,
0,
0
],
[
1,
0,
0.2126,
0.0057,
0,
0.66,
0.0526,
614,
0,
1,
0,
0,
614,
0,
0
],
[
1,
0,
0.2184,
0.0057,
0,
... | [
"import time",
"import urllib",
"import urllib2",
"from browser_bogus import Browser",
"account_list = {\"\":\"\",\n \"\":\"\"}",
"cycle = 1",
"delay = 3600 * 5",
"siteurl = \"http://bbs.9gal.com\"",
"login_page = \"login.php\"",
"star1_page = \"kf_star_1.php\"",
"logout_hint = \"... |
#! /usr/bin/python
#######################################################################################
# #
# File: gojuon_gen.py #
# Part of 2dgal-cheater #
# Home: http://2dgal-cheater.googlecode.com #
# #
# The MIT License #
# #
# Copyright (c) 2010-2011 <araya.akashic@gmail.com> #
# #
# Permission is hereby granted, free of charge, to any person obtaining a copy #
# of this software and associated documentation files (the "Software"), to deal #
# in the Software without restriction, including without limitation the rights #
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell #
# copies of the Software, and to permit persons to whom the Software is #
# furnished to do so, subject to the following conditions: #
# #
# The above copyright notice and this permission notice shall be included in #
# all copies or substantial portions of the Software. #
# #
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR #
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, #
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE #
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER #
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, #
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN #
# THE SOFTWARE. #
# #
#######################################################################################
#This is to generate the library of encoded gojuon to phonetic symbol
#Author: Araya
import urllib
file = open("gojuon.csv", "r")
lines = file.readlines()
file.close()
file = open("gojuon.py", "w")
for line in lines:
items = line.strip().split(",")
hiragana = urllib.urlencode({"":items[0]})
katakana = urllib.urlencode({"":items[1]})
phonetic = urllib.urlencode({"":items[2]})
output_line = "\t\"" + hiragana + "\":\"" + items[2] + "\",\n"
file.write(output_line)
#print output_line
output_line = "\t\"" + katakana + "\":\"" + items[2] + "\",\n"
file.write(output_line)
#print output_line
file.close()
| [
[
1,
0,
0.6364,
0.0182,
0,
0.66,
0,
614,
0,
1,
0,
0,
614,
0,
0
],
[
14,
0,
0.6727,
0.0182,
0,
0.66,
0.1667,
107,
3,
2,
0,
0,
693,
10,
1
],
[
14,
0,
0.6909,
0.0182,
0,
... | [
"import urllib",
"file = open(\"gojuon.csv\", \"r\")",
"lines = file.readlines()",
"file.close()",
"file = open(\"gojuon.py\", \"w\")",
"for line in lines:\n items = line.strip().split(\",\")\n hiragana = urllib.urlencode({\"\":items[0]})\n katakana = urllib.urlencode({\"\":items[1]})\n phonet... |
#! /usr/bin/python
from distutils.core import setup
import py2exe
import main
from glob import glob
data_files = [("Microsoft.VC100.CRT",
glob(r'D:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\redist\x86\Microsoft.VC100.CRT\*.*'))]
setup(
options = {"py2exe": {"optimize": 2,
"compressed": 1,
"bundle_files": 1,
"includes": ["sip"]} },
name = "stage1st_cheater",
version = main.VERSION,
description = "Stage1st BBS Cheating Tools",
zipfile = None,
# data_files=data_files,
windows=[{'script': 'main.py',
"icon_resources": [(1, "./images/trash.ico")]}],
data_files = [('images', ['./images/trash.png'])])
| [
[
1,
0,
0.1154,
0.0385,
0,
0.66,
0,
152,
0,
1,
0,
0,
152,
0,
0
],
[
1,
0,
0.1538,
0.0385,
0,
0.66,
0.2,
768,
0,
1,
0,
0,
768,
0,
0
],
[
1,
0,
0.1923,
0.0385,
0,
0.6... | [
"from distutils.core import setup",
"import py2exe",
"import main",
"from glob import glob",
"data_files = [(\"Microsoft.VC100.CRT\", \n glob(r'D:\\Program Files (x86)\\Microsoft Visual Studio 10.0\\VC\\redist\\x86\\Microsoft.VC100.CRT\\*.*'))]",
"setup(\n options = {\"py2exe\": {\"opti... |
#! /usr/bin/python
from distutils.core import setup
import py2exe
import main
from glob import glob
data_files = [("Microsoft.VC100.CRT",
glob(r'D:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\redist\x86\Microsoft.VC100.CRT\*.*'))]
setup(
options = {"py2exe": {"optimize": 2,
"compressed": 1,
"bundle_files": 1,
"includes": ["sip"]} },
name = "stage1st_cheater",
version = main.VERSION,
description = "Stage1st BBS Cheating Tools",
zipfile = None,
# data_files=data_files,
windows=[{'script': 'main.py',
"icon_resources": [(1, "./images/trash.ico")]}],
data_files = [('images', ['./images/trash.png'])])
| [
[
1,
0,
0.1154,
0.0385,
0,
0.66,
0,
152,
0,
1,
0,
0,
152,
0,
0
],
[
1,
0,
0.1538,
0.0385,
0,
0.66,
0.2,
768,
0,
1,
0,
0,
768,
0,
0
],
[
1,
0,
0.1923,
0.0385,
0,
0.6... | [
"from distutils.core import setup",
"import py2exe",
"import main",
"from glob import glob",
"data_files = [(\"Microsoft.VC100.CRT\", \n glob(r'D:\\Program Files (x86)\\Microsoft Visual Studio 10.0\\VC\\redist\\x86\\Microsoft.VC100.CRT\\*.*'))]",
"setup(\n options = {\"py2exe\": {\"opti... |
#! /usr/bin/python
#######################################################################################
# #
# File: gojuon_gen.py #
# Part of 2dgal-cheater #
# Home: http://2dgal-cheater.googlecode.com #
# #
# The MIT License #
# #
# Copyright (c) 2010-2011 <araya.akashic@gmail.com> #
# #
# Permission is hereby granted, free of charge, to any person obtaining a copy #
# of this software and associated documentation files (the "Software"), to deal #
# in the Software without restriction, including without limitation the rights #
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell #
# copies of the Software, and to permit persons to whom the Software is #
# furnished to do so, subject to the following conditions: #
# #
# The above copyright notice and this permission notice shall be included in #
# all copies or substantial portions of the Software. #
# #
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR #
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, #
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE #
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER #
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, #
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN #
# THE SOFTWARE. #
# #
#######################################################################################
#This is to generate the library of encoded gojuon to phonetic symbol
#Author: Araya
import urllib
file = open("gojuon.csv", "r")
lines = file.readlines()
file.close()
file = open("gojuon.py", "w")
for line in lines:
items = line.strip().split(",")
hiragana = urllib.urlencode({"":items[0]})
katakana = urllib.urlencode({"":items[1]})
phonetic = urllib.urlencode({"":items[2]})
output_line = "\t\"" + hiragana + "\":\"" + items[2] + "\",\n"
file.write(output_line)
#print output_line
output_line = "\t\"" + katakana + "\":\"" + items[2] + "\",\n"
file.write(output_line)
#print output_line
file.close()
| [
[
1,
0,
0.6364,
0.0182,
0,
0.66,
0,
614,
0,
1,
0,
0,
614,
0,
0
],
[
14,
0,
0.6727,
0.0182,
0,
0.66,
0.1667,
107,
3,
2,
0,
0,
693,
10,
1
],
[
14,
0,
0.6909,
0.0182,
0,
... | [
"import urllib",
"file = open(\"gojuon.csv\", \"r\")",
"lines = file.readlines()",
"file.close()",
"file = open(\"gojuon.py\", \"w\")",
"for line in lines:\n items = line.strip().split(\",\")\n hiragana = urllib.urlencode({\"\":items[0]})\n katakana = urllib.urlencode({\"\":items[1]})\n phonet... |
#This contains global definition of Browser class and other useful thing
#######################################################################################
# #
# File: browser_bogus.py #
# Part of 2dgal-cheater #
# Home: http://2dgal-cheater.googlecode.com #
# #
# The MIT License #
# #
# Copyright (c) 2010-2011 <araya.akashic@gmail.com> #
# #
# Permission is hereby granted, free of charge, to any person obtaining a copy #
# of this software and associated documentation files (the "Software"), to deal #
# in the Software without restriction, including without limitation the rights #
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell #
# copies of the Software, and to permit persons to whom the Software is #
# furnished to do so, subject to the following conditions: #
# #
# The above copyright notice and this permission notice shall be included in #
# all copies or substantial portions of the Software. #
# #
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR #
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, #
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE #
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER #
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, #
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN #
# THE SOFTWARE. #
# #
#######################################################################################
#Author: Araya
import urllib2
import cookielib
class Browser():
def __init__(self, user, passwd):
self.username = user
self.password = passwd
self.cookie = cookielib.CookieJar()
self.urlOpener = urllib2.build_opener(urllib2.HTTPCookieProcessor(self.cookie))
self.logout_URI = ""
#ad link
self.ad_link = "" | [
[
1,
0,
0.75,
0.0227,
0,
0.66,
0,
345,
0,
1,
0,
0,
345,
0,
0
],
[
1,
0,
0.7727,
0.0227,
0,
0.66,
0.5,
591,
0,
1,
0,
0,
591,
0,
0
],
[
3,
0,
0.9091,
0.2045,
0,
0.66,... | [
"import urllib2",
"import cookielib",
"class Browser():\n def __init__(self, user, passwd):\n self.username = user\n self.password = passwd\n self.cookie = cookielib.CookieJar()\n self.urlOpener = urllib2.build_opener(urllib2.HTTPCookieProcessor(self.cookie))\n self.logout_... |
#! /usr/bin/python
#######################################################################################
# #
# File: ad_auto.py #
# Part of 2dgal-cheater #
# Home: http://2dgal-cheater.googlecode.com #
# #
# The MIT License #
# #
# Copyright (c) 2010-2011 <araya.akashic@gmail.com> #
# #
# Permission is hereby granted, free of charge, to any person obtaining a copy #
# of this software and associated documentation files (the "Software"), to deal #
# in the Software without restriction, including without limitation the rights #
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell #
# copies of the Software, and to permit persons to whom the Software is #
# furnished to do so, subject to the following conditions: #
# #
# The above copyright notice and this permission notice shall be included in #
# all copies or substantial portions of the Software. #
# #
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR #
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, #
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE #
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER #
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, #
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN #
# THE SOFTWARE. #
# #
#######################################################################################
# This code is to automatically click ads on kf bbs
# Author: Araya
import time
import urllib
import urllib2
from browser_bogus import Browser
#customized these
#adding account as "username":"password"
account_list = {"":"",
"":""}
#total attempts
cycle = 1
#wait 1 hr 10 s before each attempt
delay = 3600 * 5
#do not change below this
siteurl = "http://bbs.2dgal.com"
login_page = "login.php"
star1_page = "kf_star_1.php"
#ad link character
ad_char = "diy_ad_move.php"
#method login
def login(user):
logindata = {"pwuser":user.username,
"pwpwd":user.password,
"hideid":"0",
"cktime":"0",
"forward":"index.php",
"jumpurl":"index.php",
"step":"2"}
en_logindata = urllib.urlencode(logindata)
url = siteurl + "/" + login_page
request = urllib2.Request(url)
result = user.urlOpener.open(request)
#print "Getting login page"
url = url + "?"
request = urllib2.Request(url, en_logindata)
result = user.urlOpener.open(request)
print "Login " + user.username
#print cookie
def ad_auto(user):
question = []
answer = ""
#print "Getting star 1 question"
url = siteurl + "/" + star1_page
request = urllib2.Request(url)
result = user.urlOpener.open(request)
pagelines = result.readlines()
#print len(pagelines)
#extracting logout URI
line = pagelines[74]
user.logout_URI = line.split("=\"")[-1].split("\"")[0]
for line in pagelines:
match = line.find(ad_char)
if match >= 0:
words = line.split("=\"")
for word in words:
if word.find(ad_char) >= 0:
user.ad_link = word.split("\"")[0]
print user.ad_link
url = siteurl + "/" + user.ad_link
request = urllib2.Request(url)
result = user.urlOpener.open(request)
print "Ad click sent"
result_data = result.read()
return result_data.find("<meta http-equiv=\"refresh\"")
# return 1
def logout(user):
url = siteurl + "/" + user.logout_URI
request = urllib2.Request(url)
result = user.urlOpener.open(request)
print "Logout " + user.username
def perform_ad_auto():
for n, p in account_list.iteritems():
user = Browser(n, p)
submit_success = -1
try:
login(user)
while submit_success < 0:
submit_success = ad_auto(user)
print submit_success
logout(user)
except:
pass
if __name__ == "__main__":
while cycle:
print "------------------------------------------"
print time.strftime("%a, %b %d %Y %H:%M:%S", time.localtime()) + "-----------------"
perform_ad_auto()
if cycle > 1:
time.sleep(delay)
cycle = cycle - 1 | [
[
1,
0,
0.2448,
0.007,
0,
0.66,
0,
654,
0,
1,
0,
0,
654,
0,
0
],
[
1,
0,
0.2587,
0.007,
0,
0.66,
0.0667,
614,
0,
1,
0,
0,
614,
0,
0
],
[
1,
0,
0.2657,
0.007,
0,
0.6... | [
"import time",
"import urllib",
"import urllib2",
"from browser_bogus import Browser",
"account_list = {\"\":\"\",\n \"\":\"\"}",
"cycle = 1",
"delay = 3600 * 5",
"siteurl = \"http://bbs.2dgal.com\"",
"login_page = \"login.php\"",
"star1_page = \"kf_star_1.php\"",
"ad_char = \"diy... |
#######################################################################################
# #
# File: gojuon.py #
# Part of 2dgal-cheater #
# Home: http://2dgal-cheater.googlecode.com #
# #
# The MIT License #
# #
# Copyright (c) 2010-2011 <araya.akashic@gmail.com> #
# #
# Permission is hereby granted, free of charge, to any person obtaining a copy #
# of this software and associated documentation files (the "Software"), to deal #
# in the Software without restriction, including without limitation the rights #
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell #
# copies of the Software, and to permit persons to whom the Software is #
# furnished to do so, subject to the following conditions: #
# #
# The above copyright notice and this permission notice shall be included in #
# all copies or substantial portions of the Software. #
# #
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR #
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, #
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE #
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER #
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, #
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN #
# THE SOFTWARE. #
# #
#######################################################################################
#This is the library of encoded gojuon to phonetic symbol
#Author: Araya
gojuon = {
"=%A4%A2":"a",
"=%A5%A2":"a",
"=%A4%A4":"i",
"=%A5%A4":"i",
"=%A4%A6":"u",
"=%A5%A6":"u",
"=%A4%A8":"e",
"=%A5%A8":"e",
"=%A4%AA":"o",
"=%A5%AA":"o",
"=%A4%AB":"ka",
"=%A5%AB":"ka",
"=%A4%AD":"ki",
"=%A5%AD":"ki",
"=%A4%AF":"ku",
"=%A5%AF":"ku",
"=%A4%B1":"ke",
"=%A5%B1":"ke",
"=%A4%B3":"ko",
"=%A5%B3":"ko",
"=%A4%B5":"sa",
"=%A5%B5":"sa",
"=%A4%B7":"shi",
"=%A5%B7":"shi",
"=%A4%B9":"su",
"=%A5%B9":"su",
"=%A4%BB":"se",
"=%A5%BB":"se",
"=%A4%BD":"so",
"=%A5%BD":"so",
"=%A4%BF":"ta",
"=%A5%BF":"ta",
"=%A4%C1":"chi",
"=%A5%C1":"chi",
"=%A4%C4":"tsu",
"=%A5%C4":"tsu",
"=%A4%C6":"te",
"=%A5%C6":"te",
"=%A4%C8":"to",
"=%A5%C8":"to",
"=%A4%CA":"na",
"=%A5%CA":"na",
"=%A4%CB":"ni",
"=%A5%CB":"ni",
"=%A4%CC":"nu",
"=%A5%CC":"nu",
"=%A4%CD":"ne",
"=%A5%CD":"ne",
"=%A4%CE":"no",
"=%A5%CE":"no",
"=%A4%CF":"ha",
"=%A5%CF":"ha",
"=%A4%D2":"hi",
"=%A5%D2":"hi",
"=%A4%D5":"fu",
"=%A5%D5":"fu",
"=%A4%D8":"he",
"=%A5%D8":"he",
"=%A4%DB":"ho",
"=%A5%DB":"ho",
"=%A4%DE":"ma",
"=%A5%DE":"ma",
"=%A4%DF":"mi",
"=%A5%DF":"mi",
"=%A4%E0":"mu",
"=%A5%E0":"mu",
"=%A4%E1":"me",
"=%A5%E1":"me",
"=%A4%E2":"mo",
"=%A5%E2":"mo",
"=%A4%E4":"ya",
"=%A5%E4":"ya",
"=%A4%E6":"yu",
"=%A5%E6":"yu",
"=%A4%E8":"yo",
"=%A5%E8":"yo",
"=%A4%E9":"ra",
"=%A5%E9":"ra",
"=%A4%EA":"ri",
"=%A5%EA":"ri",
"=%A4%EB":"ru",
"=%A5%EB":"ru",
"=%A4%EC":"re",
"=%A5%EC":"re",
"=%A4%ED":"ro",
"=%A5%ED":"ro",
"=%A4%EF":"wa",
"=%A5%EF":"wa",
"=%A4%F2":"o",
"=%A5%F2":"o",
"=%A4%F3":"n",
"=%A5%F3":"n",
"=":"",
"=":"",
"=%A4%AC":"ga",
"=%A5%AC":"ga",
"=%A4%AE":"gi",
"=%A5%AE":"gi",
"=%A4%B0":"gu",
"=%A5%B0":"gu",
"=%A4%B2":"ge",
"=%A5%B2":"ge",
"=%A4%B4":"go",
"=%A5%B4":"go",
"=%A4%B6":"za",
"=%A5%B6":"za",
"=%A4%B8":"ji",
"=%A5%B8":"ji",
"=%A4%BA":"zu",
"=%A5%BA":"zu",
"=%A4%BC":"ze",
"=%A5%BC":"ze",
"=%A4%BE":"zo",
"=%A5%BE":"zo",
"=%A4%C0":"da",
"=%A5%C0":"da",
"=%A4%C2":"ji",
"=%A5%C2":"ji",
"=%A4%C5":"zu",
"=%A5%C5":"zu",
"=%A4%C7":"de",
"=%A5%C7":"de",
"=%A4%C9":"do",
"=%A5%C9":"do",
"=%A4%D0":"ba",
"=%A5%D0":"ba",
"=%A4%D3":"bi",
"=%A5%D3":"bi",
"=%A4%D6":"bu",
"=%A5%D6":"bu",
"=%A4%D9":"be",
"=%A5%D9":"be",
"=%A4%DC":"bo",
"=%A5%DC":"bo",
"=%A4%D1":"pa",
"=%A5%D1":"pa",
"=%A4%D4":"pi",
"=%A5%D4":"pi",
"=%A4%D7":"pu",
"=%A5%D7":"pu",
"=%A4%DA":"pe",
"=%A5%DA":"pe",
"=%A4%DD":"po",
"=%A5%DD":"po",
"=%A4%AD%A4%E3":"kya",
"=%A5%AD%A5%E3":"kya",
"=%A4%AD%A4%E5":"jyu",
"=%A5%AD%A5%E5":"jyu",
"=%A4%AD%A4%E7":"kyo",
"=%A5%AD%A5%E7":"kyo",
"=%A4%B7%A4%E3":"sha",
"=%A5%B7%A5%E3":"sha",
"=%A4%B7%A4%E5":"shu",
"=%A5%B7%A5%E5":"shu",
"=%A4%B7%A4%E7":"sho",
"=%A5%B7%A5%E7":"sho",
"=%A4%C1%A4%E3":"cha",
"=%A5%C1%A5%E3":"cha",
"=%A4%C1%A4%E5":"chu",
"=%A5%C1%A5%E5":"chu",
"=%A4%C1%A4%E7":"cho",
"=%A5%C1%A5%E7":"cho",
"=%A4%CB%A4%E3":"nya",
"=%A5%CB%A5%E3":"nya",
"=%A4%CB%A4%E5":"nyu",
"=%A5%CB%A5%E5":"nyu",
"=%A4%CB%A4%E7":"nyo",
"=%A5%CB%A5%E7":"nyo",
"=%A4%D2%A4%E3":"hya",
"=%A5%D2%A5%E3":"hya",
"=%A4%D2%A4%E5":"hyu",
"=%A5%D2%A5%E5":"hyu",
"=%A4%D2%A4%E7":"hyo",
"=%A5%D2%A5%E7":"hyo",
"=%A4%DF%A4%E3":"mya",
"=%A5%DF%A5%E3":"mya",
"=%A4%DF%A4%E5":"mya",
"=%A5%DF%A5%E5":"mya",
"=%A4%DF%A4%E7":"myo",
"=%A5%DF%A5%E7":"myo",
"=%A4%EA%A4%E3":"rya",
"=%A5%EA%A5%E3":"rya",
"=%A4%EA%A4%E5":"ryu",
"=%A5%EA%A5%E5":"ryu",
"=%A4%EA%A4%E7":"ryo",
"=%A5%EA%A5%E7":"ryo",
"=%A4%AE%A4%E3":"gya",
"=%A5%AE%A5%E3":"gya",
"=%A4%AE%A4%E5":"gyu",
"=%A5%AE%A5%E5":"gyu",
"=%A4%AE%A4%E7":"gyo",
"=%A5%AE%A5%E7":"gyo",
"=%A4%B8%A4%E3":"ja",
"=%A5%B8%A5%E3":"ja",
"=%A4%B8%A4%E5":"ju",
"=%A5%B8%A5%E5":"ju",
"=%A4%B8%A4%E7":"jo",
"=%A5%B8%A5%E7":"jo",
"=%A4%C2%A4%E3":"ja",
"=%A5%C2%A5%E3":"ja",
"=%A4%C2%A4%E5":"ju",
"=%A5%C2%A5%E5":"ju",
"=%A4%C2%A4%E7":"jo",
"=%A5%C2%A5%E7":"jo",
"=%A4%D3%A4%E3":"bya",
"=%A5%D3%A5%E3":"bya",
"=%A4%D3%A4%E5":"byu",
"=%A5%D3%A5%E5":"byu",
"=%A4%D3%A4%E7":"byo",
"=%A5%D3%A5%E7":"byo",
"=%A4%D4%A4%E3":"pya",
"=%A5%D4%A5%E3":"pya",
"=%A4%D4%A4%E5":"pyu",
"=%A5%D4%A5%E5":"pyu",
"=%A4%D4%A4%E7":"pyo",
"=%A5%D4%A5%E7":"pyo"} | [
[
14,
0,
0.568,
0.868,
0,
0.66,
0,
833,
0,
0,
0,
0,
0,
6,
0
]
] | [
"gojuon = {\n\t\"=%A4%A2\":\"a\",\n\t\"=%A5%A2\":\"a\",\n\t\"=%A4%A4\":\"i\",\n\t\"=%A5%A4\":\"i\",\n\t\"=%A4%A6\":\"u\",\n\t\"=%A5%A6\":\"u\",\n\t\"=%A4%A8\":\"e\","
] |
#! /usr/bin/python
#######################################################################################
# #
# File: ad_auto.py #
# Part of 2dgal-cheater #
# Home: http://2dgal-cheater.googlecode.com #
# #
# The MIT License #
# #
# Copyright (c) 2010-2011 <araya.akashic@gmail.com> #
# #
# Permission is hereby granted, free of charge, to any person obtaining a copy #
# of this software and associated documentation files (the "Software"), to deal #
# in the Software without restriction, including without limitation the rights #
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell #
# copies of the Software, and to permit persons to whom the Software is #
# furnished to do so, subject to the following conditions: #
# #
# The above copyright notice and this permission notice shall be included in #
# all copies or substantial portions of the Software. #
# #
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR #
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, #
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE #
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER #
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, #
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN #
# THE SOFTWARE. #
# #
#######################################################################################
# This code is to automatically click ads on kf bbs
# Author: Araya
import time
import urllib
import urllib2
from browser_bogus import Browser
#customized these
#adding account as "username":"password"
account_list = {"":"",
"":""}
#total attempts
cycle = 1
#wait 1 hr 10 s before each attempt
delay = 3600 * 5
#do not change below this
siteurl = "http://bbs.2dgal.com"
login_page = "login.php"
star1_page = "kf_star_1.php"
#ad link character
ad_char = "diy_ad_move.php"
#method login
def login(user):
logindata = {"pwuser":user.username,
"pwpwd":user.password,
"hideid":"0",
"cktime":"0",
"forward":"index.php",
"jumpurl":"index.php",
"step":"2"}
en_logindata = urllib.urlencode(logindata)
url = siteurl + "/" + login_page
request = urllib2.Request(url)
result = user.urlOpener.open(request)
#print "Getting login page"
url = url + "?"
request = urllib2.Request(url, en_logindata)
result = user.urlOpener.open(request)
print "Login " + user.username
#print cookie
def ad_auto(user):
question = []
answer = ""
#print "Getting star 1 question"
url = siteurl + "/" + star1_page
request = urllib2.Request(url)
result = user.urlOpener.open(request)
pagelines = result.readlines()
#print len(pagelines)
#extracting logout URI
line = pagelines[74]
user.logout_URI = line.split("=\"")[-1].split("\"")[0]
for line in pagelines:
match = line.find(ad_char)
if match >= 0:
words = line.split("=\"")
for word in words:
if word.find(ad_char) >= 0:
user.ad_link = word.split("\"")[0]
print user.ad_link
url = siteurl + "/" + user.ad_link
request = urllib2.Request(url)
result = user.urlOpener.open(request)
print "Ad click sent"
result_data = result.read()
return result_data.find("<meta http-equiv=\"refresh\"")
# return 1
def logout(user):
url = siteurl + "/" + user.logout_URI
request = urllib2.Request(url)
result = user.urlOpener.open(request)
print "Logout " + user.username
def perform_ad_auto():
for n, p in account_list.iteritems():
user = Browser(n, p)
submit_success = -1
try:
login(user)
while submit_success < 0:
submit_success = ad_auto(user)
print submit_success
logout(user)
except:
pass
if __name__ == "__main__":
while cycle:
print "------------------------------------------"
print time.strftime("%a, %b %d %Y %H:%M:%S", time.localtime()) + "-----------------"
perform_ad_auto()
if cycle > 1:
time.sleep(delay)
cycle = cycle - 1 | [
[
1,
0,
0.2448,
0.007,
0,
0.66,
0,
654,
0,
1,
0,
0,
654,
0,
0
],
[
1,
0,
0.2587,
0.007,
0,
0.66,
0.0667,
614,
0,
1,
0,
0,
614,
0,
0
],
[
1,
0,
0.2657,
0.007,
0,
0.6... | [
"import time",
"import urllib",
"import urllib2",
"from browser_bogus import Browser",
"account_list = {\"\":\"\",\n \"\":\"\"}",
"cycle = 1",
"delay = 3600 * 5",
"siteurl = \"http://bbs.2dgal.com\"",
"login_page = \"login.php\"",
"star1_page = \"kf_star_1.php\"",
"ad_char = \"diy... |
#! /usr/bin/python
#######################################################################################
# #
# File: gojuon_gen.py #
# Part of 2dgal-cheater #
# Home: http://2dgal-cheater.googlecode.com #
# #
# The MIT License #
# #
# Copyright (c) 2010-2011 <araya.akashic@gmail.com> #
# #
# Permission is hereby granted, free of charge, to any person obtaining a copy #
# of this software and associated documentation files (the "Software"), to deal #
# in the Software without restriction, including without limitation the rights #
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell #
# copies of the Software, and to permit persons to whom the Software is #
# furnished to do so, subject to the following conditions: #
# #
# The above copyright notice and this permission notice shall be included in #
# all copies or substantial portions of the Software. #
# #
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR #
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, #
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE #
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER #
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, #
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN #
# THE SOFTWARE. #
# #
#######################################################################################
#This is to generate the library of encoded gojuon to phonetic symbol
#Author: Araya
import urllib
file = open("gojuon.csv", "r")
lines = file.readlines()
file.close()
file = open("gojuon.py", "w")
for line in lines:
items = line.strip().split(",")
hiragana = urllib.urlencode({"":items[0]})
katakana = urllib.urlencode({"":items[1]})
phonetic = urllib.urlencode({"":items[2]})
output_line = "\t\"" + hiragana + "\":\"" + items[2] + "\",\n"
file.write(output_line)
#print output_line
output_line = "\t\"" + katakana + "\":\"" + items[2] + "\",\n"
file.write(output_line)
#print output_line
file.close()
| [
[
1,
0,
0.6364,
0.0182,
0,
0.66,
0,
614,
0,
1,
0,
0,
614,
0,
0
],
[
14,
0,
0.6727,
0.0182,
0,
0.66,
0.1667,
107,
3,
2,
0,
0,
693,
10,
1
],
[
14,
0,
0.6909,
0.0182,
0,
... | [
"import urllib",
"file = open(\"gojuon.csv\", \"r\")",
"lines = file.readlines()",
"file.close()",
"file = open(\"gojuon.py\", \"w\")",
"for line in lines:\n items = line.strip().split(\",\")\n hiragana = urllib.urlencode({\"\":items[0]})\n katakana = urllib.urlencode({\"\":items[1]})\n phonet... |
#! /usr/bin/python
#######################################################################################
# #
# File: gojuon_gen.py #
# Part of 2dgal-cheater #
# Home: http://2dgal-cheater.googlecode.com #
# #
# The MIT License #
# #
# Copyright (c) 2010-2011 <araya.akashic@gmail.com> #
# #
# Permission is hereby granted, free of charge, to any person obtaining a copy #
# of this software and associated documentation files (the "Software"), to deal #
# in the Software without restriction, including without limitation the rights #
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell #
# copies of the Software, and to permit persons to whom the Software is #
# furnished to do so, subject to the following conditions: #
# #
# The above copyright notice and this permission notice shall be included in #
# all copies or substantial portions of the Software. #
# #
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR #
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, #
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE #
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER #
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, #
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN #
# THE SOFTWARE. #
# #
#######################################################################################
#This is to generate the library of encoded gojuon to phonetic symbol
#Author: Araya
import urllib
file = open("gojuon.csv", "r")
lines = file.readlines()
file.close()
file = open("gojuon.py", "w")
for line in lines:
items = line.strip().split(",")
hiragana = urllib.urlencode({"":items[0]})
katakana = urllib.urlencode({"":items[1]})
phonetic = urllib.urlencode({"":items[2]})
output_line = "\t\"" + hiragana + "\":\"" + items[2] + "\",\n"
file.write(output_line)
#print output_line
output_line = "\t\"" + katakana + "\":\"" + items[2] + "\",\n"
file.write(output_line)
#print output_line
file.close()
| [
[
1,
0,
0.6364,
0.0182,
0,
0.66,
0,
614,
0,
1,
0,
0,
614,
0,
0
],
[
14,
0,
0.6727,
0.0182,
0,
0.66,
0.1667,
107,
3,
2,
0,
0,
693,
10,
1
],
[
14,
0,
0.6909,
0.0182,
0,
... | [
"import urllib",
"file = open(\"gojuon.csv\", \"r\")",
"lines = file.readlines()",
"file.close()",
"file = open(\"gojuon.py\", \"w\")",
"for line in lines:\n items = line.strip().split(\",\")\n hiragana = urllib.urlencode({\"\":items[0]})\n katakana = urllib.urlencode({\"\":items[1]})\n phonet... |
import unittest
import bots.inmessage as inmessage
import bots.botslib as botslib
import bots.botsinit as botsinit
import utilsunit
'''plugin unitinmessageedifact.zip'''
class TestInmessage(unittest.TestCase):
def testEdifact0401(self):
''' 0401 Errors in records'''
self.assertRaises(botslib.InMessageError,inmessage.edifromfile,editype='edifact',messagetype='edifact',filename='botssys/infile/unitinmessageedifact/0401/040101.edi')
self.assertRaises(botslib.InMessageError,inmessage.edifromfile,editype='edifact',messagetype='edifact',filename='botssys/infile/unitinmessageedifact/0401/040102.edi')
self.assertRaises(botslib.InMessageError,inmessage.edifromfile,editype='edifact',messagetype='edifact',filename='botssys/infile/unitinmessageedifact/0401/040103.edi')
self.assertRaises(botslib.InMessageError,inmessage.edifromfile,editype='edifact',messagetype='edifact',filename='botssys/infile/unitinmessageedifact/0401/040104.edi')
self.assertRaises(botslib.InMessageError,inmessage.edifromfile,editype='edifact',messagetype='edifact',filename='botssys/infile/unitinmessageedifact/0401/040105.edi')
self.assertRaises(botslib.InMessageError,inmessage.edifromfile,editype='edifact',messagetype='edifact',filename='botssys/infile/unitinmessageedifact/0401/040106.edi')
self.assertRaises(botslib.InMessageError,inmessage.edifromfile,editype='edifact',messagetype='edifact',filename='botssys/infile/unitinmessageedifact/0401/040107.edi')
def testedifact0403(self):
#~ #test charsets
self.assertRaises(botslib.InMessageError,inmessage.edifromfile,editype='edifact',messagetype='edifact',filename='botssys/infile/unitinmessageedifact/0403/040301.edi') #UNOA-regular OK for UNOA as UNOC
self.assertRaises(botslib.InMessageError,inmessage.edifromfile,editype='edifact',messagetype='edifact',filename='botssys/infile/unitinmessageedifact/0403/040302F-generated.edi') #UNOA-regular OK for UNOA as UNOC
in0= inmessage.edifromfile(editype='edifact',messagetype='edifact',filename='botssys/infile/unitinmessageedifact/0403/040303.edi') #UNOA-regular also UNOA-strict
in1= inmessage.edifromfile(editype='edifact',messagetype='edifact',filename='botssys/infile/unitinmessageedifact/0403/040306.edi') #UNOA regular
in2= inmessage.edifromfile(editype='edifact',messagetype='edifact',filename='botssys/infile/unitinmessageedifact/0403/T0000000005.edi') #UNOA regular
in3= inmessage.edifromfile(editype='edifact',messagetype='edifact',filename='botssys/infile/unitinmessageedifact/0403/T0000000006.edi') #UNOA regular
for in1node,in2node,in3node in zip(in1.nextmessage(),in2.nextmessage(),in3.nextmessage()):
self.failUnless(utilsunit.comparenode(in1node.root,in2node.root),'compare')
self.failUnless(utilsunit.comparenode(in1node.root,in3node.root),'compare')
self.assertRaises(botslib.InMessageError,inmessage.edifromfile,editype='edifact',messagetype='edifact',filename='botssys/infile/unitinmessageedifact/0403/040305.edi') #needs UNOA regular
#~ in1= inmessage.edifromfile(editype='edifact',messagetype='edifact',filename='botssys/infile/unitinmessageedifact/0403/040305.edi') #needs UNOA extended
in7= inmessage.edifromfile(editype='edifact',messagetype='edifact',filename='botssys/infile/unitinmessageedifact/0403/040304.edi') #UNOB-regular
in5= inmessage.edifromfile(editype='edifact',messagetype='edifact',filename='botssys/infile/unitinmessageedifact/0403/T0000000008.edi') #UNOB regular
in4= inmessage.edifromfile(editype='edifact',messagetype='edifact',filename='botssys/infile/unitinmessageedifact/0403/T0000000007-generated.edi') #UNOB regular
in6= inmessage.edifromfile(editype='edifact',messagetype='edifact',filename='botssys/infile/unitinmessageedifact/0403/T0000000009.edi') #UNOC
def testedifact0404(self):
#envelope tests
self.assertRaises(botslib.InMessageError,inmessage.edifromfile,editype='edifact',messagetype='edifact',filename='botssys/infile/unitinmessageedifact/0404/040401.edi')
self.assertRaises(botslib.InMessageError,inmessage.edifromfile,editype='edifact',messagetype='edifact',filename='botssys/infile/unitinmessageedifact/0404/040402.edi')
self.failUnless(inmessage.edifromfile(editype='edifact',messagetype='edifact',filename='botssys/infile/unitinmessageedifact/0404/040403.edi'), 'standaard test')
self.assertRaises(botslib.InMessageError,inmessage.edifromfile,editype='edifact',messagetype='edifact',filename='botssys/infile/unitinmessageedifact/0404/040404.edi')
self.assertRaises(botslib.InMessageError,inmessage.edifromfile,editype='edifact',messagetype='edifact',filename='botssys/infile/unitinmessageedifact/0404/040405.edi')
self.assertRaises(botslib.InMessageError,inmessage.edifromfile,editype='edifact',messagetype='edifact',filename='botssys/infile/unitinmessageedifact/0404/040406.edi')
#self.assertRaises(botslib.InMessageError,inmessage.edifromfile,editype='edifact',messagetype='edifact',filename='botssys/infile/unitinmessageedifact/0404/040407.edi') #syntax version '0'; is not checked anymore
self.assertRaises(botslib.InMessageError,inmessage.edifromfile,editype='edifact',messagetype='edifact',filename='botssys/infile/unitinmessageedifact/0404/040408.edi')
self.assertRaises(botslib.InMessageError,inmessage.edifromfile,editype='edifact',messagetype='edifact',filename='botssys/infile/unitinmessageedifact/0404/040409.edi')
self.failUnless(inmessage.edifromfile(editype='edifact',messagetype='edifact',filename='botssys/infile/unitinmessageedifact/0404/040410.edi'), 'standaard test')
self.assertRaises(botslib.InMessageError,inmessage.edifromfile,editype='edifact',messagetype='edifact',filename='botssys/infile/unitinmessageedifact/0404/040411.edi')
self.assertRaises(botslib.InMessageError,inmessage.edifromfile,editype='edifact',messagetype='edifact',filename='botssys/infile/unitinmessageedifact/0404/040412.edi')
self.assertRaises(botslib.InMessageError,inmessage.edifromfile,editype='edifact',messagetype='edifact',filename='botssys/infile/unitinmessageedifact/0404/040413.edi')
self.assertRaises(botslib.InMessageError,inmessage.edifromfile,editype='edifact',messagetype='edifact',filename='botssys/infile/unitinmessageedifact/0404/040414.edi')
self.assertRaises(botslib.InMessageError,inmessage.edifromfile,editype='edifact',messagetype='edifact',filename='botssys/infile/unitinmessageedifact/0404/040415.edi')
self.assertRaises(botslib.InMessageError,inmessage.edifromfile,editype='edifact',messagetype='edifact',filename='botssys/infile/unitinmessageedifact/0404/040416.edi')
self.assertRaises(botslib.InMessageError,inmessage.edifromfile,editype='edifact',messagetype='edifact',filename='botssys/infile/unitinmessageedifact/0404/040417.edi')
self.assertRaises(botslib.InMessageError,inmessage.edifromfile,editype='edifact',messagetype='edifact',filename='botssys/infile/unitinmessageedifact/0404/040418.edi')
def testedifact0407(self):
#lex test with characters in strange places
self.assertRaises(botslib.InMessageError,inmessage.edifromfile,editype='edifact',messagetype='edifact',filename='botssys/infile/unitinmessageedifact/0407/040701.edi')
self.failUnless(inmessage.edifromfile(editype='edifact',messagetype='edifact',filename='botssys/infile/unitinmessageedifact/0407/040702.edi'), 'standaard test')
self.assertRaises(botslib.InMessageError,inmessage.edifromfile,editype='edifact',messagetype='edifact',filename='botssys/infile/unitinmessageedifact/0407/040703.edi')
self.assertRaises(botslib.InMessageError,inmessage.edifromfile,editype='edifact',messagetype='edifact',filename='botssys/infile/unitinmessageedifact/0407/040704.edi')
self.failUnless(inmessage.edifromfile(editype='edifact',messagetype='edifact',filename='botssys/infile/unitinmessageedifact/0407/040705.edi'), 'standaard test')
self.failUnless(inmessage.edifromfile(editype='edifact',messagetype='edifact',filename='botssys/infile/unitinmessageedifact/0407/040706.edi'), 'UNOA Crtl-Z at end')
self.failUnless(inmessage.edifromfile(editype='edifact',messagetype='edifact',filename='botssys/infile/unitinmessageedifact/0407/040707.edi'), 'UNOB Crtl-Z at end')
self.failUnless(inmessage.edifromfile(editype='edifact',messagetype='edifact',filename='botssys/infile/unitinmessageedifact/0407/040708.edi'), 'UNOC Crtl-Z at end')
def testedifact0408(self):
#differentenvelopingsamecontent: 1rst UNH per UNB, 2nd has 2 UNB for all UNH's, 3rd has UNG-UNE
in1= inmessage.edifromfile(editype='edifact',messagetype='edifact',filename='botssys/infile/unitinmessageedifact/0408/040801.edi')
in2= inmessage.edifromfile(editype='edifact',messagetype='edifact',filename='botssys/infile/unitinmessageedifact/0408/040802.edi')
in3= inmessage.edifromfile(editype='edifact',messagetype='edifact',filename='botssys/infile/unitinmessageedifact/0408/040803.edi')
for in1node,in2node,in3node in zip(in1.nextmessage(),in2.nextmessage(),in3.nextmessage()):
self.failUnless(utilsunit.comparenode(in1node.root,in2node.root),'compare')
self.failUnless(utilsunit.comparenode(in1node.root,in3node.root),'compare')
if __name__ == '__main__':
botsinit.generalinit('config')
botsinit.initenginelogging()
unittest.main()
| [
[
1,
0,
0.0115,
0.0115,
0,
0.66,
0,
88,
0,
1,
0,
0,
88,
0,
0
],
[
1,
0,
0.023,
0.0115,
0,
0.66,
0.1429,
855,
0,
1,
0,
0,
855,
0,
0
],
[
1,
0,
0.0345,
0.0115,
0,
0.6... | [
"import unittest",
"import bots.inmessage as inmessage",
"import bots.botslib as botslib",
"import bots.botsinit as botsinit",
"import utilsunit",
"'''plugin unitinmessageedifact.zip'''",
"class TestInmessage(unittest.TestCase):\n def testEdifact0401(self):\n ''' 0401\tErrors in records'''\n ... |
#!/usr/bin/env python
from bots import engine
if __name__ == '__main__':
engine.start()
| [
[
1,
0,
0.4,
0.2,
0,
0.66,
0,
261,
0,
1,
0,
0,
261,
0,
0
],
[
4,
0,
0.9,
0.4,
0,
0.66,
1,
0,
0,
0,
0,
0,
0,
0,
1
],
[
8,
1,
1,
0.2,
1,
0.7,
0,
511,
3,
... | [
"from bots import engine",
"if __name__ == '__main__':\n engine.start()",
" engine.start()"
] |
import os
import sys
from distutils.core import setup
from distutils.command.install import INSTALL_SCHEMES
#install data file in the same way as *.py
for scheme in INSTALL_SCHEMES.values():
scheme['data'] = scheme['purelib']
def fullsplit(path, result=None):
"""
Split a pathname into components (the opposite of os.path.join) in a
platform-neutral way.
"""
if result is None:
result = []
head, tail = os.path.split(path)
if head == '':
return [tail] + result
if head == path:
return result
return fullsplit(head, [tail] + result)
# Compile the list of packages available, because distutils doesn't have
# an easy way to do this.
packages, data_files = [], []
root_dir = os.path.dirname(__file__)
if root_dir != '':
os.chdir(root_dir)
for dirpath, dirnames, filenames in os.walk('bots'):
# Ignore dirnames that start with '.'
#~ for i, dirname in enumerate(dirnames):
#~ if dirname.startswith('.'): del dirnames[i]
if '__init__.py' in filenames:
packages.append('.'.join(fullsplit(dirpath)))
if len(filenames) > 1:
data_files.append([dirpath, [os.path.join(dirpath, f) for f in filenames if not f.endswith('.pyc') and not f.endswith('.py')]])
elif filenames:
data_files.append([dirpath, [os.path.join(dirpath, f) for f in filenames if not f.endswith('.pyc') and not f.endswith('.py')]])
setup(
name="bots",
version="2.1.0",
author = "hjebbers",
author_email = "hjebbers@gmail.com",
url = "http://bots.sourceforge.net/",
description="Bots open source edi translator",
long_description = "Bots is complete software for edi (Electronic Data Interchange): translate and communicate. All major edi data formats are supported: edifact, x12, tradacoms, xml",
platforms="OS Independent (Written in an interpreted language)",
license="GNU General Public License (GPL)",
classifiers = [
'Development Status :: 5 - Production/Stable',
'Operating System :: OS Independent',
'Programming Language :: Python',
'License :: OSI Approved :: GNU General Public License (GPL)',
'Topic :: Office/Business',
'Topic :: Office/Business :: Financial',
'Topic :: Other/Nonlisted Topic',
'Topic :: Communications',
'Environment :: Console',
'Environment :: Web Environment',
],
scripts = [ 'bots-webserver.py',
'bots-engine.py',
'bots-grammarcheck.py',
'bots-xml2botsgrammar.py',
#~ 'bots/bots-updatedb.py',
],
packages = packages,
data_files = data_files,
)
| [
[
1,
0,
0.0122,
0.0122,
0,
0.66,
0,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.0244,
0.0122,
0,
0.66,
0.1,
509,
0,
1,
0,
0,
509,
0,
0
],
[
1,
0,
0.0366,
0.0122,
0,
0.6... | [
"import os",
"import sys",
"from distutils.core import setup",
"from distutils.command.install import INSTALL_SCHEMES",
"for scheme in INSTALL_SCHEMES.values():\n scheme['data'] = scheme['purelib']",
" scheme['data'] = scheme['purelib']",
"def fullsplit(path, result=None):\n \"\"\"\n Split a... |
import os
import sys
from distutils.core import setup
from distutils.command.install import INSTALL_SCHEMES
#install data file in the same way as *.py
for scheme in INSTALL_SCHEMES.values():
scheme['data'] = scheme['purelib']
def fullsplit(path, result=None):
"""
Split a pathname into components (the opposite of os.path.join) in a
platform-neutral way.
"""
if result is None:
result = []
head, tail = os.path.split(path)
if head == '':
return [tail] + result
if head == path:
return result
return fullsplit(head, [tail] + result)
# Compile the list of packages available, because distutils doesn't have
# an easy way to do this.
packages, data_files = [], []
root_dir = os.path.dirname(__file__)
if root_dir != '':
os.chdir(root_dir)
for dirpath, dirnames, filenames in os.walk('bots'):
# Ignore dirnames that start with '.'
#~ for i, dirname in enumerate(dirnames):
#~ if dirname.startswith('.'): del dirnames[i]
if '__init__.py' in filenames:
packages.append('.'.join(fullsplit(dirpath)))
if len(filenames) > 1:
data_files.append([dirpath, [os.path.join(dirpath, f) for f in filenames if not f.endswith('.pyc') and not f.endswith('.py')]])
elif filenames:
data_files.append([dirpath, [os.path.join(dirpath, f) for f in filenames if not f.endswith('.pyc') and not f.endswith('.py')]])
setup(
name="bots",
version="2.1.0",
author = "hjebbers",
author_email = "hjebbers@gmail.com",
url = "http://bots.sourceforge.net/",
description="Bots open source edi translator",
long_description = "Bots is complete software for edi (Electronic Data Interchange): translate and communicate. All major edi data formats are supported: edifact, x12, tradacoms, xml",
platforms="OS Independent (Written in an interpreted language)",
license="GNU General Public License (GPL)",
classifiers = [
'Development Status :: 5 - Production/Stable',
'Operating System :: OS Independent',
'Programming Language :: Python',
'License :: OSI Approved :: GNU General Public License (GPL)',
'Topic :: Office/Business',
'Topic :: Office/Business :: Financial',
'Topic :: Other/Nonlisted Topic',
'Topic :: Communications',
'Environment :: Console',
'Environment :: Web Environment',
],
scripts = [ 'bots-webserver.py',
'bots-engine.py',
'bots-grammarcheck.py',
'bots-xml2botsgrammar.py',
#~ 'bots/bots-updatedb.py',
],
packages = packages,
data_files = data_files,
)
| [
[
1,
0,
0.0122,
0.0122,
0,
0.66,
0,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.0244,
0.0122,
0,
0.66,
0.1,
509,
0,
1,
0,
0,
509,
0,
0
],
[
1,
0,
0.0366,
0.0122,
0,
0.6... | [
"import os",
"import sys",
"from distutils.core import setup",
"from distutils.command.install import INSTALL_SCHEMES",
"for scheme in INSTALL_SCHEMES.values():\n scheme['data'] = scheme['purelib']",
" scheme['data'] = scheme['purelib']",
"def fullsplit(path, result=None):\n \"\"\"\n Split a... |
#!/usr/bin/env python
from bots import xml2botsgrammar
if __name__=='__main__':
xml2botsgrammar.start()
| [
[
1,
0,
0.4,
0.2,
0,
0.66,
0,
261,
0,
1,
0,
0,
261,
0,
0
],
[
4,
0,
0.9,
0.4,
0,
0.66,
1,
0,
0,
0,
0,
0,
0,
0,
1
],
[
8,
1,
1,
0.2,
1,
0.32,
0,
511,
3,
... | [
"from bots import xml2botsgrammar",
"if __name__=='__main__':\n xml2botsgrammar.start()",
" xml2botsgrammar.start()"
] |
import os
import unittest
import shutil
import bots.inmessage as inmessage
import bots.outmessage as outmessage
import filecmp
try:
import json as simplejson
except ImportError:
import simplejson
import bots.botslib as botslib
import bots.botsinit as botsinit
import utilsunit
''' pluging unitinisout.zip'''
class Testinisoutedifact(unittest.TestCase):
def testedifact02(self):
infile ='botssys/infile/unitinisout/org/inisout02.edi'
outfile='botssys/infile/unitinisout/output/inisout02.edi'
inn = inmessage.edifromfile(editype='edifact',messagetype='orderswithenvelope',filename=infile)
out = outmessage.outmessage_init(editype='edifact',messagetype='orderswithenvelope',filename=outfile,divtext='',topartner='') #make outmessage object
out.root = inn.root
out.writeall()
self.failUnless(filecmp.cmp('bots/' + outfile,'bots/' + infile))
def testedifact03(self):
#~ #takes quite long
infile ='botssys/infile/unitinisout/org/inisout03.edi'
outfile='botssys/infile/unitinisout/output/inisout03.edi'
inn = inmessage.edifromfile(editype='edifact',messagetype='invoicwithenvelope',filename=infile)
out = outmessage.outmessage_init(editype='edifact',messagetype='invoicwithenvelope',filename=outfile,divtext='',topartner='') #make outmessage object
out.root = inn.root
out.writeall()
self.failUnless(filecmp.cmp('bots/' + outfile,'bots/' + infile))
def testedifact04(self):
utilsunit.readwrite(editype='edifact',
messagetype='orderswithenvelope',
filenamein='botssys/infile/unitinisout/0406edifact/040601.edi',
filenameout='botssys/infile/unitinisout/output/040601.edi')
utilsunit.readwrite(editype='edifact',
messagetype='orderswithenvelope',
filenamein='botssys/infile/unitinisout/0406edifact/040602.edi',
filenameout='botssys/infile/unitinisout/output/040602.edi')
utilsunit.readwrite(editype='edifact',
messagetype='orderswithenvelope',
filenamein='botssys/infile/unitinisout/0406edifact/040603.edi',
filenameout='botssys/infile/unitinisout/output/040603.edi')
utilsunit.readwrite(editype='edifact',
messagetype='orderswithenvelope',
filenamein='botssys/infile/unitinisout/0406edifact/040604.edi',
filenameout='botssys/infile/unitinisout/output/040604.edi')
utilsunit.readwrite(editype='edifact',
messagetype='orderswithenvelope',
filenamein='botssys/infile/unitinisout/0406edifact/040605.edi',
filenameout='botssys/infile/unitinisout/output/040605.edi')
utilsunit.readwrite(editype='edifact',
messagetype='orderswithenvelope',
filenamein='botssys/infile/unitinisout/0406edifact/040606.edi',
filenameout='botssys/infile/unitinisout/output/040606.edi')
utilsunit.readwrite(editype='edifact',
messagetype='orderswithenvelope',
filenamein='botssys/infile/unitinisout/0406edifact/040607.edi',
filenameout='botssys/infile/unitinisout/output/040607.edi')
utilsunit.readwrite(editype='edifact',
messagetype='orderswithenvelope',
filenamein='botssys/infile/unitinisout/0406edifact/040608.edi',
filenameout='botssys/infile/unitinisout/output/040608.edi')
self.failUnless(filecmp.cmp('bots/botssys/infile/unitinisout/output/040601.edi','bots/botssys/infile/unitinisout/output/040602.edi'))
self.failUnless(filecmp.cmp('bots/botssys/infile/unitinisout/output/040601.edi','bots/botssys/infile/unitinisout/output/040603.edi'))
self.failUnless(filecmp.cmp('bots/botssys/infile/unitinisout/output/040601.edi','bots/botssys/infile/unitinisout/output/040604.edi'))
self.failUnless(filecmp.cmp('bots/botssys/infile/unitinisout/output/040601.edi','bots/botssys/infile/unitinisout/output/040605.edi'))
self.failUnless(filecmp.cmp('bots/botssys/infile/unitinisout/output/040601.edi','bots/botssys/infile/unitinisout/output/040606.edi'))
self.failUnless(filecmp.cmp('bots/botssys/infile/unitinisout/output/040601.edi','bots/botssys/infile/unitinisout/output/040607.edi'))
self.failUnless(filecmp.cmp('bots/botssys/infile/unitinisout/output/040601.edi','bots/botssys/infile/unitinisout/output/040608.edi'))
class Testinisoutinh(unittest.TestCase):
def testinh01(self):
filenamein='botssys/infile/unitinisout/org/inisout01.inh'
filenameout='botssys/infile/unitinisout/output/inisout01.inh'
inn = inmessage.edifromfile(editype='fixed',messagetype='invoicfixed',filename=filenamein)
out = outmessage.outmessage_init(editype='fixed',messagetype='invoicfixed',filename=filenameout,divtext='',topartner='') #make outmessage object
out.root = inn.root
out.writeall()
self.failUnless(filecmp.cmp('bots/' + filenameout,'bots/' + filenamein))
def testidoc01(self):
filenamein='botssys/infile/unitinisout/org/inisout01.idoc'
filenameout='botssys/infile/unitinisout/output/inisout01.idoc'
inn = inmessage.edifromfile(editype='idoc',messagetype='WP_PLU02',filename=filenamein)
out = outmessage.outmessage_init(editype='idoc',messagetype='WP_PLU02',filename=filenameout,divtext='',topartner='') #make outmessage object
out.root = inn.root
out.writeall()
self.failUnless(filecmp.cmp('bots/' + filenameout,'bots/' + filenamein))
class Testinisoutx12(unittest.TestCase):
def testx12_01(self):
filenamein='botssys/infile/unitinisout/org/inisout01.x12'
filenameout='botssys/infile/unitinisout/output/inisout01.x12'
inn = inmessage.edifromfile(editype='x12',messagetype='850withenvelope',filename=filenamein)
out = outmessage.outmessage_init(editype='x12',messagetype='850withenvelope',filename=filenameout,divtext='',topartner='') #make outmessage object
out.root = inn.root
out.writeall()
linesfile1 = utilsunit.readfilelines('bots/' + filenamein)
linesfile2 = utilsunit.readfilelines('bots/' + filenameout)
self.assertEqual(linesfile1[0][:103],linesfile2[0][:103],'first part of ISA')
for line1,line2 in zip(linesfile1[1:],linesfile2[1:]):
self.assertEqual(line1,line2,'Cmplines')
def testx12_02(self):
filenamein='botssys/infile/unitinisout/org/inisout02.x12'
filenameout='botssys/infile/unitinisout/output/inisout02.x12'
inn = inmessage.edifromfile(editype='x12',messagetype='850withenvelope',filename=filenamein)
out = outmessage.outmessage_init(add_crlfafterrecord_sep='',editype='x12',messagetype='850withenvelope',filename=filenameout,divtext='',topartner='') #make outmessage object
out.root = inn.root
out.writeall()
linesfile1 = utilsunit.readfile('bots/' + filenamein)
linesfile2 = utilsunit.readfile('bots/' + filenameout)
self.assertEqual(linesfile1[:103],linesfile2[:103],'first part of ISA')
self.assertEqual(linesfile1[105:],linesfile2[103:],'rest of message')
class Testinisoutcsv(unittest.TestCase):
def testcsv001(self):
filenamein='botssys/infile/unitinisout/org/inisout01.csv'
filenameout='botssys/infile/unitinisout/output/inisout01.csv'
utilsunit.readwrite(editype='csv',messagetype='invoic',filenamein=filenamein,filenameout=filenameout)
self.failUnless(filecmp.cmp('bots/' + filenameout,'bots/' + filenamein))
def testcsv003(self):
#utf-charset
filenamein='botssys/infile/unitinisout/org/inisout03.csv'
filenameout='botssys/infile/unitinisout/output/inisout03.csv'
utilsunit.readwrite(editype='csv',messagetype='invoic',filenamein=filenamein,filenameout=filenameout)
self.failUnless(filecmp.cmp('bots/' + filenameout,'bots/' + filenamein))
#~ #utf-charset with BOM **error. BOM is not removed by python.
#~ #utilsunit.readwrite(editype='csv',
#~ # messagetype='invoic',
#~ # filenamein='botssys/infile/unitinisout/inisout04.csv',
#~ # filenameout='botssys/infile/unitinisout/output/inisout04.csv')
#~ #self.failUnless(filecmp.cmp('botssys/infile/unitinisout/output/inisout04.csv','botssys/infile/unitinisout/inisout04.csv'))
if __name__ == '__main__':
botsinit.generalinit('config')
#~ botslib.initbotscharsets()
botsinit.initenginelogging()
shutil.rmtree('bots/botssys/infile/unitinisout/output',ignore_errors=True) #remove whole output directory
os.mkdir('bots/botssys/infile/unitinisout/output')
unittest.main()
| [
[
1,
0,
0.0067,
0.0067,
0,
0.66,
0,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.0133,
0.0067,
0,
0.66,
0.0667,
88,
0,
1,
0,
0,
88,
0,
0
],
[
1,
0,
0.02,
0.0067,
0,
0.66... | [
"import os",
"import unittest",
"import shutil",
"import bots.inmessage as inmessage",
"import bots.outmessage as outmessage",
"import filecmp",
"try:\n import json as simplejson\nexcept ImportError:\n import simplejson",
" import json as simplejson",
" import simplejson",
"import bots... |
#!/usr/bin/env python
from bots import grammarcheck
if __name__=='__main__':
grammarcheck.start()
| [
[
1,
0,
0.4,
0.2,
0,
0.66,
0,
261,
0,
1,
0,
0,
261,
0,
0
],
[
4,
0,
0.9,
0.4,
0,
0.66,
1,
0,
0,
0,
0,
0,
0,
0,
1
],
[
8,
1,
1,
0.2,
1,
0.49,
0,
511,
3,
... | [
"from bots import grammarcheck",
"if __name__=='__main__':\n grammarcheck.start()",
" grammarcheck.start()"
] |
import os
import sys
from distutils.core import setup
def fullsplit(path, result=None):
"""
Split a pathname into components (the opposite of os.path.join) in a
platform-neutral way.
"""
if result is None:
result = []
head, tail = os.path.split(path)
if head == '':
return [tail] + result
if head == path:
return result
return fullsplit(head, [tail] + result)
# Compile the list of packages available, because distutils doesn't have
# an easy way to do this.
packages, data_files = [], []
root_dir = os.path.dirname(__file__)
if root_dir != '':
os.chdir(root_dir)
for dirpath, dirnames, filenames in os.walk('bots'):
# Ignore dirnames that start with '.'
#~ for i, dirname in enumerate(dirnames):
#~ if dirname.startswith('.'): del dirnames[i]
if '__init__.py' in filenames:
packages.append('.'.join(fullsplit(dirpath)))
data_files.append([dirpath, [os.path.join(dirpath, f) for f in filenames if not f.endswith('.pyc')]])
elif filenames:
data_files.append([dirpath, [os.path.join(dirpath, f) for f in filenames if not f.endswith('.pyc')]])
#~ # Small hack for working with bdist_wininst.
#~ # See http://mail.python.org/pipermail/distutils-sig/2004-August/004134.html
#~ if len(sys.argv) > 1 and 'bdist_wininst' in sys.argv[1:]:
if len(sys.argv) > 1 and 'bdist_wininst' in sys.argv[1:]:
for file_info in data_files:
file_info[0] = '\\PURELIB\\%s' % file_info[0]
setup(
name="bots",
version="2.1.0",
author = "hjebbers",
author_email = "hjebbers@gmail.com",
url = "http://bots.sourceforge.net/",
description="Bots open source edi translator",
long_description = "Bots is complete software for edi (Electronic Data Interchange): translate and communicate. All major edi data formats are supported: edifact, x12, tradacoms, xml",
platforms="OS Independent (Written in an interpreted language)",
license="GNU General Public License (GPL)",
classifiers = [
'Development Status :: 5 - Production/Stable',
'Operating System :: OS Independent',
'Programming Language :: Python',
'License :: OSI Approved :: GNU General Public License (GPL)',
'Topic :: Office/Business',
'Topic :: Office/Business :: Financial',
'Topic :: Other/Nonlisted Topic',
'Topic :: Communications',
'Environment :: Console',
'Environment :: Web Environment',
],
scripts = [ 'bots-webserver.py',
'bots-engine.py',
'postinstallation.py',
'bots-grammarcheck.py',
'bots-xml2botsgrammar.py',
#~ 'bots/bots-updatedb.py',
],
packages = packages,
data_files = data_files,
)
| [
[
1,
0,
0.0122,
0.0122,
0,
0.66,
0,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.0244,
0.0122,
0,
0.66,
0.1111,
509,
0,
1,
0,
0,
509,
0,
0
],
[
1,
0,
0.0366,
0.0122,
0,
... | [
"import os",
"import sys",
"from distutils.core import setup",
"def fullsplit(path, result=None):\n \"\"\"\n Split a pathname into components (the opposite of os.path.join) in a\n platform-neutral way.\n \"\"\"\n if result is None:\n result = []\n head, tail = os.path.split(path)",
... |
#!/usr/bin/env python
if __name__ == '__main__':
import cProfile
cProfile.run('from bots import engine; engine.start()','profile.tmp')
import pstats
p = pstats.Stats('profile.tmp')
#~ p.sort_stats('cumulative').print_stats(25)
p.sort_stats('time').print_stats(25)
#~ p.print_callees('deepcopy').print_stats(1)
p.print_callees('mydeepcopy')
#~ p.sort_stats('time').print_stats('grammar.py',50)
| [
[
4,
0,
0.5,
0.6429,
0,
0.66,
0,
0,
0,
0,
0,
0,
0,
0,
5
],
[
1,
1,
0.2857,
0.0714,
1,
0.9,
0,
686,
0,
1,
0,
0,
686,
0,
0
],
[
8,
1,
0.3571,
0.0714,
1,
0.9,
0.2,... | [
"if __name__ == '__main__':\n import cProfile\n cProfile.run('from bots import engine; engine.start()','profile.tmp')\n import pstats\n p = pstats.Stats('profile.tmp')\n #~ p.sort_stats('cumulative').print_stats(25)\n p.sort_stats('time').print_stats(25)\n #~ p.print_callees('deepcopy').print_s... |
import os
import unittest
import shutil
import bots.inmessage as inmessage
import bots.outmessage as outmessage
import filecmp
import bots.botslib as botslib
import bots.botsinit as botsinit
import utilsunit
''' pluging unitinmessagexml.zip'''
class TestInmessage(unittest.TestCase):
''' Read messages; some should be OK (True), some shoudl give errors (False).
Tets per editype.
'''
def setUp(self):
pass
def testxml(self):
#~ #empty file
self.assertRaises(SyntaxError,inmessage.edifromfile, editype='xmlnocheck',messagetype='xmlnocheck',filename='botssys/infile/unitinmessagexml/xml/110401.xml')
self.assertRaises(SyntaxError,inmessage.edifromfile, editype='xml',messagetype='testxml', filename='botssys/infile/unitinmessagexml/xml/110401.xml')
self.assertRaises(SyntaxError,inmessage.edifromfile, editype='xml',messagetype='testxml',checkunknownentities=True, filename='botssys/infile/unitinmessagexml/xml/110401.xml')
self.assertRaises(SyntaxError,inmessage.edifromfile, editype='xml',messagetype='testxmlflatten', filename='botssys/infile/unitinmessagexml/xml/110401.xml')
#only root record in 110402.xml
self.failUnless(inmessage.edifromfile(editype='xmlnocheck',messagetype='xmlnocheck',filename='botssys/infile/unitinmessagexml/xml/110402.xml'), 'only a root tag; should be OK')
self.assertRaises(botslib.MessageError,inmessage.edifromfile, editype='xml',messagetype='testxml',filename='botssys/infile/unitinmessagexml/xml/110402.xml')
self.assertRaises(botslib.MessageError,inmessage.edifromfile, editype='xml',messagetype='testxml',checkunknownentities=True, filename='botssys/infile/unitinmessagexml/xml/110402.xml')
self.assertRaises(botslib.MessageError,inmessage.edifromfile, editype='xml',messagetype='testxmlflatten',filename='botssys/infile/unitinmessagexml/xml/110402.xml')
#root tag different from grammar
self.assertRaises(botslib.InMessageError,inmessage.edifromfile, editype='xml',messagetype='testxml',filename='botssys/infile/unitinmessagexml/xml/110406.xml')
self.assertRaises(botslib.InMessageError,inmessage.edifromfile, editype='xml',messagetype='testxml',checkunknownentities=True, filename='botssys/infile/unitinmessagexml/xml/110406.xml')
self.assertRaises(botslib.InMessageError,inmessage.edifromfile, editype='xml',messagetype='testxmlflatten',filename='botssys/infile/unitinmessagexml/xml/110406.xml')
#root tag is double
self.assertRaises(SyntaxError,inmessage.edifromfile, editype='xmlnocheck',messagetype='xmlnocheck',filename='botssys/infile/unitinmessagexml/xml/110407.xml')
#invalid: no closing tag
self.assertRaises(SyntaxError,inmessage.edifromfile, editype='xmlnocheck',messagetype='xmlnocheck',filename='botssys/infile/unitinmessagexml/xml/110408.xml')
#invalid: extra closing tag
self.assertRaises(SyntaxError,inmessage.edifromfile, editype='xmlnocheck',messagetype='xmlnocheck',filename='botssys/infile/unitinmessagexml/xml/110409.xml')
#invalid: mandatory xml-element missing
self.failUnless(inmessage.edifromfile(editype='xmlnocheck',messagetype='xmlnocheck',filename='botssys/infile/unitinmessagexml/xml/110410.xml'), '')
self.assertRaises(botslib.MessageError,inmessage.edifromfile, editype='xml',messagetype='testxml',filename='botssys/infile/unitinmessagexml/xml/110410.xml')
self.assertRaises(botslib.MessageError,inmessage.edifromfile, editype='xml',messagetype='testxml',checkunknownentities=True, filename='botssys/infile/unitinmessagexml/xml/110410.xml')
self.assertRaises(botslib.MessageError,inmessage.edifromfile, editype='xml',messagetype='testxmlflatten',filename='botssys/infile/unitinmessagexml/xml/110410.xml')
#invalid: to many occurences
self.assertRaises(botslib.MessageError,inmessage.edifromfile, editype='xml',messagetype='testxml',filename='botssys/infile/unitinmessagexml/xml/110411.xml')
self.assertRaises(botslib.MessageError,inmessage.edifromfile, editype='xml',messagetype='testxml',checkunknownentities=True, filename='botssys/infile/unitinmessagexml/xml/110411.xml')
#invalid: missing mandatory xml attribute
self.assertRaises(botslib.MessageError,inmessage.edifromfile, editype='xml',messagetype='testxml',filename='botssys/infile/unitinmessagexml/xml/110412.xml')
self.assertRaises(botslib.MessageError,inmessage.edifromfile, editype='xml',messagetype='testxml',checkunknownentities=True,filename='botssys/infile/unitinmessagexml/xml/110412.xml')
#unknown xml element
self.assertRaises(botslib.MessageError,inmessage.edifromfile, editype='xml',messagetype='testxml',checkunknownentities=True,filename='botssys/infile/unitinmessagexml/xml/110413.xml')
self.assertRaises(botslib.InMessageError,inmessage.edifromfile, editype='xml',messagetype='testxml',checkunknownentities=True,filename='botssys/infile/unitinmessagexml/xml/110414.xml')
#2x the same xml attribute
self.assertRaises(SyntaxError,inmessage.edifromfile, editype='xml',messagetype='testxml',filename='botssys/infile/unitinmessagexml/xml/110415.xml')
self.assertRaises(SyntaxError,inmessage.edifromfile, editype='xml',messagetype='testxml',checkunknownentities=True,filename='botssys/infile/unitinmessagexml/xml/110415.xml')
#messages with all max occurences, use attributes, etc
in1 = inmessage.edifromfile(editype='xml',messagetype='testxml',filename='botssys/infile/unitinmessagexml/xml/110416.xml') #all elements, attributes
#other order of xml elements; should esult in the same node tree
in1 = inmessage.edifromfile(editype='xml',messagetype='testxml',filename='botssys/infile/unitinmessagexml/xml/110417.xml') #as 18., other order of elements
in2 = inmessage.edifromfile(editype='xml',messagetype='testxml',filename='botssys/infile/unitinmessagexml/xml/110418.xml')
self.failUnless(utilsunit.comparenode(in2.root,in1.root),'compare')
#??what is tested here??
inn7= inmessage.edifromfile(editype='xml',messagetype='testxml',checkunknownentities=True,filename='botssys/infile/unitinmessagexml/xml/110405.xml') #with <?xml version="1.0" encoding="utf-8"?>
inn8= inmessage.edifromfile(editype='xml',messagetype='testxmlflatten',checkunknownentities=True,filename='botssys/infile/unitinmessagexml/xml/110405.xml') #with <?xml version="1.0" encoding="utf-8"?>
self.failUnless(utilsunit.comparenode(inn7.root,inn8.root),'compare')
#~ #test different file which should give equal results
in1= inmessage.edifromfile(editype='xmlnocheck',messagetype='xmlnocheck',filename='botssys/infile/unitinmessagexml/xml/110403.xml') #no grammar used
in5= inmessage.edifromfile(editype='xmlnocheck',messagetype='xmlnocheck',filename='botssys/infile/unitinmessagexml/xml/110404.xml') #no grammar used
in6= inmessage.edifromfile(editype='xmlnocheck',messagetype='xmlnocheck',filename='botssys/infile/unitinmessagexml/xml/110405.xml') #no grammar used
in2= inmessage.edifromfile(editype='xml',messagetype='testxml',filename='botssys/infile/unitinmessagexml/xml/110403.xml') #with <?xml version="1.0" encoding="utf-8"?>
in3= inmessage.edifromfile(editype='xml',messagetype='testxml',filename='botssys/infile/unitinmessagexml/xml/110404.xml') #without <?xml version="1.0" encoding="utf-8"?>
in4= inmessage.edifromfile(editype='xml',messagetype='testxml',filename='botssys/infile/unitinmessagexml/xml/110405.xml') #use cr/lf and whitespace for 'nice' xml
self.failUnless(utilsunit.comparenode(in2.root,in1.root),'compare')
self.failUnless(utilsunit.comparenode(in2.root,in3.root),'compare')
self.failUnless(utilsunit.comparenode(in2.root,in4.root),'compare')
self.failUnless(utilsunit.comparenode(in2.root,in5.root),'compare')
self.failUnless(utilsunit.comparenode(in2.root,in6.root),'compare')
#~ #test different file which should give equal results; flattenxml=True,
in1= inmessage.edifromfile(editype='xmlnocheck',messagetype='xmlnocheck',filename='botssys/infile/unitinmessagexml/xml/110403.xml') #no grammar used
in5= inmessage.edifromfile(editype='xmlnocheck',messagetype='xmlnocheck',filename='botssys/infile/unitinmessagexml/xml/110404.xml') #no grammar used
in6= inmessage.edifromfile(editype='xmlnocheck',messagetype='xmlnocheck',filename='botssys/infile/unitinmessagexml/xml/110405.xml') #no grammar used
in4= inmessage.edifromfile(editype='xml',messagetype='testxmlflatten',filename='botssys/infile/unitinmessagexml/xml/110405.xml') #use cr/lf and whitespace for 'nice' xml
in2= inmessage.edifromfile(editype='xml',messagetype='testxmlflatten',filename='botssys/infile/unitinmessagexml/xml/110403.xml') #with <?xml version="1.0" encoding="utf-8"?>
in3= inmessage.edifromfile(editype='xml',messagetype='testxmlflatten',filename='botssys/infile/unitinmessagexml/xml/110404.xml') #without <?xml version="1.0" encoding="utf-8"?>
self.failUnless(utilsunit.comparenode(in2.root,in1.root),'compare')
self.failUnless(utilsunit.comparenode(in2.root,in3.root),'compare')
self.failUnless(utilsunit.comparenode(in2.root,in4.root),'compare')
self.failUnless(utilsunit.comparenode(in2.root,in5.root),'compare')
self.failUnless(utilsunit.comparenode(in2.root,in6.root),'compare')
class Testinisoutxml(unittest.TestCase):
def testxml01a(self):
''' check xml; new behaviour'''
filenamein='botssys/infile/unitinmessagexml/xml/inisout02.xml'
filenameout='botssys/infile/unitinmessagexml/output/inisout01a.xml'
utilsunit.readwrite(editype='xml',messagetype='xmlorder',filenamein=filenamein,filenameout=filenameout)
self.failUnless(filecmp.cmp('bots/' + filenameout,'bots/' + filenamein))
def testxml02a(self):
''' check xmlnoccheck; new behaviour'''
filenamein='botssys/infile/unitinmessagexml/xml/inisout02.xml'
filenametmp='botssys/infile/unitinmessagexml/output/inisout02tmpa.xml'
filenameout='botssys/infile/unitinmessagexml/output/inisout02a.xml'
utilsunit.readwrite(editype='xmlnocheck',messagetype='xmlnocheck',filenamein=filenamein,filenameout=filenametmp)
utilsunit.readwrite(editype='xml',messagetype='xmlorder',filenamein=filenametmp,filenameout=filenameout)
self.failUnless(filecmp.cmp('bots/' + filenameout,'bots/' + filenamein))
def testxml03(self):
''' check xml (different grammar)'''
filenamein='botssys/infile/unitinmessagexml/xml/110419.xml'
filenameout='botssys/infile/unitinmessagexml/output/inisout03.xml'
utilsunit.readwrite(editype='xml',messagetype='testxmlflatten',charset='utf-8',filenamein=filenamein,filenameout=filenameout)
self.failUnless(filecmp.cmp('bots/' + filenamein,'bots/' + filenameout))
def testxml04(self):
''' check xmlnoccheck'''
filenamein='botssys/infile/unitinmessagexml/xml/110419.xml'
filenametmp='botssys/infile/unitinmessagexml/output/inisout04tmp.xml'
filenameout='botssys/infile/unitinmessagexml/output/inisout04.xml'
utilsunit.readwrite(editype='xmlnocheck',messagetype='xmlnocheck',charset='utf-8',filenamein=filenamein,filenameout=filenametmp)
utilsunit.readwrite(editype='xml',messagetype='testxmlflatten',charset='utf-8',filenamein=filenametmp,filenameout=filenameout)
self.failUnless(filecmp.cmp('bots/' + filenamein,'bots/' + filenameout))
def testxml05(self):
''' test xml; iso-8859-1'''
filenamein='botssys/infile/unitinmessagexml/xml/inisout03.xml'
filenamecmp='botssys/infile/unitinmessagexml/xml/inisoutcompare05.xml'
filenameout='botssys/infile/unitinmessagexml/output/inisout05.xml'
utilsunit.readwrite(editype='xml',messagetype='testxml',filenamein=filenamein,filenameout=filenameout,charset='ISO-8859-1')
self.failUnless(filecmp.cmp('bots/' + filenameout,'bots/' + filenamecmp))
def testxml06(self):
''' test xmlnocheck; iso-8859-1'''
filenamein='botssys/infile/unitinmessagexml/xml/inisout03.xml'
filenametmp='botssys/infile/unitinmessagexml/output/inisout05tmp.xml'
filenamecmp='botssys/infile/unitinmessagexml/xml/inisoutcompare05.xml'
filenameout='botssys/infile/unitinmessagexml/output/inisout05a.xml'
utilsunit.readwrite(editype='xmlnocheck',messagetype='xmlnocheck',filenamein=filenamein,filenameout=filenametmp,charset='ISO-8859-1')
utilsunit.readwrite(editype='xml',messagetype='testxml',filenamein=filenametmp,filenameout=filenameout,charset='ISO-8859-1')
self.failUnless(filecmp.cmp('bots/' + filenameout,'bots/' + filenamecmp))
def testxml09(self):
''' BOM;; BOM is not written....'''
filenamein='botssys/infile/unitinmessagexml/xml/inisout05.xml'
filenamecmp='botssys/infile/unitinmessagexml/xml/inisout04.xml'
filenameout='botssys/infile/unitinmessagexml/output/inisout09.xml'
utilsunit.readwrite(editype='xml',messagetype='testxml',filenamein=filenamein,filenameout=filenameout,charset='utf-8')
self.failUnless(filecmp.cmp('bots/' + filenameout,'bots/' + filenamecmp))
def testxml10(self):
''' BOM;; BOM is not written....'''
filenamein='botssys/infile/unitinmessagexml/xml/inisout05.xml'
filenametmp='botssys/infile/unitinmessagexml/output/inisout10tmp.xml'
filenameout='botssys/infile/unitinmessagexml/output/inisout10.xml'
filenamecmp='botssys/infile/unitinmessagexml/xml/inisout04.xml'
utilsunit.readwrite(editype='xmlnocheck',messagetype='xmlnocheck',filenamein=filenamein,filenameout=filenametmp)
utilsunit.readwrite(editype='xml',messagetype='testxml',filenamein=filenametmp,filenameout=filenameout,charset='utf-8')
self.failUnless(filecmp.cmp('bots/' + filenameout,'bots/' + filenamecmp))
def testxml11(self):
''' check xml; new behaviour; use standalone parameter'''
filenamein='botssys/infile/unitinmessagexml/xml/inisout06.xml'
filenameout='botssys/infile/unitinmessagexml/output/inisout11.xml'
filenamecmp='botssys/infile/unitinmessagexml/xml/inisout02.xml'
utilsunit.readwrite(editype='xml',messagetype='xmlorder',filenamein=filenamein,filenameout=filenameout,standalone=None)
self.failUnless(filecmp.cmp('bots/' + filenameout,'bots/' + filenamecmp))
def testxml11a(self):
''' check xml; new behaviour; use standalone parameter'''
filenamein='botssys/infile/unitinmessagexml/xml/inisout06.xml'
filenameout='botssys/infile/unitinmessagexml/output/inisout11a.xml'
utilsunit.readwrite(editype='xml',messagetype='xmlorder',filenamein=filenamein,filenameout=filenameout,standalone='no')
self.failUnless(filecmp.cmp('bots/' + filenameout,'bots/' + filenamein))
def testxml12(self):
''' check xmlnoccheck; new behaviour use standalone parameter'''
filenamein='botssys/infile/unitinmessagexml/xml/inisout06.xml'
filenametmp='botssys/infile/unitinmessagexml/output/inisout12tmp.xml'
filenameout='botssys/infile/unitinmessagexml/output/inisout12.xml'
utilsunit.readwrite(editype='xmlnocheck',messagetype='xmlnocheck',filenamein=filenamein,filenameout=filenametmp,standalone='no')
utilsunit.readwrite(editype='xml',messagetype='xmlorder',filenamein=filenametmp,filenameout=filenameout,standalone='no')
self.failUnless(filecmp.cmp('bots/' + filenameout,'bots/' + filenamein))
def testxml13(self):
''' check xml; read doctype&write doctype'''
filenamein='botssys/infile/unitinmessagexml/xml/inisout13.xml'
filenameout='botssys/infile/unitinmessagexml/output/inisout13.xml'
utilsunit.readwrite(editype='xml',messagetype='xmlorder',filenamein=filenamein,filenameout=filenameout,DOCTYPE = 'mydoctype SYSTEM "mydoctype.dtd"')
self.failUnless(filecmp.cmp('bots/' + filenameout,'bots/' + filenamein))
def testxml14(self):
''' check xmlnoccheck; read doctype&write doctype'''
filenamein='botssys/infile/unitinmessagexml/xml/inisout13.xml'
filenametmp='botssys/infile/unitinmessagexml/output/inisout14tmp.xml'
filenameout='botssys/infile/unitinmessagexml/output/inisout14.xml'
utilsunit.readwrite(editype='xmlnocheck',messagetype='xmlnocheck',filenamein=filenamein,filenameout=filenametmp,DOCTYPE = 'mydoctype SYSTEM "mydoctype.dtd"')
utilsunit.readwrite(editype='xml',messagetype='xmlorder',filenamein=filenametmp,filenameout=filenameout,DOCTYPE = 'mydoctype SYSTEM "mydoctype.dtd"')
self.failUnless(filecmp.cmp('bots/' + filenameout,'bots/' + filenamein))
def testxml15(self):
''' check xml; read processing_instructions&write processing_instructions'''
filenamein='botssys/infile/unitinmessagexml/xml/inisout15.xml'
filenameout='botssys/infile/unitinmessagexml/output/inisout15.xml'
utilsunit.readwrite(editype='xml',messagetype='xmlorder',filenamein=filenamein,filenameout=filenameout,processing_instructions=[('xml-stylesheet' ,'href="mystylesheet.xsl" type="text/xml"'),('type-of-ppi' ,'attr1="value1" attr2="value2"')])
self.failUnless(filecmp.cmp('bots/' + filenameout,'bots/' + filenamein))
def testxml16(self):
''' check xmlnoccheck; read processing_instructions&write processing_instructions'''
filenamein='botssys/infile/unitinmessagexml/xml/inisout15.xml'
filenametmp='botssys/infile/unitinmessagexml/output/inisout16tmp.xml'
filenameout='botssys/infile/unitinmessagexml/output/inisout16.xml'
utilsunit.readwrite(editype='xmlnocheck',messagetype='xmlnocheck',filenamein=filenamein,filenameout=filenametmp,processing_instructions=[('xml-stylesheet' ,'href="mystylesheet.xsl" type="text/xml"'),('type-of-ppi' ,'attr1="value1" attr2="value2"')])
utilsunit.readwrite(editype='xml',messagetype='xmlorder',filenamein=filenametmp,filenameout=filenameout,processing_instructions=[('xml-stylesheet' ,'href="mystylesheet.xsl" type="text/xml"'),('type-of-ppi' ,'attr1="value1" attr2="value2"')])
self.failUnless(filecmp.cmp('bots/' + filenameout,'bots/' + filenamein))
def testxml17(self):
''' check xml; read processing_instructions&doctype&comments. Do not write these.'''
filenamein='botssys/infile/unitinmessagexml/xml/inisout17.xml'
filenameout='botssys/infile/unitinmessagexml/output/inisout17.xml'
filenamecmp='botssys/infile/unitinmessagexml/xml/inisout02.xml'
utilsunit.readwrite(editype='xml',messagetype='xmlorder',filenamein=filenamein,filenameout=filenameout)
self.failUnless(filecmp.cmp('bots/' + filenameout,'bots/' + filenamecmp))
def testxml18(self):
''' check xml; read processing_instructions&doctype&comments. Do not write these.'''
filenamein='botssys/infile/unitinmessagexml/xml/inisout17.xml'
filenametmp='botssys/infile/unitinmessagexml/output/inisout18tmp.xml'
filenameout='botssys/infile/unitinmessagexml/output/inisout18.xml'
filenamecmp='botssys/infile/unitinmessagexml/xml/inisout02.xml'
utilsunit.readwrite(editype='xmlnocheck',messagetype='xmlnocheck',filenamein=filenamein,filenameout=filenametmp)
utilsunit.readwrite(editype='xml',messagetype='xmlorder',filenamein=filenametmp,filenameout=filenameout)
self.failUnless(filecmp.cmp('bots/' + filenameout,'bots/' + filenamecmp))
def testxml19(self):
''' check xml; indented; use lot of options.'''
filenamein='botssys/infile/unitinmessagexml/xml/inisout02.xml'
filenameout='botssys/infile/unitinmessagexml/output/inisout19.xml'
filenamecmp='botssys/infile/unitinmessagexml/xml/inisout19.xml'
utilsunit.readwrite(editype='xml',messagetype='xmlorder',filenamein=filenamein,filenameout=filenameout,indented=True,standalone='yes',DOCTYPE = 'mydoctype SYSTEM "mydoctype.dtd"',processing_instructions=[('xml-stylesheet' ,'href="mystylesheet.xsl" type="text/xml"'),('type-of-ppi' ,'attr1="value1" attr2="value2"')])
self.failUnless(filecmp.cmp('bots/' + filenameout,'bots/' + filenamecmp))
def testxml20(self):
''' check xml; indented; use lot of options.'''
filenamein='botssys/infile/unitinmessagexml/xml/inisout02.xml'
filenametmp='botssys/infile/unitinmessagexml/output/inisout20tmp.xml'
filenameout='botssys/infile/unitinmessagexml/output/inisout20.xml'
filenamecmp='botssys/infile/unitinmessagexml/xml/inisout19.xml'
utilsunit.readwrite(editype='xmlnocheck',messagetype='xmlnocheck',filenamein=filenamein,filenameout=filenametmp,indented=True,standalone='yes',DOCTYPE = 'mydoctype SYSTEM "mydoctype.dtd"',processing_instructions=[('xml-stylesheet' ,'href="mystylesheet.xsl" type="text/xml"'),('type-of-ppi' ,'attr1="value1" attr2="value2"')])
utilsunit.readwrite(editype='xml',messagetype='xmlorder',filenamein=filenametmp,filenameout=filenameout,indented=True,standalone='yes',DOCTYPE = 'mydoctype SYSTEM "mydoctype.dtd"',processing_instructions=[('xml-stylesheet' ,'href="mystylesheet.xsl" type="text/xml"'),('type-of-ppi' ,'attr1="value1" attr2="value2"')])
self.failUnless(filecmp.cmp('bots/' + filenameout,'bots/' + filenamecmp))
if __name__ == '__main__':
botsinit.generalinit('config')
#~ botslib.initbotscharsets()
botsinit.initenginelogging()
shutil.rmtree('bots/botssys/infile/unitinmessagexml/output',ignore_errors=True) #remove whole output directory
os.mkdir('bots/botssys/infile/unitinmessagexml/output')
unittest.main()
| [
[
1,
0,
0.0036,
0.0036,
0,
0.66,
0,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.0073,
0.0036,
0,
0.66,
0.0833,
88,
0,
1,
0,
0,
88,
0,
0
],
[
1,
0,
0.0109,
0.0036,
0,
0.... | [
"import os",
"import unittest",
"import shutil",
"import bots.inmessage as inmessage",
"import bots.outmessage as outmessage",
"import filecmp",
"import bots.botslib as botslib",
"import bots.botsinit as botsinit",
"import utilsunit",
"''' pluging unitinmessagexml.zip'''",
"class TestInmessage(u... |
#!/usr/bin/env python
from bots import webserver
if __name__ == '__main__':
webserver.start()
| [
[
1,
0,
0.4,
0.2,
0,
0.66,
0,
261,
0,
1,
0,
0,
261,
0,
0
],
[
4,
0,
0.9,
0.4,
0,
0.66,
1,
0,
0,
0,
0,
0,
0,
0,
1
],
[
8,
1,
1,
0.2,
1,
0.21,
0,
511,
3,
... | [
"from bots import webserver",
"if __name__ == '__main__':\n webserver.start()",
" webserver.start()"
] |
import filecmp
import glob
import shutil
import os
import sys
import subprocess
import logging
import logging
import bots.botslib as botslib
import bots.botsinit as botsinit
import bots.botsglobal as botsglobal
from bots.botsconfig import *
'''plugin unitretry.zip'''
#!!!activate rotues
''' input: mime (complex structure); 2 different edi attachments, and ' tekst' attachemnt
some user scripts are written in this unit test; so one runs errors will occur; write user script which prevents error in next run
before running: delete all transactions.
runs OK if no errors in unit tests
'''
def dummylogger():
botsglobal.logger = logging.getLogger('dummy')
botsglobal.logger.setLevel(logging.ERROR)
botsglobal.logger.addHandler(logging.StreamHandler(sys.stdout))
def getlastreport():
for row in botslib.query(u'''SELECT *
FROM report
ORDER BY idta DESC
'''):
#~ print row
return row
def mycompare(dict1,dict2):
for key,value in dict1.items():
if value != dict2[key]:
raise Exception('error comparing "%s": should be %s but is %s (in db),'%(key,value,dict2[key]))
def scriptwrite(path,content):
f = open(path,'w')
f.write(content)
f.close()
if __name__ == '__main__':
pythoninterpreter = 'python2.7'
newcommand = [pythoninterpreter,'bots-engine.py',]
retrycommand = [pythoninterpreter,'bots-engine.py','--retry']
botsinit.generalinit('config')
botssys = botsglobal.ini.get('directories','botssys')
usersys = botsglobal.ini.get('directories','usersysabs')
dummylogger()
botsinit.connect()
try:
os.remove(os.path.join(usersys,'mappings','edifact','unitretry_2.py'))
os.remove(os.path.join(usersys,'mappings','edifact','unitretry_2.pyc'))
except:
pass
scriptwrite(os.path.join(usersys,'mappings','edifact','unitretry_2.py'),
'''
import bots.transform as transform
def main(inn,out):
raise Exception('test mapping')
transform.inn2out(inn,out)''')
#~ os.remove(os.path.join(usersys,'communicationscripts','unitretry_mime1_in.py'))
#~ os.remove(os.path.join(usersys,'communicationscripts','unitretry_mime1_in.pyc'))
scriptwrite(os.path.join(usersys,'communicationscripts','unitretry_mime1_in.py'),
'''
def accept_incoming_attachment(channeldict,ta,charset,content,contenttype):
if not content.startswith('UNB'):
raise Exception('test')
return True
''')
#
#new; error in mime-handling
subprocess.call(newcommand)
mycompare({'status':1,'lastreceived':1,'lasterror':1,'lastdone':0,'send':0},getlastreport())
#retry: again same error
subprocess.call(retrycommand)
mycompare({'status':1,'lastreceived':1,'lasterror':1,'lastdone':0,'send':0},getlastreport())
#
os.remove(os.path.join(usersys,'communicationscripts','unitretry_mime1_in.py'))
os.remove(os.path.join(usersys,'communicationscripts','unitretry_mime1_in.pyc'))
scriptwrite(os.path.join(usersys,'communicationscripts','unitretry_mime1_in.py'),
'''
def accept_incoming_attachment(channeldict,ta,charset,content,contenttype):
if not content.startswith('UNB'):
return False
return True
''')
#retry: mime is OK< but mapping error will occur
subprocess.call(retrycommand)
mycompare({'status':1,'lastreceived':1,'lasterror':1,'lastdone':0,'send':1},getlastreport())
#retry: mime is OK, same mapping error
subprocess.call(retrycommand)
mycompare({'status':1,'lastreceived':1,'lasterror':1,'lastdone':0,'send':0},getlastreport())
os.remove(os.path.join(usersys,'mappings','edifact','unitretry_2.py'))
os.remove(os.path.join(usersys,'mappings','edifact','unitretry_2.pyc'))
scriptwrite(os.path.join(usersys,'mappings','edifact','unitretry_2.py'),
'''
import bots.transform as transform
def main(inn,out):
transform.inn2out(inn,out)''')
#retry: whole translation is OK
subprocess.call(retrycommand)
mycompare({'status':0,'lastreceived':1,'lasterror':0,'lastdone':1,'send':2},getlastreport())
#new; whole transaltion is OK
subprocess.call(newcommand)
mycompare({'status':0,'lastreceived':1,'lasterror':0,'lastdone':1,'send':2},getlastreport())
logging.shutdown()
botsglobal.db.close | [
[
1,
0,
0.0081,
0.0081,
0,
0.66,
0,
891,
0,
1,
0,
0,
891,
0,
0
],
[
1,
0,
0.0161,
0.0081,
0,
0.66,
0.0556,
958,
0,
1,
0,
0,
958,
0,
0
],
[
1,
0,
0.0242,
0.0081,
0,
... | [
"import filecmp",
"import glob",
"import shutil",
"import os",
"import sys",
"import subprocess",
"import logging",
"import logging",
"import bots.botslib as botslib",
"import bots.botsinit as botsinit",
"import bots.botsglobal as botsglobal",
"from bots.botsconfig import *",
"'''plugin unit... |
import unittest
import bots.botslib as botslib
import bots.botsinit as botsinit
import bots.grammar as grammar
import bots.inmessage as inmessage
import bots.outmessage as outmessage
import utilsunit
''' plugin unitgrammar.zip '''
class TestGrammar(unittest.TestCase):
def testgeneralgrammarerrors(self):
self.assertRaises(botslib.GrammarError,grammar.grammarread,'flup','edifact') #not eexisting editype
self.assertRaises(botslib.GrammarError,grammar.syntaxread,'grammars','flup','edifact') #not eexisting editype
self.assertRaises(ImportError,grammar.grammarread,'edifact','flup') #not existing messagetype
self.assertRaises(ImportError,grammar.syntaxread,'grammars','edifact','flup') #not existing messagetype
self.assertRaises(botslib.GrammarError,grammar.grammarread,'test','test3') #no structure
self.assertRaises(ImportError,grammar.grammarread,'test','test4') #No tabel - Reference to not-existing tabel
self.assertRaises(botslib.ScriptImportError,grammar.grammarread,'test','test5') #Error in tabel: structure is not valid python list (syntax-error)
self.assertRaises(botslib.GrammarError,grammar.grammarread,'test','test6') #Error in tabel: record in structure not in recorddefs
self.assertRaises(ImportError,grammar.grammarread,'edifact','test7') #error in syntax
self.assertRaises(ImportError,grammar.syntaxread,'grammars','edifact','test7') #error in syntax
def testgramfieldedifact_and_general(self):
tabel = grammar.grammarread('edifact','edifact')
gramfield = tabel._checkfield
#edifact formats to bots formats
field = ['S001.0001','M', 1,'A']
fieldresult = ['S001.0001','M', 1,'A',True,0,0,'A']
gramfield(field,'')
self.assertEqual(field,fieldresult)
field = ['S001.0001','M', 4,'N']
fieldresult = ['S001.0001','M', 4,'N',True,0,0,'R']
gramfield(field,'')
self.assertEqual(field,fieldresult)
field = ['S001.0001','M', 4,'AN']
fieldresult = ['S001.0001','M', 4,'AN',True,0,0,'A']
gramfield(field,'')
self.assertEqual(field,fieldresult)
#min&max length
field = ['S001.0001','M', (2,4),'AN']
fieldresult = ['S001.0001','M', 4,'AN',True,0,2,'A']
gramfield(field,'')
self.assertEqual(field,fieldresult)
field = ['S001.0001','M', (0,4),'AN']
fieldresult = ['S001.0001','M', 4,'AN',True,0,0,'A']
gramfield(field,'')
self.assertEqual(field,fieldresult)
#decimals
field = ['S001.0001','M', 3.2,'N']
fieldresult = ['S001.0001','M', 3,'N',True,2,0,'R']
gramfield(field,'')
self.assertEqual(field,fieldresult)
field = ['S001.0001','M', (4,4.3),'N']
fieldresult = ['S001.0001','M', 4,'N',True,3,4,'R']
gramfield(field,'')
self.assertEqual(field,fieldresult),
field = ['S001.0001','M', (3.2,4.2),'N']
fieldresult = ['S001.0001','M', 4,'N',True,2,3,'R']
gramfield(field,'')
self.assertEqual(field,fieldresult),
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
#test all types of fields (I,R,N,A,D,T); tests not needed repeat for other editypes
#check field itself
self.assertRaises(botslib.GrammarError,gramfield,['S001.0001','M'],'')
self.assertRaises(botslib.GrammarError,gramfield,['S001.0001','M',],'')
self.assertRaises(botslib.GrammarError,gramfield,['S001.0001','M',4],'')
self.assertRaises(botslib.GrammarError,gramfield,['S001.0001','M',4,'','M', 4,'','M'],'')
self.assertRaises(botslib.GrammarError,gramfield,['S001.0001','M',4,'','M', 4,''],'')
#check ID
self.assertRaises(botslib.GrammarError,gramfield,['','M', 4,'A'],'')
self.assertRaises(botslib.GrammarError,gramfield,[None,'M', 4,'A'],'')
#check M/C
self.assertRaises(botslib.GrammarError,gramfield,['S001.0001','A',4,'I'],'')
self.assertRaises(botslib.GrammarError,gramfield,['S001.0001','',4,'I'],'')
self.assertRaises(botslib.GrammarError,gramfield,['S001.0001',[],4,'I'],'')
self.assertRaises(botslib.GrammarError,gramfield,['S001.0001','MC',4,'I'],'')
#check format
self.assertRaises(botslib.GrammarError,gramfield,['S001.0001','M',4,'I'],'')
self.assertRaises(botslib.GrammarError,gramfield,['S001.0001','M',4,'N7'],'')
self.assertRaises(botslib.GrammarError,gramfield,['S001.0001','M',4,''],'')
self.assertRaises(botslib.GrammarError,gramfield,['S001.0001','M',4,5],'')
#check length
self.assertRaises(botslib.GrammarError,gramfield,['S001.0001','M','N','N'],'')
self.assertRaises(botslib.GrammarError,gramfield,['S001.0001','M',0,'N'],'')
self.assertRaises(botslib.GrammarError,gramfield,['S001.0001','M',-2,'N'],'')
self.assertRaises(botslib.GrammarError,gramfield,['S001.0001','M',-3.2,'N'],'')
#length for formats without float
self.assertRaises(botslib.GrammarError,gramfield,['S001.0001','M',2.1,'A'],'')
self.assertRaises(botslib.GrammarError,gramfield,['S001.0001','M',(2.1,3),'A'],'')
self.assertRaises(botslib.GrammarError,gramfield,['S001.0001','M',(2,3.2),'A'],'')
self.assertRaises(botslib.GrammarError,gramfield,['S001.0001','M',(3,2),'A'],'')
#length for formats with float
self.assertRaises(botslib.GrammarError,gramfield,['S001.0001','M',1.1,'N'],'')
self.assertRaises(botslib.GrammarError,gramfield,['S001.0001','M',('A',5),'N'],'')
self.assertRaises(botslib.GrammarError,gramfield,['S001.0001','M',(-1,1),'N'],'')
self.assertRaises(botslib.GrammarError,gramfield,['S001.0001','M',(5,None),'N'],'')
self.assertRaises(botslib.GrammarError,gramfield,['S001.0001','M',(0,1.1),'N'],'')
self.assertRaises(botslib.GrammarError,gramfield,['S001.0001','M',(0,0),'N'],'')
self.assertRaises(botslib.GrammarError,gramfield,['S001.0001','M',(2,1),'N'],'')
def testgramfieldx12(self):
tabel = grammar.grammarread('x12','x12')
gramfield = tabel._checkfield
#x12 formats to bots formats
field = ['S001.0001','M', 1,'AN']
fieldresult = ['S001.0001','M', 1,'AN',True,0,0,'A']
gramfield(field,'')
self.assertEqual(field,fieldresult)
field = ['S001.0001','M', 4,'DT']
fieldresult = ['S001.0001','M', 4,'DT',True,0,0,'D']
gramfield(field,'')
self.assertEqual(field,fieldresult)
field = ['S001.0001','M', 4,'TM']
fieldresult = ['S001.0001','M', 4,'TM',True,0,0,'T']
gramfield(field,'')
self.assertEqual(field,fieldresult)
field = ['S001.0001','M', 4,'B']
fieldresult = ['S001.0001','M', 4,'B',True,0,0,'A']
gramfield(field,'')
self.assertEqual(field,fieldresult)
field = ['S001.0001','M', 4,'ID']
fieldresult = ['S001.0001','M', 4,'ID',True,0,0,'A']
gramfield(field,'')
self.assertEqual(field,fieldresult)
field = ['S001.0001','M', 4,'R']
fieldresult = ['S001.0001','M', 4,'R',True,0,0,'R']
gramfield(field,'')
self.assertEqual(field,fieldresult)
field = ['S001.0001','M', 4,'N']
fieldresult = ['S001.0001','M', 4,'N',True,0,0,'I']
gramfield(field,'')
self.assertEqual(field,fieldresult)
field = ['S001.0001','M', 4,'N0']
fieldresult = ['S001.0001','M', 4,'N0',True,0,0,'I']
gramfield(field,'')
self.assertEqual(field,fieldresult)
field = ['S001.0001','M', 4,'N3']
fieldresult = ['S001.0001','M', 4,'N3',True,3,0,'I']
gramfield(field,'')
self.assertEqual(field,fieldresult)
field = ['S001.0001','M', 4,'N9']
fieldresult = ['S001.0001','M', 4,'N9',True,9,0,'I']
gramfield(field,'')
self.assertEqual(field,fieldresult)
#decimals
field = ['S001.0001','M', 3,'R']
fieldresult = ['S001.0001','M', 3,'R',True,0,0,'R']
gramfield(field,'')
self.assertEqual(field,fieldresult)
field = ['S001.0001','M',4.3,'R']
fieldresult = ['S001.0001','M', 4,'R',True,3,0,'R']
gramfield(field,'')
self.assertEqual(field,fieldresult)
self.assertRaises(botslib.GrammarError,gramfield,['S001.0001','M',4,'D'],'')
self.assertRaises(botslib.GrammarError,gramfield,['S001.0001','M',4.3,'I'],'')
self.assertRaises(botslib.GrammarError,gramfield,['S001.0001','M',4.3,'NO'],'')
def testgramfieldfixed(self):
tabel = grammar.grammarread('fixed','invoicfixed')
gramfield = tabel._checkfield
#fixed formats to bots formats
field = ['S001.0001','M', 1,'A']
fieldresult = ['S001.0001','M', 1,'A',True,0,1,'A']
gramfield(field,'')
self.assertEqual(field,fieldresult)
field = ['S001.0001','M', 4,'D']
fieldresult = ['S001.0001','M', 4,'D',True,0,4,'D']
gramfield(field,'')
self.assertEqual(field,fieldresult)
field = ['S001.0001','M', 4,'T']
fieldresult = ['S001.0001','M', 4,'T',True,0,4,'T']
gramfield(field,'')
self.assertEqual(field,fieldresult)
field = ['S001.0001','M', 4,'R']
fieldresult = ['S001.0001','M', 4,'R',True,0,4,'R']
gramfield(field,'')
self.assertEqual(field,fieldresult)
field = ['S001.0001','M', 4.3,'N']
fieldresult = ['S001.0001','M', 4,'N',True,3,4,'N']
gramfield(field,'')
self.assertEqual(field,fieldresult)
field = ['S001.0001','M', 4.3,'I']
fieldresult = ['S001.0001','M', 4,'I',True,3,4,'I']
gramfield(field,'')
self.assertEqual(field,fieldresult)
field = ['S001.0001','M',4.3,'R']
fieldresult = ['S001.0001','M', 4,'R',True,3,4,'R']
gramfield(field,'')
self.assertEqual(field,fieldresult)
self.assertRaises(botslib.GrammarError,gramfield,['S001.0001','M',4,'B'],'')
if __name__ == '__main__':
botsinit.generalinit('config')
#~ botslib.initbotscharsets()
botsinit.initenginelogging()
unittest.main()
| [
[
1,
0,
0.0044,
0.0044,
0,
0.66,
0,
88,
0,
1,
0,
0,
88,
0,
0
],
[
1,
0,
0.0088,
0.0044,
0,
0.66,
0.1111,
816,
0,
1,
0,
0,
816,
0,
0
],
[
1,
0,
0.0132,
0.0044,
0,
0.... | [
"import unittest",
"import bots.botslib as botslib",
"import bots.botsinit as botsinit",
"import bots.grammar as grammar",
"import bots.inmessage as inmessage",
"import bots.outmessage as outmessage",
"import utilsunit",
"''' plugin unitgrammar.zip '''",
"class TestGrammar(unittest.TestCase):\n\n ... |
import unittest
import bots.botsglobal as botsglobal
import bots.inmessage as inmessage
import bots.botslib as botslib
import bots.transform as transform
import pickle
import bots.botsinit as botsinit
import utilsunit
'''plugin unittranslateutils.zip '''
#as the max length is
class TestTranslate(unittest.TestCase):
def setUp(self):
pass
def testpersist(self):
#~ inn = inmessage.edifromfile(editype='edifact',messagetype='orderswithenvelope',filename='botssys/infile/tests/inisout02.edi')
domein=u'test'
botskey=u'test'
value= u'xxxxxxxxxxxxxxxxx'
value2= u'IEFJUKAHE*FMhrt4hr f.wch shjeriw'
value3= u'1'*3024
transform.persist_delete(domein,botskey)
#~ self.assertRaises(botslib.PersistError,transform.persist_add,domein,botskey,value3) #content is too long
transform.persist_add(domein,botskey,value)
self.assertRaises(botslib.PersistError,transform.persist_add,domein,botskey,value) #is already present
self.assertEqual(value,transform.persist_lookup(domein,botskey),'basis')
transform.persist_update(domein,botskey,value2)
self.assertEqual(value2,transform.persist_lookup(domein,botskey),'basis')
#~ self.assertRaises(botslib.PersistError,transform.persist_update,domein,botskey,value3) #content is too long
transform.persist_delete(domein,botskey)
self.assertEqual(None,transform.persist_lookup(domein,botskey),'basis')
transform.persist_update(domein,botskey,value) #test-tet is not there. gives no error...
def testpersistunicode(self):
domein=u'test'
botskey=u'1235:\ufb52\ufb66\ufedb'
value= u'xxxxxxxxxxxxxxxxx'
value2= u'IEFJUKAHE*FMhr\u0302\u0267t4hr f.wch shjeriw'
value3= u'1'*1024
transform.persist_delete(domein,botskey)
#~ self.assertRaises(botslib.PersistError,transform.persist_add,domein,botskey,value3) #content is too long
transform.persist_add(domein,botskey,value)
self.assertRaises(botslib.PersistError,transform.persist_add,domein,botskey,value) #is already present
self.assertEqual(value,transform.persist_lookup(domein,botskey),'basis')
transform.persist_update(domein,botskey,value2)
self.assertEqual(value2,transform.persist_lookup(domein,botskey),'basis')
#~ self.assertRaises(botslib.PersistError,transform.persist_update,domein,botskey,value3) #content is too long
transform.persist_delete(domein,botskey)
self.assertEqual(None,transform.persist_lookup(domein,botskey),'basis')
transform.persist_update(domein,botskey,value) #is not there. gives no error...
def testcodeconversion(self):
self.assertEqual('TESTOUT',transform.codeconversion('aperakrff2qualifer','TESTIN'),'basis')
self.assertRaises(botslib.CodeConversionError,transform.codeconversion,'aperakrff2qualifer','TESTINNOT')
self.assertEqual('TESTIN',transform.rcodeconversion('aperakrff2qualifer','TESTOUT'),'basis')
self.assertRaises(botslib.CodeConversionError,transform.rcodeconversion,'aperakrff2qualifer','TESTINNOT')
#need article in ccodelist:
self.assertEqual('TESTOUT',transform.codetconversion('artikel','TESTIN'),'basis')
self.assertRaises(botslib.CodeConversionError,transform.codetconversion,'artikel','TESTINNOT')
self.assertEqual('TESTIN',transform.rcodetconversion('artikel','TESTOUT'),'basis')
self.assertRaises(botslib.CodeConversionError,transform.rcodetconversion,'artikel','TESTINNOT')
self.assertEqual('TESTATTR1',transform.codetconversion('artikel','TESTIN','attr1'),'basis')
def testunique(self):
newdomain = 'test' + transform.unique('test')
self.assertEqual('1',transform.unique(newdomain),'init new domain')
self.assertEqual('2',transform.unique(newdomain),'next one')
def testunique(self):
newdomain = 'test' + transform.unique('test')
self.assertEqual(True,transform.checkunique(newdomain,1),'init new domain')
self.assertEqual(False,transform.checkunique(newdomain,1),'seq should be 2')
self.assertEqual(False,transform.checkunique(newdomain,3),'seq should be 2')
self.assertEqual(True,transform.checkunique(newdomain,2),'next one')
def testean(self):
self.assertEqual('123456789012',transform.addeancheckdigit('12345678901'),'UPC')
self.assertEqual('2',transform.calceancheckdigit('12345678901'),'UPC')
self.assertEqual(True,transform.checkean('123456789012'),'UPC')
self.assertEqual(False,transform.checkean('123456789011'),'UPC')
self.assertEqual(False,transform.checkean('123456789013'),'UPC')
self.assertEqual('123456789012',transform.addeancheckdigit('12345678901'),'UPC')
self.assertEqual('2',transform.calceancheckdigit('12345678901'),'UPC')
self.assertEqual(True,transform.checkean('123456789012'),'UPC')
self.assertEqual(False,transform.checkean('123456789011'),'UPC')
self.assertEqual(False,transform.checkean('123456789013'),'UPC')
self.assertEqual('12345670',transform.addeancheckdigit('1234567'),'EAN8')
self.assertEqual('0',transform.calceancheckdigit('1234567'),'EAN8')
self.assertEqual(True,transform.checkean('12345670'),'EAN8')
self.assertEqual(False,transform.checkean('12345679'),'EAN8')
self.assertEqual(False,transform.checkean('12345671'),'EAN8')
self.assertEqual('1234567890128',transform.addeancheckdigit('123456789012'),'EAN13')
self.assertEqual('8',transform.calceancheckdigit('123456789012'),'EAN13')
self.assertEqual(True,transform.checkean('1234567890128'),'EAN13')
self.assertEqual(False,transform.checkean('1234567890125'),'EAN13')
self.assertEqual(False,transform.checkean('1234567890120'),'EAN13')
self.assertEqual('12345678901231',transform.addeancheckdigit('1234567890123'),'EAN14')
self.assertEqual('1',transform.calceancheckdigit('1234567890123'),'EAN14')
self.assertEqual(True,transform.checkean('12345678901231'),'EAN14')
self.assertEqual(False,transform.checkean('12345678901230'),'EAN14')
self.assertEqual(False,transform.checkean('12345678901236'),'EAN14')
self.assertEqual('123456789012345675',transform.addeancheckdigit('12345678901234567'),'UPC')
self.assertEqual('5',transform.calceancheckdigit('12345678901234567'),'UPC')
self.assertEqual(True,transform.checkean('123456789012345675'),'UPC')
self.assertEqual(False,transform.checkean('123456789012345670'),'UPC')
self.assertEqual(False,transform.checkean('123456789012345677'),'UPC')
if __name__ == '__main__':
botsinit.generalinit('config')
botsinit.initenginelogging()
botsinit.connect()
try:
unittest.main()
except:
pass
botsglobal.db.close()
| [
[
1,
0,
0.0081,
0.0081,
0,
0.66,
0,
88,
0,
1,
0,
0,
88,
0,
0
],
[
1,
0,
0.0161,
0.0081,
0,
0.66,
0.1,
662,
0,
1,
0,
0,
662,
0,
0
],
[
1,
0,
0.0242,
0.0081,
0,
0.66,... | [
"import unittest",
"import bots.botsglobal as botsglobal",
"import bots.inmessage as inmessage",
"import bots.botslib as botslib",
"import bots.transform as transform",
"import pickle",
"import bots.botsinit as botsinit",
"import utilsunit",
"'''plugin unittranslateutils.zip '''",
"class TestTrans... |
import unittest
import filecmp
import glob
import shutil
import os
import subprocess
import logging
import utilsunit
import bots.botslib as botslib
import bots.botsinit as botsinit
import bots.botsglobal as botsglobal
from bots.botsconfig import *
'''
plugin unitconfirm.zip
before each run: clear transactions!
'''
botssys = 'bots/botssys'
class TestMain(unittest.TestCase):
def testroutetestmdn(self):
lijst = utilsunit.getdir(os.path.join(botssys,'outfile/confirm/mdn/*'))
self.failUnless(len(lijst)==0)
nr_rows = 0
for row in botslib.query(u'''SELECT idta,confirmed,confirmidta
FROM ta
WHERE status=%(status)s
AND statust=%(statust)s
AND idroute=%(idroute)s
AND confirmtype=%(confirmtype)s
AND confirmasked=%(confirmasked)s
ORDER BY idta DESC
''',
{'status':210,'statust':DONE,'idroute':'testmdn','confirmtype':'send-email-MDN','confirmasked':True}):
nr_rows += 1
self.failUnless(row[1])
self.failUnless(row[2]!=0)
else:
self.failUnless(nr_rows==1)
nr_rows = 0
for row in botslib.query(u'''SELECT idta,confirmed,confirmidta
FROM ta
WHERE status=%(status)s
AND statust=%(statust)s
AND idroute=%(idroute)s
AND confirmtype=%(confirmtype)s
AND confirmasked=%(confirmasked)s
ORDER BY idta DESC
''',
{'status':510,'statust':DONE,'idroute':'testmdn','confirmtype':'ask-email-MDN','confirmasked':True}):
nr_rows += 1
self.failUnless(row[1])
self.failUnless(row[2]!=0)
else:
self.failUnless(nr_rows==1)
def testroutetestmdn2(self):
lijst = utilsunit.getdir(os.path.join(botssys,'outfile/confirm/mdn2/*'))
self.failUnless(len(lijst)==0)
nr_rows = 0
for row in botslib.query(u'''SELECT idta,confirmed,confirmidta
FROM ta
WHERE status=%(status)s
AND statust=%(statust)s
AND idroute=%(idroute)s
AND confirmtype=%(confirmtype)s
AND confirmasked=%(confirmasked)s
ORDER BY idta DESC
''',
{'status':510,'statust':DONE,'idroute':'testmdn2','confirmtype':'ask-email-MDN','confirmasked':True}):
nr_rows += 1
self.failUnless(not row[1])
self.failUnless(row[2]==0)
else:
self.failUnless(nr_rows==1)
def testrouteotherx12(self):
lijst = utilsunit.getdir(os.path.join(botssys,'outfile/confirm/otherx12/*'))
self.failUnless(len(lijst)==15)
def testroutetest997(self):
'''
test997 1: pickup 850*1 ask confirm 850*2 gen & send 850*2
send confirm 850*1 gen & send 997*1
test997 2: receive 997*1 confirm 850*1 gen xml*1
receive 850*2 ask confirm 850*3 gen 850*3
send confirm 850*2 gen & send 997*2
test997 3: receive 997*2 confirm 850*2 gen & send xml (to trash)
send 850*3 (to trash)
send xml (to trash)
'''
lijst = utilsunit.getdir(os.path.join(botssys,'outfile/confirm/x12/*'))
self.failUnless(len(lijst)==0)
lijst = utilsunit.getdir(os.path.join(botssys,'outfile/confirm/trash/*'))
self.failUnless(len(lijst)==6)
counter=0
for row in botslib.query(u'''SELECT idta,confirmed,confirmidta
FROM ta
WHERE status=%(status)s
AND statust=%(statust)s
AND idroute=%(idroute)s
AND confirmtype=%(confirmtype)s
AND confirmasked=%(confirmasked)s
ORDER BY idta DESC
''',
{'status':400,'statust':DONE,'idroute':'test997','confirmtype':'ask-x12-997','confirmasked':True}):
counter += 1
if counter == 1:
self.failUnless(not row[1])
self.failUnless(row[2]==0)
elif counter == 2:
self.failUnless(row[1])
self.failUnless(row[2]!=0)
else:
break
else:
self.failUnless(counter!=0)
for row in botslib.query(u'''SELECT idta,confirmed,confirmidta
FROM ta
WHERE status=%(status)s
AND statust=%(statust)s
AND idroute=%(idroute)s
AND confirmtype=%(confirmtype)s
AND confirmasked=%(confirmasked)s
ORDER BY idta DESC
''',
{'status':310,'statust':DONE,'idroute':'test997','confirmtype':'send-x12-997','confirmasked':True}):
counter += 1
if counter <= 2:
self.failUnless(row[1])
self.failUnless(row[2]!=0)
else:
break
else:
self.failUnless(counter!=0)
def testroutetestcontrl(self):
'''
test997 1: pickup ORDERS*1 ask confirm ORDERS*2 gen & send ORDERS*2
send confirm ORDERS*1 gen & send CONTRL*1
test997 2: receive CONTRL*1 confirm ORDERS*1 gen xml*1
receive ORDERS*2 ask confirm ORDERS*3 gen ORDERS*3
send confirm ORDERS*2 gen & send CONTRL*2
test997 3: receive CONTRL*2 confirm ORDERS*2 gen & send xml (to trash)
send ORDERS*3 (to trash)
send xml (to trash)
'''
lijst = utilsunit.getdir(os.path.join(botssys,'outfile/confirm/edifact/*'))
self.failUnless(len(lijst)==0)
lijst = utilsunit.getdir(os.path.join(botssys,'outfile/confirm/trash/*'))
self.failUnless(len(lijst)==6)
counter=0
for row in botslib.query(u'''SELECT idta,confirmed,confirmidta
FROM ta
WHERE status=%(status)s
AND statust=%(statust)s
AND idroute=%(idroute)s
AND confirmtype=%(confirmtype)s
AND confirmasked=%(confirmasked)s
ORDER BY idta DESC
''',
{'status':400,'statust':DONE,'idroute':'testcontrl','confirmtype':'ask-edifact-CONTRL','confirmasked':True}):
counter += 1
if counter == 1:
self.failUnless(not row[1])
self.failUnless(row[2]==0)
elif counter == 2:
self.failUnless(row[1])
self.failUnless(row[2]!=0)
else:
break
else:
self.failUnless(counter!=0)
for row in botslib.query(u'''SELECT idta,confirmed,confirmidta
FROM ta
WHERE status=%(status)s
AND statust=%(statust)s
AND idroute=%(idroute)s
AND confirmtype=%(confirmtype)s
AND confirmasked=%(confirmasked)s
ORDER BY idta DESC
''',
{'status':310,'statust':DONE,'idroute':'testcontrl','confirmtype':'send-edifact-CONTRL','confirmasked':True}):
counter += 1
if counter <= 2:
self.failUnless(row[1])
self.failUnless(row[2]!=0)
else:
break
else:
self.failUnless(counter!=0)
if __name__ == '__main__':
pythoninterpreter = 'python'
newcommand = [pythoninterpreter,'bots-engine.py',]
shutil.rmtree(os.path.join(botssys, 'outfile'),ignore_errors=True) #remove whole output directory
subprocess.call(newcommand)
botsinit.generalinit('config')
botsinit.initenginelogging()
botsinit.connect()
print '''expect:
21 files received/processed in run.
17 files without errors,
4 files with errors,
30 files send in run.
'''
unittest.main()
logging.shutdown()
botsglobal.db.close()
| [
[
1,
0,
0.0052,
0.0052,
0,
0.66,
0,
88,
0,
1,
0,
0,
88,
0,
0
],
[
1,
0,
0.0105,
0.0052,
0,
0.66,
0.0833,
891,
0,
1,
0,
0,
891,
0,
0
],
[
1,
0,
0.0157,
0.0052,
0,
0.... | [
"import unittest",
"import filecmp",
"import glob",
"import shutil",
"import os",
"import subprocess",
"import logging",
"import utilsunit",
"import bots.botslib as botslib",
"import bots.botsinit as botsinit",
"import bots.botsglobal as botsglobal",
"from bots.botsconfig import *",
"class T... |
import unittest
import bots.botslib as botslib
import bots.botsinit as botsinit
import bots.inmessage as inmessage
import bots.outmessage as outmessage
from bots.botsconfig import *
import utilsunit
''' plugin unitformats '''
#python 2.6 treats -0 different. in outmessage this is adapted, for inmessage: python 2.6 does this correct
testdummy={MPATH:'dummy for tests'}
class TestFormatFieldVariableOutmessage(unittest.TestCase):
def setUp(self):
self.edi = outmessage.outmessage_init(messagetype='edifact',editype='edifact')
def test_out_formatfield_var_R(self):
self.edi.ta_info['lengthnumericbare']=True
self.edi.ta_info['decimaal']='.'
tfield1 = ['TEST1','M',3,'R',True,0, 0, 'R']
# length decimals minlength format
self.assertEqual(self.edi._formatfield('',tfield1,testdummy), '','empty string')
self.assertEqual(self.edi._formatfield('1',tfield1,testdummy), '1', 'basic')
self.assertEqual(self.edi._formatfield(' 1',tfield1,testdummy), '1', 'basic')
self.assertEqual(self.edi._formatfield('1 ',tfield1,testdummy), '1', 'basic')
self.assertEqual(self.edi._formatfield('0',tfield1,testdummy), '0','zero stays zero')
self.assertEqual(self.edi._formatfield('-0',tfield1,testdummy), '-0','neg.zero stays neg.zero')
self.assertEqual(self.edi._formatfield('-0.00',tfield1,testdummy), '-0.00','')
self.assertEqual(self.edi._formatfield('-.12',tfield1,testdummy), '-0.12','no zero before dec,sign is OK')
self.assertEqual(self.edi._formatfield('123',tfield1,testdummy), '123','numeric field at max')
self.assertEqual(self.edi._formatfield('001',tfield1,testdummy), '1','leading zeroes are removed')
self.assertEqual(self.edi._formatfield('0.10',tfield1,testdummy), '0.10','keep zeroes after last dec.digit')
self.assertEqual(self.edi._formatfield('-1.23',tfield1,testdummy), '-1.23','numeric field at max with minus and decimal sign')
self.assertEqual(self.edi._formatfield('0001',tfield1,testdummy), '1','strips leading zeroes if possobel')
self.assertEqual(self.edi._formatfield('+123',tfield1,testdummy), '123','strips leading zeroes if possobel')
self.edi.ta_info['decimaal']=','
self.assertEqual(self.edi._formatfield('1.23',tfield1,testdummy), '1,23','other dec.sig, replace')
self.edi.ta_info['decimaal']='.'
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'1234',tfield1,testdummy) #field too large
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'-1.234',tfield1,testdummy) #field too large
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'1<3',tfield1,testdummy) #wrong char
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'1-3',tfield1,testdummy) #'-' in middel of number
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'123-',tfield1,testdummy) #'-' at end of number
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'1,3',tfield1,testdummy) #',', where ',' is not traid sep.
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'1+3',tfield1,testdummy) #'+' in middle of number (no exp)
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'1E3',tfield1,testdummy) #'+' in middle of number (no exp)
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'13+',tfield1,testdummy) #'+' at end
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'0.100',tfield1,testdummy) #field too big
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'.',tfield1,testdummy) #no num
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'-',tfield1,testdummy) #no num
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'.001',tfield1,testdummy) #bots adds 0 before dec, thus too big
#~ #test filling up to min length
tfield2 = ['TEST1', 'M', 8, 'R', True, 0, 5,'R']
self.assertEqual(self.edi._formatfield('12345',tfield2,testdummy), '12345','just large enough')
self.assertEqual(self.edi._formatfield('0.1000',tfield2,testdummy), '0.1000','keep zeroes after last dec.digit')
self.assertEqual(self.edi._formatfield('00001',tfield2,testdummy), '00001','keep leading zeroes')
self.assertEqual(self.edi._formatfield('123',tfield2,testdummy), '00123','add leading zeroes')
self.assertEqual(self.edi._formatfield('.1',tfield2,testdummy), '0000.1','add leading zeroes')
#~ #test exp
self.assertEqual(self.edi._formatfield('12E+3',tfield2,testdummy), '12000','Exponent notation is possible')
self.assertEqual(self.edi._formatfield('12E3',tfield2,testdummy), '12000','Exponent notation is possible->to std notation')
self.assertEqual(self.edi._formatfield('12e+3',tfield2,testdummy), '12000','Exponent notation is possible; e->E')
self.assertEqual(self.edi._formatfield('12e3',tfield2,testdummy), '12000','Exponent notation is possible; e->E')
self.assertEqual(self.edi._formatfield('12345E+3',tfield2,testdummy), '12345000','do not count + and E')
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'12345678E+3',tfield2,testdummy) #too big with exp
tfield3 = ['TEST1', 'M', 8, 'R', True, 3, 5,'R']
#~ print '\n>>>',self.edi._formatfield('12E-3',tfield3,testdummy)
#~ self.assertEqual(self.edi._formatfield('12E-3',tfield3,testdummy), '00.012','Exponent notation is possible')
#~ self.assertEqual(self.edi._formatfield('12e-3',tfield2,testdummy), '00.012','Exponent notation is possible; e->E')
#~ self.assertEqual(self.edi._formatfield('12345678E-3',tfield2,testdummy), '12345.678','do not count + and E')
#~ self.assertEqual(self.edi._formatfield('12345678E-7',tfield2,testdummy), '1.2345678','do not count + and E')
#~ self.assertEqual(self.edi._formatfield('123456E-7',tfield2,testdummy), '0.0123456','do not count + and E')
#~ self.assertEqual(self.edi._formatfield('1234567E-7',tfield2,testdummy), '0.1234567','do not count + and E')
#~ self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'12345678E-8',tfield2,testdummy) #gets 0.12345678, is too big
#~ self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'12345678E+3',tfield2,testdummy) #too big with exp
tfield4 = ['TEST1', 'M', 80, 'R', True, 3, 0,'R']
self.assertEqual(self.edi._formatfield('12345678901234560',tfield4,testdummy), '12345678901234560','lot of digits')
#test for lentgh checks if:
self.edi.ta_info['lengthnumericbare']=False
self.assertEqual(self.edi._formatfield('-1.45',tfield2,testdummy), '-1.45','just large enough')
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'-12345678',tfield2,testdummy) #field too large
def test_out_formatfield_var_N(self):
self.edi.ta_info['decimaal']='.'
self.edi.ta_info['lengthnumericbare']=True
tfield1 = ['TEST1','M',5,'N',True,2, 0, 'N']
# length decimals minlength format
self.assertEqual(self.edi._formatfield('',tfield1,testdummy), '','empty string')
self.assertEqual(self.edi._formatfield('1',tfield1,testdummy), '1.00', 'basic')
self.assertEqual(self.edi._formatfield(' 1',tfield1,testdummy), '1.00', 'basic')
self.assertEqual(self.edi._formatfield('1 ',tfield1,testdummy), '1.00', 'basic')
self.assertEqual(self.edi._formatfield('0',tfield1,testdummy), '0.00','zero stays zero')
self.assertEqual(self.edi._formatfield('-0',tfield1,testdummy), '-0.00','neg.zero stays neg.zero')
self.assertEqual(self.edi._formatfield('-0.00',tfield1,testdummy), '-0.00','')
self.assertEqual(self.edi._formatfield('-0.001',tfield1,testdummy), '-0.00','')
self.assertEqual(self.edi._formatfield('-.12',tfield1,testdummy), '-0.12','no zero before dec,sign is OK')
self.assertEqual(self.edi._formatfield('123',tfield1,testdummy), '123.00','numeric field at max')
self.assertEqual(self.edi._formatfield('001',tfield1,testdummy), '1.00','leading zeroes are removed')
self.assertEqual(self.edi._formatfield('0.10',tfield1,testdummy), '0.10','keep zeroes after last dec.digit')
self.assertEqual(self.edi._formatfield('123.1049',tfield1,testdummy), '123.10','keep zeroes after last dec.digit')
self.assertEqual(self.edi._formatfield('-1.23',tfield1,testdummy), '-1.23','numeric field at max with minus and decimal sign')
self.assertEqual(self.edi._formatfield('0001',tfield1,testdummy), '1.00','strips leading zeroes if possobel')
self.assertEqual(self.edi._formatfield('+123',tfield1,testdummy), '123.00','strips leading zeroes if possobel')
self.edi.ta_info['decimaal']=','
self.assertEqual(self.edi._formatfield('1.23',tfield1,testdummy), '1,23','other dec.sig, replace')
self.edi.ta_info['decimaal']='.'
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'1234',tfield1,testdummy) #field too large
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'-1234.56',tfield1,testdummy) #field too large
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'1<3',tfield1,testdummy) #wrong char
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'1-3',tfield1,testdummy) #'-' in middel of number
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'123-',tfield1,testdummy) #'-' at end of number
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'1,3',tfield1,testdummy) #',', where ',' is not traid sep.
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'1+3',tfield1,testdummy) #'+' in middle of number (no exp)
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'1E3',tfield1,testdummy) #'+' in middle of number (no exp)
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'13+',tfield1,testdummy) #'+' at end
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'1234.100',tfield1,testdummy) #field too big
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'.',tfield1,testdummy) #no num
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'-',tfield1,testdummy) #no num
# #test filling up to min length
tfield23 = ['TEST1', 'M', 8, 'N', True, 0, 5,'N']
#~ print self.edi._formatfield('12345.5',tfield23,testdummy)
self.assertEqual(self.edi._formatfield('12345.5',tfield23,testdummy), '12346','just large enough')
tfield2 = ['TEST1', 'M', 8, 'N', True, 2, 5,'N']
self.assertEqual(self.edi._formatfield('123.45',tfield2,testdummy), '123.45','just large enough')
self.assertEqual(self.edi._formatfield('123.4549',tfield2,testdummy), '123.45','just large enough')
#~ print self.edi._formatfield('123.455',tfield2,testdummy)
self.assertEqual(self.edi._formatfield('123.455',tfield2,testdummy), '123.46','just large enough')
self.assertEqual(self.edi._formatfield('0.1000',tfield2,testdummy), '000.10','keep zeroes after last dec.digit')
self.assertEqual(self.edi._formatfield('00001',tfield2,testdummy), '001.00','keep leading zeroes')
self.assertEqual(self.edi._formatfield('12',tfield2,testdummy), '012.00','add leading zeroes')
self.assertEqual(self.edi._formatfield('.1',tfield2,testdummy), '000.10','add leading zeroes')
#test exp; bots tries to convert to normal
self.assertEqual(self.edi._formatfield('178E+3',tfield2,testdummy), '178000.00','add leading zeroes')
self.assertEqual(self.edi._formatfield('-178E+3',tfield2,testdummy), '-178000.00','add leading zeroes')
self.assertEqual(self.edi._formatfield('-178e-3',tfield2,testdummy), '-000.18','add leading zeroes')
self.assertEqual(self.edi._formatfield('-178e-5',tfield2,testdummy), '-000.00','add leading zeroes')
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'178E+4',tfield2,testdummy) #too big with exp
tfield4 = ['TEST1', 'M', 80, 'N', True, 3, 0,'N']
self.assertEqual(self.edi._formatfield('12345678901234560',tfield4,testdummy), '12345678901234560.000','lot of digits')
self.assertEqual(self.edi._formatfield('1234567890123456789012345',tfield4,testdummy), '1234567890123456789012345.000','lot of digits')
def test_out_formatfield_var_I(self):
self.edi.ta_info['lengthnumericbare']=True
self.edi.ta_info['decimaal']='.'
tfield1 = ['TEST1','M',5,'I',True,2, 0, 'I']
# length decimals minlength format
self.assertEqual(self.edi._formatfield('',tfield1,testdummy), '','empty string')
self.assertEqual(self.edi._formatfield('1',tfield1,testdummy), '100', 'basic')
self.assertEqual(self.edi._formatfield(' 1',tfield1,testdummy), '100', 'basic')
self.assertEqual(self.edi._formatfield('1 ',tfield1,testdummy), '100', 'basic')
self.assertEqual(self.edi._formatfield('0',tfield1,testdummy), '0','zero stays zero')
self.assertEqual(self.edi._formatfield('-0',tfield1,testdummy), '-0','neg.zero stays neg.zero')
self.assertEqual(self.edi._formatfield('-0.00',tfield1,testdummy), '-0','')
self.assertEqual(self.edi._formatfield('-0.001',tfield1,testdummy), '-0','')
self.assertEqual(self.edi._formatfield('-.12',tfield1,testdummy), '-12','no zero before dec,sign is OK') #TODO: puts ) in front
self.assertEqual(self.edi._formatfield('123',tfield1,testdummy), '12300','numeric field at max')
self.assertEqual(self.edi._formatfield('001',tfield1,testdummy), '100','leading zeroes are removed')
self.assertEqual(self.edi._formatfield('0.10',tfield1,testdummy), '10','keep zeroes after last dec.digit')
self.assertEqual(self.edi._formatfield('123.1049',tfield1,testdummy), '12310','keep zeroes after last dec.digit')
self.assertEqual(self.edi._formatfield('-1.23',tfield1,testdummy), '-123','numeric field at max with minus and decimal sign')
self.assertEqual(self.edi._formatfield('0001',tfield1,testdummy), '100','strips leading zeroes if possobel')
self.assertEqual(self.edi._formatfield('+123',tfield1,testdummy), '12300','strips leading zeroes if possobel')
self.edi.ta_info['decimaal']=','
self.assertEqual(self.edi._formatfield('1.23',tfield1,testdummy), '123','other dec.sig, replace')
self.edi.ta_info['decimaal']='.'
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'1234',tfield1,testdummy) #field too large
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'-1234.56',tfield1,testdummy) #field too large
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'1<3',tfield1,testdummy) #wrong char
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'1-3',tfield1,testdummy) #'-' in middel of number
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'123-',tfield1,testdummy) #'-' at end of number
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'1,3',tfield1,testdummy) #',', where ',' is not traid sep.
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'1+3',tfield1,testdummy) #'+' in middle of number (no exp)
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'1E3',tfield1,testdummy) #'+' in middle of number (no exp)
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'13+',tfield1,testdummy) #'+' at end
self.assertEqual(self.edi._formatfield('+13',tfield1,testdummy), '1300','other dec.sig, replace')
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'1+3',tfield1,testdummy) #'+' in middle of number
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'1234.100',tfield1,testdummy) #field too big
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'.',tfield1,testdummy) #no num
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'-',tfield1,testdummy) #no num
#~ #test filling up to min length
tfield2 = ['TEST1', 'M', 8, 'I', True, 2, 5,'I']
self.assertEqual(self.edi._formatfield('123.45',tfield2,testdummy), '12345','just large enough')
self.assertEqual(self.edi._formatfield('123.4549',tfield2,testdummy), '12345','just large enough')
self.assertEqual(self.edi._formatfield('123.455',tfield2,testdummy), '12346','just large enough')
self.assertEqual(self.edi._formatfield('0.1000',tfield2,testdummy), '00010','keep zeroes after last dec.digit')
self.assertEqual(self.edi._formatfield('00001',tfield2,testdummy), '00100','keep leading zeroes')
self.assertEqual(self.edi._formatfield('12',tfield2,testdummy), '01200','add leading zeroes')
self.assertEqual(self.edi._formatfield('.1',tfield2,testdummy), '00010','add leading zeroes')
#test exp; bots tries to convert to normal
self.assertEqual(self.edi._formatfield('178E+3',tfield2,testdummy), '17800000','add leading zeroes')
self.assertEqual(self.edi._formatfield('-178E+3',tfield2,testdummy), '-17800000','add leading zeroes')
self.assertEqual(self.edi._formatfield('-178e-3',tfield2,testdummy), '-00018','add leading zeroes')
self.assertEqual(self.edi._formatfield('-178e-5',tfield2,testdummy), '-00000','add leading zeroes')
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'178E+4',tfield2,testdummy) #too big with exp
tfield4 = ['TEST1', 'M', 80, 'I', True, 3, 0,'I']
self.assertEqual(self.edi._formatfield('123456789012340',tfield4,testdummy), '123456789012340000','lot of digits')
def test_out_formatfield_var_D(self):
tfield1 = ['TEST1', 'M', 20, 'D', True, 0, 0,'D']
# length decimals minlength
self.assertEqual(self.edi._formatfield('20071001',tfield1,testdummy), '20071001','basic')
self.assertEqual(self.edi._formatfield('071001',tfield1,testdummy), '071001','basic')
self.assertEqual(self.edi._formatfield('99991001',tfield1,testdummy), '99991001','max year')
self.assertEqual(self.edi._formatfield('00011001',tfield1,testdummy), '00011001','min year')
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'2007093112',tfield1,testdummy) #too long
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'20070931',tfield1,testdummy) #no valid date
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'-0070931',tfield1,testdummy) #no valid date
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'70931',tfield1,testdummy) #too short
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'0931',tfield1,testdummy) #too short
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'0931BC',tfield1,testdummy) #alfanum
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'OOOOBC',tfield1,testdummy) #alfanum
def test_out_formatfield_var_T(self):
tfield1 = ['TEST1', 'M', 10, 'T', True, 0, 0,'T']
# length decimals minlength
self.assertEqual(self.edi._formatfield('2359',tfield1,testdummy), '2359','basic')
self.assertEqual(self.edi._formatfield('0000',tfield1,testdummy), '0000','basic')
self.assertEqual(self.edi._formatfield('000000',tfield1,testdummy), '000000','basic')
self.assertEqual(self.edi._formatfield('230000',tfield1,testdummy), '230000','basic')
self.assertEqual(self.edi._formatfield('235959',tfield1,testdummy), '235959','basic')
self.assertEqual(self.edi._formatfield('123456',tfield1,testdummy), '123456','basic')
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'12345678',tfield1,testdummy) #no valid time
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'240001',tfield1,testdummy) #no valid time
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'126101',tfield1,testdummy) #no valid time
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'120062',tfield1,testdummy) #no valid time - python allows 61 secnds?
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'240000',tfield1,testdummy) #no valid time
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'250001',tfield1,testdummy) #no valid time
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'-12000',tfield1,testdummy) #no valid time
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'120',tfield1,testdummy) #no valid time
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'0931233',tfield1,testdummy) #too short
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'11PM',tfield1,testdummy) #alfanum
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'TIME',tfield1,testdummy) #alfanum
tfield2 = ['TEST1', 'M', 4, 'T', True, 0, 4,'T']
# length decimals minlength
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'230001',tfield2,testdummy) #time too long
tfield3 = ['TEST1', 'M', 6, 'T', True, 0, 6,'T']
# length decimals minlength
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'2300',tfield3,testdummy) #time too short
def test_out_formatfield_var_A(self):
tfield1 = ['TEST1', 'M', 5, 'A', True, 0, 0,'A']
# length decimals minlength
self.assertEqual(self.edi._formatfield('abcde',tfield1,testdummy), 'abcde','basic')
self.assertEqual(self.edi._formatfield('',tfield1,testdummy), '','basic')
self.assertEqual(self.edi._formatfield('a b',tfield1,testdummy), 'a b','basic')
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'abcdef',tfield1,testdummy) #no valid date
tfield1 = ['TEST1', 'M', 5, 'A', True, 0, 2,'A']
# length decimals minlength
self.assertEqual(self.edi._formatfield('abcde',tfield1,testdummy), 'abcde','basic')
self.assertEqual(self.edi._formatfield('a b',tfield1,testdummy), 'a b','basic')
self.assertEqual(self.edi._formatfield('aa',tfield1,testdummy), 'aa','basic')
self.assertEqual(self.edi._formatfield('aaa',tfield1,testdummy), 'aaa','basic')
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'a',tfield1,testdummy) #field too small
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,' ',tfield1,testdummy) #field too small
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'',tfield1,testdummy) #field too small
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'abcdef',tfield1,testdummy) #no valid date
class TestFormatFieldFixedOutmessage(unittest.TestCase):
def setUp(self):
self.edi = outmessage.outmessage_init(editype='fixed',messagetype='ordersfixed')
def test_out_formatfield_fixedR(self):
self.edi.ta_info['lengthnumericbare']=False
self.edi.ta_info['decimaal']='.'
tfield1 = ['TEST1','M',3,'R',True,0, 3, 'R']
# length decimals minlength format
self.assertEqual(self.edi._formatfield('',tfield1,testdummy), '000','empty string')
self.assertEqual(self.edi._formatfield('1',tfield1,testdummy), '001', 'basic')
self.assertEqual(self.edi._formatfield(' 1',tfield1,testdummy), '001', 'basic')
self.assertEqual(self.edi._formatfield('1 ',tfield1,testdummy), '001', 'basic')
self.assertEqual(self.edi._formatfield('0',tfield1,testdummy), '000','zero stays zero')
self.assertEqual(self.edi._formatfield('-0',tfield1,testdummy), '-00','neg.zero stays neg.zero')
tfield3 = ['TEST1','M',5,'R',True,2, 3, 'R']
self.assertEqual(self.edi._formatfield('-0.00',tfield3,testdummy), '-0.00','')
self.assertEqual(self.edi._formatfield('0.10',tfield3,testdummy), '0.10','keep zeroes after last dec.digit')
self.assertEqual(self.edi._formatfield('123',tfield1,testdummy), '123','numeric field at max')
self.assertEqual(self.edi._formatfield('001',tfield1,testdummy), '001','leading zeroes are removed')
self.assertEqual(self.edi._formatfield('0001',tfield1,testdummy), '001','strips leading zeroes if possobel')
self.assertEqual(self.edi._formatfield('+123',tfield1,testdummy), '123','strips leading zeroes if possobel')
self.edi.ta_info['decimaal']=','
self.assertEqual(self.edi._formatfield('1.2',tfield1,testdummy), '1,2','other dec.sig, replace')
self.edi.ta_info['decimaal']='.'
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'.12',tfield1,testdummy) #field too large
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'-.12',tfield1,testdummy) #field too large
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'1234',tfield1,testdummy) #field too large
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'-1.234',tfield1,testdummy) #field too large
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'1<3',tfield1,testdummy) #wrong char
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'1-3',tfield1,testdummy) #'-' in middel of number
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'123-',tfield1,testdummy) #'-' at end of number
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'1,3',tfield1,testdummy) #',', where ',' is not traid sep.
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'1+3',tfield1,testdummy) #'+' in middle of number (no exp)
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'1E3',tfield1,testdummy) #'+' in middle of number (no exp)
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'13+',tfield1,testdummy) #'+' at end
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'1+3',tfield1,testdummy) #'+' in middle of number
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'0.100',tfield1,testdummy) #field too big
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'.',tfield1,testdummy) #no num
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'-',tfield1,testdummy) #no num
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'.001',tfield1,testdummy) #bots adds 0 before dec, thus too big
# #test filling up to min length
tfield2 = ['TEST1', 'M', 8, 'R', True, 0, 8,'R']
self.assertEqual(self.edi._formatfield('12345',tfield2,testdummy), '00012345','just large enough')
self.assertEqual(self.edi._formatfield('0.1000',tfield2,testdummy), '000.1000','keep zeroes after last dec.digit')
self.assertEqual(self.edi._formatfield('00001',tfield2,testdummy), '00000001','keep leading zeroes')
self.assertEqual(self.edi._formatfield('123',tfield2,testdummy), '00000123','add leading zeroes')
self.assertEqual(self.edi._formatfield('.1',tfield2,testdummy), '000000.1','add leading zeroes')
self.assertEqual(self.edi._formatfield('-1.23',tfield2,testdummy), '-0001.23','numeric field at max with minus and decimal sign')
#test exp
self.assertEqual(self.edi._formatfield('12E+3',tfield2,testdummy), '00012000','Exponent notation is possible')
self.assertEqual(self.edi._formatfield('12E3',tfield2,testdummy), '00012000','Exponent notation is possible->to std notation')
self.assertEqual(self.edi._formatfield('12e+3',tfield2,testdummy), '00012000','Exponent notation is possible; e->E')
self.assertEqual(self.edi._formatfield('12e3',tfield2,testdummy), '00012000','Exponent notation is possible; e->E')
self.assertEqual(self.edi._formatfield('4567E+3',tfield2,testdummy), '04567000','do not count + and E')
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'12345678E+3',tfield2,testdummy) #too big with exp
#~ #print '>>',self.edi._formatfield('12E-3',tfield2,testdummy)
#~ self.assertEqual(self.edi._formatfield('12E-3',tfield2,testdummy), '0000.012','Exponent notation is possible')
#~ self.assertEqual(self.edi._formatfield('12e-3',tfield2,testdummy), '0000.012','Exponent notation is possible; e->E')
#~ self.assertEqual(self.edi._formatfield('1234567E-3',tfield2,testdummy), '1234.567','do not count + and E')
#~ self.assertEqual(self.edi._formatfield('1234567E-6',tfield2,testdummy), '1.234567','do not count + and E')
#~ self.assertEqual(self.edi._formatfield('123456E-6',tfield2,testdummy), '0.123456','do not count + and E')
#~ self.assertEqual(self.edi._formatfield('-12345E-5',tfield2,testdummy), '-0.12345','do not count + and E')
#~ self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'12345678E-8',tfield2,testdummy) #gets 0.12345678, is too big
#~ self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'12345678E+3',tfield2,testdummy) #too big with exp
tfield4 = ['TEST1', 'M', 30, 'R', True, 3, 30,'R']
self.assertEqual(self.edi._formatfield('12345678901234560',tfield4,testdummy), '000000000000012345678901234560','lot of digits')
tfield5 = ['TEST1','M',4,'R',True,2, 4, 'R']
self.assertEqual(self.edi._formatfield('0.00',tfield5,testdummy), '0.00','lot of digits')
tfield6 = ['TEST1','M',5,'R',True,2, 5, 'R']
self.assertEqual(self.edi._formatfield('12.45',tfield6,testdummy), '12.45','lot of digits')
def test_out_formatfield_fixedRL(self):
self.edi.ta_info['lengthnumericbare']=False
self.edi.ta_info['decimaal']='.'
tfield1 = ['TEST1','M',3,'RL',True,0, 3, 'R']
# length decimals minlength format
self.assertEqual(self.edi._formatfield('',tfield1,testdummy), '0 ','empty string')
self.assertEqual(self.edi._formatfield('1',tfield1,testdummy), '1 ', 'basic')
self.assertEqual(self.edi._formatfield(' 1',tfield1,testdummy), '1 ', 'basic')
self.assertEqual(self.edi._formatfield('1 ',tfield1,testdummy), '1 ', 'basic')
self.assertEqual(self.edi._formatfield('0',tfield1,testdummy), '0 ','zero stays zero')
self.assertEqual(self.edi._formatfield('-0',tfield1,testdummy), '-0 ','neg.zero stays neg.zero')
tfield3 = ['TEST1','M',5,'RL',True,2, 3, 'R']
self.assertEqual(self.edi._formatfield('-0.00',tfield3,testdummy), '-0.00','')
self.assertEqual(self.edi._formatfield('0.10',tfield3,testdummy), '0.10','keep zeroes after last dec.digit')
self.assertEqual(self.edi._formatfield('123',tfield1,testdummy), '123','numeric field at max')
self.assertEqual(self.edi._formatfield('001',tfield1,testdummy), '1 ','leading zeroes are removed')
self.assertEqual(self.edi._formatfield('0001',tfield1,testdummy), '1 ','strips leading zeroes if possobel')
self.assertEqual(self.edi._formatfield('+123',tfield1,testdummy), '123','strips leading zeroes if possobel')
self.edi.ta_info['decimaal']=','
self.assertEqual(self.edi._formatfield('1.2',tfield1,testdummy), '1,2','other dec.sig, replace')
self.edi.ta_info['decimaal']='.'
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'.12',tfield1,testdummy) #field too large
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'-.12',tfield1,testdummy) #field too large
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'1234',tfield1,testdummy) #field too large
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'-1.234',tfield1,testdummy) #field too large
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'1<3',tfield1,testdummy) #wrong char
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'1-3',tfield1,testdummy) #'-' in middel of number
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'123-',tfield1,testdummy) #'-' at end of number
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'1,3',tfield1,testdummy) #',', where ',' is not traid sep.
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'1+3',tfield1,testdummy) #'+' in middle of number (no exp)
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'1E3',tfield1,testdummy) #'+' in middle of number (no exp)
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'13+',tfield1,testdummy) #'+' at end
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'1+3',tfield1,testdummy) #'+' in middle of number
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'0.100',tfield1,testdummy) #field too big
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'.',tfield1,testdummy) #no num
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'-',tfield1,testdummy) #no num
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'.001',tfield1,testdummy) #bots adds 0 before dec, thus too big
# #test filling up to min length
tfield2 = ['TEST1', 'M', 8, 'RL', True, 0, 8,'R']
self.assertEqual(self.edi._formatfield('12345',tfield2,testdummy), '12345 ','just large enough')
self.assertEqual(self.edi._formatfield('0.1000',tfield2,testdummy), '0.1000 ','keep zeroes after last dec.digit')
self.assertEqual(self.edi._formatfield('00001',tfield2,testdummy), '1 ','keep leading zeroes')
self.assertEqual(self.edi._formatfield('123',tfield2,testdummy), '123 ','add leading zeroes')
self.assertEqual(self.edi._formatfield('.1',tfield2,testdummy), '0.1 ','add leading zeroes')
self.assertEqual(self.edi._formatfield('-1.23',tfield2,testdummy), '-1.23 ','numeric field at max with minus and decimal sign')
#test exp
self.assertEqual(self.edi._formatfield('12E+3',tfield2,testdummy), '12000 ','Exponent notation is possible')
self.assertEqual(self.edi._formatfield('12E3',tfield2,testdummy), '12000 ','Exponent notation is possible->to std notation')
self.assertEqual(self.edi._formatfield('12e+3',tfield2,testdummy), '12000 ','Exponent notation is possible; e->E')
self.assertEqual(self.edi._formatfield('12e3',tfield2,testdummy), '12000 ','Exponent notation is possible; e->E')
self.assertEqual(self.edi._formatfield('4567E+3',tfield2,testdummy), '4567000 ','do not count + and E')
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'12345678E+3',tfield2,testdummy) #too big with exp
#~ #print '>>',self.edi._formatfield('12E-3',tfield2,testdummy)
#~ self.assertEqual(self.edi._formatfield('12E-3',tfield2,testdummy), '0000.012','Exponent notation is possible')
#~ self.assertEqual(self.edi._formatfield('12e-3',tfield2,testdummy), '0000.012','Exponent notation is possible; e->E')
#~ self.assertEqual(self.edi._formatfield('1234567E-3',tfield2,testdummy), '1234.567','do not count + and E')
#~ self.assertEqual(self.edi._formatfield('1234567E-6',tfield2,testdummy), '1.234567','do not count + and E')
#~ self.assertEqual(self.edi._formatfield('123456E-6',tfield2,testdummy), '0.123456','do not count + and E')
#~ self.assertEqual(self.edi._formatfield('-12345E-5',tfield2,testdummy), '-0.12345','do not count + and E')
#~ self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'12345678E-8',tfield2,testdummy) #gets 0.12345678, is too big
#~ self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'12345678E+3',tfield2,testdummy) #too big with exp
tfield4 = ['TEST1', 'M', 30, 'RL', True, 3, 30,'R']
self.assertEqual(self.edi._formatfield('12345678901234560',tfield4,testdummy), '12345678901234560 ','lot of digits')
tfield5 = ['TEST1','M',4,'RL',True,2, 4, 'N']
self.assertEqual(self.edi._formatfield('0.00',tfield5,testdummy), '0.00','lot of digits')
tfield6 = ['TEST1','M',5,'RL',True,2, 5, 'N']
self.assertEqual(self.edi._formatfield('12.45',tfield6,testdummy), '12.45','lot of digits')
def test_out_formatfield_fixedRR(self):
self.edi.ta_info['lengthnumericbare']=False
self.edi.ta_info['decimaal']='.'
tfield1 = ['TEST1','M',3,'RR',True,0, 3, 'R']
# length decimals minlength format
self.assertEqual(self.edi._formatfield('',tfield1,testdummy), ' 0','empty string')
self.assertEqual(self.edi._formatfield('1',tfield1,testdummy), ' 1', 'basic')
self.assertEqual(self.edi._formatfield(' 1',tfield1,testdummy), ' 1', 'basic')
self.assertEqual(self.edi._formatfield('1 ',tfield1,testdummy), ' 1', 'basic')
self.assertEqual(self.edi._formatfield('0',tfield1,testdummy), ' 0','zero stays zero')
self.assertEqual(self.edi._formatfield('-0',tfield1,testdummy), ' -0','neg.zero stays neg.zero')
tfield3 = ['TEST1','M',5,'RR',True,2, 3, 'R']
self.assertEqual(self.edi._formatfield('-0.00',tfield3,testdummy), '-0.00','')
self.assertEqual(self.edi._formatfield('0.10',tfield3,testdummy), '0.10','keep zeroes after last dec.digit')
self.assertEqual(self.edi._formatfield('123',tfield1,testdummy), '123','numeric field at max')
self.assertEqual(self.edi._formatfield('001',tfield1,testdummy), ' 1','leading zeroes are removed')
self.assertEqual(self.edi._formatfield('0001',tfield1,testdummy), ' 1','strips leading zeroes if possobel')
self.assertEqual(self.edi._formatfield('+123',tfield1,testdummy), '123','strips leading zeroes if possobel')
self.edi.ta_info['decimaal']=','
self.assertEqual(self.edi._formatfield('1.2',tfield1,testdummy), '1,2','other dec.sig, replace')
self.edi.ta_info['decimaal']='.'
self.assertRaises(botslib.OutMessageError,self.edi._formatfield, '.12',tfield1,testdummy) #field too large
self.assertRaises(botslib.OutMessageError,self.edi._formatfield, '-.12',tfield1,testdummy) #field too large
self.assertRaises(botslib.OutMessageError,self.edi._formatfield, '1234',tfield1,testdummy) #field too large
self.assertRaises(botslib.OutMessageError,self.edi._formatfield, '-1.234',tfield1,testdummy) #field too large
self.assertRaises(botslib.OutMessageError,self.edi._formatfield, '1<3',tfield1,testdummy) #wrong char
self.assertRaises(botslib.OutMessageError,self.edi._formatfield, '1-3',tfield1,testdummy) #'-' in middel of number
self.assertRaises(botslib.OutMessageError,self.edi._formatfield, '123-',tfield1,testdummy) #'-' at end of number
self.assertRaises(botslib.OutMessageError,self.edi._formatfield, '1,3',tfield1,testdummy) #',', where ',' is not traid sep.
self.assertRaises(botslib.OutMessageError,self.edi._formatfield, '1+3',tfield1,testdummy) #'+' in middle of number (no exp)
self.assertRaises(botslib.OutMessageError,self.edi._formatfield, '1E3',tfield1,testdummy) #'+' in middle of number (no exp)
self.assertRaises(botslib.OutMessageError,self.edi._formatfield, '13+',tfield1,testdummy) #'+' at end
self.assertRaises(botslib.OutMessageError,self.edi._formatfield, '1+3',tfield1,testdummy) #'+' in middle of number
self.assertRaises(botslib.OutMessageError,self.edi._formatfield, '0.100',tfield1,testdummy) #field too big
self.assertRaises(botslib.OutMessageError,self.edi._formatfield, '.',tfield1,testdummy) #no num
self.assertRaises(botslib.OutMessageError,self.edi._formatfield, '-',tfield1,testdummy) #no num
self.assertRaises(botslib.OutMessageError,self.edi._formatfield, '.001',tfield1,testdummy) #bots adds 0 before dec, thus too big
# #test filling up to min length
tfield2 = ['TEST1', 'M', 8, 'RR', True, 0, 8,'R']
self.assertEqual(self.edi._formatfield('12345',tfield2,testdummy), ' 12345','just large enough')
self.assertEqual(self.edi._formatfield('0.1000',tfield2,testdummy), ' 0.1000','keep zeroes after last dec.digit')
self.assertEqual(self.edi._formatfield('00001',tfield2,testdummy), ' 1','keep leading zeroes')
self.assertEqual(self.edi._formatfield('123',tfield2,testdummy), ' 123','add leading zeroes')
self.assertEqual(self.edi._formatfield('.1',tfield2,testdummy), ' 0.1','add leading zeroes')
self.assertEqual(self.edi._formatfield('-1.23',tfield2,testdummy), ' -1.23','numeric field at max with minus and decimal sign')
#test exp
self.assertEqual(self.edi._formatfield('12E+3',tfield2,testdummy), ' 12000','Exponent notation is possible')
self.assertEqual(self.edi._formatfield('12E3',tfield2,testdummy), ' 12000','Exponent notation is possible->to std notation')
self.assertEqual(self.edi._formatfield('12e+3',tfield2,testdummy), ' 12000','Exponent notation is possible; e->E')
self.assertEqual(self.edi._formatfield('12e3',tfield2,testdummy), ' 12000','Exponent notation is possible; e->E')
self.assertEqual(self.edi._formatfield('4567E+3',tfield2,testdummy), ' 4567000','do not count + and E')
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'12345678E+3',tfield2,testdummy) #too big with exp
#~ #print '>>',self.edi._formatfield('12E-3',tfield2,testdummy)
#~ self.assertEqual(self.edi._formatfield('12E-3',tfield2,testdummy), '0000.012','Exponent notation is possible')
#~ self.assertEqual(self.edi._formatfield('12e-3',tfield2,testdummy), '0000.012','Exponent notation is possible; e->E')
#~ self.assertEqual(self.edi._formatfield('1234567E-3',tfield2,testdummy), '1234.567','do not count + and E')
#~ self.assertEqual(self.edi._formatfield('1234567E-6',tfield2,testdummy), '1.234567','do not count + and E')
#~ self.assertEqual(self.edi._formatfield('123456E-6',tfield2,testdummy), '0.123456','do not count + and E')
#~ self.assertEqual(self.edi._formatfield('-12345E-5',tfield2,testdummy), '-0.12345','do not count + and E')
#~ self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'12345678E-8',tfield2,testdummy) #gets 0.12345678, is too big
#~ self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'12345678E+3',tfield2,testdummy) #too big with exp
tfield4 = ['TEST1', 'M', 30, 'RR', True, 3, 30,'R']
self.assertEqual(self.edi._formatfield('12345678901234560',tfield4,testdummy), ' 12345678901234560','lot of digits')
tfield5 = ['TEST1','M',4,'RR',True,2, 4, 'N']
self.assertEqual(self.edi._formatfield('0.00',tfield5,testdummy), '0.00','lot of digits')
tfield6 = ['TEST1','M',5,'RR',True,2, 5, 'N']
self.assertEqual(self.edi._formatfield('12.45',tfield6,testdummy), '12.45','lot of digits')
def test_out_formatfield_fixedN(self):
self.edi.ta_info['decimaal']='.'
self.edi.ta_info['lengthnumericbare']=False
tfield1 = ['TEST1','M',5,'N',True,2, 5, 'N']
# length decimals minlength format
self.assertEqual(self.edi._formatfield('',tfield1,testdummy), '00.00','empty string')
self.assertEqual(self.edi._formatfield('1',tfield1,testdummy), '01.00', 'basic')
self.assertEqual(self.edi._formatfield(' 1',tfield1,testdummy), '01.00', 'basic')
self.assertEqual(self.edi._formatfield('1 ',tfield1,testdummy), '01.00', 'basic')
self.assertEqual(self.edi._formatfield('0',tfield1,testdummy), '00.00','zero stays zero')
self.assertEqual(self.edi._formatfield('-0',tfield1,testdummy), '-0.00','neg.zero stays neg.zero')
self.assertEqual(self.edi._formatfield('-0.00',tfield1,testdummy), '-0.00','')
self.assertEqual(self.edi._formatfield('-0.001',tfield1,testdummy), '-0.00','')
self.assertEqual(self.edi._formatfield('-.12',tfield1,testdummy), '-0.12','no zero before dec,sign is OK')
self.assertEqual(self.edi._formatfield('001',tfield1,testdummy), '01.00','leading zeroes are removed')
self.assertEqual(self.edi._formatfield('0.10',tfield1,testdummy), '00.10','keep zeroes after last dec.digit')
self.assertEqual(self.edi._formatfield('12.1049',tfield1,testdummy), '12.10','keep zeroes after last dec.digit')
self.assertEqual(self.edi._formatfield('-1.23',tfield1,testdummy), '-1.23','numeric field at max with minus and decimal sign')
self.assertEqual(self.edi._formatfield('0001',tfield1,testdummy), '01.00','strips leading zeroes if possobel')
self.assertEqual(self.edi._formatfield('+13',tfield1,testdummy), '13.00','strips leading zeroes if possobel')
self.edi.ta_info['decimaal']=','
self.assertEqual(self.edi._formatfield('1.23',tfield1,testdummy), '01,23','other dec.sig, replace')
self.edi.ta_info['decimaal']='.'
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'123.1049',tfield1,testdummy) #field too large
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'123',tfield1,testdummy) #field too large
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'1234',tfield1,testdummy) #field too large
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'-1234.56',tfield1,testdummy) #field too large
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'1<3',tfield1,testdummy) #wrong char
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'1-3',tfield1,testdummy) #'-' in middel of number
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'123-',tfield1,testdummy) #'-' at end of number
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'1,3',tfield1,testdummy) #',', where ',' is not traid sep.
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'1+3',tfield1,testdummy) #'+' in middle of number (no exp)
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'1E3',tfield1,testdummy) #'+' in middle of number (no exp)
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'13+',tfield1,testdummy) #'+' at end
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'1234.100',tfield1,testdummy) #field too big
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'.',tfield1,testdummy) #no num
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'-',tfield1,testdummy) #no num
# #test filling up to min length
tfield2 = ['TEST1', 'M', 8, 'N', True, 2, 8,'N']
self.assertEqual(self.edi._formatfield('123.45',tfield2,testdummy), '00123.45','just large enough')
self.assertEqual(self.edi._formatfield('123.4549',tfield2,testdummy), '00123.45','just large enough')
self.assertEqual(self.edi._formatfield('123.455',tfield2,testdummy), '00123.46','just large enough')
self.assertEqual(self.edi._formatfield('0.1000',tfield2,testdummy), '00000.10','keep zeroes after last dec.digit')
self.assertEqual(self.edi._formatfield('00001',tfield2,testdummy), '00001.00','keep leading zeroes')
self.assertEqual(self.edi._formatfield('12',tfield2,testdummy), '00012.00','add leading zeroes')
self.assertEqual(self.edi._formatfield('.1',tfield2,testdummy), '00000.10','add leading zeroes')
#test exp; bots tries to convert to normal
self.assertEqual(self.edi._formatfield('78E+3',tfield2,testdummy), '78000.00','add leading zeroes')
self.assertEqual(self.edi._formatfield('-8E+3',tfield2,testdummy), '-8000.00','add leading zeroes')
self.assertEqual(self.edi._formatfield('-178e-3',tfield2,testdummy), '-0000.18','add leading zeroes')
self.assertEqual(self.edi._formatfield('-178e-5',tfield2,testdummy), '-0000.00','add leading zeroes')
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'178E+4',tfield2,testdummy) #too big with exp
tfield4 = ['TEST1', 'M', 30, 'N', True, 3, 30,'N']
self.assertEqual(self.edi._formatfield('1234567890123456',tfield4,testdummy), '00000000001234567890123456.000','lot of digits')
#test N format, zero decimals
tfield7 = ['TEST1', 'M', 5, 'N', True, 0, 5, 'N']
# length decimals minlength format
self.assertEqual(self.edi._formatfield('12345',tfield7,testdummy), '12345','')
self.assertEqual(self.edi._formatfield('1.234',tfield7,testdummy), '00001','')
self.assertEqual(self.edi._formatfield('123.4',tfield7,testdummy), '00123','')
self.assertEqual(self.edi._formatfield('0.0',tfield7,testdummy), '00000','')
def test_out_formatfield_fixedNL(self):
self.edi.ta_info['decimaal']='.'
self.edi.ta_info['lengthnumericbare']=False
tfield1 = ['TEST1','M',5,'NL',True,2, 5, 'N']
# length decimals minlength format
self.assertEqual(self.edi._formatfield('',tfield1,testdummy), '0.00 ','empty string')
self.assertEqual(self.edi._formatfield('1',tfield1,testdummy), '1.00 ', 'basic')
self.assertEqual(self.edi._formatfield(' 1',tfield1,testdummy), '1.00 ', 'basic')
self.assertEqual(self.edi._formatfield('1 ',tfield1,testdummy), '1.00 ', 'basic')
self.assertEqual(self.edi._formatfield('0',tfield1,testdummy), '0.00 ','zero stays zero')
self.assertEqual(self.edi._formatfield('-0',tfield1,testdummy), '-0.00','neg.zero stays neg.zero')
self.assertEqual(self.edi._formatfield('-0.00',tfield1,testdummy), '-0.00','')
self.assertEqual(self.edi._formatfield('-0.001',tfield1,testdummy), '-0.00','')
self.assertEqual(self.edi._formatfield('-.12',tfield1,testdummy), '-0.12','no zero before dec,sign is OK')
self.assertEqual(self.edi._formatfield('001',tfield1,testdummy), '1.00 ','leading zeroes are removed')
self.assertEqual(self.edi._formatfield('0.10',tfield1,testdummy), '0.10 ','keep zeroes after last dec.digit')
self.assertEqual(self.edi._formatfield('12.1049',tfield1,testdummy), '12.10','keep zeroes after last dec.digit')
self.assertEqual(self.edi._formatfield('-1.23',tfield1,testdummy), '-1.23','numeric field at max with minus and decimal sign')
self.assertEqual(self.edi._formatfield('0001',tfield1,testdummy), '1.00 ','strips leading zeroes if possobel')
self.assertEqual(self.edi._formatfield('+13',tfield1,testdummy), '13.00','strips leading zeroes if possobel')
self.edi.ta_info['decimaal']=','
self.assertEqual(self.edi._formatfield('1.23',tfield1,testdummy), '1,23 ','other dec.sig, replace')
self.edi.ta_info['decimaal']='.'
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'123.1049',tfield1,testdummy) #field too large
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'123',tfield1,testdummy) #field too large
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'1234',tfield1,testdummy) #field too large
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'-1234.56',tfield1,testdummy) #field too large
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'1<3',tfield1,testdummy) #wrong char
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'1-3',tfield1,testdummy) #'-' in middel of number
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'123-',tfield1,testdummy) #'-' at end of number
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'1,3',tfield1,testdummy) #',', where ',' is not traid sep.
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'1+3',tfield1,testdummy) #'+' in middle of number (no exp)
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'1E3',tfield1,testdummy) #'+' in middle of number (no exp)
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'13+',tfield1,testdummy) #'+' at end
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'1234.100',tfield1,testdummy) #field too big
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'.',tfield1,testdummy) #no num
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'-',tfield1,testdummy) #no num
# #test filling up to min length
tfield2 = ['TEST1', 'M', 8, 'NL', True, 2, 8,'N']
self.assertEqual(self.edi._formatfield('123.45',tfield2,testdummy), '123.45 ','just large enough')
self.assertEqual(self.edi._formatfield('123.4549',tfield2,testdummy), '123.45 ','just large enough')
self.assertEqual(self.edi._formatfield('123.455',tfield2,testdummy), '123.46 ','just large enough')
self.assertEqual(self.edi._formatfield('0.1000',tfield2,testdummy), '0.10 ','keep zeroes after last dec.digit')
self.assertEqual(self.edi._formatfield('00001',tfield2,testdummy), '1.00 ','keep leading zeroes')
self.assertEqual(self.edi._formatfield('12',tfield2,testdummy), '12.00 ','add leading zeroes')
self.assertEqual(self.edi._formatfield('.1',tfield2,testdummy), '0.10 ','add leading zeroes')
#test exp; bots tries to convert to normal
self.assertEqual(self.edi._formatfield('78E+3',tfield2,testdummy), '78000.00','add leading zeroes')
self.assertEqual(self.edi._formatfield('-8E+3',tfield2,testdummy), '-8000.00','add leading zeroes')
self.assertEqual(self.edi._formatfield('-178e-3',tfield2,testdummy), '-0.18 ','add leading zeroes')
self.assertEqual(self.edi._formatfield('-178e-5',tfield2,testdummy), '-0.00 ','add leading zeroes')
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'178E+4',tfield2,testdummy) #too big with exp
tfield4 = ['TEST1', 'M', 30, 'NL', True, 3, 30,'N']
self.assertEqual(self.edi._formatfield('1234567890123456',tfield4,testdummy), '1234567890123456.000 ','lot of digits')
#test N format, zero decimals
tfield7 = ['TEST1', 'M', 5, 'NL', True, 0, 5, 'N']
# length decimals minlength format
self.assertEqual(self.edi._formatfield('12345',tfield7,testdummy), '12345','')
self.assertEqual(self.edi._formatfield('1.234',tfield7,testdummy), '1 ','')
self.assertEqual(self.edi._formatfield('123.4',tfield7,testdummy), '123 ','')
self.assertEqual(self.edi._formatfield('0.0',tfield7,testdummy), '0 ','')
def test_out_formatfield_fixedNR(self):
self.edi.ta_info['decimaal']='.'
self.edi.ta_info['lengthnumericbare']=False
tfield1 = ['TEST1','M',5,'NR',True,2, 5, 'N']
# length decimals minlength format
self.assertEqual(self.edi._formatfield('',tfield1,testdummy), ' 0.00','empty string')
self.assertEqual(self.edi._formatfield('1',tfield1,testdummy), ' 1.00', 'basic')
self.assertEqual(self.edi._formatfield(' 1',tfield1,testdummy), ' 1.00', 'basic')
self.assertEqual(self.edi._formatfield('1 ',tfield1,testdummy), ' 1.00', 'basic')
self.assertEqual(self.edi._formatfield('0',tfield1,testdummy), ' 0.00','zero stays zero')
self.assertEqual(self.edi._formatfield('-0',tfield1,testdummy), '-0.00','neg.zero stays neg.zero')
self.assertEqual(self.edi._formatfield('-0.00',tfield1,testdummy), '-0.00','')
self.assertEqual(self.edi._formatfield('-0.001',tfield1,testdummy), '-0.00','')
self.assertEqual(self.edi._formatfield('-.12',tfield1,testdummy), '-0.12','no zero before dec,sign is OK')
self.assertEqual(self.edi._formatfield('001',tfield1,testdummy), ' 1.00','leading zeroes are removed')
self.assertEqual(self.edi._formatfield('0.10',tfield1,testdummy), ' 0.10','keep zeroes after last dec.digit')
self.assertEqual(self.edi._formatfield('12.1049',tfield1,testdummy), '12.10','keep zeroes after last dec.digit')
self.assertEqual(self.edi._formatfield('-1.23',tfield1,testdummy), '-1.23','numeric field at max with minus and decimal sign')
self.assertEqual(self.edi._formatfield('0001',tfield1,testdummy), ' 1.00','strips leading zeroes if possobel')
self.assertEqual(self.edi._formatfield('+13',tfield1,testdummy), '13.00','strips leading zeroes if possobel')
self.edi.ta_info['decimaal']=','
self.assertEqual(self.edi._formatfield('1.23',tfield1,testdummy), ' 1,23','other dec.sig, replace')
self.edi.ta_info['decimaal']='.'
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'123.1049',tfield1,testdummy) #field too large
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'123',tfield1,testdummy) #field too large
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'1234',tfield1,testdummy) #field too large
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'-1234.56',tfield1,testdummy) #field too large
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'1<3',tfield1,testdummy) #wrong char
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'1-3',tfield1,testdummy) #'-' in middel of number
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'123-',tfield1,testdummy) #'-' at end of number
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'1,3',tfield1,testdummy) #',', where ',' is not traid sep.
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'1+3',tfield1,testdummy) #'+' in middle of number (no exp)
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'1E3',tfield1,testdummy) #'+' in middle of number (no exp)
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'13+',tfield1,testdummy) #'+' at end
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'1234.100',tfield1,testdummy) #field too big
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'.',tfield1,testdummy) #no num
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'-',tfield1,testdummy) #no num
# #test filling up to min length
tfield2 = ['TEST1', 'M', 8, 'NR', True, 2, 8,'N']
self.assertEqual(self.edi._formatfield('123.45',tfield2,testdummy), ' 123.45','just large enough')
self.assertEqual(self.edi._formatfield('123.4549',tfield2,testdummy), ' 123.45','just large enough')
self.assertEqual(self.edi._formatfield('123.455',tfield2,testdummy), ' 123.46','just large enough')
self.assertEqual(self.edi._formatfield('0.1000',tfield2,testdummy), ' 0.10','keep zeroes after last dec.digit')
self.assertEqual(self.edi._formatfield('00001',tfield2,testdummy), ' 1.00','keep leading zeroes')
self.assertEqual(self.edi._formatfield('12',tfield2,testdummy), ' 12.00','add leading zeroes')
self.assertEqual(self.edi._formatfield('.1',tfield2,testdummy), ' 0.10','add leading zeroes')
#test exp; bots tries to convert to normal
self.assertEqual(self.edi._formatfield('78E+3',tfield2,testdummy), '78000.00','add leading zeroes')
self.assertEqual(self.edi._formatfield('-8E+3',tfield2,testdummy), '-8000.00','add leading zeroes')
self.assertEqual(self.edi._formatfield('-178e-3',tfield2,testdummy), ' -0.18','add leading zeroes')
self.assertEqual(self.edi._formatfield('-178e-5',tfield2,testdummy), ' -0.00','add leading zeroes')
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'178E+4',tfield2,testdummy) #too big with exp
tfield4 = ['TEST1', 'M', 30, 'NR', True, 3, 30,'N']
self.assertEqual(self.edi._formatfield('1234567890123456',tfield4,testdummy), ' 1234567890123456.000','lot of digits')
#test N format, zero decimals
tfield7 = ['TEST1', 'M', 5, 'NR', True, 0, 5, 'N']
# length decimals minlength format
self.assertEqual(self.edi._formatfield('12345',tfield7,testdummy), '12345','')
self.assertEqual(self.edi._formatfield('1.234',tfield7,testdummy), ' 1','')
self.assertEqual(self.edi._formatfield('123.4',tfield7,testdummy), ' 123','')
self.assertEqual(self.edi._formatfield('0.0',tfield7,testdummy), ' 0','')
def test_out_formatfield_fixedI(self):
self.edi.ta_info['lengthnumericbare']=False
self.edi.ta_info['decimaal']='.'
tfield1 = ['TEST1','M',5,'I',True,2, 5, 'I']
# length decimals minlength format
self.assertEqual(self.edi._formatfield('',tfield1,testdummy), '00000','empty string is initialised as 00000')
self.assertEqual(self.edi._formatfield('1',tfield1,testdummy), '00100', 'basic')
self.assertEqual(self.edi._formatfield(' 1',tfield1,testdummy), '00100', 'basic')
self.assertEqual(self.edi._formatfield('1 ',tfield1,testdummy), '00100', 'basic')
self.assertEqual(self.edi._formatfield('0',tfield1,testdummy), '00000','zero stays zero')
self.assertEqual(self.edi._formatfield('-0',tfield1,testdummy), '-0000','neg.zero stays neg.zero')
self.assertEqual(self.edi._formatfield('-0.00',tfield1,testdummy), '-0000','')
self.assertEqual(self.edi._formatfield('-0.001',tfield1,testdummy), '-0000','')
self.assertEqual(self.edi._formatfield('-.12',tfield1,testdummy), '-0012','no zero before dec,sign is OK') #TODO: puts ) in front
self.assertEqual(self.edi._formatfield('123',tfield1,testdummy), '12300','numeric field at max')
self.assertEqual(self.edi._formatfield('001',tfield1,testdummy), '00100','leading zeroes are removed')
self.assertEqual(self.edi._formatfield('0.10',tfield1,testdummy), '00010','keep zeroes after last dec.digit')
self.assertEqual(self.edi._formatfield('123.1049',tfield1,testdummy), '12310','keep zeroes after last dec.digit')
self.assertEqual(self.edi._formatfield('-1.23',tfield1,testdummy), '-0123','numeric field at max with minus and decimal sign')
self.assertEqual(self.edi._formatfield('0001',tfield1,testdummy), '00100','strips leading zeroes if possobel')
self.assertEqual(self.edi._formatfield('+123',tfield1,testdummy), '12300','strips leading zeroes if possobel')
self.edi.ta_info['decimaal']=','
self.assertEqual(self.edi._formatfield('1.23',tfield1,testdummy), '00123','other dec.sig, replace')
self.edi.ta_info['decimaal']='.'
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'1234',tfield1,testdummy) #field too large
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'-1234.56',tfield1,testdummy) #field too large
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'1<3',tfield1,testdummy) #wrong char
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'1-3',tfield1,testdummy) #'-' in middel of number
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'123-',tfield1,testdummy) #'-' at end of number
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'1,3',tfield1,testdummy) #',', where ',' is not traid sep.
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'1+3',tfield1,testdummy) #'+' in middle of number (no exp)
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'1E3',tfield1,testdummy) #'+' in middle of number (no exp)
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'13+',tfield1,testdummy) #'+' at end
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'1234.100',tfield1,testdummy) #field too big
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'.',tfield1,testdummy) #no num
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'-',tfield1,testdummy) #no num
#~ #test filling up to min length
tfield2 = ['TEST1', 'M', 8, 'I', True, 2, 8,'I']
self.assertEqual(self.edi._formatfield('123.45',tfield2,testdummy), '00012345','just large enough')
self.assertEqual(self.edi._formatfield('123.4549',tfield2,testdummy), '00012345','just large enough')
self.assertEqual(self.edi._formatfield('123.455',tfield2,testdummy), '00012346','just large enough')
self.assertEqual(self.edi._formatfield('0.1000',tfield2,testdummy), '00000010','keep zeroes after last dec.digit')
self.assertEqual(self.edi._formatfield('00001',tfield2,testdummy), '00000100','keep leading zeroes')
self.assertEqual(self.edi._formatfield('12',tfield2,testdummy), '00001200','add leading zeroes')
self.assertEqual(self.edi._formatfield('.1',tfield2,testdummy), '00000010','add leading zeroes')
#test exp; bots tries to convert to normal
self.assertEqual(self.edi._formatfield('178E+3',tfield2,testdummy), '17800000','add leading zeroes')
self.assertEqual(self.edi._formatfield('-17E+3',tfield2,testdummy), '-1700000','add leading zeroes')
self.assertEqual(self.edi._formatfield('-178e-3',tfield2,testdummy), '-0000018','add leading zeroes')
self.assertEqual(self.edi._formatfield('-178e-5',tfield2,testdummy), '-0000000','add leading zeroes')
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'178E+4',tfield2,testdummy) #too big with exp
tfield4 = ['TEST1', 'M', 80, 'I', True, 3, 0,'I']
self.assertEqual(self.edi._formatfield('123456789012340',tfield4,testdummy), '123456789012340000','lot of digits')
def test_out_formatfield_fixedD(self):
tfield1 = ['TEST1', 'M', 8, 'D', True, 0, 8,'D']
# length decimals minlength
self.assertEqual(self.edi._formatfield('20071001',tfield1,testdummy), '20071001','basic')
self.assertEqual(self.edi._formatfield('99991001',tfield1,testdummy), '99991001','max year')
self.assertEqual(self.edi._formatfield('00011001',tfield1,testdummy), '00011001','min year')
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'2007093112',tfield1,testdummy) #too long
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'20070931',tfield1,testdummy) #no valid date
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'-0070931',tfield1,testdummy) #no valid date
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'70931',tfield1,testdummy) #too short
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'0931',tfield1,testdummy) #too short
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'0931BC',tfield1,testdummy) #alfanum
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'OOOOBC',tfield1,testdummy) #alfanum
tfield2 = ['TEST1', 'M', 6, 'D', True, 0, 6,'D']
# length decimals minlength
self.assertEqual(self.edi._formatfield('071001',tfield2,testdummy), '071001','basic')
def test_out_formatfield_fixedT(self):
tfield1 = ['TEST1', 'M', 4, 'T', True, 0, 4,'T']
# length decimals minlength
self.assertEqual(self.edi._formatfield('2359',tfield1,testdummy), '2359','basic')
self.assertEqual(self.edi._formatfield('0000',tfield1,testdummy), '0000','basic')
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'2401',tfield1,testdummy) #no valid date
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'1261',tfield1,testdummy) #no valid date
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'1262',tfield1,testdummy) #no valid date - python allows 61 secnds?
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'2400',tfield1,testdummy) #no valid date
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'2501',tfield1,testdummy) #no valid date
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'-1200',tfield1,testdummy) #no valid date
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'120',tfield1,testdummy) #too short
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'093123',tfield1,testdummy) #too long
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'11PM',tfield1,testdummy) #alfanum
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'TIME',tfield1,testdummy) #alfanum
tfield2 = ['TEST1', 'M', 6, 'T', True, 0, 6,'T']
# length decimals minlength
self.assertEqual(self.edi._formatfield('000000',tfield2,testdummy), '000000','basic')
self.assertEqual(self.edi._formatfield('230000',tfield2,testdummy), '230000','basic')
self.assertEqual(self.edi._formatfield('235959',tfield2,testdummy), '235959','basic')
self.assertEqual(self.edi._formatfield('123456',tfield2,testdummy), '123456','basic')
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'240001',tfield2,testdummy) #no valid date
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'126101',tfield2,testdummy) #no valid date
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'120062',tfield2,testdummy) #no valid date - python allows 61 secnds?
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'240000',tfield2,testdummy) #no valid date
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'250001',tfield2,testdummy) #no valid date
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'-12000',tfield2,testdummy) #no valid date
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'120',tfield2,testdummy) #too short
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'0931233',tfield2,testdummy) #too short
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'1100PM',tfield2,testdummy) #alfanum
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'11TIME',tfield2,testdummy) #alfanum
def test_out_formatfield_fixedA(self):
tfield1 = ['TEST1', 'M', 5, 'A', True, 0, 5,'A']
# length decimals minlength
self.assertEqual(self.edi._formatfield('abcde',tfield1,testdummy), 'abcde','basic')
self.assertEqual(self.edi._formatfield('',tfield1,testdummy), ' ','basic')
self.assertEqual(self.edi._formatfield('ab ',tfield1,testdummy), 'ab ','basic')
self.assertEqual(self.edi._formatfield('a b',tfield1,testdummy), 'a b ','basic')
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'abcdef',tfield1,testdummy) #no valid date
tfield1 = ['TEST1', 'M', 5, 'A', True, 0, 5,'A']
# length decimals minlength
self.assertEqual(self.edi._formatfield('abcde',tfield1,testdummy), 'abcde','basic')
self.assertEqual(self.edi._formatfield('ab ',tfield1,testdummy), 'ab ','basic')
self.assertEqual(self.edi._formatfield('a b',tfield1,testdummy), 'a b ','basic')
self.assertEqual(self.edi._formatfield('a',tfield1,testdummy), 'a ','basic')
self.assertEqual(self.edi._formatfield(' ',tfield1,testdummy), ' ','basic')
self.assertEqual(self.edi._formatfield(' ',tfield1,testdummy), ' ','basic')
self.assertEqual(self.edi._formatfield(' ',tfield1,testdummy), ' ','basic')
self.assertEqual(self.edi._formatfield('',tfield1,testdummy), ' ','basic')
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'abcdef',tfield1,testdummy) #no valid date
def test_out_formatfield_fixedAR(self):
tfield1 = ['TEST1', 'M', 5, 'AR', True, 0, 5,'A']
# length decimals minlength
self.assertEqual(self.edi._formatfield('abcde',tfield1,testdummy), 'abcde','basic')
self.assertEqual(self.edi._formatfield('',tfield1,testdummy), ' ','basic')
self.assertEqual(self.edi._formatfield('ab ',tfield1,testdummy), ' ab ','basic')
self.assertEqual(self.edi._formatfield('a b',tfield1,testdummy), ' a b','basic')
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'abcdef',tfield1,testdummy) #no valid date
tfield1 = ['TEST1', 'M', 5, 'AR', True, 0, 5,'A']
# length decimals minlength
self.assertEqual(self.edi._formatfield('abcde',tfield1,testdummy), 'abcde','basic')
self.assertEqual(self.edi._formatfield('ab ',tfield1,testdummy), ' ab ','basic')
self.assertEqual(self.edi._formatfield('a b',tfield1,testdummy), ' a b','basic')
self.assertEqual(self.edi._formatfield('a',tfield1,testdummy), ' a','basic')
self.assertEqual(self.edi._formatfield(' ',tfield1,testdummy), ' ','basic')
self.assertEqual(self.edi._formatfield(' ',tfield1,testdummy), ' ','basic')
self.assertEqual(self.edi._formatfield(' ',tfield1,testdummy), ' ','basic')
self.assertEqual(self.edi._formatfield('',tfield1,testdummy), ' ','basic')
self.assertRaises(botslib.OutMessageError,self.edi._formatfield,'abcdef',tfield1,testdummy) #no valid date
class TestFormatFieldInmessage(unittest.TestCase):
#both var and fixed fields are tested. Is not much difference (white-box testing)
def setUp(self):
#need to have a inmessage-object for tests. Read is a edifile and a grammar.
self.edi = inmessage.edifromfile(frompartner='',
topartner='',
filename='botssys/infile/unitformats/formats01.edi',
messagetype='edifact',
testindicator='0',
editype='edifact',
charset='UNOA',
alt='')
def testformatfieldR(self):
self.edi.ta_info['lengthnumericbare']=True
tfield1 = ['TEST1','M',3,'N',True,0, 0, 'R']
# length decimals minlength format
self.assertEqual(self.edi._formatfield('',tfield1,testdummy), '0', 'empty numeric string is accepted, is zero')
self.assertEqual(self.edi._formatfield('1',tfield1,testdummy), '1', 'basic')
self.assertEqual(self.edi._formatfield('0',tfield1,testdummy), '0','zero stays zero')
self.assertEqual(self.edi._formatfield('-0',tfield1,testdummy), '-0','neg.zero stays neg.zero')
self.assertEqual(self.edi._formatfield('-0.00',tfield1,testdummy), '-0.00','')
self.assertEqual(self.edi._formatfield('-.12',tfield1,testdummy), '-0.12','no zero before dec,sign is OK')
self.assertEqual(self.edi._formatfield('123',tfield1,testdummy), '123','numeric field at max')
self.assertEqual(self.edi._formatfield('001',tfield1,testdummy), '1','leading zeroes are removed')
self.assertEqual(self.edi._formatfield('0.10',tfield1,testdummy), '0.10','keep zeroes after last dec.digit')
self.assertEqual(self.edi._formatfield('-1.23',tfield1,testdummy), '-1.23','numeric field at max with minus and decimal sign')
self.edi.ta_info['decimaal']=','
self.assertEqual(self.edi._formatfield('1,23-',tfield1,testdummy), '-1.23','other dec.sig, replace')
self.edi.ta_info['decimaal']='.'
self.assertRaises(botslib.InMessageFieldError,self.edi._formatfield,'1234',tfield1,testdummy) #field too large
self.assertRaises(botslib.InMessageFieldError,self.edi._formatfield,'0001',tfield1,testdummy) #leading zeroes; field too large
self.assertRaises(botslib.InMessageFieldError,self.edi._formatfield,'-1.234',tfield1,testdummy) #field too large
self.assertRaises(botslib.InMessageFieldError,self.edi._formatfield,'1<3',tfield1,testdummy) #wrong char
self.assertRaises(botslib.InMessageFieldError,self.edi._formatfield,'1-3',tfield1,testdummy) #'-' in middel of number
self.assertRaises(botslib.InMessageFieldError,self.edi._formatfield,'1,3',tfield1,testdummy) #',', where ',' is not traid sep.
self.assertRaises(botslib.InMessageFieldError,self.edi._formatfield,'1+3',tfield1,testdummy) #'+' in middle of number
self.assertRaises(botslib.InMessageFieldError,self.edi._formatfield,'13+',tfield1,testdummy) #'+' in middle of number
self.assertRaises(botslib.InMessageFieldError,self.edi._formatfield,'0.100',tfield1,testdummy) #field too big
#test field to short
tfield2 = ['TEST1', 'M', 8, 'N', True, 0, 5,'R']
self.assertEqual(self.edi._formatfield('12345',tfield2,testdummy), '12345','just large enough')
self.assertEqual(self.edi._formatfield('0.1000',tfield2,testdummy), '0.1000','keep zeroes after last dec.digit')
self.assertEqual(self.edi._formatfield('00001',tfield2,testdummy), '1','remove leading zeroes')
self.assertRaises(botslib.InMessageFieldError,self.edi._formatfield,'1235',tfield2,testdummy) #field too short
self.assertRaises(botslib.InMessageFieldError,self.edi._formatfield,'-12.34',tfield2,testdummy) #field too short
self.assertRaises(botslib.InMessageFieldError,self.edi._formatfield,'-',tfield2,testdummy) #field too short
self.assertRaises(botslib.InMessageFieldError,self.edi._formatfield,'.',tfield2,testdummy) #field too short
self.assertRaises(botslib.InMessageFieldError,self.edi._formatfield,'-.',tfield2,testdummy) #field too short
#WARN: dubious tests. This is Bots filosophy: be flexible in input, be right in output.
self.assertEqual(self.edi._formatfield('123-',tfield1,testdummy), '-123','numeric field minus at end')
self.assertEqual(self.edi._formatfield('.001',tfield1,testdummy), '0.001','if no zero before dec.sign, length>max.length')
self.assertEqual(self.edi._formatfield('+13',tfield1,testdummy), '13','plus is allowed') #WARN: if plus used, plus is countd in length!!
self.assertRaises(botslib.InMessageFieldError,self.edi._formatfield,'12E+3',tfield2,testdummy) #field too large
tfield4 = ['TEST1', 'M', 8, 'N', True, 3, 0,'R']
self.assertEqual(self.edi._formatfield('123.4561',tfield4,testdummy), '123.4561','no checking to many digits incoming') #should round here?
tfield4 = ['TEST1', 'M', 80, 'N', True, 3, 0,'R']
self.assertEqual(self.edi._formatfield('12345678901234560',tfield4,testdummy), '12345678901234560','lot of digits')
self.edi.ta_info['lengthnumericbare']=False
self.assertEqual(self.edi._formatfield('-1.45',tfield2,testdummy), '-1.45','just large enough')
self.assertRaises(botslib.InMessageFieldError,self.edi._formatfield,'-12345678',tfield2,testdummy) #field too large
def testformatfieldN(self):
self.edi.ta_info['lengthnumericbare']=True
tfield1 = ['TEST1', 'M', 3, 'R', True, 2, 0,'N']
# length decimals minlength
self.assertRaises(botslib.InMessageFieldError,self.edi._formatfield,'',tfield1,testdummy) #empty string
self.assertRaises(botslib.InMessageFieldError,self.edi._formatfield,'1',tfield1,testdummy) #empty string
self.assertRaises(botslib.InMessageFieldError,self.edi._formatfield,'0',tfield1,testdummy) #empty string
self.assertRaises(botslib.InMessageFieldError,self.edi._formatfield,'-0',tfield1,testdummy) #empty string
self.assertRaises(botslib.InMessageFieldError,self.edi._formatfield,'01.00',tfield1,testdummy) #empty string
self.assertEqual(self.edi._formatfield('1.00',tfield1,testdummy), '1.00', 'basic')
self.assertEqual(self.edi._formatfield('0.00',tfield1,testdummy), '0.00','zero stays zero')
self.assertEqual(self.edi._formatfield('-0.00',tfield1,testdummy), '-0.00','neg.zero stays neg.zero')
self.assertEqual(self.edi._formatfield('-.12',tfield1,testdummy), '-0.12','no zero before dec,sign is OK')
self.assertEqual(self.edi._formatfield('1.23',tfield1,testdummy), '1.23','numeric field at max')
self.assertEqual(self.edi._formatfield('0.10',tfield1,testdummy), '0.10','keep zeroes after last dec.digit')
self.assertEqual(self.edi._formatfield('-1.23',tfield1,testdummy), '-1.23','numeric field at max with minus and decimal sign')
self.edi.ta_info['decimaal']=','
self.assertEqual(self.edi._formatfield('1,23-',tfield1,testdummy), '-1.23','other dec.sig, replace')
self.edi.ta_info['decimaal']='.'
self.assertRaises(botslib.InMessageFieldError,self.edi._formatfield,'1234',tfield1,testdummy) #field too large
self.assertRaises(botslib.InMessageFieldError,self.edi._formatfield,'0001',tfield1,testdummy) #leading zeroes; field too large
self.assertRaises(botslib.InMessageFieldError,self.edi._formatfield,'-1.234',tfield1,testdummy) #field too large
self.assertRaises(botslib.InMessageFieldError,self.edi._formatfield,'1<3',tfield1,testdummy) #wrong char
self.assertRaises(botslib.InMessageFieldError,self.edi._formatfield,'1-3',tfield1,testdummy) #'-' in middel of number
self.assertRaises(botslib.InMessageFieldError,self.edi._formatfield,'1,3',tfield1,testdummy) #',', where ',' is not traid sep.
self.assertRaises(botslib.InMessageFieldError,self.edi._formatfield,'1+3',tfield1,testdummy) #'+' in middle of number
self.assertRaises(botslib.InMessageFieldError,self.edi._formatfield,'13+',tfield1,testdummy) #'+' in middle of number
self.assertRaises(botslib.InMessageFieldError,self.edi._formatfield,'0.100',tfield1,testdummy) #field too big
self.assertRaises(botslib.InMessageFieldError,self.edi._formatfield,'12E+3',tfield1,testdummy) #no exp
self.assertRaises(botslib.InMessageFieldError,self.edi._formatfield,'.',tfield1,testdummy) #no exp
self.assertRaises(botslib.InMessageFieldError,self.edi._formatfield,'-',tfield1,testdummy) #no exp
#test field to short
tfield2 = ['TEST1', 'M', 8, 'R', True, 4, 5,'N']
self.assertEqual(self.edi._formatfield('1.2345',tfield2,testdummy), '1.2345','just large enough')
self.assertEqual(self.edi._formatfield('0.1000',tfield2,testdummy), '0.1000','keep zeroes after last dec.digit')
self.assertEqual(self.edi._formatfield('001.1234',tfield2,testdummy), '1.1234','remove leading zeroes')
self.assertRaises(botslib.InMessageFieldError,self.edi._formatfield,'1235',tfield2,testdummy) #field too short
self.assertRaises(botslib.InMessageFieldError,self.edi._formatfield,'-12.34',tfield2,testdummy) #field too short
#WARN: dubious tests. This is Bots filosophy: be flexible in input, be right in output.
self.assertEqual(self.edi._formatfield('1234.1234-',tfield2,testdummy), '-1234.1234','numeric field - minus at end')
self.assertEqual(self.edi._formatfield('.01',tfield1,testdummy), '0.01','if no zero before dec.sign, length>max.length')
self.assertEqual(self.edi._formatfield('+13.1234',tfield2,testdummy), '13.1234','plus is allowed') #WARN: if plus used, plus is counted in length!!
tfield3 = ['TEST1', 'M', 18, 'R', True, 0, 0,'N']
tfield4 = ['TEST1', 'M', 8, 'R', True, 3, 0,'N']
self.assertRaises(botslib.InMessageFieldError,self.edi._formatfield,'123.4561',tfield4,testdummy) #to many digits
def testformatfieldI(self):
self.edi.ta_info['lengthnumericbare']=True
tfield1 = ['TEST1', 'M', 5, 'I', True, 2, 0,'I']
# length decimals minlength
self.assertEqual(self.edi._formatfield('',tfield1,testdummy), '0.00', 'empty numeric is accepted, is zero')
self.assertEqual(self.edi._formatfield('123',tfield1,testdummy), '1.23', 'basic')
self.assertEqual(self.edi._formatfield('1',tfield1,testdummy), '0.01', 'basic')
self.assertEqual(self.edi._formatfield('0',tfield1,testdummy), '0.00','zero stays zero')
self.assertEqual(self.edi._formatfield('-0',tfield1,testdummy), '-0.00','neg.zero stays neg.zero')
self.assertEqual(self.edi._formatfield('-000',tfield1,testdummy), '-0.00','')
self.assertEqual(self.edi._formatfield('-12',tfield1,testdummy), '-0.12','no zero before dec,sign is OK')
self.assertEqual(self.edi._formatfield('12345',tfield1,testdummy), '123.45','numeric field at max')
self.assertEqual(self.edi._formatfield('00001',tfield1,testdummy), '0.01','leading zeroes are removed')
self.assertEqual(self.edi._formatfield('010',tfield1,testdummy), '0.10','keep zeroes after last dec.digit')
self.assertEqual(self.edi._formatfield('-99123',tfield1,testdummy), '-991.23','numeric field at max with minus and decimal sign')
self.assertRaises(botslib.InMessageFieldError,self.edi._formatfield,'123456',tfield1,testdummy) #field too large
self.assertRaises(botslib.InMessageFieldError,self.edi._formatfield,'000100',tfield1,testdummy) #field too large
self.assertRaises(botslib.InMessageFieldError,self.edi._formatfield,'000001',tfield1,testdummy) #leading zeroes; field too large
self.assertRaises(botslib.InMessageFieldError,self.edi._formatfield,'12<3',tfield1,testdummy) #wrong char
self.assertRaises(botslib.InMessageFieldError,self.edi._formatfield,'12-3',tfield1,testdummy) #'-' in middel of number
self.assertRaises(botslib.InMessageFieldError,self.edi._formatfield,'12,3',tfield1,testdummy) #','.
self.assertRaises(botslib.InMessageFieldError,self.edi._formatfield,'12+3',tfield1,testdummy) #'+' in middle of number
self.assertRaises(botslib.InMessageFieldError,self.edi._formatfield,'123+',tfield1,testdummy) #'+'
self.assertRaises(botslib.InMessageFieldError,self.edi._formatfield,'12E+3',tfield1,testdummy) #'+'
self.assertRaises(botslib.InMessageFieldError,self.edi._formatfield,'-',tfield1,testdummy) #only -
#~ #test field to short
tfield2 = ['TEST1', 'M', 8, 'I', True, 2, 5,'I']
self.assertEqual(self.edi._formatfield('12345',tfield2,testdummy), '123.45','just large enough')
self.assertEqual(self.edi._formatfield('10000',tfield2,testdummy), '100.00','keep zeroes after last dec.digit')
self.assertEqual(self.edi._formatfield('00100',tfield2,testdummy), '1.00','remove leading zeroes')
self.assertRaises(botslib.InMessageFieldError,self.edi._formatfield,'1235',tfield2,testdummy) #field too short
self.assertRaises(botslib.InMessageFieldError,self.edi._formatfield,'-1234',tfield2,testdummy) #field too short
tfield3 = ['TEST1', 'M', 18, 'I', True, 0, 0,'I']
self.assertRaises(botslib.InMessageFieldError,self.edi._formatfield,'12E+3',tfield3,testdummy) #no exponent
#~ #WARN: dubious tests. This is Bots filosophy: be flexible in input, be right in output.
self.assertEqual(self.edi._formatfield('123-',tfield1,testdummy), '-1.23','numeric field minus at end')
self.assertEqual(self.edi._formatfield('+13',tfield1,testdummy), '0.13','plus is allowed') #WARN: if plus used, plus is countd in length!!
def testformatfieldD(self):
tfield1 = ['TEST1', 'M', 20, 'D', True, 0, 0,'D']
# length decimals minlength
self.assertEqual(self.edi._formatfield('20071001',tfield1,testdummy), '20071001','basic')
self.assertEqual(self.edi._formatfield('071001',tfield1,testdummy), '071001','basic')
self.assertEqual(self.edi._formatfield('99991001',tfield1,testdummy), '99991001','max year')
self.assertEqual(self.edi._formatfield('00011001',tfield1,testdummy), '00011001','min year')
self.assertRaises(botslib.InMessageFieldError,self.edi._formatfield,'2007093112',tfield1,testdummy) #too long
self.assertRaises(botslib.InMessageFieldError,self.edi._formatfield,'20070931',tfield1,testdummy) #no valid date
self.assertRaises(botslib.InMessageFieldError,self.edi._formatfield,'-0070931',tfield1,testdummy) #no valid date
self.assertRaises(botslib.InMessageFieldError,self.edi._formatfield,'70931',tfield1,testdummy) #too short
self.assertRaises(botslib.InMessageFieldError,self.edi._formatfield,'0931',tfield1,testdummy) #too short
self.assertRaises(botslib.InMessageFieldError,self.edi._formatfield,'0931BC',tfield1,testdummy) #alfanum
self.assertRaises(botslib.InMessageFieldError,self.edi._formatfield,'OOOOBC',tfield1,testdummy) #alfanum
def testformatfieldT(self):
tfield1 = ['TEST1', 'M', 10, 'T', True, 0, 0,'T']
# length decimals minlength
self.assertEqual(self.edi._formatfield('2359',tfield1,testdummy), '2359','basic')
self.assertEqual(self.edi._formatfield('0000',tfield1,testdummy), '0000','basic')
self.assertEqual(self.edi._formatfield('000000',tfield1,testdummy), '000000','basic')
self.assertEqual(self.edi._formatfield('230000',tfield1,testdummy), '230000','basic')
self.assertEqual(self.edi._formatfield('235959',tfield1,testdummy), '235959','basic')
self.assertEqual(self.edi._formatfield('123456',tfield1,testdummy), '123456','basic')
self.assertEqual(self.edi._formatfield('0931233',tfield1,testdummy), '0931233','basic')
self.assertEqual(self.edi._formatfield('09312334',tfield1,testdummy), '09312334','basic')
self.assertRaises(botslib.InMessageFieldError,self.edi._formatfield,'240001',tfield1,testdummy) #no valid date
self.assertRaises(botslib.InMessageFieldError,self.edi._formatfield,'126101',tfield1,testdummy) #no valid date
self.assertRaises(botslib.InMessageFieldError,self.edi._formatfield,'120062',tfield1,testdummy) #no valid date - python allows 61 secnds?
self.assertRaises(botslib.InMessageFieldError,self.edi._formatfield,'240000',tfield1,testdummy) #no valid date
self.assertRaises(botslib.InMessageFieldError,self.edi._formatfield,'250001',tfield1,testdummy) #no valid date
self.assertRaises(botslib.InMessageFieldError,self.edi._formatfield,'-12000',tfield1,testdummy) #no valid date
self.assertRaises(botslib.InMessageFieldError,self.edi._formatfield,'120',tfield1,testdummy) #too short
self.assertRaises(botslib.InMessageFieldError,self.edi._formatfield,'11PM',tfield1,testdummy) #alfanum
self.assertRaises(botslib.InMessageFieldError,self.edi._formatfield,'TIME',tfield1,testdummy) #alfanum
def testformatfieldA(self):
tfield1 = ['TEST1', 'M', 5, 'T', True, 0, 0,'A']
# length decimals minlength
self.assertEqual(self.edi._formatfield('abcde',tfield1,testdummy), 'abcde','basic')
self.assertEqual(self.edi._formatfield('',tfield1,testdummy), '','basic')
self.assertEqual(self.edi._formatfield('',tfield1,testdummy), '','basic')
self.assertEqual(self.edi._formatfield(' ab',tfield1,testdummy), 'ab','basic')
self.assertEqual(self.edi._formatfield('ab ',tfield1,testdummy), 'ab','basic')
self.assertEqual(self.edi._formatfield(' ab',tfield1,testdummy), 'ab','basic')
self.assertEqual(self.edi._formatfield('ab ',tfield1,testdummy), 'ab','basic')
self.assertEqual(self.edi._formatfield('a b',tfield1,testdummy), 'a b','basic')
self.assertRaises(botslib.InMessageFieldError,self.edi._formatfield,'abcdef',tfield1,testdummy) #no valid date
self.assertRaises(botslib.InMessageFieldError,self.edi._formatfield,'ab ',tfield1,testdummy) #no valid date
self.assertRaises(botslib.InMessageFieldError,self.edi._formatfield,' ab',tfield1,testdummy) #no valid date - python allows 61 secnds?
tfield1 = ['TEST1', 'M', 5, 'T', True, 0, 2,'A']
# length decimals minlength
self.assertEqual(self.edi._formatfield('abcde',tfield1,testdummy), 'abcde','basic')
self.assertEqual(self.edi._formatfield(' ab',tfield1,testdummy), 'ab','basic')
self.assertEqual(self.edi._formatfield('ab ',tfield1,testdummy), 'ab','basic')
self.assertEqual(self.edi._formatfield(' ab',tfield1,testdummy), 'ab','basic')
self.assertEqual(self.edi._formatfield('ab ',tfield1,testdummy), 'ab','basic')
self.assertEqual(self.edi._formatfield('a b',tfield1,testdummy), 'a b','basic')
self.assertEqual(self.edi._formatfield(' ',tfield1,testdummy), '','basic')
self.assertRaises(botslib.InMessageFieldError,self.edi._formatfield,'a',tfield1,testdummy) #no valid date
self.assertRaises(botslib.InMessageFieldError,self.edi._formatfield,'abcdef',tfield1,testdummy) #no valid date
self.assertRaises(botslib.InMessageFieldError,self.edi._formatfield,'ab ',tfield1,testdummy) #no valid date
self.assertRaises(botslib.InMessageFieldError,self.edi._formatfield,' ab',tfield1,testdummy) #no valid date - python allows 61 secnds?
self.assertRaises(botslib.InMessageFieldError,self.edi._formatfield,' ',tfield1,testdummy) #no valid date - python allows 61 secnds?
self.assertRaises(botslib.InMessageFieldError,self.edi._formatfield,'',tfield1,testdummy) #no valid date - python allows 61 secnds?
def testEdifact0402(self):
# old format test are run
self.assertRaises(botslib.InMessageFieldError,inmessage.edifromfile,editype='edifact',
messagetype='edifact',filename='botssys/infile/unitformats/040201F.edi')
self.assertRaises(botslib.InMessageFieldError,inmessage.edifromfile,editype='edifact',
messagetype='edifact',filename='botssys/infile/unitformats/040202F.edi')
self.assertRaises(botslib.InMessageFieldError,inmessage.edifromfile,editype='edifact',
messagetype='edifact',filename='botssys/infile/unitformats/040203F.edi')
self.assertRaises(botslib.InMessageFieldError,inmessage.edifromfile,editype='edifact',
messagetype='edifact',filename='botssys/infile/unitformats/040204F.edi')
self.assertRaises(botslib.InMessageFieldError,inmessage.edifromfile,editype='edifact',
messagetype='edifact',filename='botssys/infile/unitformats/040205F.edi')
self.assertRaises(botslib.InMessageError,inmessage.edifromfile,editype='edifact',
messagetype='edifact',filename='botssys/infile/unitformats/040206F.edi')
self.assertRaises(botslib.InMessageError,inmessage.edifromfile,editype='edifact',
messagetype='edifact',filename='botssys/infile/unitformats/040207F.edi')
self.assertRaises(botslib.InMessageError,inmessage.edifromfile,editype='edifact',
messagetype='edifact',filename='botssys/infile/unitformats/040208F.edi')
self.assertRaises(botslib.InMessageError,inmessage.edifromfile,editype='edifact',
messagetype='edifact',filename='botssys/infile/unitformats/040209F.edi')
self.assertRaises(botslib.InMessageFieldError,inmessage.edifromfile,editype='edifact',
messagetype='edifact',filename='botssys/infile/unitformats/040210F.edi')
self.assertRaises(botslib.InMessageFieldError,inmessage.edifromfile,editype='edifact',
messagetype='edifact',filename='botssys/infile/unitformats/040211F.edi')
self.assertRaises(botslib.InMessageFieldError,inmessage.edifromfile,editype='edifact',
messagetype='edifact',filename='botssys/infile/unitformats/040212F.edi')
self.failUnless(inmessage.edifromfile(editype='edifact',
messagetype='edifact',filename='botssys/infile/unitformats/040214T.edi'), 'standaard test')
self.assertRaises(botslib.InMessageFieldError,inmessage.edifromfile,editype='edifact',
messagetype='edifact',filename='botssys/infile/unitformats/040215F.edi')
self.assertRaises(botslib.InMessageFieldError,inmessage.edifromfile,editype='edifact',
messagetype='edifact',filename='botssys/infile/unitformats/040217F.edi')
self.assertRaises(botslib.InMessageFieldError,inmessage.edifromfile,editype='edifact',
messagetype='edifact',filename='botssys/infile/unitformats/040218F.edi')
self.assertRaises(botslib.InMessageFieldError,inmessage.edifromfile,editype='edifact',
messagetype='edifact',filename='botssys/infile/unitformats/040219F.edi')
if __name__ == '__main__':
botsinit.generalinit('config')
#~ botslib.initbotscharsets()
botsinit.initenginelogging()
unittest.main()
| [
[
1,
0,
0.001,
0.001,
0,
0.66,
0,
88,
0,
1,
0,
0,
88,
0,
0
],
[
1,
0,
0.0019,
0.001,
0,
0.66,
0.0833,
816,
0,
1,
0,
0,
816,
0,
0
],
[
1,
0,
0.0029,
0.001,
0,
0.66,
... | [
"import unittest",
"import bots.botslib as botslib",
"import bots.botsinit as botsinit",
"import bots.inmessage as inmessage",
"import bots.outmessage as outmessage",
"from bots.botsconfig import *",
"import utilsunit",
"''' plugin unitformats '''",
"testdummy={MPATH:'dummy for tests'}",
"class Te... |
from datetime import datetime
from django.db import models
from django.utils.translation import ugettext as _
'''
django is not excellent in generating db. But they have provided a way to customize the generated database using SQL. see bots/sql/*.
'''
STATUST = [
(0, _(u'Open')),
(1, _(u'Error')),
(2, _(u'Stuck')),
(3, _(u'Done')),
]
STATUS = [
(1,_(u'process')),
(3,_(u'discarded')),
(200,_(u'FileReceive')),
(210,_(u'RawInfile')),
(215,_(u'Mimein')),
(220,_(u'Infile')),
(230,_(u'Set for preprocess')),
(231,_(u'Preprocess')),
(232,_(u'Set for preprocess')),
(233,_(u'Preprocess')),
(234,_(u'Set for preprocess')),
(235,_(u'Preprocess')),
(236,_(u'Set for preprocess')),
(237,_(u'Preprocess')),
(238,_(u'Set for preprocess')),
(239,_(u'Preprocess')),
(300,_(u'Translate')),
(310,_(u'Parsed')),
(320,_(u'Splitup')),
(330,_(u'Translated')),
(400,_(u'Merged')),
(500,_(u'Outfile')),
(510,_(u'RawOutfile')),
(520,_(u'FileSend')),
]
EDITYPES = [
('csv', _(u'csv')),
('database', _(u'database (old)')),
('db', _(u'db')),
('edifact', _(u'edifact')),
('email-confirmation',_(u'email-confirmation')),
('fixed', _(u'fixed')),
('idoc', _(u'idoc')),
('json', _(u'json')),
('jsonnocheck', _(u'jsonnocheck')),
('mailbag', _(u'mailbag')),
('raw', _(u'raw')),
('template', _(u'template')),
('templatehtml', _(u'template-html')),
('tradacoms', _(u'tradacoms')),
('xml', _(u'xml')),
('xmlnocheck', _(u'xmlnocheck')),
('x12', _(u'x12')),
]
INOROUT = (
('in', _(u'in')),
('out', _(u'out')),
)
CHANNELTYPE = (
('file', _(u'file')),
('smtp', _(u'smtp')),
('smtps', _(u'smtps')),
('smtpstarttls', _(u'smtpstarttls')),
('pop3', _(u'pop3')),
('pop3s', _(u'pop3s')),
('pop3apop', _(u'pop3apop')),
('imap4', _(u'imap4')),
('imap4s', _(u'imap4s')),
('ftp', _(u'ftp')),
('ftps', _(u'ftps (explicit)')),
('ftpis', _(u'ftps (implicit)')),
('sftp', _(u'sftp (ssh)')),
('xmlrpc', _(u'xmlrpc')),
('mimefile', _(u'mimefile')),
('communicationscript', _(u'communicationscript')),
('db', _(u'db')),
('database', _(u'database (old)')),
('intercommit', _(u'intercommit')),
)
CONFIRMTYPE = [
('ask-email-MDN',_(u'ask an email confirmation (MDN) when sending')),
('send-email-MDN',_(u'send an email confirmation (MDN) when receiving')),
('ask-x12-997',_(u'ask a x12 confirmation (997) when sending')),
('send-x12-997',_(u'send a x12 confirmation (997) when receiving')),
('ask-edifact-CONTRL',_(u'ask an edifact confirmation (CONTRL) when sending')),
('send-edifact-CONTRL',_(u'send an edifact confirmation (CONTRL) when receiving')),
]
RULETYPE = (
('all',_(u'all')),
('route',_(u'route')),
('channel',_(u'channel')),
('frompartner',_(u'frompartner')),
('topartner',_(u'topartner')),
('messagetype',_(u'messagetype')),
)
ENCODE_MIME = (
('always',_(u'base64')),
('never',_(u'never')),
('ascii',_(u'base64 if not ascii')),
)
class StripCharField(models.CharField):
''' strip values before saving to database. this is not default in django #%^&*'''
def get_db_prep_value(self, value,*args,**kwargs):
"""Returns field's value prepared for interacting with the database
backend.
Used by the default implementations of ``get_db_prep_save``and
`get_db_prep_lookup```
"""
if isinstance(value, basestring):
return value.strip()
else:
return value
class botsmodel(models.Model):
class Meta:
abstract = True
def delete(self, *args, **kwargs):
''' bots does not use cascaded deletes!; so for delete: set references to null'''
self.clear_nullable_related()
super(botsmodel, self).delete(*args, **kwargs)
def clear_nullable_related(self):
"""
Recursively clears any nullable foreign key fields on related objects.
Django is hard-wired for cascading deletes, which is very dangerous for
us. This simulates ON DELETE SET NULL behavior manually.
"""
for related in self._meta.get_all_related_objects():
accessor = related.get_accessor_name()
related_set = getattr(self, accessor)
if related.field.null:
related_set.clear()
else:
for related_object in related_set.all():
related_object.clear_nullable_related()
#***********************************************************************************
#******** written by webserver ********************************************************
#***********************************************************************************
class confirmrule(botsmodel):
#~ id = models.IntegerField(primary_key=True)
active = models.BooleanField(default=False)
confirmtype = StripCharField(max_length=35,choices=CONFIRMTYPE)
ruletype = StripCharField(max_length=35,choices=RULETYPE)
negativerule = models.BooleanField(default=False)
frompartner = models.ForeignKey('partner',related_name='cfrompartner',null=True,blank=True)
topartner = models.ForeignKey('partner',related_name='ctopartner',null=True,blank=True)
#~ idroute = models.ForeignKey('routes',null=True,blank=True,verbose_name='route')
idroute = StripCharField(max_length=35,null=True,blank=True,verbose_name=_(u'route'))
idchannel = models.ForeignKey('channel',null=True,blank=True,verbose_name=_(u'channel'))
editype = StripCharField(max_length=35,choices=EDITYPES,blank=True)
messagetype = StripCharField(max_length=35,blank=True)
rsrv1 = StripCharField(max_length=35,blank=True,null=True) #added 20100501
rsrv2 = models.IntegerField(null=True) #added 20100501
def __unicode__(self):
return unicode(self.confirmtype) + u' ' + unicode(self.ruletype)
class Meta:
db_table = 'confirmrule'
verbose_name = _(u'confirm rule')
ordering = ['confirmtype','ruletype']
class ccodetrigger(botsmodel):
ccodeid = StripCharField(primary_key=True,max_length=35,verbose_name=_(u'type code'))
ccodeid_desc = StripCharField(max_length=35,null=True,blank=True)
def __unicode__(self):
return unicode(self.ccodeid)
class Meta:
db_table = 'ccodetrigger'
verbose_name = _(u'user code type')
ordering = ['ccodeid']
class ccode(botsmodel):
#~ id = models.IntegerField(primary_key=True) #added 20091221
ccodeid = models.ForeignKey(ccodetrigger,verbose_name=_(u'type code'))
leftcode = StripCharField(max_length=35,db_index=True)
rightcode = StripCharField(max_length=35,db_index=True)
attr1 = StripCharField(max_length=35,blank=True)
attr2 = StripCharField(max_length=35,blank=True)
attr3 = StripCharField(max_length=35,blank=True)
attr4 = StripCharField(max_length=35,blank=True)
attr5 = StripCharField(max_length=35,blank=True)
attr6 = StripCharField(max_length=35,blank=True)
attr7 = StripCharField(max_length=35,blank=True)
attr8 = StripCharField(max_length=35,blank=True)
def __unicode__(self):
return unicode(self.ccodeid) + u' ' + unicode(self.leftcode) + u' ' + unicode(self.rightcode)
class Meta:
db_table = 'ccode'
verbose_name = _(u'user code')
unique_together = (('ccodeid','leftcode','rightcode'),)
ordering = ['ccodeid']
class channel(botsmodel):
idchannel = StripCharField(max_length=35,primary_key=True)
inorout = StripCharField(max_length=35,choices=INOROUT,verbose_name=_(u'in/out'))
type = StripCharField(max_length=35,choices=CHANNELTYPE) #protocol type
charset = StripCharField(max_length=35,default=u'us-ascii')
host = StripCharField(max_length=256,blank=True)
port = models.PositiveIntegerField(default=0,blank=True,null=True)
username = StripCharField(max_length=35,blank=True)
secret = StripCharField(max_length=35,blank=True,verbose_name=_(u'password'))
starttls = models.BooleanField(default=False,verbose_name='No check from-address',help_text=_(u"Do not check if an incoming 'from' email addresses is known.")) #20091027: used as 'no check on "from:" email address'
apop = models.BooleanField(default=False,verbose_name='No check to-address',help_text=_(u"Do not check if an incoming 'to' email addresses is known.")) #not used anymore (is in 'type' now) #20110104: used as 'no check on "to:" email address'
remove = models.BooleanField(default=False,help_text=_(u'For in-channels: remove the edi files after successful reading. Note: in production you do want to remove the edi files, else these are read over and over again!'))
path = StripCharField(max_length=256,blank=True) #different from host - in ftp both are used
filename = StripCharField(max_length=35,blank=True,help_text=_(u'For "type" ftp and file; read or write this filename. Wildcards allowed, eg "*.edi". Note for out-channels: if no wildcard is used, all edi message are written to one file.'))
lockname = StripCharField(max_length=35,blank=True,help_text=_(u'When reading or writing edi files in this directory use this file to indicate a directory lock.'))
syslock = models.BooleanField(default=False,help_text=_(u'Use system file locking for reading & writing edi files on windows, *nix.'))
parameters = StripCharField(max_length=70,blank=True)
ftpaccount = StripCharField(max_length=35,blank=True)
ftpactive = models.BooleanField(default=False)
ftpbinary = models.BooleanField(default=False)
askmdn = StripCharField(max_length=17,blank=True,choices=ENCODE_MIME,verbose_name=_(u'mime encoding'),help_text=_(u'Should edi-files be base64-encoded in email. Using base64 for edi (default) is often a good choice.')) #not used anymore 20091019: 20100703: used to indicate mime-encoding
sendmdn = StripCharField(max_length=17,blank=True) #not used anymore 20091019
mdnchannel = StripCharField(max_length=35,blank=True) #not used anymore 20091019
archivepath = StripCharField(max_length=256,blank=True,verbose_name=_(u'Archive path'),help_text=_(u'Write incoming or outgoing edi files to an archive. Use absolute or relative path; relative path is relative to bots directory. Eg: "botssys/archive/mychannel".')) #added 20091028
desc = models.TextField(max_length=256,null=True,blank=True)
rsrv1 = StripCharField(max_length=35,blank=True,null=True) #added 20100501
rsrv2 = models.IntegerField(null=True,blank=True,verbose_name=_(u'Max seconds'),help_text=_(u'Max seconds used for the in-communication time for this channel.')) #added 20100501. 20110906: max communication time.
class Meta:
ordering = ['idchannel']
db_table = 'channel'
def __unicode__(self):
return self.idchannel
class partner(botsmodel):
idpartner = StripCharField(max_length=35,primary_key=True,verbose_name=_(u'partner identification'))
active = models.BooleanField(default=False)
isgroup = models.BooleanField(default=False)
name = StripCharField(max_length=256) #only used for user information
mail = StripCharField(max_length=256,blank=True)
cc = models.EmailField(max_length=256,blank=True)
mail2 = models.ManyToManyField(channel, through='chanpar',blank=True)
group = models.ManyToManyField("self",db_table='partnergroup',blank=True,symmetrical=False,limit_choices_to = {'isgroup': True})
rsrv1 = StripCharField(max_length=35,blank=True,null=True) #added 20100501
rsrv2 = models.IntegerField(null=True) #added 20100501
class Meta:
ordering = ['idpartner']
db_table = 'partner'
def __unicode__(self):
return unicode(self.idpartner)
class chanpar(botsmodel):
#~ id = models.IntegerField(primary_key=True) #added 20091221
idpartner = models.ForeignKey(partner,verbose_name=_(u'partner'))
idchannel = models.ForeignKey(channel,verbose_name=_(u'channel'))
mail = StripCharField(max_length=256)
cc = models.EmailField(max_length=256,blank=True) #added 20091111
askmdn = models.BooleanField(default=False) #not used anymore 20091019
sendmdn = models.BooleanField(default=False) #not used anymore 20091019
class Meta:
unique_together = (("idpartner","idchannel"),)
db_table = 'chanpar'
verbose_name = _(u'email address per channel')
verbose_name_plural = _(u'email address per channel')
def __unicode__(self):
return str(self.idpartner) + ' ' + str(self.idchannel) + ' ' + str(self.mail)
class translate(botsmodel):
#~ id = models.IntegerField(primary_key=True)
active = models.BooleanField(default=False)
fromeditype = StripCharField(max_length=35,choices=EDITYPES,help_text=_(u'Editype to translate from.'))
frommessagetype = StripCharField(max_length=35,help_text=_(u'Messagetype to translate from.'))
alt = StripCharField(max_length=35,null=False,blank=True,verbose_name=_(u'Alternative translation'),help_text=_(u'Do this translation only for this alternative translation.'))
frompartner = models.ForeignKey(partner,related_name='tfrompartner',null=True,blank=True,help_text=_(u'Do this translation only for this frompartner.'))
topartner = models.ForeignKey(partner,related_name='ttopartner',null=True,blank=True,help_text=_(u'Do this translation only for this topartner.'))
tscript = StripCharField(max_length=35,help_text=_(u'User mapping script to use for translation.'))
toeditype = StripCharField(max_length=35,choices=EDITYPES,help_text=_(u'Editype to translate to.'))
tomessagetype = StripCharField(max_length=35,help_text=_(u'Messagetype to translate to.'))
desc = models.TextField(max_length=256,null=True,blank=True)
rsrv1 = StripCharField(max_length=35,blank=True,null=True) #added 20100501
rsrv2 = models.IntegerField(null=True) #added 20100501
class Meta:
db_table = 'translate'
verbose_name = _(u'translation')
ordering = ['fromeditype','frommessagetype']
def __unicode__(self):
return unicode(self.fromeditype) + u' ' + unicode(self.frommessagetype) + u' ' + unicode(self.alt) + u' ' + unicode(self.frompartner) + u' ' + unicode(self.topartner)
class routes(botsmodel):
#~ id = models.IntegerField(primary_key=True)
idroute = StripCharField(max_length=35,db_index=True,help_text=_(u'identification of route; one route can consist of multiple parts having the same "idroute".'))
seq = models.PositiveIntegerField(default=1,help_text=_(u'for routes consisting of multiple parts, "seq" indicates the order these parts are run.'))
active = models.BooleanField(default=False)
fromchannel = models.ForeignKey(channel,related_name='rfromchannel',null=True,blank=True,verbose_name=_(u'incoming channel'),limit_choices_to = {'inorout': 'in'})
fromeditype = StripCharField(max_length=35,choices=EDITYPES,blank=True,help_text=_(u'the editype of the incoming edi files.'))
frommessagetype = StripCharField(max_length=35,blank=True,help_text=_(u'the messagetype of incoming edi files. For edifact: messagetype=edifact; for x12: messagetype=x12.'))
tochannel = models.ForeignKey(channel,related_name='rtochannel',null=True,blank=True,verbose_name=_(u'outgoing channel'),limit_choices_to = {'inorout': 'out'})
toeditype = StripCharField(max_length=35,choices=EDITYPES,blank=True,help_text=_(u'Only edi files with this editype to this outgoing channel.'))
tomessagetype = StripCharField(max_length=35,blank=True,help_text=_(u'Only edi files of this messagetype to this outgoing channel.'))
alt = StripCharField(max_length=35,default=u'',blank=True,verbose_name='Alternative translation',help_text=_(u'Only use if there is more than one "translation" for the same editype and messagetype. Advanced use, seldom needed.'))
frompartner = models.ForeignKey(partner,related_name='rfrompartner',null=True,blank=True,help_text=_(u'The frompartner of the incoming edi files. Seldom needed.'))
topartner = models.ForeignKey(partner,related_name='rtopartner',null=True,blank=True,help_text=_(u'The topartner of the incoming edi files. Seldom needed.'))
frompartner_tochannel = models.ForeignKey(partner,related_name='rfrompartner_tochannel',null=True,blank=True,help_text=_(u'Only edi files from this partner/partnergroup for this outgoing channel'))
topartner_tochannel = models.ForeignKey(partner,related_name='rtopartner_tochannel',null=True,blank=True,help_text=_(u'Only edi files to this partner/partnergroup to this channel'))
testindicator = StripCharField(max_length=1,blank=True,help_text=_(u'Only edi files with this testindicator to this outgoing channel.'))
translateind = models.BooleanField(default=True,blank=True,verbose_name='translate',help_text=_(u'Do a translation in this route.'))
notindefaultrun = models.BooleanField(default=False,blank=True,help_text=_(u'Do not use this route in a normal run. Advanced, related to scheduling specific routes or not.'))
desc = models.TextField(max_length=256,null=True,blank=True)
rsrv1 = StripCharField(max_length=35,blank=True,null=True) #added 20100501
rsrv2 = models.IntegerField(null=True) #added 20100501
defer = models.BooleanField(default=False,blank=True,help_text=_(u'Set ready for communication, but defer actual communication (this is done in another route)')) #added 20100601
class Meta:
db_table = 'routes'
verbose_name = _(u'route')
unique_together = (("idroute","seq"),)
ordering = ['idroute','seq']
def __unicode__(self):
return unicode(self.idroute) + u' ' + unicode(self.seq)
#***********************************************************************************
#******** written by engine ********************************************************
#***********************************************************************************
class filereport(botsmodel):
#~ id = models.IntegerField(primary_key=True)
idta = models.IntegerField(db_index=True)
reportidta = models.IntegerField(db_index=True)
statust = models.IntegerField(choices=STATUST)
retransmit = models.IntegerField()
idroute = StripCharField(max_length=35)
fromchannel = StripCharField(max_length=35)
tochannel = StripCharField(max_length=35)
frompartner = StripCharField(max_length=35)
topartner = StripCharField(max_length=35)
frommail = StripCharField(max_length=256)
tomail = StripCharField(max_length=256)
ineditype = StripCharField(max_length=35,choices=EDITYPES)
inmessagetype = StripCharField(max_length=35)
outeditype = StripCharField(max_length=35,choices=EDITYPES)
outmessagetype = StripCharField(max_length=35)
incontenttype = StripCharField(max_length=35)
outcontenttype = StripCharField(max_length=35)
nrmessages = models.IntegerField()
ts = models.DateTimeField(db_index=True) #copied from ta
infilename = StripCharField(max_length=256)
inidta = models.IntegerField(null=True) #not used anymore
outfilename = StripCharField(max_length=256)
outidta = models.IntegerField()
divtext = StripCharField(max_length=35)
errortext = StripCharField(max_length=2048)
rsrv1 = StripCharField(max_length=35,blank=True,null=True) #added 20100501
rsrv2 = models.IntegerField(null=True) #added 20100501
class Meta:
db_table = 'filereport'
unique_together = (("idta","reportidta"),)
class mutex(botsmodel):
#specific SQL is used (database defaults are used)
mutexk = models.IntegerField(primary_key=True)
mutexer = models.IntegerField()
ts = models.DateTimeField()
class Meta:
db_table = 'mutex'
class persist(botsmodel):
#OK, this has gone wrong. There is no primary key here, so django generates this. But there is no ID in the custom sql.
#Django still uses the ID in sql manager. This leads to an error in snapshot plugin. Disabled this in snapshot function; to fix this really database has to be changed.
#specific SQL is used (database defaults are used)
domein = StripCharField(max_length=35)
botskey = StripCharField(max_length=35)
content = StripCharField(max_length=1024)
ts = models.DateTimeField()
class Meta:
db_table = 'persist'
unique_together = (("domein","botskey"),)
class report(botsmodel):
idta = models.IntegerField(primary_key=True) #rename to reportidta
lastreceived = models.IntegerField()
lastdone = models.IntegerField()
lastopen = models.IntegerField()
lastok = models.IntegerField()
lasterror = models.IntegerField()
send = models.IntegerField()
processerrors = models.IntegerField()
ts = models.DateTimeField() #copied from (runroot)ta
type = StripCharField(max_length=35)
status = models.BooleanField()
rsrv1 = StripCharField(max_length=35,blank=True,null=True) #added 20100501
rsrv2 = models.IntegerField(null=True) ##added 20100501
class Meta:
db_table = 'report'
#~ #trigger for sqlite to use local time (instead of utc). I can not add this to sqlite specific sql code, as django does not allow complex (begin ... end) sql here.
#~ CREATE TRIGGER uselocaltime AFTER INSERT ON ta
#~ BEGIN
#~ UPDATE ta
#~ SET ts = datetime('now','localtime')
#~ WHERE idta = new.idta ;
#~ END;
class ta(botsmodel):
#specific SQL is used (database defaults are used)
idta = models.AutoField(primary_key=True)
statust = models.IntegerField(choices=STATUST)
status = models.IntegerField(choices=STATUS)
parent = models.IntegerField(db_index=True)
child = models.IntegerField()
script = models.IntegerField(db_index=True)
idroute = StripCharField(max_length=35)
filename = StripCharField(max_length=256)
frompartner = StripCharField(max_length=35)
topartner = StripCharField(max_length=35)
fromchannel = StripCharField(max_length=35)
tochannel = StripCharField(max_length=35)
editype = StripCharField(max_length=35)
messagetype = StripCharField(max_length=35)
alt = StripCharField(max_length=35)
divtext = StripCharField(max_length=35)
merge = models.BooleanField()
nrmessages = models.IntegerField()
testindicator = StripCharField(max_length=10) #0:production; 1:test. Length to 1?
reference = StripCharField(max_length=70)
frommail = StripCharField(max_length=256)
tomail = StripCharField(max_length=256)
charset = StripCharField(max_length=35)
statuse = models.IntegerField() #obsolete 20091019 but still used by intercommit comm. module
retransmit = models.BooleanField() #20070831: only retransmit, not rereceive
contenttype = StripCharField(max_length=35)
errortext = StripCharField(max_length=2048)
ts = models.DateTimeField()
confirmasked = models.BooleanField() #added 20091019; confirmation asked or send
confirmed = models.BooleanField() #added 20091019; is confirmation received (when asked)
confirmtype = StripCharField(max_length=35) #added 20091019
confirmidta = models.IntegerField() #added 20091019
envelope = StripCharField(max_length=35) #added 20091024
botskey = StripCharField(max_length=35) #added 20091024
cc = StripCharField(max_length=512) #added 20091111
rsrv1 = StripCharField(max_length=35) #added 20100501
rsrv2 = models.IntegerField(null=True) #added 20100501
rsrv3 = StripCharField(max_length=35) #added 20100501
rsrv4 = models.IntegerField(null=True) #added 20100501
class Meta:
db_table = 'ta'
class uniek(botsmodel):
#specific SQL is used (database defaults are used)
domein = StripCharField(max_length=35,primary_key=True)
nummer = models.IntegerField()
class Meta:
db_table = 'uniek'
verbose_name = _(u'counter')
ordering = ['domein']
| [
[
1,
0,
0.0023,
0.0023,
0,
0.66,
0,
426,
0,
1,
0,
0,
426,
0,
0
],
[
1,
0,
0.0046,
0.0023,
0,
0.66,
0.037,
40,
0,
1,
0,
0,
40,
0,
0
],
[
1,
0,
0.0068,
0.0023,
0,
0.6... | [
"from datetime import datetime",
"from django.db import models",
"from django.utils.translation import ugettext as _",
"'''\ndjango is not excellent in generating db. But they have provided a way to customize the generated database using SQL. see bots/sql/*.\n'''",
"STATUST = [\n (0, _(u'Open')),\n (1... |
''' Reading/lexing/parsing/splitting an edifile.'''
import StringIO
import time
import sys
try:
import cPickle as pickle
except:
import pickle
try:
import cElementTree as ET
except ImportError:
try:
import elementtree.ElementTree as ET
except ImportError:
try:
from xml.etree import cElementTree as ET
except ImportError:
from xml.etree import ElementTree as ET
try:
import json as simplejson
except ImportError:
import simplejson
from django.utils.translation import ugettext as _
import botslib
import botsglobal
import outmessage
import message
import node
import grammar
from botsconfig import *
def edifromfile(**ta_info):
''' Read,lex, parse edi-file. Is a dispatch function for Inmessage and subclasses.'''
try:
classtocall = globals()[ta_info['editype']] #get inmessage class to call (subclass of Inmessage)
except KeyError:
raise botslib.InMessageError(_(u'Unknown editype for incoming message: $editype'),editype=ta_info['editype'])
ediobject = classtocall(ta_info)
ediobject.initfromfile()
return ediobject
def _edifromparsed(editype,inode,ta_info):
''' Get a edi-message (inmessage-object) from node in tree.
is used in splitting edi-messages.'''
classtocall = globals()[editype]
ediobject = classtocall(ta_info)
ediobject.initfromparsed(inode)
return ediobject
#*****************************************************************************
class Inmessage(message.Message):
''' abstract class for incoming ediobject (file or message).
Can be initialised from a file or a tree.
'''
def __init__(self,ta_info):
super(Inmessage,self).__init__()
self.records = [] #init list of records
self.confirminfo = {}
self.ta_info = ta_info #here ta_info is only filled with parameters from db-ta
def initfromfile(self):
''' initialisation from a edi file '''
self.defmessage = grammar.grammarread(self.ta_info['editype'],self.ta_info['messagetype']) #read grammar, after sniffing. Information from sniffing can be used (eg name editype for edifact, using version info from UNB)
botslib.updateunlessset(self.ta_info,self.defmessage.syntax) #write values from grammar to self.ta_info - unless these values are already set
self.ta_info['charset'] =self.defmessage.syntax['charset'] #always use charset of edi file.
self._readcontent_edifile()
self._sniff() #some hard-coded parsing of edi file; eg ta_info can be overruled by syntax-parameters in edi-file
#start lexing and parsing
self._lex()
del self.rawinput
#~ self.display(self.records) #show lexed records (for protocol debugging)
self.root = node.Node() #make root Node None.
result = self._parse(self.defmessage.structure,self._nextrecord(self.records),self.root)
if result:
raise botslib.InMessageError(_(u'Unknown data beyond end of message; mostly problem with separators or message structure: "$content"'),content=result)
del self.records
#end parsing; self.root is root of a tree (of nodes).
self.checkenvelope()
#~ self.root.display() #show tree of nodes (for protocol debugging)
#~ self.root.displayqueries() #show queries in tree of nodes (for protocol debugging)
def initfromparsed(self,node):
''' initialisation from a tree (node is passed).
to initialise message in an envelope
'''
self.root = node
def handleconfirm(self,ta_fromfile,error):
''' end of edi file handling.
eg writing of confirmations etc.
'''
pass
def _formatfield(self,value,grammarfield,record):
''' Format of a field is checked and converted if needed.
Input: value (string), field definition.
Output: the formatted value (string)
Parameters of self.ta_info are used: triad, decimaal
for fixed field: same handling; length is not checked.
'''
if grammarfield[BFORMAT] in ['A','D','T']:
if isinstance(self,var): #check length fields in variable records
valuelength=len(value)
if valuelength > grammarfield[LENGTH]:
raise botslib.InMessageFieldError(_(u'Record "$record" field "$field" too big (max $max): "$content".'),record=record,field=grammarfield[ID],content=value,max=grammarfield[LENGTH])
if valuelength < grammarfield[MINLENGTH]:
raise botslib.InMessageFieldError(_(u'Record "$record" field "$field" too small (min $min): "$content".'),record=record,field=grammarfield[ID],content=value,min=grammarfield[MINLENGTH])
value = value.strip()
if not value:
pass
elif grammarfield[BFORMAT] == 'A':
pass
elif grammarfield[BFORMAT] == 'D':
try:
lenght = len(value)
if lenght==6:
time.strptime(value,'%y%m%d')
elif lenght==8:
time.strptime(value,'%Y%m%d')
else:
raise ValueError(u'To be catched')
except ValueError:
raise botslib.InMessageFieldError(_(u'Record "$record" date field "$field" not a valid date: "$content".'),record=record,field=grammarfield[ID],content=value)
elif grammarfield[BFORMAT] == 'T':
try:
lenght = len(value)
if lenght==4:
time.strptime(value,'%H%M')
elif lenght==6:
time.strptime(value,'%H%M%S')
elif lenght==7 or lenght==8:
time.strptime(value[0:6],'%H%M%S')
if not value[6:].isdigit():
raise ValueError(u'To be catched')
else:
raise ValueError(u'To be catched')
except ValueError:
raise botslib.InMessageFieldError(_(u'Record "$record" time field "$field" not a valid time: "$content".'),record=record,field=grammarfield[ID],content=value)
else: #numerics (R, N, I)
value = value.strip()
if not value:
if self.ta_info['acceptspaceinnumfield']:
value='0'
else:
raise botslib.InMessageFieldError(_(u'Record "$record" field "$field" has numeric format but contains only space.'),record=record,field=grammarfield[ID])
#~ return '' #when num field has spaces as content, spaces are stripped. Field should be numeric.
if value[-1] == u'-': #if minus-sign at the end, put it in front.
value = value[-1] + value[:-1]
value = value.replace(self.ta_info['triad'],u'') #strip triad-separators
value = value.replace(self.ta_info['decimaal'],u'.',1) #replace decimal sign by canonical decimal sign
if 'E' in value or 'e' in value:
raise botslib.InMessageFieldError(_(u'Record "$record" field "$field" format "$format" contains exponent: "$content".'),record=record,field=grammarfield[ID],content=value,format=grammarfield[BFORMAT])
if isinstance(self,var): #check length num fields in variable records
if self.ta_info['lengthnumericbare']:
length = botslib.countunripchars(value,'-+.')
else:
length = len(value)
if length > grammarfield[LENGTH]:
raise botslib.InMessageFieldError(_(u'Record "$record" field "$field" too big (max $max): "$content".'),record=record,field=grammarfield[ID],content=value,max=grammarfield[LENGTH])
if length < grammarfield[MINLENGTH]:
raise botslib.InMessageFieldError(_(u'Record "$record" field "$field" too small (min $min): "$content".'),record=record,field=grammarfield[ID],content=value,min=grammarfield[MINLENGTH])
if grammarfield[BFORMAT] == 'I':
if '.' in value:
raise botslib.InMessageFieldError(_(u'Record "$record" field "$field" has format "I" but contains decimal sign: "$content".'),record=record,field=grammarfield[ID],content=value)
try: #convert to decimal in order to check validity
valuedecimal = float(value)
valuedecimal = valuedecimal / 10**grammarfield[DECIMALS]
value = '%.*F'%(grammarfield[DECIMALS],valuedecimal)
except:
raise botslib.InMessageFieldError(_(u'Record "$record" numeric field "$field" has non-numerical content: "$content".'),record=record,field=grammarfield[ID],content=value)
elif grammarfield[BFORMAT] == 'N':
lendecimal = len(value[value.find('.'):])-1
if lendecimal != grammarfield[DECIMALS]:
raise botslib.InMessageFieldError(_(u'Record "$record" numeric field "$field" has invalid nr of decimals: "$content".'),record=record,field=grammarfield[ID],content=value)
try: #convert to decimal in order to check validity
valuedecimal = float(value)
value = '%.*F'%(lendecimal,valuedecimal)
except:
raise botslib.InMessageFieldError(_(u'Record "$record" numeric field "$field" has non-numerical content: "$content".'),record=record,field=grammarfield[ID],content=value)
elif grammarfield[BFORMAT] == 'R':
lendecimal = len(value[value.find('.'):])-1
try: #convert to decimal in order to check validity
valuedecimal = float(value)
value = '%.*F'%(lendecimal,valuedecimal)
except:
raise botslib.InMessageFieldError(_(u'Record "$record" numeric field "$field" has non-numerical content: "$content".'),record=record,field=grammarfield[ID],content=value)
return value
def _parse(self,tab,_nextrecord,inode,rec2parse=None,argmessagetype=None,argnewnode=None):
''' parse the lexed records. validate message against grammar.
add grammar-info to records in self.records: field-tag,mpath.
Tab: current grammar/segmentgroup of the grammar-structure.
Read the records one by one.
Lookup record in tab.
if found:
if headersegment (tabrecord has own tab):
go recursive.
if not found:
if trailer:
jump back recursive, returning the unparsed record.
'''
for tabrec in tab: #clear counts for tab-records (start fresh).
tabrec[COUNT] = 0
tabindex = 0
tabmax = len(tab)
if rec2parse is None:
parsenext = True
subparse=False
else: #only for subparsing
parsenext = False
subparse=True
while 1:
if parsenext:
try:
rec2parse = _nextrecord.next()
except StopIteration: #catch when no more rec2parse.
rec2parse = None
parsenext = False
if rec2parse is None or tab[tabindex][ID] != rec2parse[ID][VALUE]:
#for StopIteration(loop rest of grammar) or when rec2parse
if tab[tabindex][COUNT] < tab[tabindex][MIN]:
try:
raise botslib.InMessageError(_(u'line:$line pos:$pos; record:"$record" not in grammar; looked in grammar until mandatory record: "$looked".'),record=rec2parse[ID][VALUE],line=rec2parse[ID][LIN],pos=rec2parse[ID][POS],looked=tab[tabindex][MPATH])
except TypeError:
raise botslib.InMessageError(_(u'missing mandatory record at message-level: "$record"'),record=tab[tabindex][MPATH])
#TODO: line/pos of original file in error...when this is possible, XML?
tabindex += 1
if tabindex >= tabmax: #rec2parse is not in this level. Go level up
return rec2parse #return either None (for StopIteration) or the last record2parse (not found in this level)
#continue while-loop (parsenext is false)
else: #if found in grammar
tab[tabindex][COUNT] += 1
if tab[tabindex][COUNT] > tab[tabindex][MAX]:
raise botslib.InMessageError(_(u'line:$line pos:$pos; too many repeats record "$record".'),line=rec2parse[ID][LIN],pos=rec2parse[ID][POS],record=tab[tabindex][ID])
if argmessagetype: #that is, header segment of subtranslation
newnode = argnewnode #use old node that is already parsed
newnode.queries = {'messagetype':argmessagetype} #copy messagetype into 1st segment of subtranslation (eg UNH, ST)
argmessagetype=None
else:
newnode = node.Node(record=self._parsefields(rec2parse,tab[tabindex][FIELDS]),BOTSIDnr=tab[tabindex][BOTSIDnr]) #make new node
if botsglobal.ini.getboolean('settings','readrecorddebug',False):
botsglobal.logger.debug(u'read record "%s" (line %s pos %s):',tab[tabindex][ID],rec2parse[ID][LIN],rec2parse[ID][POS])
for key,value in newnode.record.items():
botsglobal.logger.debug(u' "%s" : "%s"',key,value)
if SUBTRANSLATION in tab[tabindex]: # subparse starts here: tree is build for this messagetype; the messagetype is read from the edifile
messagetype = self._getmessagetype(newnode.enhancedget(tab[tabindex][SUBTRANSLATION],replace=True),inode)
if not messagetype:
raise botslib.InMessageError(_(u'could not find SUBTRANSLATION "$sub" in (sub)message.'),sub=tab[tabindex][SUBTRANSLATION])
defmessage = grammar.grammarread(self.__class__.__name__,messagetype)
rec2parse = self._parse(defmessage.structure,_nextrecord,inode,rec2parse=rec2parse,argmessagetype=messagetype,argnewnode=newnode)
#~ end subparse for messagetype
else:
inode.append(newnode) #append new node to current node
if LEVEL in tab[tabindex]: #if header, go to subgroup
rec2parse = self._parse(tab[tabindex][LEVEL],_nextrecord,newnode)
if subparse: #back in top level of subparse: return (to motherparse)
return rec2parse
else:
parsenext = True
self.get_queries_from_edi(inode.children[-1],tab[tabindex])
def _getmessagetype(self,messagetypefromsubtranslation,inode):
return messagetypefromsubtranslation
def get_queries_from_edi(self,node,trecord):
''' extract information from edifile using QUERIES in grammar.structure; information will be placed in ta_info and in db-ta
'''
if QUERIES in trecord:
#~ print 'Print QUERIES'
tmpdict = {}
#~ print trecord[QUERIES]
for key,value in trecord[QUERIES].items():
found = node.enhancedget(value) #search in last added node
if found:
#~ print ' found',found,value
tmpdict[key] = found #copy key to avoid memory problems
#~ else:
#~ print ' not found',value
node.queries = tmpdict
def _readcontent_edifile(self):
''' read content of edi file to memory.
'''
#TODO test, catch exceptions
botsglobal.logger.debug(u'read edi file "%s".',self.ta_info['filename'])
self.rawinput = botslib.readdata(filename=self.ta_info['filename'],charset=self.ta_info['charset'],errors=self.ta_info['checkcharsetin'])
def _sniff(self):
''' sniffing: hard coded parsing of edi file.
method is specified in subclasses.
'''
pass
def checkenvelope(self):
pass
@staticmethod
def _nextrecord(records):
''' generator for records that are lexed.'''
for record in records:
yield record
def nextmessage(self):
''' Generates each message as a separate Inmessage.
'''
#~ self.root.display()
if self.defmessage.nextmessage is not None: #if nextmessage defined in grammar: split up messages
first = True
for message in self.getloop(*self.defmessage.nextmessage): #get node of each message
if first:
self.root.processqueries({},len(self.defmessage.nextmessage))
first = False
ta_info = self.ta_info.copy()
ta_info.update(message.queries)
#~ ta_info['botsroot']=self.root
yield _edifromparsed(self.__class__.__name__,message,ta_info)
if self.defmessage.nextmessage2 is not None: #edifact needs nextmessage2...OK
first = True
for message in self.getloop(*self.defmessage.nextmessage2):
if first:
self.root.processqueries({},len(self.defmessage.nextmessage2))
first = False
ta_info = self.ta_info.copy()
ta_info.update(message.queries)
#~ ta_info['botsroot']=self.root
yield _edifromparsed(self.__class__.__name__,message,ta_info)
elif self.defmessage.nextmessageblock is not None: #for csv/fixed: nextmessageblock indicates which field determines a message (as long as the field is the same, it is one message)
#there is only one recordtype (this is checked in grammar.py).
first = True
for line in self.root.children:
kriterium = line.get(self.defmessage.nextmessageblock)
if first:
first = False
newroot = node.Node() #make new empty root node.
oldkriterium = kriterium
elif kriterium != oldkriterium:
ta_info = self.ta_info.copy()
ta_info.update(oldline.queries) #update ta_info with information (from previous line) 20100905
#~ ta_info['botsroot']=self.root #give mapping script access to all information in edi file: all records
yield _edifromparsed(self.__class__.__name__,newroot,ta_info)
newroot = node.Node() #make new empty root node.
oldkriterium = kriterium
else:
pass #if kriterium is the same
newroot.append(line)
oldline = line #save line 20100905
else:
if not first:
ta_info = self.ta_info.copy()
ta_info.update(line.queries) #update ta_info with information (from last line) 20100904
#~ ta_info['botsroot']=self.root
yield _edifromparsed(self.__class__.__name__,newroot,ta_info)
else: #no split up indicated in grammar;
if self.root.record or self.ta_info['pass_all']: #if contains root-record or explicitly indicated (csv): pass whole tree
ta_info = self.ta_info.copy()
ta_info.update(self.root.queries)
#~ ta_info['botsroot']=None #??is the same as self.root, so I use None??.
yield _edifromparsed(self.__class__.__name__,self.root,ta_info)
else: #pass nodes under root one by one
for child in self.root.children:
ta_info = self.ta_info.copy()
ta_info.update(child.queries)
#~ ta_info['botsroot']=self.root #give mapping script access to all information in edi file: all roots
yield _edifromparsed(self.__class__.__name__,child,ta_info)
class fixed(Inmessage):
''' class for record of fixed length.'''
def _lex(self):
''' lexes file with fixed records to list of records (self.records).'''
linenr = 0
startrecordID = self.ta_info['startrecordID']
endrecordID = self.ta_info['endrecordID']
self.rawinputfile = StringIO.StringIO(self.rawinput) #self.rawinputfile is an iterator
for line in self.rawinputfile:
linenr += 1
line=line.rstrip('\r\n')
self.records += [ [{VALUE:line[startrecordID:endrecordID].strip(),LIN:linenr,POS:0,FIXEDLINE:line}] ] #append record to recordlist
self.rawinputfile.close()
def _parsefields(self,recordEdiFile,trecord):
''' Parse fields from one fixed message-record (from recordEdiFile[ID][FIXEDLINE] using positions.
fields are placed in dict, where key=field-info from grammar and value is from fixedrecord.'''
recorddict = {} #start with empty dict
fixedrecord = recordEdiFile[ID][FIXEDLINE] #shortcut to fixed record we are parsing
lenfixed = len(fixedrecord)
recordlength = 0
for field in trecord: #calculate total length of record from field lengths
recordlength += field[LENGTH]
if recordlength > lenfixed and self.ta_info['checkfixedrecordtooshort']:
raise botslib.InMessageError(_(u'line $line record "$record" too short; is $pos pos, defined is $defpos pos: "$content".'),line=recordEdiFile[ID][LIN],record=recordEdiFile[ID][VALUE],pos=lenfixed,defpos=recordlength,content=fixedrecord)
if recordlength < lenfixed and self.ta_info['checkfixedrecordtoolong']:
raise botslib.InMessageError(_(u'line $line record "$record" too long; is $pos pos, defined is $defpos pos: "$content".'),line=recordEdiFile[ID][LIN],record=recordEdiFile[ID][VALUE],pos=lenfixed,defpos=recordlength,content=fixedrecord)
pos = 0
for field in trecord: #for fields in this record
value = fixedrecord[pos:pos+field[LENGTH]]
try:
value = self._formatfield(value,field,fixedrecord)
except botslib.InMessageFieldError:
txt=botslib.txtexc()
raise botslib.InMessageFieldError(_(u'line:$line pos:$pos. Error:\n$txt'),line=recordEdiFile[ID][LIN],pos=pos,txt=txt)
if value:
recorddict[field[ID][:]] = value #copy id string to avoid memory problem ; value is already a copy
else:
if field[MANDATORY]==u'M':
raise botslib.InMessageFieldError(_(u'line:$line pos:$pos; mandatory field "$field" not in record "$record".'),line=recordEdiFile[ID][LIN],pos=pos,field=field[ID],record=recordEdiFile[ID][VALUE])
pos += field[LENGTH]
#~ if pos > lenfixed:
#~ break
return recorddict
class idoc(fixed):
''' class for idoc ediobjects.
for incoming the same as fixed.
SAP does strip all empty fields for record; is catered for in grammar.defaultsyntax
'''
def _sniff(self):
''' examine a read file for syntax parameters and correctness of protocol
eg parse UNA, find UNB, get charset and version
'''
#goto char that is not whitespace
for count,c in enumerate(self.rawinput):
if not c.isspace():
self.rawinput = self.rawinput[count:] #here the interchange should start
break
else:
raise botslib.InMessageError(_(u'edi file only contains whitespace.'))
if self.rawinput[:6] != 'EDI_DC':
raise botslib.InMessageError(_(u'expect "EDI_DC", found "$content". Probably no SAP idoc.'),content=self.rawinput[:6])
class var(Inmessage):
''' abstract class for ediobjects with records of variabele length.'''
def _lex(self):
''' lexes file with variable records to list of records, fields and subfields (self.records).'''
quote_char = self.ta_info['quote_char']
skip_char = self.ta_info['skip_char'] #skip char (ignore);
escape = self.ta_info['escape'] #char after escape-char is not interpreted as seperator
field_sep = self.ta_info['field_sep'] + self.ta_info['record_tag_sep'] #for tradacoms; field_sep and record_tag_sep have same function.
sfield_sep = self.ta_info['sfield_sep']
record_sep = self.ta_info['record_sep']
mode_escape = 0 #0=not escaping, 1=escaping
mode_quote = 0 #0=not in quote, 1=in quote
mode_2quote = 0 #0=not escaping quote, 1=escaping quote.
mode_inrecord = 0 #indicates if lexing a record. If mode_inrecord==0: skip whitespace
sfield = False # True: is subveld, False is geen subveld
value = u'' #the value of the current token
record = []
valueline = 1 #starting line of token
valuepos = 1 #starting position of token
countline = 1
countpos = 0
#bepaal tekenset, separators etc adhv UNA/UNOB
for c in self.rawinput: #get next char
if c == u'\n': #line within file
countline += 1
countpos = 0 #new line, pos back to 0
#no continue, because \n can be record separator. In edifact: catched with skip_char
else:
countpos += 1 #position within line
if mode_quote: #within a quote: quote-char is also escape-char
if mode_2quote and c == quote_char: #thus we were escaping quote_char
mode_2quote = 0
value += c #append quote_char
continue
elif mode_escape: #tricky: escaping a quote char
mode_escape = 0
value += c
continue
elif mode_2quote: #thus is was a end-quote
mode_2quote = 0
mode_quote= 0
#go on parsing
elif c==quote_char: #either end-quote or escaping quote_char,we do not know yet
mode_2quote = 1
continue
elif c == escape:
mode_escape = 1
continue
else:
value += c
continue
if mode_inrecord:
pass #do nothing, is already in mode_inrecord
else:
if c.isspace():
continue #not in mode_inrecord, and a space: ignore space between records.
else:
mode_inrecord = 1
if c in skip_char: #after mode_quote, but before mode_escape!!
continue
if mode_escape: #always append in escaped_mode
mode_escape = 0
value += c
continue
if not value: #if no char in token: this is a new token, get line and pos for (new) token
valueline = countline
valuepos = countpos
if c == quote_char:
mode_quote = 1
continue
if c == escape:
mode_escape = 1
continue
if c in field_sep: #for tradacoms: record_tag_sep is appended to field_sep; in lexing they have the same function
record += [{VALUE:value,SFIELD:sfield,LIN:valueline,POS:valuepos}] #append element in record
value = u''
sfield = False
continue
if c == sfield_sep:
record += [{VALUE:value,SFIELD:sfield,LIN:valueline,POS:valuepos}] #append element in record
value = u''
sfield = True
continue
if c in record_sep:
record += [{VALUE:value,SFIELD:sfield,LIN:valueline,POS:valuepos}] #append element in record
self.records += [record] #write record to recordlist
record=[]
value = u''
sfield = False
mode_inrecord=0
continue
value += c #just a char: append char to value
#end of for-loop. all characters have been processed.
#in a perfect world, value should always be empty now, but:
#it appears a csv record is not always closed properly, so force the closing of the last record of csv file:
if mode_inrecord and isinstance(self,csv) and self.ta_info['allow_lastrecordnotclosedproperly']:
record += [{VALUE:value,SFIELD:sfield,LIN:valueline,POS:valuepos}] #append element in record
self.records += [record] #write record to recordlist
elif value.strip('\x00\x1a'):
raise botslib.InMessageError(_(u'translation problem with lexing; probably a seperator-problem, or extra characters after interchange'))
def _striprecord(self,recordEdiFile):
#~ return [field[VALUE] for field in recordEdiFile]
terug = ''
for field in recordEdiFile:
terug += field[VALUE] + ' '
if len(terug) > 35:
terug = terug[:35] + ' (etc)'
return terug
def _parsefields(self,recordEdiFile,trecord):
''' Check all fields in message-record with field-info in grammar
Build a dictionary of fields (field-IDs are unique within record), and return this.
'''
recorddict = {}
#****************** first: identify fields: assign field id to lexed fields
tindex = -1 #elementcounter; composites count as one
tsubindex=0 #sub-element couner (witin composite))
for rfield in recordEdiFile: #handle both fields and sub-fields
if rfield[SFIELD]:
tsubindex += 1
try:
field = trecord[tindex][SUBFIELDS][tsubindex]
except TypeError: #field has no SUBFIELDS
raise botslib.InMessageFieldError(_(u'line:$line pos:$pos; expect field, is a subfield; record "$record".'),line=rfield[LIN],pos=rfield[POS],record=self._striprecord(recordEdiFile))
except IndexError: #tsubindex is not in the subfields
raise botslib.InMessageFieldError(_(u'line:$line pos:$pos; too many subfields; record "$record".'),line=rfield[LIN],pos=rfield[POS],record=self._striprecord(recordEdiFile))
else:
tindex += 1
try:
field = trecord[tindex]
except IndexError:
raise botslib.InMessageFieldError(_(u'line:$line pos:$pos; too many fields; record "$record".'),line=rfield[LIN],pos=rfield[POS],record=self._striprecord(recordEdiFile))
if not field[ISFIELD]: #if field is subfield
tsubindex = 0
field = trecord[tindex][SUBFIELDS][tsubindex]
#*********if field has content: check format and add to recorddictionary
if rfield[VALUE]:
try:
rfield[VALUE] = self._formatfield(rfield[VALUE],field,recordEdiFile[0][VALUE])
except botslib.InMessageFieldError:
txt=botslib.txtexc()
raise botslib.InMessageFieldError(_(u'line:$line pos:$pos. Error:\n$txt'),line=rfield[LIN],pos=rfield[POS],txt=txt)
recorddict[field[ID][:]]=rfield[VALUE][:] #copy string to avoid memory problems
#****************** then: check M/C
for tfield in trecord:
if tfield[ISFIELD]: #tfield is normal field (not a composite)
if tfield[MANDATORY]==u'M' and tfield[ID] not in recorddict:
raise botslib.InMessageError(_(u'line:$line mandatory field "$field" not in record "$record".'),line=recordEdiFile[0][LIN],field=tfield[ID],record=self._striprecord(recordEdiFile))
else:
compositefilled = False
for sfield in tfield[SUBFIELDS]: #t[2]: subfields in grammar
if sfield[ID] in recorddict:
compositefilled = True
break
if compositefilled:
for sfield in tfield[SUBFIELDS]: #t[2]: subfields in grammar
if sfield[MANDATORY]==u'M' and sfield[ID] not in recorddict:
raise botslib.InMessageError(_(u'line:$line mandatory subfield "$field" not in composite, record "$record".'),line=recordEdiFile[0][LIN],field=sfield[ID],record=self._striprecord(recordEdiFile))
if not compositefilled and tfield[MANDATORY]==u'M':
raise botslib.InMessageError(_(u'line:$line mandatory composite "$field" not in record "$record".'),line=recordEdiFile[0][LIN],field=tfield[ID],record=self._striprecord(recordEdiFile))
return recorddict
class csv(var):
''' class for ediobjects with Comma Separated Values'''
def _lex(self):
super(csv,self)._lex()
if self.ta_info['skip_firstline']: #if first line for CSV should be skipped (contains field names)
del self.records[0]
if self.ta_info['noBOTSID']: #if read records contain no BOTSID: add it
botsid = self.defmessage.structure[0][ID] #add the recordname as BOTSID
for record in self.records:
record[0:0]=[{VALUE: botsid, POS: 0, LIN: 0, SFIELD: False}]
class edifact(var):
''' class for edifact inmessage objects.'''
def _readcontent_edifile(self):
''' read content of edi file in memory.
For edifact: not unicode. after sniffing unicode is used to check charset (UNOA etc)
In sniff: determine charset; then decode according to charset
'''
botsglobal.logger.debug(u'read edi file "%s".',self.ta_info['filename'])
self.rawinput = botslib.readdata(filename=self.ta_info['filename'],errors=self.ta_info['checkcharsetin'])
def _sniff(self):
''' examine a read file for syntax parameters and correctness of protocol
eg parse UNA, find UNB, get charset and version
'''
#goto char that is alphanumeric
for count,c in enumerate(self.rawinput):
if c.isalnum():
break
else:
raise botslib.InMessageError(_(u'edi file only contains whitespace.'))
if self.rawinput[count:count+3] == 'UNA':
unacharset=True
self.ta_info['sfield_sep'] = self.rawinput[count+3]
self.ta_info['field_sep'] = self.rawinput[count+4]
self.ta_info['decimaal'] = self.rawinput[count+5]
self.ta_info['escape'] = self.rawinput[count+6]
self.ta_info['reserve'] = '' #self.rawinput[count+7] #for now: no support of repeating dataelements
self.ta_info['record_sep'] = self.rawinput[count+8]
#goto char that is alphanumeric
for count2,c in enumerate(self.rawinput[count+9:]):
if c.isalnum():
break
self.rawinput = self.rawinput[count+count2+9:] #here the interchange should start; UNA is no longer needed
else:
unacharset=False
self.rawinput = self.rawinput[count:] #here the interchange should start
if self.rawinput[:3] != 'UNB':
raise botslib.InMessageError(_(u'No "UNB" at the start of file. Maybe not edifact.'))
self.ta_info['charset'] = self.rawinput[4:8]
self.ta_info['version'] = self.rawinput[9:10]
if not unacharset:
if self.rawinput[3:4]=='+' and self.rawinput[8:9]==':': #assume standard separators.
self.ta_info['sfield_sep'] = ':'
self.ta_info['field_sep'] = '+'
self.ta_info['decimaal'] = '.'
self.ta_info['escape'] = '?'
self.ta_info['reserve'] = '' #for now: no support of repeating dataelements
self.ta_info['record_sep'] = "'"
elif self.rawinput[3:4]=='\x1D' and self.rawinput[8:9]=='\x1F': #check if UNOB separators are used
self.ta_info['sfield_sep'] = '\x1F'
self.ta_info['field_sep'] = '\x1D'
self.ta_info['decimaal'] = '.'
self.ta_info['escape'] = ''
self.ta_info['reserve'] = '' #for now: no support of repeating dataelements
self.ta_info['record_sep'] = '\x1C'
else:
raise botslib.InMessageError(_(u'Incoming edi file uses non-standard separators - should use UNA.'))
try:
self.rawinput = self.rawinput.decode(self.ta_info['charset'],self.ta_info['checkcharsetin'])
except LookupError:
raise botslib.InMessageError(_(u'Incoming edi file has unknown charset "$charset".'),charset=self.ta_info['charset'])
except UnicodeDecodeError, flup:
raise botslib.InMessageError(_(u'not allowed chars in incoming edi file (for translation) at/after filepos: $content'),content=flup[2])
def checkenvelope(self):
self.confirmationlist = [] #information about the edifact file for confirmation/CONTRL; for edifact this is done per interchange (UNB-UNZ)
for nodeunb in self.getloop({'BOTSID':'UNB'}):
botsglobal.logmap.debug(u'Start parsing edifact envelopes')
sender = nodeunb.get({'BOTSID':'UNB','S002.0004':None})
receiver = nodeunb.get({'BOTSID':'UNB','S003.0010':None})
UNBreference = nodeunb.get({'BOTSID':'UNB','0020':None})
UNZreference = nodeunb.get({'BOTSID':'UNB'},{'BOTSID':'UNZ','0020':None})
if UNBreference != UNZreference:
raise botslib.InMessageError(_(u'UNB-reference is "$UNBreference"; should be equal to UNZ-reference "$UNZreference".'),UNBreference=UNBreference,UNZreference=UNZreference)
UNZcount = nodeunb.get({'BOTSID':'UNB'},{'BOTSID':'UNZ','0036':None})
messagecount = len(nodeunb.children) - 1
if int(UNZcount) != messagecount:
raise botslib.InMessageError(_(u'Count in messages in UNZ is $UNZcount; should be equal to number of messages $messagecount.'),UNZcount=UNZcount,messagecount=messagecount)
self.confirmationlist.append({'UNBreference':UNBreference,'UNZcount':UNZcount,'sender':sender,'receiver':receiver,'UNHlist':[]}) #gather information about functional group (GS-GE)
for nodeunh in nodeunb.getloop({'BOTSID':'UNB'},{'BOTSID':'UNH'}):
UNHtype = nodeunh.get({'BOTSID':'UNH','S009.0065':None})
UNHversion = nodeunh.get({'BOTSID':'UNH','S009.0052':None})
UNHrelease = nodeunh.get({'BOTSID':'UNH','S009.0054':None})
UNHcontrollingagency = nodeunh.get({'BOTSID':'UNH','S009.0051':None})
UNHassociationassigned = nodeunh.get({'BOTSID':'UNH','S009.0057':None})
UNHreference = nodeunh.get({'BOTSID':'UNH','0062':None})
UNTreference = nodeunh.get({'BOTSID':'UNH'},{'BOTSID':'UNT','0062':None})
if UNHreference != UNTreference:
raise botslib.InMessageError(_(u'UNH-reference is "$UNHreference"; should be equal to UNT-reference "$UNTreference".'),UNHreference=UNHreference,UNTreference=UNTreference)
UNTcount = nodeunh.get({'BOTSID':'UNH'},{'BOTSID':'UNT','0074':None})
segmentcount = nodeunh.getcount()
if int(UNTcount) != segmentcount:
raise botslib.InMessageError(_(u'Segmentcount in UNT is $UNTcount; should be equal to number of segments $segmentcount.'),UNTcount=UNTcount,segmentcount=segmentcount)
self.confirmationlist[-1]['UNHlist'].append({'UNHreference':UNHreference,'UNHtype':UNHtype,'UNHversion':UNHversion,'UNHrelease':UNHrelease,'UNHcontrollingagency':UNHcontrollingagency,'UNHassociationassigned':UNHassociationassigned}) #add info per message to interchange
for nodeung in nodeunb.getloop({'BOTSID':'UNB'},{'BOTSID':'UNG'}):
UNGreference = nodeung.get({'BOTSID':'UNG','0048':None})
UNEreference = nodeung.get({'BOTSID':'UNG'},{'BOTSID':'UNE','0048':None})
if UNGreference != UNEreference:
raise botslib.InMessageError(_(u'UNG-reference is "$UNGreference"; should be equal to UNE-reference "$UNEreference".'),UNGreference=UNGreference,UNEreference=UNEreference)
UNEcount = nodeung.get({'BOTSID':'UNG'},{'BOTSID':'UNE','0060':None})
groupcount = len(nodeung.children) - 1
if int(UNEcount) != groupcount:
raise botslib.InMessageError(_(u'Groupcount in UNE is $UNEcount; should be equal to number of groups $groupcount.'),UNEcount=UNEcount,groupcount=groupcount)
for nodeunh in nodeung.getloop({'BOTSID':'UNG'},{'BOTSID':'UNH'}):
UNHreference = nodeunh.get({'BOTSID':'UNH','0062':None})
UNTreference = nodeunh.get({'BOTSID':'UNH'},{'BOTSID':'UNT','0062':None})
if UNHreference != UNTreference:
raise botslib.InMessageError(_(u'UNH-reference is "$UNHreference"; should be equal to UNT-reference "$UNTreference".'),UNHreference=UNHreference,UNTreference=UNTreference)
UNTcount = nodeunh.get({'BOTSID':'UNH'},{'BOTSID':'UNT','0074':None})
segmentcount = nodeunh.getcount()
if int(UNTcount) != segmentcount:
raise botslib.InMessageError(_(u'Segmentcount in UNT is $UNTcount; should be equal to number of segments $segmentcount.'),UNTcount=UNTcount,segmentcount=segmentcount)
botsglobal.logmap.debug(u'Parsing edifact envelopes is OK')
def handleconfirm(self,ta_fromfile,error):
''' end of edi file handling.
eg writing of confirmations etc.
send CONTRL messages
parameter 'error' is not used
'''
#filter the confirmationlist
tmpconfirmationlist = []
for confirmation in self.confirmationlist:
tmpmessagelist = []
for message in confirmation['UNHlist']:
if message['UNHtype'] == 'CONTRL': #do not generate CONTRL for a CONTRL message
continue
if botslib.checkconfirmrules('send-edifact-CONTRL',idroute=self.ta_info['idroute'],idchannel=self.ta_info['fromchannel'],
topartner=confirmation['sender'],frompartner=confirmation['receiver'],
editype='edifact',messagetype=message['UNHtype']):
tmpmessagelist.append(message)
confirmation['UNHlist'] = tmpmessagelist
if not tmpmessagelist: #if no messages/transactions in interchange
continue
tmpconfirmationlist.append(confirmation)
self.confirmationlist = tmpconfirmationlist
for confirmation in self.confirmationlist:
reference=str(botslib.unique('messagecounter'))
ta_confirmation = ta_fromfile.copyta(status=TRANSLATED,reference=reference)
filename = str(ta_confirmation.idta)
out = outmessage.outmessage_init(editype='edifact',messagetype='CONTRL22UNEAN002',filename=filename) #make outmessage object
out.ta_info['frompartner']=confirmation['receiver']
out.ta_info['topartner']=confirmation['sender']
out.put({'BOTSID':'UNH','0062':reference,'S009.0065':'CONTRL','S009.0052':'2','S009.0054':'2','S009.0051':'UN','S009.0057':'EAN002'})
out.put({'BOTSID':'UNH'},{'BOTSID':'UCI','0083':'8','S002.0004':confirmation['sender'],'S003.0010':confirmation['sender'],'0020':confirmation['UNBreference']}) #8: interchange received
for message in confirmation['UNHlist']:
lou = out.putloop({'BOTSID':'UNH'},{'BOTSID':'UCM'})
lou.put({'BOTSID':'UCM','0083':'7','S009.0065':message['UNHtype'],'S009.0052':message['UNHversion'],'S009.0054':message['UNHrelease'],'S009.0051':message['UNHcontrollingagency'],'0062':message['UNHreference']})
lou.put({'BOTSID':'UCM','S009.0057':message['UNHassociationassigned']})
out.put({'BOTSID':'UNH'},{'BOTSID':'UNT','0074':out.getcount()+1,'0062':reference}) #last line (counts the segments produced in out-message)
out.writeall() #write tomessage (result of translation)
botsglobal.logger.debug(u'Send edifact confirmation (CONTRL) route "%s" fromchannel "%s" frompartner "%s" topartner "%s".',
self.ta_info['idroute'],self.ta_info['fromchannel'],confirmation['receiver'],confirmation['sender'])
self.confirminfo = dict(confirmtype='send-edifact-CONTRL',confirmed=True,confirmasked = True,confirmidta=ta_confirmation.idta) #this info is used in transform.py to update the ta.....ugly...
ta_confirmation.update(statust=OK,**out.ta_info) #update ta for confirmation
class x12(var):
''' class for edifact inmessage objects.'''
def _getmessagetype(self,messagetypefromsubtranslation,inode):
if messagetypefromsubtranslation is None:
return None
return messagetypefromsubtranslation + inode.record['GS08']
def _sniff(self):
''' examine a file for syntax parameters and correctness of protocol
eg parse ISA, get charset and version
'''
#goto char that is not whitespace
for count,c in enumerate(self.rawinput):
if not c.isspace():
self.rawinput = self.rawinput[count:] #here the interchange should start
break
else:
raise botslib.InMessageError(_(u'edifile only contains whitespace.'))
if self.rawinput[:3] != 'ISA':
raise botslib.InMessageError(_(u'expect "ISA", found "$content". Probably no x12?'),content=self.rawinput[:7])
count = 0
for c in self.rawinput[:120]:
if c in '\r\n' and count!=105:
continue
count +=1
if count==4:
self.ta_info['field_sep'] = c
elif count==105:
self.ta_info['sfield_sep'] = c
elif count==106:
self.ta_info['record_sep'] = c
break
# ISA-version: if <004030: SHOULD use repeating element?
self.ta_info['reserve']=''
self.ta_info['skip_char'] = self.ta_info['skip_char'].replace(self.ta_info['record_sep'],'') #if <CR> is segment terminator: cannot be in the skip_char-string!
#more ISA's in file: find IEA+
def checkenvelope(self):
''' check envelopes, gather information to generate 997 '''
self.confirmationlist = [] #information about the x12 file for confirmation/997; for x12 this is done per functional group
#~ self.root.display()
for nodeisa in self.getloop({'BOTSID':'ISA'}):
botsglobal.logmap.debug(u'Start parsing X12 envelopes')
sender = nodeisa.get({'BOTSID':'ISA','ISA06':None})
receiver = nodeisa.get({'BOTSID':'ISA','ISA08':None})
ISAreference = nodeisa.get({'BOTSID':'ISA','ISA13':None})
IEAreference = nodeisa.get({'BOTSID':'ISA'},{'BOTSID':'IEA','IEA02':None})
if ISAreference != IEAreference:
raise botslib.InMessageError(_(u'ISA-reference is "$ISAreference"; should be equal to IEA-reference "$IEAreference".'),ISAreference=ISAreference,IEAreference=IEAreference)
IEAcount = nodeisa.get({'BOTSID':'ISA'},{'BOTSID':'IEA','IEA01':None})
groupcount = nodeisa.getcountoccurrences({'BOTSID':'ISA'},{'BOTSID':'GS'})
if int(IEAcount) != groupcount:
raise botslib.InMessageError(_(u'Count in IEA-IEA01 is $IEAcount; should be equal to number of groups $groupcount.'),IEAcount=IEAcount,groupcount=groupcount)
for nodegs in nodeisa.getloop({'BOTSID':'ISA'},{'BOTSID':'GS'}):
GSqualifier = nodegs.get({'BOTSID':'GS','GS01':None})
GSreference = nodegs.get({'BOTSID':'GS','GS06':None})
GEreference = nodegs.get({'BOTSID':'GS'},{'BOTSID':'GE','GE02':None})
if GSreference != GEreference:
raise botslib.InMessageError(_(u'GS-reference is "$GSreference"; should be equal to GE-reference "$GEreference".'),GSreference=GSreference,GEreference=GEreference)
GEcount = nodegs.get({'BOTSID':'GS'},{'BOTSID':'GE','GE01':None})
messagecount = len(nodegs.children) - 1
if int(GEcount) != messagecount:
raise botslib.InMessageError(_(u'Count in GE-GE01 is $GEcount; should be equal to number of transactions: $messagecount.'),GEcount=GEcount,messagecount=messagecount)
self.confirmationlist.append({'GSqualifier':GSqualifier,'GSreference':GSreference,'GEcount':GEcount,'sender':sender,'receiver':receiver,'STlist':[]}) #gather information about functional group (GS-GE)
for nodest in nodegs.getloop({'BOTSID':'GS'},{'BOTSID':'ST'}):
STqualifier = nodest.get({'BOTSID':'ST','ST01':None})
STreference = nodest.get({'BOTSID':'ST','ST02':None})
SEreference = nodest.get({'BOTSID':'ST'},{'BOTSID':'SE','SE02':None})
#referencefields are numerical; should I compare values??
if STreference != SEreference:
raise botslib.InMessageError(_(u'ST-reference is "$STreference"; should be equal to SE-reference "$SEreference".'),STreference=STreference,SEreference=SEreference)
SEcount = nodest.get({'BOTSID':'ST'},{'BOTSID':'SE','SE01':None})
segmentcount = nodest.getcount()
if int(SEcount) != segmentcount:
raise botslib.InMessageError(_(u'Count in SE-SE01 is $SEcount; should be equal to number of segments $segmentcount.'),SEcount=SEcount,segmentcount=segmentcount)
self.confirmationlist[-1]['STlist'].append({'STreference':STreference,'STqualifier':STqualifier}) #add info per message to functional group
botsglobal.logmap.debug(u'Parsing X12 envelopes is OK')
def handleconfirm(self,ta_fromfile,error):
''' end of edi file handling.
eg writing of confirmations etc.
send 997 messages
parameter 'error' is not used
'''
#filter the confirmationlist
tmpconfirmationlist = []
for confirmation in self.confirmationlist:
if confirmation['GSqualifier'] == 'FA': #do not generate 997 for 997
continue
tmpmessagelist = []
for message in confirmation['STlist']:
if botslib.checkconfirmrules('send-x12-997',idroute=self.ta_info['idroute'],idchannel=self.ta_info['fromchannel'],
topartner=confirmation['sender'],frompartner=confirmation['receiver'],
editype='x12',messagetype=message['STqualifier']):
tmpmessagelist.append(message)
confirmation['STlist'] = tmpmessagelist
if not tmpmessagelist: #if no messages/transactions in GS-GE
continue
tmpconfirmationlist.append(confirmation)
self.confirmationlist = tmpconfirmationlist
for confirmation in self.confirmationlist:
reference=str(botslib.unique('messagecounter'))
ta_confirmation = ta_fromfile.copyta(status=TRANSLATED,reference=reference)
filename = str(ta_confirmation.idta)
out = outmessage.outmessage_init(editype='x12',messagetype='997004010',filename=filename) #make outmessage object
out.ta_info['frompartner']=confirmation['receiver']
out.ta_info['topartner']=confirmation['sender']
out.put({'BOTSID':'ST','ST01':'997','ST02':reference})
out.put({'BOTSID':'ST'},{'BOTSID':'AK1','AK101':confirmation['GSqualifier'],'AK102':confirmation['GSreference']})
out.put({'BOTSID':'ST'},{'BOTSID':'AK9','AK901':'A','AK902':confirmation['GEcount'],'AK903':confirmation['GEcount'],'AK904':confirmation['GEcount']})
for message in confirmation['STlist']:
lou = out.putloop({'BOTSID':'ST'},{'BOTSID':'AK2'})
lou.put({'BOTSID':'AK2','AK201':message['STqualifier'],'AK202':message['STreference']})
lou.put({'BOTSID':'AK2'},{'BOTSID':'AK5','AK501':'A'})
out.put({'BOTSID':'ST'},{'BOTSID':'SE','SE01':out.getcount()+1,'SE02':reference}) #last line (counts the segments produced in out-message)
out.writeall() #write tomessage (result of translation)
botsglobal.logger.debug(u'Send x12 confirmation (997) route "%s" fromchannel "%s" frompartner "%s" topartner "%s".',
self.ta_info['idroute'],self.ta_info['fromchannel'],confirmation['receiver'],confirmation['sender'])
self.confirminfo = dict(confirmtype='send-x12-997',confirmed=True,confirmasked = True,confirmidta=ta_confirmation.idta) #this info is used in transform.py to update the ta.....ugly...
ta_confirmation.update(statust=OK,**out.ta_info) #update ta for confirmation
class tradacoms(var):
def checkenvelope(self):
for nodeSTX in self.getloop({'BOTSID':'STX'}):
botsglobal.logmap.debug(u'Start parsing tradacoms envelopes')
ENDcount = nodeSTX.get({'BOTSID':'STX'},{'BOTSID':'END','NMST':None})
messagecount = len(nodeSTX.children) - 1
if int(ENDcount) != messagecount:
raise botslib.InMessageError(_(u'Count in messages in END is $ENDcount; should be equal to number of messages $messagecount'),ENDcount=ENDcount,messagecount=messagecount)
firstmessage = True
for nodeMHD in nodeSTX.getloop({'BOTSID':'STX'},{'BOTSID':'MHD'}):
if firstmessage: #
nodeSTX.queries = {'messagetype':nodeMHD.queries['messagetype']}
firstmessage = False
MTRcount = nodeMHD.get({'BOTSID':'MHD'},{'BOTSID':'MTR','NOSG':None})
segmentcount = nodeMHD.getcount()
if int(MTRcount) != segmentcount:
raise botslib.InMessageError(_(u'Segmentcount in MTR is $MTRcount; should be equal to number of segments $segmentcount'),MTRcount=MTRcount,segmentcount=segmentcount)
botsglobal.logmap.debug(u'Parsing tradacoms envelopes is OK')
class xml(var):
''' class for ediobjects in XML. Uses ElementTree'''
def initfromfile(self):
botsglobal.logger.debug(u'read edi file "%s".',self.ta_info['filename'])
filename=botslib.abspathdata(self.ta_info['filename'])
if self.ta_info['messagetype'] == 'mailbag':
''' the messagetype is not know.
bots reads file usersys/grammars/xml/mailbag.py, and uses 'mailbagsearch' to determine the messagetype
mailbagsearch is a list, containing python dicts. Dict consist of 'xpath', 'messagetype' and (optionally) 'content'.
'xpath' is a xpath to use on xml-file (using elementtree xpath functionality)
if found, and 'content' in the dict; if 'content' is equal to value found by xpath-search, then set messagetype.
if found, and no 'content' in the dict; set messagetype.
'''
try:
module,grammarname = botslib.botsimport('grammars','xml.mailbag')
mailbagsearch = getattr(module, 'mailbagsearch')
except AttributeError:
botsglobal.logger.error(u'missing mailbagsearch in mailbag definitions for xml.')
raise
except ImportError:
botsglobal.logger.error(u'missing mailbag definitions for xml, should be there.')
raise
parser = ET.XMLParser()
try:
extra_character_entity = getattr(module, 'extra_character_entity')
for key,value in extra_character_entity.items():
parser.entity[key] = value
except AttributeError:
pass #there is no extra_character_entity in the mailbag definitions, is OK.
etree = ET.ElementTree() #ElementTree: lexes, parses, makes etree; etree is quite similar to bots-node trees but conversion is needed
etreeroot = etree.parse(filename, parser)
for item in mailbagsearch:
if 'xpath' not in item or 'messagetype' not in item:
raise botslib.InMessageError(_(u'invalid search parameters in xml mailbag.'))
#~ print 'search' ,item
found = etree.find(item['xpath'])
if found is not None:
#~ print ' found'
if 'content' in item and found.text != item['content']:
continue
self.ta_info['messagetype'] = item['messagetype']
#~ print ' found right messagedefinition'
#~ continue
break
else:
raise botslib.InMessageError(_(u'could not find right xml messagetype for mailbag.'))
self.defmessage = grammar.grammarread(self.ta_info['editype'],self.ta_info['messagetype'])
botslib.updateunlessset(self.ta_info,self.defmessage.syntax) #write values from grammar to self.ta_info - unless these values are already set eg by sniffing
else:
self.defmessage = grammar.grammarread(self.ta_info['editype'],self.ta_info['messagetype'])
botslib.updateunlessset(self.ta_info,self.defmessage.syntax) #write values from grammar to self.ta_info - unless these values are already set eg by sniffing
parser = ET.XMLParser()
for key,value in self.ta_info['extra_character_entity'].items():
parser.entity[key] = value
etree = ET.ElementTree() #ElementTree: lexes, parses, makes etree; etree is quite similar to bots-node trees but conversion is needed
etreeroot = etree.parse(filename, parser)
self.stack = []
self.root = self.etree2botstree(etreeroot) #convert etree to bots-nodes-tree
self.normalisetree(self.root)
def etree2botstree(self,xmlnode):
self.stack.append(xmlnode.tag)
newnode = node.Node(record=self.etreenode2botstreenode(xmlnode))
for xmlchildnode in xmlnode: #for every node in mpathtree
if self.isfield(xmlchildnode): #if no child entities: treat as 'field': this misses xml where attributes are used as fields....testing for repeating is no good...
if xmlchildnode.text and not xmlchildnode.text.isspace(): #skip empty xml entity
newnode.record[xmlchildnode.tag]=xmlchildnode.text #add as a field
hastxt = True
else:
hastxt = False
for key,value in xmlchildnode.items(): #convert attributes to fields.
if not hastxt:
newnode.record[xmlchildnode.tag]='' #add empty content
hastxt = True
newnode.record[xmlchildnode.tag + self.ta_info['attributemarker'] + key]=value #add as a field
else: #xmlchildnode is a record
newnode.append(self.etree2botstree(xmlchildnode)) #add as a node/record
#~ if botsglobal.ini.getboolean('settings','readrecorddebug',False):
#~ botsglobal.logger.debug('read record "%s":',newnode.record['BOTSID'])
#~ for key,value in newnode.record.items():
#~ botsglobal.logger.debug(' "%s" : "%s"',key,value)
self.stack.pop()
#~ print self.stack
return newnode
def etreenode2botstreenode(self,xmlnode):
''' build a dict from xml-node'''
build = dict((xmlnode.tag + self.ta_info['attributemarker'] + key,value) for key,value in xmlnode.items()) #convert attributes to fields.
build['BOTSID']=xmlnode.tag #'record' tag
if xmlnode.text and not xmlnode.text.isspace():
build['BOTSCONTENT']=xmlnode.text
return build
def isfield(self,xmlchildnode):
''' check if xmlchildnode is field (or record)'''
#~ print 'examine record in stack',xmlchildnode.tag,self.stack
str_recordlist = self.defmessage.structure
for record in self.stack: #find right level in structure
for str_record in str_recordlist:
#~ print ' find right level comparing',record,str_record[0]
if record == str_record[0]:
if 4 not in str_record: #structure record contains no level: must be an attribute
return True
str_recordlist = str_record[4]
break
else:
raise botslib.InMessageError(_(u'Unknown XML-tag in "$record".'),record=record)
for str_record in str_recordlist: #see if xmlchildnode is in structure
#~ print ' is xmlhildnode in this level comparing',xmlchildnode.tag,str_record[0]
if xmlchildnode.tag == str_record[0]:
#~ print 'found'
return False
#xml tag not found in structure: so must be field; validity is check later on with grammar
if len(xmlchildnode)==0:
return True
return False
class xmlnocheck(xml):
''' class for ediobjects in XML. Uses ElementTree'''
def normalisetree(self,node):
pass
def isfield(self,xmlchildnode):
if len(xmlchildnode)==0:
return True
return False
class json(var):
def initfromfile(self):
self.defmessage = grammar.grammarread(self.ta_info['editype'],self.ta_info['messagetype'])
botslib.updateunlessset(self.ta_info,self.defmessage.syntax) #write values from grammar to self.ta_info - unless these values are already set eg by sniffing
self._readcontent_edifile()
jsonobject = simplejson.loads(self.rawinput)
del self.rawinput
if isinstance(jsonobject,list):
self.root=node.Node() #initialise empty node.
self.root.children = self.dojsonlist(jsonobject,self.getrootID()) #fill root with children
for child in self.root.children:
if not child.record: #sanity test: the children must have content
raise botslib.InMessageError(_(u'no usable content.'))
self.normalisetree(child)
elif isinstance(jsonobject,dict):
if len(jsonobject)==1 and isinstance(jsonobject.values()[0],dict):
# best structure: {rootid:{id2:<dict, list>}}
self.root = self.dojsonobject(jsonobject.values()[0],jsonobject.keys()[0])
elif len(jsonobject)==1 and isinstance(jsonobject.values()[0],list) :
#root dict has no name; use value from grammar for rootID; {id2:<dict, list>}
self.root=node.Node(record={'BOTSID': self.getrootID()}) #initialise empty node.
self.root.children = self.dojsonlist(jsonobject.values()[0],jsonobject.keys()[0])
else:
#~ print self.getrootID()
self.root = self.dojsonobject(jsonobject,self.getrootID())
#~ print self.root
if not self.root:
raise botslib.InMessageError(_(u'no usable content.'))
self.normalisetree(self.root)
else:
#root in JSON is neither dict or list.
raise botslib.InMessageError(_(u'Content must be a "list" or "object".'))
def getrootID(self):
return self.defmessage.structure[0][ID]
def dojsonlist(self,jsonobject,name):
lijst=[] #initialise empty list, used to append a listof (converted) json objects
for i in jsonobject:
if isinstance(i,dict): #check list item is dict/object
newnode = self.dojsonobject(i,name)
if newnode:
lijst.append(newnode)
elif self.ta_info['checkunknownentities']:
raise botslib.InMessageError(_(u'List content in must be a "object".'))
return lijst
def dojsonobject(self,jsonobject,name):
thisnode=node.Node(record={}) #initialise empty node.
for key,value in jsonobject.items():
if value is None:
continue
elif isinstance(value,basestring): #json field; map to field in node.record
thisnode.record[key]=value
elif isinstance(value,dict):
newnode = self.dojsonobject(value,key)
if newnode:
thisnode.append(newnode)
elif isinstance(value,list):
thisnode.children.extend(self.dojsonlist(value,key))
elif isinstance(value,(int,long,float)): #json field; map to field in node.record
thisnode.record[key]=str(value)
else:
if self.ta_info['checkunknownentities']:
raise botslib.InMessageError(_(u'Key "$key" value "$value": is not string, list or dict.'),key=key,value=value)
thisnode.record[key]=str(value)
if not thisnode.record and not thisnode.children:
return None #node is empty...
thisnode.record['BOTSID']=name
return thisnode
class jsonnocheck(json):
def normalisetree(self,node):
pass
def getrootID(self):
return self.ta_info['defaultBOTSIDroot'] #as there is no structure in grammar, use value form syntax.
class database(jsonnocheck):
pass
class db(Inmessage):
''' the database-object is unpickled, and passed to the mapping script.
'''
def initfromfile(self):
botsglobal.logger.debug(u'read edi file "%s".',self.ta_info['filename'])
f = botslib.opendata(filename=self.ta_info['filename'],mode='rb')
self.root = pickle.load(f)
f.close()
def nextmessage(self):
yield self
class raw(Inmessage):
''' the file object is just read and passed to the mapping script.
'''
def initfromfile(self):
botsglobal.logger.debug(u'read edi file "%s".',self.ta_info['filename'])
f = botslib.opendata(filename=self.ta_info['filename'],mode='rb')
self.root = f.read()
f.close()
def nextmessage(self):
yield self
| [
[
8,
0,
0.0009,
0.0009,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0017,
0.0009,
0,
0.66,
0.0323,
609,
0,
1,
0,
0,
609,
0,
0
],
[
1,
0,
0.0026,
0.0009,
0,
0.66... | [
"''' Reading/lexing/parsing/splitting an edifile.'''",
"import StringIO",
"import time",
"import sys",
"try:\n import cPickle as pickle\nexcept:\n import pickle",
" import cPickle as pickle",
" import pickle",
"try:\n import cElementTree as ET\nexcept ImportError:\n try:\n imp... |
codeconversions = {
'351':'AAK',
'35E':'AAK',
'220':'ON',
'224':'ON',
'50E':'ON',
'83':'IV',
'380':'IV',
'384':'IV',
'TESTIN':'TESTOUT',
}
| [
[
14,
0,
0.5455,
1,
0,
0.66,
0,
543,
0,
0,
0,
0,
0,
6,
0
]
] | [
"codeconversions = {\n'351':'AAK',\n'35E':'AAK',\n'220':'ON',\n'224':'ON',\n'50E':'ON',\n'83':'IV',\n'380':'IV',"
] |
""" Python Character Mapping Codec generated from CP1252.TXT with gencodec.py.
Written by Marc-Andre Lemburg (mal@lemburg.com).
(c) Copyright CNRI, All Rights Reserved. NO WARRANTY.
(c) Copyright 2000 Guido van Rossum.
Adapted by Henk-Jan Ebbers for Bots open source EDI translator
Regular UNOA: UNOA char, CR, LF and Crtl-Z
"""
import codecs
import sys
### Codec APIs
class Codec(codecs.Codec):
def encode(self,input,errors='strict'):
return codecs.charmap_encode(input,errors,encoding_map)
def decode(self,input,errors='strict'):
return codecs.charmap_decode(input,errors,decoding_map)
class StreamWriter(Codec,codecs.StreamWriter):
pass
class StreamReader(Codec,codecs.StreamReader):
pass
### encodings module API
class IncrementalEncoder(codecs.IncrementalEncoder):
def encode(self, input, final=False):
return codecs.charmap_encode(input,self.errors,encoding_map)[0]
class IncrementalDecoder(codecs.IncrementalDecoder):
def decode(self, input, final=False):
return codecs.charmap_decode(input,self.errors,decoding_table)[0]
def getregentry():
return codecs.CodecInfo(
name='unoa',
encode=Codec().encode,
decode=Codec().decode,
incrementalencoder=IncrementalEncoder,
incrementaldecoder=IncrementalDecoder,
streamreader=StreamReader,
streamwriter=StreamWriter,
)
### Decoding Map
#decoding_map = codecs.make_identity_dict(range(128))
#decoding_map.update({
decoding_map = {
# 0x0000:0x0000, #NUL
# 0x0001:0x0000, #SOH
# 0x0002:0x0000, #STX
# 0x0003:0x0000, #ETX
# 0x0004:0x0000, #EOT
# 0x0005:0x0000, #ENQ
# 0x0006:0x0000, #ACK
# 0x0007:0x0000, #Bell
# 0x0008:0x0000, #BackSpace
# 0x0009:0x0000, #Tab
0x000a:0x000a, #lf
# 0x000b:0x0000, #Vertical Tab
# 0x000c:0x0000, #FormFeed
0x000d:0x000d, #cr
# 0x000e:0x0000, #SO
# 0x000f:0x0000, #SI
# 0x0010:0x0000, #DLE
# 0x0011:0x0000, #DC1
# 0x0012:0x0000, #DC2
# 0x0013:0x0000, #DC3
# 0x0014:0x0000, #DC4
# 0x0015:0x0000, #NAK
# 0x0016:0x0000, #SYN
# 0x0017:0x0000, #ETB
# 0x0018:0x0000, #CAN
# 0x0019:0x0000, #EM
0x001a:0x001a, #SUB, cntrl-Z
# 0x001b:0x0000, #ESC
# 0x001c:0x0000, #FS
# 0x001d:0x0000, #GS
# 0x001e:0x0000, #RS
# 0x001f:0x0000, #US
0x0020:0x0020, #<space>
0x0021:0x0021, #!
0x0022:0x0022, #"
# 0x0023:0x0023, ##
# 0x0024:0x0024, #$
0x0025:0x0025, #%
0x0026:0x0026, #&
0x0027:0x0027, #'
0x0028:0x0028, #(
0x0029:0x0029, #)
0x002a:0x002a, #*
0x002b:0x002b, #+
0x002c:0x002c, #,
0x002d:0x002d, #-
0x002e:0x002e, #.
0x002f:0x002f, #/
0x0030:0x0030, #0
0x0031:0x0031, #1
0x0032:0x0032, #2
0x0033:0x0033, #3
0x0034:0x0034, #4
0x0035:0x0035, #5
0x0036:0x0036, #6
0x0037:0x0037, #7
0x0038:0x0038, #8
0x0039:0x0039, #9
0x003a:0x003a, #:
0x003b:0x003b, #;
0x003c:0x003c, #<
0x003d:0x003d, #=
0x003e:0x003e, #>
0x003f:0x003f, #?
# 0x0040:0x0040, #@
0X0041:0X0041, #A
0X0042:0X0042, #B
0X0043:0X0043, #C
0X0044:0X0044, #D
0X0045:0X0045, #E
0X0046:0X0046, #F
0X0047:0X0047, #G
0X0048:0X0048, #H
0X0049:0X0049, #I
0X004A:0X004A, #J
0X004B:0X004B, #K
0X004C:0X004C, #L
0X004D:0X004D, #M
0X004E:0X004E, #N
0X004F:0X004F, #O
0X0050:0X0050, #P
0X0051:0X0051, #Q
0X0052:0X0052, #R
0X0053:0X0053, #S
0X0054:0X0054, #T
0X0055:0X0055, #U
0X0056:0X0056, #V
0X0057:0X0057, #W
0X0058:0X0058, #X
0X0059:0X0059, #Y
0X005A:0X005A, #Z
# 0x005b:0x005b, #[
# 0x005c:0x005c, #\
# 0x005d:0x005d, #]
# 0x005e:0x005e, #^
# 0x005f:0x005f, #_
# 0x0060:0x0060, #`
# 0x0061:0x0041, #a
# 0x0062:0x0042, #b
# 0x0063:0x0043, #c
# 0x0064:0x0044, #d
# 0x0065:0x0045, #e
# 0x0066:0x0046, #f
# 0x0067:0x0047, #g
# 0x0068:0x0048, #h
# 0x0069:0x0049, #i
# 0x006a:0x004a, #j
# 0x006b:0x004b, #k
# 0x006c:0x004c, #l
# 0x006d:0x004d, #m
# 0x006e:0x004e, #n
# 0x006f:0x004f, #o
# 0x0070:0x0050, #p
# 0x0071:0x0051, #q
# 0x0072:0x0052, #r
# 0x0073:0x0053, #s
# 0x0074:0x0054, #t
# 0x0075:0x0055, #u
# 0x0076:0x0056, #v
# 0x0077:0x0057, #w
# 0x0078:0x0058, #x
# 0x0079:0x0059, #y
# 0x007a:0x005a, #z
# 0x007b:0x007b, #{
# 0x007c:0x007c, #|
# 0x007d:0x007d, #}
# 0x007e:0x007e, #~
# 0x007f:0x007f, #del
}
### Encoding Map
encoding_map = codecs.make_encoding_map(decoding_map)
| [
[
8,
0,
0.0291,
0.0529,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0635,
0.0053,
0,
0.66,
0.1,
220,
0,
1,
0,
0,
220,
0,
0
],
[
1,
0,
0.0688,
0.0053,
0,
0.66,
... | [
"\"\"\" Python Character Mapping Codec generated from CP1252.TXT with gencodec.py.\n\nWritten by Marc-Andre Lemburg (mal@lemburg.com).\n\n(c) Copyright CNRI, All Rights Reserved. NO WARRANTY.\n(c) Copyright 2000 Guido van Rossum.\n\nAdapted by Henk-Jan Ebbers for Bots open source EDI translator",
"import codecs",... |
""" Python Character Mapping Codec generated from CP1252.TXT with gencodec.py.
Written by Marc-Andre Lemburg (mal@lemburg.com).
(c) Copyright CNRI, All Rights Reserved. NO WARRANTY.
(c) Copyright 2000 Guido van Rossum.
Adapted by Henk-Jan Ebbers for Bots open source EDI translator
Regular UNOB: UNOB char, CR, LF and Crtl-Z
"""
import codecs
import sys
### Codec APIs
class Codec(codecs.Codec):
def encode(self,input,errors='strict'):
return codecs.charmap_encode(input,errors,encoding_map)
def decode(self,input,errors='strict'):
return codecs.charmap_decode(input,errors,decoding_map)
class StreamWriter(Codec,codecs.StreamWriter):
pass
class StreamReader(Codec,codecs.StreamReader):
pass
### encodings module API
class IncrementalEncoder(codecs.IncrementalEncoder):
def encode(self, input, final=False):
return codecs.charmap_encode(input,self.errors,encoding_map)[0]
class IncrementalDecoder(codecs.IncrementalDecoder):
def decode(self, input, final=False):
return codecs.charmap_decode(input,self.errors,decoding_table)[0]
def getregentry():
return codecs.CodecInfo(
name='unob',
encode=Codec().encode,
decode=Codec().decode,
incrementalencoder=IncrementalEncoder,
incrementaldecoder=IncrementalDecoder,
streamreader=StreamReader,
streamwriter=StreamWriter,
)
### Decoding Map
#decoding_map = codecs.make_identity_dict(range(128))
#decoding_map.update({
decoding_map = {
# 0x0000:0x0000, #NUL
# 0x0001:0x0000, #SOH
# 0x0002:0x0000, #STX
# 0x0003:0x0000, #ETX
# 0x0004:0x0000, #EOT
# 0x0005:0x0000, #ENQ
# 0x0006:0x0000, #ACK
# 0x0007:0x0000, #Bell
# 0x0008:0x0000, #BackSpace
# 0x0009:0x0000, #Tab
0x000a:0x000a, #lf
# 0x000b:0x0000, #Vertical Tab
# 0x000c:0x0000, #FormFeed
0x000d:0x000d, #cr
# 0x000e:0x0000, #SO
# 0x000f:0x0000, #SI
# 0x0010:0x0000, #DLE
# 0x0011:0x0000, #DC1
# 0x0012:0x0000, #DC2
# 0x0013:0x0000, #DC3
# 0x0014:0x0000, #DC4
# 0x0015:0x0000, #NAK
# 0x0016:0x0000, #SYN
# 0x0017:0x0000, #ETB
# 0x0018:0x0000, #CAN
# 0x0019:0x0000, #EM
0x001a:0x001a, #SUB, cntrl-Z
# 0x001b:0x0000, #ESC
0x001c:0x001c, #FS
0x001d:0x001d, #GS
# 0x001e:0x0000, #RS
0x001f:0x001f, #US
0x0020:0x0020, #<SPACE>
0x0021:0x0021, #!
0x0022:0x0022, #"
# 0x0023:0x0023, ##
# 0x0024:0x0024, #$
0x0025:0x0025, #%
0x0026:0x0026, #&
0x0027:0x0027, #'
0x0028:0x0028, #(
0x0029:0x0029, #)
0x002A:0x002A, #*
0x002B:0x002B, #+
0x002C:0x002C, #,
0x002D:0x002D, #-
0x002E:0x002E, #.
0x002F:0x002F, #/
0x0030:0x0030, #0
0x0031:0x0031, #1
0x0032:0x0032, #2
0x0033:0x0033, #3
0x0034:0x0034, #4
0x0035:0x0035, #5
0x0036:0x0036, #6
0x0037:0x0037, #7
0x0038:0x0038, #8
0x0039:0x0039, #9
0x003A:0x003A, #:
0x003B:0x003B, #;
0x003C:0x003C, #<
0x003D:0x003D, #=
0x003E:0x003E, #>
0x003F:0x003F, #?
# 0x0040:0x0040, #@
0x0041:0x0041, #A
0x0042:0x0042, #B
0x0043:0x0043, #C
0x0044:0x0044, #D
0x0045:0x0045, #E
0x0046:0x0046, #F
0x0047:0x0047, #G
0x0048:0x0048, #H
0x0049:0x0049, #I
0x004A:0x004A, #J
0x004B:0x004B, #K
0x004C:0x004C, #L
0x004D:0x004D, #M
0x004E:0x004E, #N
0x004F:0x004F, #O
0x0050:0x0050, #P
0x0051:0x0051, #Q
0x0052:0x0052, #R
0x0053:0x0053, #S
0x0054:0x0054, #T
0x0055:0x0055, #U
0x0056:0x0056, #V
0x0057:0x0057, #W
0x0058:0x0058, #X
0x0059:0x0059, #Y
0x005A:0x005A, #Z
# 0x005B:0x005B, #[
# 0x005C:0x005C, #\
# 0x005D:0x005D, #]
# 0x005E:0x005E, #^
# 0x005F:0x005F, #_
# 0x0060:0x0060, #`
0x0061:0x0061, #a
0x0062:0x0062, #b
0x0063:0x0063, #c
0x0064:0x0064, #d
0x0065:0x0065, #e
0x0066:0x0066, #f
0x0067:0x0067, #g
0x0068:0x0068, #h
0x0069:0x0069, #i
0x006a:0x006a, #j
0x006b:0x006b, #k
0x006c:0x006c, #l
0x006d:0x006d, #m
0x006e:0x006e, #n
0x006f:0x006f, #o
0x0070:0x0070, #p
0x0071:0x0071, #q
0x0072:0x0072, #r
0x0073:0x0073, #s
0x0074:0x0074, #t
0x0075:0x0075, #u
0x0076:0x0076, #v
0x0077:0x0077, #w
0x0078:0x0078, #x
0x0079:0x0079, #y
0x007a:0x007a, #z
# 0x007B:0x007B, #{
# 0x007C:0x007C, #|
# 0x007D:0x007D, #}
# 0x007E:0x007E, #~
# 0x007F:0x007F, #DEL
}
### Encoding Map
encoding_map = codecs.make_encoding_map(decoding_map)
| [
[
8,
0,
0.0291,
0.0529,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0635,
0.0053,
0,
0.66,
0.1,
220,
0,
1,
0,
0,
220,
0,
0
],
[
1,
0,
0.0688,
0.0053,
0,
0.66,
... | [
"\"\"\" Python Character Mapping Codec generated from CP1252.TXT with gencodec.py.\n\nWritten by Marc-Andre Lemburg (mal@lemburg.com).\n\n(c) Copyright CNRI, All Rights Reserved. NO WARRANTY.\n(c) Copyright 2000 Guido van Rossum.\n\nAdapted by Henk-Jan Ebbers for Bots open source EDI translator",
"import codecs",... |
import shutil
import time
from django.utils.translation import ugettext as _
#bots-modules
import botslib
import botsglobal
import grammar
import outmessage
from botsconfig import *
@botslib.log_session
def mergemessages(startstatus=TRANSLATED,endstatus=MERGED,idroute=''):
''' Merges en envelopes several messages to one file;
In db-ta: attribute 'merge' indicates message should be merged with similar messages; 'merge' is generated in translation from messagetype-grammar
If merge==False: 1 message per envelope - no merging, else append all similar messages to one file
Implementation as separate loops: one for merge&envelope, another for enveloping only
db-ta status TRANSLATED---->MERGED
'''
outerqueryparameters = {'status':startstatus,'statust':OK,'idroute':idroute,'rootidta':botslib.get_minta4query(),'merge':False}
#**********for messages only to envelope (no merging)
for row in botslib.query(u'''SELECT editype,messagetype,frompartner,topartner,testindicator,charset,contenttype,tochannel,envelope,nrmessages,idta,filename,idroute,merge
FROM ta
WHERE idta>%(rootidta)s
AND status=%(status)s
AND statust=%(statust)s
AND idroute=%(idroute)s
AND merge=%(merge)s
''',
outerqueryparameters):
try:
ta_info = dict([(key,row[key]) for key in row.keys()])
#~ ta_info={'merge':False,'idroute':idroute}
#~ for key in row.keys():
#~ ta_info[key] = row[key]
ta_fromfile = botslib.OldTransaction(row['idta']) #edi message to envelope
ta_tofile=ta_fromfile.copyta(status=endstatus) #edifile for enveloped message; attributes of not-enveloped message are copied...
#~ ta_fromfile.update(child=ta_tofile.idta) #??there is already a parent-child relation (1-1)...
ta_info['filename'] = str(ta_tofile.idta) #create filename for enveloped message
botsglobal.logger.debug(u'Envelope 1 message editype: %s, messagetype: %s.',ta_info['editype'],ta_info['messagetype'])
envelope(ta_info,[row['filename']])
except:
txt=botslib.txtexc()
ta_tofile.update(statust=ERROR,errortext=txt)
else:
ta_fromfile.update(statust=DONE)
ta_tofile.update(statust=OK,**ta_info) #selection is used to update enveloped message;
#**********for messages to merge & envelope
#all GROUP BY fields must be used in SELECT!
#as files get merged: can not copy idta; must extract relevant attributes.
outerqueryparameters['merge']=True
for row in botslib.query(u'''SELECT editype,messagetype,frompartner,topartner,tochannel,testindicator,charset,contenttype,envelope,sum(nrmessages) as nrmessages
FROM ta
WHERE idta>%(rootidta)s
AND status=%(status)s
AND statust=%(statust)s
AND idroute=%(idroute)s
AND merge=%(merge)s
GROUP BY editype,messagetype,frompartner,topartner,tochannel,testindicator,charset,contenttype,envelope
''',
outerqueryparameters):
try:
ta_info = dict([(key,row[key]) for key in row.keys()])
ta_info.update({'merge':False,'idroute':idroute})
#~ for key in row.keys():
#~ ta_info[key] = row[key]
ta_tofile=botslib.NewTransaction(status=endstatus,idroute=idroute) #edifile for enveloped messages
ta_info['filename'] = str(ta_tofile.idta) #create filename for enveloped message
innerqueryparameters = ta_info.copy()
innerqueryparameters.update(outerqueryparameters)
ta_list=[]
#gather individual idta and filenames
#explicitly allow formpartner/topartner to be None/NULL
for row2 in botslib.query(u'''SELECT idta, filename
FROM ta
WHERE idta>%(rootidta)s
AND status=%(status)s
AND statust=%(statust)s
AND merge=%(merge)s
AND editype=%(editype)s
AND messagetype=%(messagetype)s
AND (frompartner=%(frompartner)s OR frompartner IS NULL)
AND (topartner=%(topartner)s OR topartner IS NULL)
AND tochannel=%(tochannel)s
AND testindicator=%(testindicator)s
AND charset=%(charset)s
AND idroute=%(idroute)s
''',
innerqueryparameters):
ta_fromfile = botslib.OldTransaction(row2['idta']) #edi message to envelope
ta_fromfile.update(statust=DONE,child=ta_tofile.idta) #st child because of n->1 relation
ta_list.append(row2['filename'])
botsglobal.logger.debug(u'Merge and envelope: editype: %s, messagetype: %s, %s messages',ta_info['editype'],ta_info['messagetype'],ta_info['nrmessages'])
envelope(ta_info,ta_list)
except:
txt=botslib.txtexc()
ta_tofile.mergefailure()
ta_tofile.update(statust=ERROR,errortext=txt)
else:
ta_tofile.update(statust=OK,**ta_info)
def envelope(ta_info,ta_list):
''' dispatch function for class Envelope and subclasses.
editype, edimessage and envelope essential for enveloping.
determine the class for enveloping:
1. empty string: no enveloping (class noenvelope); file(s) is/are just copied. No user scripting for envelope.
2. if envelope is a class in this module, use it
3. if editype is a class in this module, use it
4. if user defined enveloping in usersys/envelope/<editype>/<envelope>.<envelope>, use it (user defined scripting overrides)
Always check if user envelope script. user exits extends/replaces default enveloping.
'''
#determine which class to use for enveloping
userscript = scriptname = None
if not ta_info['envelope']: #used when enveloping is just appending files.
classtocall = noenvelope
else:
try: #see if the is user scripted enveloping
userscript,scriptname = botslib.botsimport('envelopescripts',ta_info['editype'] + '.' + ta_info['envelope'])
except ImportError: #other errors, eg syntax errors are just passed
pass
#first: check if there is a class with name ta_info['envelope'] in the user scripting
#this allows complete enveloping in user scripting
if userscript and hasattr(userscript,ta_info['envelope']):
classtocall = getattr(userscript,ta_info['envelope'])
else:
try: #check if there is a envelope class with name ta_info['envelope'] in this file (envelope.py)
classtocall = globals()[ta_info['envelope']]
except KeyError:
try: #check if there is a envelope class with name ta_info['editype'] in this file (envelope.py).
#20110919: this should disappear in the long run....use this now for orders2printenvelope and myxmlenvelop
#reason to disappear: confusing when setting up.
classtocall = globals()[ta_info['editype']]
except KeyError:
raise botslib.OutMessageError(_(u'Not found envelope "$envelope".'),envelope=ta_info['editype'])
env = classtocall(ta_info,ta_list,userscript,scriptname)
env.run()
class Envelope(object):
''' Base Class for enveloping; use subclasses.'''
def __init__(self,ta_info,ta_list,userscript,scriptname):
self.ta_info = ta_info
self.ta_list = ta_list
self.userscript = userscript
self.scriptname = scriptname
def _openoutenvelope(self,editype, messagetype_or_envelope):
''' make an outmessage object; read the grammar.'''
#self.ta_info now contains information from ta: editype, messagetype,testindicator,charset,envelope, contenttype
self.out = outmessage.outmessage_init(**self.ta_info) #make outmessage object. Init with self.out.ta_info
#read grammar for envelopesyntax. Remark: self.ta_info is not updated now
self.out.outmessagegrammarread(editype, messagetype_or_envelope)
#self.out.ta_info can contain partner dependent parameters. the partner dependent parameters have overwritten parameters fro mmessage/envelope
def writefilelist(self,tofile):
for filename in self.ta_list:
fromfile = botslib.opendata(filename, 'rb',self.ta_info['charset'])
shutil.copyfileobj(fromfile,tofile)
fromfile.close()
def filelist2absolutepaths(self):
''' utility function; some classes need absolute filenames eg for xml-including'''
return [botslib.abspathdata(filename) for filename in self.ta_list]
class noenvelope(Envelope):
''' Only copies the input files to one output file.'''
def run(self):
botslib.tryrunscript(self.userscript,self.scriptname,'ta_infocontent',ta_info=self.ta_info)
tofile = botslib.opendata(self.ta_info['filename'],'wb',self.ta_info['charset'])
self.writefilelist(tofile)
tofile.close()
class fixed(noenvelope):
pass
class csv(noenvelope):
pass
class csvheader(Envelope):
def run(self):
self._openoutenvelope(self.ta_info['editype'],self.ta_info['messagetype'])
botslib.tryrunscript(self.userscript,self.scriptname,'ta_infocontent',ta_info=self.ta_info)
#self.ta_info is not overwritten
tofile = botslib.opendata(self.ta_info['filename'],'wb',self.ta_info['charset'])
headers = dict([(field[ID],field[ID]) for field in self.out.defmessage.structure[0][FIELDS]])
self.out.put(headers)
self.out.tree2records(self.out.root)
tofile.write(self.out._record2string(self.out.records[0]))
self.writefilelist(tofile)
tofile.close()
class edifact(Envelope):
''' Generate UNB and UNZ segment; fill with data, write to interchange-file.'''
def run(self):
if not self.ta_info['topartner'] or not self.ta_info['frompartner']:
raise botslib.OutMessageError(_(u'In enveloping "frompartner" or "topartner" unknown: "$ta_info".'),ta_info=self.ta_info)
self._openoutenvelope(self.ta_info['editype'],self.ta_info['envelope'])
self.ta_info.update(self.out.ta_info)
botslib.tryrunscript(self.userscript,self.scriptname,'ta_infocontent',ta_info=self.ta_info)
#version dependent enveloping
writeUNA = False
if self.ta_info['version']<'4':
date = time.strftime('%y%m%d')
reserve = ' '
if self.ta_info['charset'] != 'UNOA':
writeUNA = True
else:
date = time.strftime('%Y%m%d')
reserve = self.ta_info['reserve']
if self.ta_info['charset'] not in ['UNOA','UNOB']:
writeUNA = True
#UNB counter is per sender or receiver
if botsglobal.ini.getboolean('settings','interchangecontrolperpartner',False):
self.ta_info['reference'] = str(botslib.unique('unbcounter_' + self.ta_info['topartner']))
else:
self.ta_info['reference'] = str(botslib.unique('unbcounter_' + self.ta_info['frompartner']))
#testindicator is more complex:
if self.ta_info['testindicator'] and self.ta_info['testindicator']!='0': #first check value from ta; do not use default
testindicator = '1'
elif self.ta_info['UNB.0035'] != '0': #than check values from grammar
testindicator = '1'
else:
testindicator = ''
#build the envelope segments (that is, the tree from which the segments will be generated)
self.out.put({'BOTSID':'UNB',
'S001.0001':self.ta_info['charset'],
'S001.0002':self.ta_info['version'],
'S002.0004':self.ta_info['frompartner'],
'S003.0010':self.ta_info['topartner'],
'S004.0017':date,
'S004.0019':time.strftime('%H%M'),
'0020':self.ta_info['reference']})
#the following fields are conditional; do not write these when empty string (separator compression does take empty strings into account)
if self.ta_info['UNB.S002.0007']:
self.out.put({'BOTSID':'UNB','S002.0007': self.ta_info['UNB.S002.0007']})
if self.ta_info['UNB.S003.0007']:
self.out.put({'BOTSID':'UNB','S003.0007': self.ta_info['UNB.S003.0007']})
if self.ta_info['UNB.0026']:
self.out.put({'BOTSID':'UNB','0026': self.ta_info['UNB.0026']})
if testindicator:
self.out.put({'BOTSID':'UNB','0035': testindicator})
self.out.put({'BOTSID':'UNB'},{'BOTSID':'UNZ','0036':self.ta_info['nrmessages'],'0020':self.ta_info['reference']}) #dummy segment; is not used
#user exit
botslib.tryrunscript(self.userscript,self.scriptname,'envelopecontent',ta_info=self.ta_info,out=self.out)
#convert the tree into segments; here only the UNB is written (first segment)
self.out.normalisetree(self.out.root)
self.out.tree2records(self.out.root)
#start doing the actual writing:
tofile = botslib.opendata(self.ta_info['filename'],'wb',self.ta_info['charset'])
if writeUNA or self.ta_info['forceUNA']:
tofile.write('UNA'+self.ta_info['sfield_sep']+self.ta_info['field_sep']+self.ta_info['decimaal']+self.ta_info['escape']+ reserve +self.ta_info['record_sep']+self.ta_info['add_crlfafterrecord_sep'])
tofile.write(self.out._record2string(self.out.records[0]))
self.writefilelist(tofile)
tofile.write(self.out._record2string(self.out.records[-1]))
tofile.close()
if self.ta_info['messagetype'][:6]!='CONTRL' and botslib.checkconfirmrules('ask-edifact-CONTRL',idroute=self.ta_info['idroute'],idchannel=self.ta_info['tochannel'],
topartner=self.ta_info['topartner'],frompartner=self.ta_info['frompartner'],
editype=self.ta_info['editype'],messagetype=self.ta_info['messagetype']):
self.ta_info['confirmtype'] = u'ask-edifact-CONTRL'
self.ta_info['confirmasked'] = True
class tradacoms(Envelope):
''' Generate STX and END segment; fill with appropriate data, write to interchange file.'''
def run(self):
if not self.ta_info['topartner'] or not self.ta_info['frompartner']:
raise botslib.OutMessageError(_(u'In enveloping "frompartner" or "topartner" unknown: "$ta_info".'),ta_info=self.ta_info)
self._openoutenvelope(self.ta_info['editype'],self.ta_info['envelope'])
self.ta_info.update(self.out.ta_info)
botslib.tryrunscript(self.userscript,self.scriptname,'ta_infocontent',ta_info=self.ta_info)
#prepare data for envelope
if botsglobal.ini.getboolean('settings','interchangecontrolperpartner',False):
self.ta_info['reference'] = str(botslib.unique('stxcounter_' + self.ta_info['topartner']))
else:
self.ta_info['reference'] = str(botslib.unique('stxcounter_' + self.ta_info['frompartner']))
#build the envelope segments (that is, the tree from which the segments will be generated)
self.out.put({'BOTSID':'STX',
'STDS1':self.ta_info['STX.STDS1'],
'STDS2':self.ta_info['STX.STDS2'],
'FROM.01':self.ta_info['frompartner'],
'UNTO.01':self.ta_info['topartner'],
'TRDT.01':time.strftime('%y%m%d'),
'TRDT.02':time.strftime('%H%M%S'),
'SNRF':self.ta_info['reference']})
if self.ta_info['STX.FROM.02']:
self.out.put({'BOTSID':'STX','FROM.02':self.ta_info['STX.FROM.02']})
if self.ta_info['STX.UNTO.02']:
self.out.put({'BOTSID':'STX','UNTO.02':self.ta_info['STX.UNTO.02']})
if self.ta_info['STX.APRF']:
self.out.put({'BOTSID':'STX','APRF':self.ta_info['STX.APRF']})
if self.ta_info['STX.PRCD']:
self.out.put({'BOTSID':'STX','PRCD':self.ta_info['STX.PRCD']})
self.out.put({'BOTSID':'STX'},{'BOTSID':'END','NMST':self.ta_info['nrmessages']}) #dummy segment; is not used
#user exit
botslib.tryrunscript(self.userscript,self.scriptname,'envelopecontent',ta_info=self.ta_info,out=self.out)
#convert the tree into segments; here only the STX is written (first segment)
self.out.normalisetree(self.out.root)
self.out.tree2records(self.out.root)
#start doing the actual writing:
tofile = botslib.opendata(self.ta_info['filename'],'wb',self.ta_info['charset'])
tofile.write(self.out._record2string(self.out.records[0]))
self.writefilelist(tofile)
tofile.write(self.out._record2string(self.out.records[-1]))
tofile.close()
class template(Envelope):
def run(self):
''' class for (test) orderprint; delevers a valid html-file.
Uses a kid-template for the enveloping/merging.
use kid to write; no envelope grammar is used
'''
try:
import kid
except:
txt=botslib.txtexc()
raise ImportError(_(u'Dependency failure: editype "template" requires python library "kid". Error:\n%s'%txt))
defmessage = grammar.grammarread(self.ta_info['editype'],self.ta_info['messagetype']) #needed because we do not know envelope; read syntax for editype/messagetype
self.ta_info.update(defmessage.syntax)
botslib.tryrunscript(self.userscript,self.scriptname,'ta_infocontent',ta_info=self.ta_info)
if not self.ta_info['envelope-template']:
raise botslib.OutMessageError(_(u'While enveloping in "$editype.$messagetype": syntax option "envelope-template" not filled; is required.'),editype=self.ta_info['editype'],messagetype=self.ta_info['messagetype'])
templatefile = botslib.abspath('templates',self.ta_info['envelope-template'])
ta_list = self.filelist2absolutepaths()
try:
botsglobal.logger.debug(u'Start writing envelope to file "%s".',self.ta_info['filename'])
ediprint = kid.Template(file=templatefile, data=ta_list) #init template; pass list with filenames
except:
txt=botslib.txtexc()
raise botslib.OutMessageError(_(u'While enveloping in "$editype.$messagetype", error:\n$txt'),editype=self.ta_info['editype'],messagetype=self.ta_info['messagetype'],txt=txt)
try:
f = botslib.opendata(self.ta_info['filename'],'wb')
ediprint.write(f,
encoding=self.ta_info['charset'],
output=self.ta_info['output'])
except:
txt=botslib.txtexc()
raise botslib.OutMessageError(_(u'While enveloping in "$editype.$messagetype", error:\n$txt'),editype=self.ta_info['editype'],messagetype=self.ta_info['messagetype'],txt=txt)
class orders2printenvelope(template):
pass
class templatehtml(Envelope):
def run(self):
''' class for (test) orderprint; delevers a valid html-file.
Uses a kid-template for the enveloping/merging.
use kid to write; no envelope grammar is used
'''
try:
from genshi.template import TemplateLoader
except:
txt=botslib.txtexc()
raise ImportError(_(u'Dependency failure: editype "template" requires python library "genshi". Error:\n%s'%txt))
defmessage = grammar.grammarread(self.ta_info['editype'],self.ta_info['messagetype']) #needed because we do not know envelope; read syntax for editype/messagetype
self.ta_info.update(defmessage.syntax)
botslib.tryrunscript(self.userscript,self.scriptname,'ta_infocontent',ta_info=self.ta_info)
if not self.ta_info['envelope-template']:
raise botslib.OutMessageError(_(u'While enveloping in "$editype.$messagetype": syntax option "envelope-template" not filled; is required.'),editype=self.ta_info['editype'],messagetype=self.ta_info['messagetype'])
templatefile = botslib.abspath('templateshtml',self.ta_info['envelope-template'])
ta_list = self.filelist2absolutepaths()
try:
botsglobal.logger.debug(u'Start writing envelope to file "%s".',self.ta_info['filename'])
loader = TemplateLoader(auto_reload=False)
tmpl = loader.load(templatefile)
except:
txt=botslib.txtexc()
raise botslib.OutMessageError(_(u'While enveloping in "$editype.$messagetype", error:\n$txt'),editype=self.ta_info['editype'],messagetype=self.ta_info['messagetype'],txt=txt)
try:
f = botslib.opendata(self.ta_info['filename'],'wb')
stream = tmpl.generate(data=ta_list)
stream.render(method='xhtml',encoding=self.ta_info['charset'],out=f)
except:
txt=botslib.txtexc()
raise botslib.OutMessageError(_(u'While enveloping in "$editype.$messagetype", error:\n$txt'),editype=self.ta_info['editype'],messagetype=self.ta_info['messagetype'],txt=txt)
class x12(Envelope):
''' Generate envelope segments; fill with appropriate data, write to interchange-file.'''
def run(self):
if not self.ta_info['topartner'] or not self.ta_info['frompartner']:
raise botslib.OutMessageError(_(u'In enveloping "frompartner" or "topartner" unknown: "$ta_info".'),ta_info=self.ta_info)
self._openoutenvelope(self.ta_info['editype'],self.ta_info['envelope'])
self.ta_info.update(self.out.ta_info)
#need to know the functionalgroup code:
defmessage = grammar.grammarread(self.ta_info['editype'],self.ta_info['messagetype'])
self.ta_info['functionalgroup'] = defmessage.syntax['functionalgroup']
botslib.tryrunscript(self.userscript,self.scriptname,'ta_infocontent',ta_info=self.ta_info)
#prepare data for envelope
ISA09date = time.strftime('%y%m%d')
#test indicator can either be from configuration (self.ta_info['ISA15']) or by mapping (self.ta_info['testindicator'])
#mapping overrules.
if self.ta_info['testindicator'] and self.ta_info['testindicator']!='0': #'0' is default value (in db)
testindicator = self.ta_info['testindicator']
else:
testindicator = self.ta_info['ISA15']
#~ print self.ta_info['messagetype'], 'grammar:',self.ta_info['ISA15'],'ta:',self.ta_info['testindicator'],'out:',testindicator
if botsglobal.ini.getboolean('settings','interchangecontrolperpartner',False):
self.ta_info['reference'] = str(botslib.unique('isacounter_' + self.ta_info['topartner']))
else:
self.ta_info['reference'] = str(botslib.unique('isacounter_' + self.ta_info['frompartner']))
#ISA06 and GS02 can be different; eg ISA06 is a service provider.
#ISA06 and GS02 can be in the syntax....
ISA06 = self.ta_info.get('ISA06',self.ta_info['frompartner'])
ISA06 = ISA06.ljust(15) #add spaces; is fixed length
GS02 = self.ta_info.get('GS02',self.ta_info['frompartner'])
#also for ISA08 and GS03
ISA08 = self.ta_info.get('ISA08',self.ta_info['topartner'])
ISA08 = ISA08.ljust(15) #add spaces; is fixed length
GS03 = self.ta_info.get('GS03',self.ta_info['topartner'])
#build the envelope segments (that is, the tree from which the segments will be generated)
self.out.put({'BOTSID':'ISA',
'ISA01':self.ta_info['ISA01'],
'ISA02':self.ta_info['ISA02'],
'ISA03':self.ta_info['ISA03'],
'ISA04':self.ta_info['ISA04'],
'ISA05':self.ta_info['ISA05'],
'ISA06':ISA06,
'ISA07':self.ta_info['ISA07'],
'ISA08':ISA08,
'ISA09':ISA09date,
'ISA10':time.strftime('%H%M'),
'ISA11':self.ta_info['ISA11'], #if ISA version > 00403, replaced by reprtion separator
'ISA12':self.ta_info['version'],
'ISA13':self.ta_info['reference'],
'ISA14':self.ta_info['ISA14'],
'ISA15':testindicator},strip=False) #MIND: strip=False: ISA fields shoudl not be stripped as it is soemwhat like fixed-length
self.out.put({'BOTSID':'ISA'},{'BOTSID':'IEA','IEA01':'1','IEA02':self.ta_info['reference']})
GS08 = self.ta_info['messagetype'][3:]
if GS08[:6]<'004010':
GS04date = time.strftime('%y%m%d')
else:
GS04date = time.strftime('%Y%m%d')
self.out.put({'BOTSID':'ISA'},{'BOTSID':'GS',
'GS01':self.ta_info['functionalgroup'],
'GS02':GS02,
'GS03':GS03,
'GS04':GS04date,
'GS05':time.strftime('%H%M'),
'GS06':self.ta_info['reference'],
'GS07':self.ta_info['GS07'],
'GS08':GS08})
self.out.put({'BOTSID':'ISA'},{'BOTSID':'GS'},{'BOTSID':'GE','GE01':self.ta_info['nrmessages'],'GE02':self.ta_info['reference']}) #dummy segment; is not used
#user exit
botslib.tryrunscript(self.userscript,self.scriptname,'envelopecontent',ta_info=self.ta_info,out=self.out)
#convert the tree into segments; here only the UNB is written (first segment)
self.out.normalisetree(self.out.root)
self.out.tree2records(self.out.root)
#start doing the actual writing:
tofile = botslib.opendata(self.ta_info['filename'],'wb',self.ta_info['charset'])
ISAstring = self.out._record2string(self.out.records[0])
if self.ta_info['version']<'00403':
ISAstring = ISAstring[:103] + self.ta_info['field_sep']+ self.ta_info['sfield_sep'] + ISAstring[103:] #hack for strange characters at end of ISA; hardcoded
else:
ISAstring = ISAstring[:82] +self.ta_info['reserve'] + ISAstring[83:103] + self.ta_info['field_sep']+ self.ta_info['sfield_sep'] + ISAstring[103:] #hack for strange characters at end of ISA; hardcoded
tofile.write(ISAstring) #write ISA
tofile.write(self.out._record2string(self.out.records[1])) #write GS
self.writefilelist(tofile)
tofile.write(self.out._record2string(self.out.records[-2])) #write GE
tofile.write(self.out._record2string(self.out.records[-1])) #write IEA
tofile.close()
if self.ta_info['functionalgroup']!='FA' and botslib.checkconfirmrules('ask-x12-997',idroute=self.ta_info['idroute'],idchannel=self.ta_info['tochannel'],
topartner=self.ta_info['topartner'],frompartner=self.ta_info['frompartner'],
editype=self.ta_info['editype'],messagetype=self.ta_info['messagetype']):
self.ta_info['confirmtype'] = u'ask-x12-997'
self.ta_info['confirmasked'] = True
class jsonnocheck(noenvelope):
pass
class json(noenvelope):
pass
class xmlnocheck(noenvelope):
pass
class xml(noenvelope):
pass
class myxmlenvelop(xml):
''' old xml enveloping; name is kept for upward comp. & as example for xml enveloping'''
def run(self):
''' class for (test) xml envelope. There is no standardised XML-envelope!
writes a new XML-tree; uses places-holders for XML-files to include; real enveloping is done by ElementTree's include'''
include = '{http://www.w3.org/2001/XInclude}include'
self._openoutenvelope(self.ta_info['editype'],self.ta_info['envelope'])
botslib.tryrunscript(self.userscript,self.scriptname,'ta_infocontent',ta_info=self.ta_info)
#~ self.out.put({'BOTSID':'root','xmlns:xi':"http://www.w3.org/2001/XInclude"}) #works, but attribute is not removed bij ETI.include
self.out.put({'BOTSID':'root'}) #start filling out-tree
ta_list = self.filelist2absolutepaths()
for filename in ta_list:
self.out.put({'BOTSID':'root'},{'BOTSID':include,include + '__parse':'xml',include + '__href':filename})
self.out.envelopewrite(self.out.root) #'resolves' the included xml files
class db(Envelope):
''' Only copies the input files to one output file.'''
def run(self):
botslib.tryrunscript(self.userscript,self.scriptname,'ta_infocontent',ta_info=self.ta_info)
self.ta_info['filename'] = self.ta_list[0]
class raw(Envelope):
''' Only copies the input files to one output file.'''
def run(self):
botslib.tryrunscript(self.userscript,self.scriptname,'ta_infocontent',ta_info=self.ta_info)
self.ta_info['filename'] = self.ta_list[0]
| [
[
1,
0,
0.0019,
0.0019,
0,
0.66,
0,
614,
0,
1,
0,
0,
614,
0,
0
],
[
1,
0,
0.0039,
0.0019,
0,
0.66,
0.037,
654,
0,
1,
0,
0,
654,
0,
0
],
[
1,
0,
0.0058,
0.0019,
0,
0... | [
"import shutil",
"import time",
"from django.utils.translation import ugettext as _",
"import botslib",
"import botsglobal",
"import grammar",
"import outmessage",
"from botsconfig import *",
"def mergemessages(startstatus=TRANSLATED,endstatus=MERGED,idroute=''):\n ''' Merges en envelopes several... |
# Django settings for bots project.
import os
import bots
#*******settings for bots error reports**********************************
MANAGERS = ( #bots will send error reports to the MANAGERS
('name_manager', 'manager@domain.org'),
)
#~ EMAIL_HOST = 'smtp.gmail.com' #Default: 'localhost'
#~ EMAIL_PORT = '587' #Default: 25
#~ EMAIL_USE_TLS = True #Default: False
#~ EMAIL_HOST_USER = 'user@gmail.com' #Default: ''. Username to use for the SMTP server defined in EMAIL_HOST. If empty, Django won't attempt authentication.
#~ EMAIL_HOST_PASSWORD = '' #Default: ''. PASSWORD to use for the SMTP server defined in EMAIL_HOST. If empty, Django won't attempt authentication.
#~ SERVER_EMAIL = 'user@gmail.com' #Sender of bots error reports. Default: 'root@localhost'
#~ EMAIL_SUBJECT_PREFIX = '' #This is prepended on email subject.
#*********path settings*************************advised is not to change these values!!
PROJECT_PATH = os.path.abspath(os.path.dirname(bots.__file__))
# Absolute path to the directory that holds media.
# Example: "/home/media/media.lawrence.com/"
MEDIA_ROOT = PROJECT_PATH + '/'
# URL that handles the media served from MEDIA_ROOT. Make sure to use a
# trailing slash if there is a path component (optional in other cases).
# Examples: "http://media.lawrence.com", "http://example.com/media/"
MEDIA_URL = ''
# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
# trailing slash.
# Examples: "http://foo.com/media/", "/media/".
ADMIN_MEDIA_PREFIX = '/media/'
#~ FILE_UPLOAD_TEMP_DIR = os.path.join(PROJECT_PATH, 'botssys/pluginsuploaded') #set in bots.ini
ROOT_URLCONF = 'bots.urls'
LOGIN_URL = '/login/'
LOGIN_REDIRECT_URL = '/'
LOGOUT_URL = '/logout/'
#~ LOGOUT_REDIRECT_URL = #??not such parameter; is set in urls
TEMPLATE_DIRS = (
os.path.join(PROJECT_PATH, 'templates'),
# Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
# Always use forward slashes, even on Windows.
# Don't forget to use absolute paths, not relative paths.
)
#*********database settings*************************
#django-admin syncdb --pythonpath='/home/hje/botsup' --settings='bots.config.settings'
#SQLITE:
DATABASE_ENGINE = 'sqlite3' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
DATABASE_NAME = os.path.join(PROJECT_PATH, 'botssys/sqlitedb/botsdb') #path to database; if relative path: interpreted relative to bots root directory
DATABASE_USER = ''
DATABASE_PASSWORD = ''
DATABASE_HOST = ''
DATABASE_PORT = ''
DATABASE_OPTIONS = {}
#~ #MySQL:
#~ DATABASE_ENGINE = 'mysql'
#~ DATABASE_NAME = 'botsdb'
#~ DATABASE_USER = 'bots'
#~ DATABASE_PASSWORD = 'botsbots'
#~ DATABASE_HOST = '192.168.0.7'
#~ DATABASE_PORT = '3306'
#~ DATABASE_OPTIONS = {'use_unicode':True,'charset':'utf8',"init_command": 'SET storage_engine=INNODB'}
#PostgreSQL:
#~ DATABASE_ENGINE = 'postgresql_psycopg2'
#~ DATABASE_NAME = 'botsdb'
#~ DATABASE_USER = 'bots'
#~ DATABASE_PASSWORD = 'botsbots'
#~ DATABASE_HOST = '192.168.0.7'
#~ DATABASE_PORT = '5432'
#~ DATABASE_OPTIONS = {}
#*********sessions, cookies, log out time*************************
SESSION_EXPIRE_AT_BROWSER_CLOSE = True #True: always log in when browser is closed
SESSION_COOKIE_AGE = 3600 #seconds a user needs to login when no activity
SESSION_SAVE_EVERY_REQUEST = True #if True: SESSION_COOKIE_AGE is interpreted as: since last activity
#*********localization*************************
# Local time zone for this installation. Choices can be found here:
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
# although not all choices may be available on all operating systems.
# If running in a Windows environment this must be set to the same as your
# system time zone.
TIME_ZONE = 'Europe/Amsterdam'
DATE_FORMAT = "Y-m-d"
DATETIME_FORMAT = "Y-m-d G:i"
TIME_FORMAT = "G:i"
# Language code for this installation. All choices can be found here:
# http://www.i18nguy.com/unicode/language-identifiers.html
#~ LANGUAGE_CODE = 'en-us'
LANGUAGE_CODE = 'en'
# If you set this to False, Django will make some optimizations so as not
# to load the internationalization machinery.
USE_I18N = True
#*************************************************************************
#*********other django setting. please consult django docs.***************
#set in bots.ini
#~ DEBUG = True
#~ TEMPLATE_DEBUG = DEBUG
SITE_ID = 1
# Make this unique, and don't share it with anybody.
SECRET_KEY = 'm@-u37qiujmeqfbu$daaaaz)sp^7an4u@h=wfx9dd$$$zl2i*x9#awojdc'
ADMINS = (
('bots', 'your_email@domain.com'),
)
#save uploaded file (=plugin) always to file. no path for temp storage is used, so system default is used.
FILE_UPLOAD_HANDLERS = (
"django.core.files.uploadhandler.TemporaryFileUploadHandler",
)
# List of callables that know how to import templates from various sources.
TEMPLATE_LOADERS = (
'django.template.loaders.filesystem.load_template_source',
'django.template.loaders.app_directories.load_template_source',
#'django.template.loaders.eggs.load_template_source',
)
MIDDLEWARE_CLASSES = (
'django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'bots.persistfilters.FilterPersistMiddleware',
)
INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.admin',
'bots',
)
TEMPLATE_CONTEXT_PROCESSORS = (
"django.core.context_processors.auth",
"django.core.context_processors.debug",
"django.core.context_processors.i18n",
"django.core.context_processors.media",
"django.core.context_processors.request",
)
| [
[
1,
0,
0.0146,
0.0073,
0,
0.66,
0,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.0219,
0.0073,
0,
0.66,
0.0286,
261,
0,
1,
0,
0,
261,
0,
0
],
[
14,
0,
0.0511,
0.0219,
0,
... | [
"import os",
"import bots",
"MANAGERS = ( #bots will send error reports to the MANAGERS\n ('name_manager', 'manager@domain.org'),\n )",
"PROJECT_PATH = os.path.abspath(os.path.dirname(bots.__file__))",
"MEDIA_ROOT = PROJECT_PATH + '/'",
"MEDIA_URL = ''",
"ADMIN_MEDIA_PREFIX = '/media/'",
"ROO... |
import sys
from django.utils.translation import ugettext as _
#bots-modules
import communication
import envelope
import transform
import botslib
import botsglobal
import preprocess
from botsconfig import *
@botslib.log_session
def prepareretransmit():
''' prepare the retransmittable files. Return: indication if files should be retransmitted.'''
retransmit = False #indicate retransmit
#for rereceive
for row in botslib.query('''SELECT idta,reportidta
FROM filereport
WHERE retransmit=%(retransmit)s ''',
{'retransmit':True}):
retransmit = True
botslib.change('''UPDATE filereport
SET retransmit=%(retransmit)s
WHERE idta=%(idta)s
AND reportidta=%(reportidta)s ''',
{'idta':row['idta'],'reportidta':row['reportidta'],'retransmit':False})
for row2 in botslib.query('''SELECT idta
FROM ta
WHERE parent=%(parent)s
AND status=%(status)s''',
{'parent':row['idta'],
'status':RAWIN}):
ta_rereceive = botslib.OldTransaction(row2['idta'])
ta_externin = ta_rereceive.copyta(status=EXTERNIN,statust=DONE,parent=0) #inject; status is DONE so this ta is not used further
ta_raw = ta_externin.copyta(status=RAWIN,statust=OK) #reinjected file is ready as new input
#for resend; this one is slow. Can be improved by having a separate list of idta to resend
for row in botslib.query('''SELECT idta,parent
FROM ta
WHERE retransmit=%(retransmit)s
AND status=%(status)s''',
{'retransmit':True,
'status':EXTERNOUT}):
retransmit = True
ta_outgoing = botslib.OldTransaction(row['idta'])
ta_outgoing.update(retransmit=False) #is reinjected; set retransmit back to False
ta_resend = botslib.OldTransaction(row['parent']) #parent ta with status RAWOUT; this is where the outgoing file is kept
ta_externin = ta_resend.copyta(status=EXTERNIN,statust=DONE,parent=0) #inject; status is DONE so this ta is not used further
ta_raw = ta_externin.copyta(status=RAWOUT,statust=OK) #reinjected file is ready as new input
return retransmit
@botslib.log_session
def preparerecommunication():
#for each out-communication process that went wrong:
retransmit = False #indicate retransmit
for row in botslib.query('''SELECT idta,tochannel
FROM ta
WHERE statust!=%(statust)s
AND status=%(status)s
AND retransmit=%(retransmit)s ''',
{'status':PROCESS,'retransmit':True,'statust':DONE}):
run_outgoing = botslib.OldTransaction(row['idta'])
run_outgoing.update(retransmit=False) #set retransmit back to False
#get rootidta of run where communication failed
for row2 in botslib.query('''SELECT max(idta) as rootidta
FROM ta
WHERE script=%(script)s
AND idta<%(thisidta)s ''',
{'script':0,'thisidta':row['idta']}):
rootidta = row2['rootidta']
#get endidta of run where communication failed
for row3 in botslib.query('''SELECT min(idta) as endidta
FROM ta
WHERE script=%(script)s
AND idta>%(thisidta)s ''',
{'script':0,'thisidta':row['idta']}):
endidta = row3['endidta']
if not endidta:
endidta = sys.maxint - 1
#reinject
for row4 in botslib.query('''SELECT idta
FROM ta
WHERE idta<%(endidta)s
AND idta>%(rootidta)s
AND status=%(status)s
AND statust=%(statust)s
AND tochannel=%(tochannel)s ''',
{'statust':OK,'status':RAWOUT,'rootidta':rootidta,'endidta':endidta,'tochannel':row['tochannel']}):
retransmit = True
ta_outgoing = botslib.OldTransaction(row4['idta'])
ta_outgoing_copy = ta_outgoing.copyta(status=RAWOUT,statust=OK)
ta_outgoing.update(statust=DONE)
return retransmit
@botslib.log_session
def prepareautomaticrecommunication():
''' reinjects all files for which communication failed (status = RAWOUT)
'''
retransmit = False #indicate retransmit
#bots keeps track of last time automaticretrycommunication was done; reason is mainly performance
startidta = max(botslib.keeptrackoflastretry('bots__automaticretrycommunication',botslib.getlastrun()),botslib.get_idta_last_error())
#reinject
for row4 in botslib.query('''SELECT idta
FROM ta
WHERE idta>%(startidta)s
AND status=%(status)s
AND statust=%(statust)s ''',
{'statust':OK,'status':RAWOUT,'startidta':startidta}):
retransmit = True
ta_outgoing = botslib.OldTransaction(row4['idta'])
ta_outgoing_copy = ta_outgoing.copyta(status=RAWOUT,statust=OK)
ta_outgoing.update(statust=DONE)
return retransmit
@botslib.log_session
def prepareretry():
''' reinjects all files for which communication failed (status = RAWOUT)
'''
retransmit = False #indicate retransmit
#bots keeps track of last time retry was done; reason is mainly performance
startidta = max(botslib.keeptrackoflastretry('bots__retry',botslib.getlastrun()),botslib.get_idta_last_error())
#reinject
for row4 in botslib.query('''SELECT idta,status
FROM ta
WHERE idta>%(startidta)s
AND statust=%(statust)s ''',
{'statust':OK,'startidta':startidta}):
retransmit = True
ta_outgoing = botslib.OldTransaction(row4['idta'])
ta_outgoing_copy = ta_outgoing.copyta(status=row4['status'],statust=OK)
ta_outgoing.update(statust=DONE)
return retransmit
@botslib.log_session
def routedispatcher(routestorun,type=None):
''' run all route(s). '''
if type == '--retransmit':
if not prepareretransmit():
return 0
elif type == '--retrycommunication':
if not preparerecommunication():
return 0
elif type == '--automaticretrycommunication':
if not prepareautomaticrecommunication():
return 0
elif type == '--retry':
if not prepareretry():
return 0
stuff2evaluate = botslib.getlastrun()
botslib.set_minta4query()
for route in routestorun:
foundroute=False
botslib.setpreprocessnumber(SET_FOR_PROCESSING)
for routedict in botslib.query('''SELECT idroute ,
fromchannel_id as fromchannel,
tochannel_id as tochannel,
fromeditype,
frommessagetype,
alt,
frompartner_id as frompartner,
topartner_id as topartner,
toeditype,
tomessagetype,
seq,
frompartner_tochannel_id,
topartner_tochannel_id,
testindicator,
translateind,
defer
FROM routes
WHERE idroute=%(idroute)s
AND active=%(active)s
ORDER BY seq''',
{'idroute':route,'active':True}):
botsglobal.logger.info(_(u'running route %(idroute)s %(seq)s'),{'idroute':routedict['idroute'],'seq':routedict['seq']})
botslib.setrouteid(routedict['idroute'])
foundroute=True
router(routedict)
botslib.setrouteid('')
botsglobal.logger.debug(u'finished route %s %s',routedict['idroute'],routedict['seq'])
if not foundroute:
botsglobal.logger.warning(_(u'there is no (active) route "%s".'),route)
return stuff2evaluate
@botslib.log_session
def router(routedict):
''' communication.run one route. variants:
- a route can be just script;
- a route can do only incoming
- a route can do only outgoing
- a route can do both incoming and outgoing
- at several points functions from a route script are called - if function is in route script
'''
#is there a user route script?
try:
userscript,scriptname = botslib.botsimport('routescripts',routedict['idroute'])
except ImportError: #other errors, eg syntax errors are just passed
userscript = scriptname = None
#if user route script has function 'main': communication.run 'main' (and do nothing else)
if botslib.tryrunscript(userscript,scriptname,'main',routedict=routedict):
return #so: if function ' main' : communication.run only the routescript, nothing else.
if not (userscript or routedict['fromchannel'] or routedict['tochannel'] or routedict['translateind']):
raise botslib.ScriptError(_(u'Route "$route" is empty: no script, not enough parameters.'),route=routedict['idroute'])
botslib.tryrunscript(userscript,scriptname,'start',routedict=routedict)
#communication.run incoming channel
if routedict['fromchannel']: #do incoming part of route: in-communication; set ready for translation; translate
botslib.tryrunscript(userscript,scriptname,'preincommunication',routedict=routedict)
communication.run(idchannel=routedict['fromchannel'],idroute=routedict['idroute']) #communication.run incommunication
#add attributes from route to the received files
where={'status':FILEIN,'fromchannel':routedict['fromchannel'],'idroute':routedict['idroute']}
change={'editype':routedict['fromeditype'],'messagetype':routedict['frommessagetype'],'frompartner':routedict['frompartner'],'topartner':routedict['topartner'],'alt':routedict['alt']}
botslib.updateinfo(change=change,where=where)
#all received files have status FILEIN
botslib.tryrunscript(userscript,scriptname,'postincommunication',routedict=routedict)
if routedict['fromeditype'] == 'mailbag': #mailbag for the route.
preprocess.preprocess(routedict,preprocess.mailbag)
#communication.run translation
if routedict['translateind']:
botslib.tryrunscript(userscript,scriptname,'pretranslation',routedict=routedict)
botslib.addinfo(change={'status':TRANSLATE},where={'status':FILEIN,'idroute':routedict['idroute']})
transform.translate(idroute=routedict['idroute'])
botslib.tryrunscript(userscript,scriptname,'posttranslation',routedict=routedict)
#merge messages & communication.run outgoing channel
if routedict['tochannel']: #do outgoing part of route
botslib.tryrunscript(userscript,scriptname,'premerge',routedict=routedict)
envelope.mergemessages(idroute=routedict['idroute'])
botslib.tryrunscript(userscript,scriptname,'postmerge',routedict=routedict)
#communication.run outgoing channel
#build for query: towhere (dict) and wherestring
towhere=dict(status=MERGED,
idroute=routedict['idroute'],
editype=routedict['toeditype'],
messagetype=routedict['tomessagetype'],
testindicator=routedict['testindicator'])
towhere=dict([(key, value) for (key, value) in towhere.iteritems() if value]) #remove nul-values from dict
wherestring = ' AND '.join([key+'=%('+key+')s' for key in towhere])
if routedict['frompartner_tochannel_id']: #use frompartner_tochannel in where-clause of query (partner/group dependent outchannel
towhere['frompartner_tochannel_id']=routedict['frompartner_tochannel_id']
wherestring += ''' AND (frompartner=%(frompartner_tochannel_id)s
OR frompartner in (SELECT from_partner_id
FROM partnergroup
WHERE to_partner_id =%(frompartner_tochannel_id)s ))'''
if routedict['topartner_tochannel_id']: #use topartner_tochannel in where-clause of query (partner/group dependent outchannel
towhere['topartner_tochannel_id']=routedict['topartner_tochannel_id']
wherestring += ''' AND (topartner=%(topartner_tochannel_id)s
OR topartner in (SELECT from_partner_id
FROM partnergroup
WHERE to_partner_id=%(topartner_tochannel_id)s ))'''
toset={'tochannel':routedict['tochannel'],'status':FILEOUT}
botslib.addinfocore(change=toset,where=towhere,wherestring=wherestring)
if not routedict['defer']: #do outgoing part of route
botslib.tryrunscript(userscript,scriptname,'preoutcommunication',routedict=routedict)
communication.run(idchannel=routedict['tochannel'],idroute=routedict['idroute']) #communication.run outcommunication
botslib.tryrunscript(userscript,scriptname,'postoutcommunication',routedict=routedict)
botslib.tryrunscript(userscript,scriptname,'end',routedict=routedict)
| [
[
1,
0,
0.0037,
0.0037,
0,
0.66,
0,
509,
0,
1,
0,
0,
509,
0,
0
],
[
1,
0,
0.0075,
0.0037,
0,
0.66,
0.0714,
389,
0,
1,
0,
0,
389,
0,
0
],
[
1,
0,
0.0149,
0.0037,
0,
... | [
"import sys",
"from django.utils.translation import ugettext as _",
"import communication",
"import envelope",
"import transform",
"import botslib",
"import botsglobal",
"import preprocess",
"from botsconfig import *",
"def prepareretransmit():\n ''' prepare the retransmittable files. Return: i... |
import time
import django
import models
import viewlib
import botslib
import botsglobal
django.contrib.admin.widgets.AdminSplitDateTime
HiddenInput = django.forms.widgets.HiddenInput
DEFAULT_ENTRY = ('',"---------")
editypelist=[DEFAULT_ENTRY] + sorted(models.EDITYPES)
confirmtypelist=[DEFAULT_ENTRY] + models.CONFIRMTYPE
def getroutelist(): #needed because the routeid is needed (and this is not theprimary key
return [DEFAULT_ENTRY]+[(l,l) for l in models.routes.objects.values_list('idroute', flat=True).order_by('idroute').distinct() ]
def getinmessagetypes():
return [DEFAULT_ENTRY]+[(l,l) for l in models.translate.objects.values_list('frommessagetype', flat=True).order_by('frommessagetype').distinct() ]
def getoutmessagetypes():
return [DEFAULT_ENTRY]+[(l,l) for l in models.translate.objects.values_list('tomessagetype', flat=True).order_by('tomessagetype').distinct() ]
def getallmessagetypes():
return [DEFAULT_ENTRY]+[(l,l) for l in sorted(set(list(models.translate.objects.values_list('tomessagetype', flat=True).all()) + list(models.translate.objects.values_list('frommessagetype', flat=True).all()) )) ]
def getpartners():
return [DEFAULT_ENTRY]+[(l,l) for l in models.partner.objects.values_list('idpartner', flat=True).filter(isgroup=False,active=True).order_by('idpartner') ]
def getfromchannels():
return [DEFAULT_ENTRY]+[(l,l) for l in models.channel.objects.values_list('idchannel', flat=True).filter(inorout='in').order_by('idchannel') ]
def gettochannels():
return [DEFAULT_ENTRY]+[(l,l) for l in models.channel.objects.values_list('idchannel', flat=True).filter(inorout='out').order_by('idchannel') ]
class Select(django.forms.Form):
datefrom = django.forms.DateTimeField(initial=viewlib.datetimefrom)
dateuntil = django.forms.DateTimeField(initial=viewlib.datetimeuntil)
page = django.forms.IntegerField(required=False,initial=1,widget=HiddenInput())
sortedby = django.forms.CharField(initial='ts',widget=HiddenInput())
sortedasc = django.forms.BooleanField(initial=False,required=False,widget=HiddenInput())
class View(django.forms.Form):
datefrom = django.forms.DateTimeField(required=False,initial=viewlib.datetimefrom,widget=HiddenInput())
dateuntil = django.forms.DateTimeField(required=False,initial=viewlib.datetimeuntil,widget=HiddenInput())
page = django.forms.IntegerField(required=False,initial=1,widget=HiddenInput())
sortedby = django.forms.CharField(required=False,initial='ts',widget=HiddenInput())
sortedasc = django.forms.BooleanField(required=False,initial=False,widget=HiddenInput())
class SelectReports(Select):
template = 'bots/selectform.html'
action = '/reports/'
status = django.forms.ChoiceField([DEFAULT_ENTRY,('1',"Error"),('0',"Done")],required=False,initial='')
class ViewReports(View):
template = 'bots/reports.html'
action = '/reports/'
status = django.forms.IntegerField(required=False,initial='',widget=HiddenInput())
class SelectIncoming(Select):
template = 'bots/selectform.html'
action = '/incoming/'
statust = django.forms.ChoiceField([DEFAULT_ENTRY,('1',"Error"),('3',"Done")],required=False,initial='')
idroute = django.forms.ChoiceField([],required=False,initial='')
frompartner = django.forms.ChoiceField([],required=False)
topartner = django.forms.ChoiceField([],required=False)
ineditype = django.forms.ChoiceField(editypelist,required=False)
inmessagetype = django.forms.ChoiceField([],required=False)
outeditype = django.forms.ChoiceField(editypelist,required=False)
outmessagetype = django.forms.ChoiceField([],required=False)
lastrun = django.forms.BooleanField(required=False,initial=False)
def __init__(self, *args, **kwargs):
super(SelectIncoming, self).__init__(*args, **kwargs)
self.fields['idroute'].choices = getroutelist()
self.fields['inmessagetype'].choices = getinmessagetypes()
self.fields['outmessagetype'].choices = getoutmessagetypes()
self.fields['frompartner'].choices = getpartners()
self.fields['topartner'].choices = getpartners()
class ViewIncoming(View):
template = 'bots/incoming.html'
action = '/incoming/'
statust = django.forms.IntegerField(required=False,initial='',widget=HiddenInput())
idroute = django.forms.CharField(required=False,widget=HiddenInput())
frompartner = django.forms.CharField(required=False,widget=HiddenInput())
topartner = django.forms.CharField(required=False,widget=HiddenInput())
ineditype = django.forms.CharField(required=False,widget=HiddenInput())
inmessagetype = django.forms.CharField(required=False,widget=HiddenInput())
outeditype = django.forms.CharField(required=False,widget=HiddenInput())
outmessagetype = django.forms.CharField(required=False,widget=HiddenInput())
lastrun = django.forms.BooleanField(required=False,initial=False,widget=HiddenInput())
botskey = django.forms.CharField(required=False,widget=HiddenInput())
class SelectDocument(Select):
template = 'bots/selectform.html'
action = '/document/'
idroute = django.forms.ChoiceField([],required=False,initial='')
frompartner = django.forms.ChoiceField([],required=False)
topartner = django.forms.ChoiceField([],required=False)
editype = django.forms.ChoiceField(editypelist,required=False)
messagetype = django.forms.ChoiceField(required=False)
lastrun = django.forms.BooleanField(required=False,initial=False)
botskey = django.forms.CharField(required=False,label='Document number',max_length=35)
def __init__(self, *args, **kwargs):
super(SelectDocument, self).__init__(*args, **kwargs)
self.fields['idroute'].choices = getroutelist()
self.fields['messagetype'].choices = getoutmessagetypes()
self.fields['frompartner'].choices = getpartners()
self.fields['topartner'].choices = getpartners()
class ViewDocument(View):
template = 'bots/document.html'
action = '/document/'
idroute = django.forms.CharField(required=False,widget=HiddenInput())
frompartner = django.forms.CharField(required=False,widget=HiddenInput())
topartner = django.forms.CharField(required=False,widget=HiddenInput())
editype = django.forms.CharField(required=False,widget=HiddenInput())
messagetype = django.forms.CharField(required=False,widget=HiddenInput())
lastrun = django.forms.BooleanField(required=False,initial=False,widget=HiddenInput())
botskey = django.forms.CharField(required=False,widget=HiddenInput())
class SelectOutgoing(Select):
template = 'bots/selectform.html'
action = '/outgoing/'
idroute = django.forms.ChoiceField([],required=False,initial='')
frompartner = django.forms.ChoiceField([],required=False)
topartner = django.forms.ChoiceField([],required=False)
editype = django.forms.ChoiceField(editypelist,required=False)
messagetype = django.forms.ChoiceField(required=False)
lastrun = django.forms.BooleanField(required=False,initial=False)
def __init__(self, *args, **kwargs):
super(SelectOutgoing, self).__init__(*args, **kwargs)
self.fields['idroute'].choices = getroutelist()
self.fields['messagetype'].choices = getoutmessagetypes()
self.fields['frompartner'].choices = getpartners()
self.fields['topartner'].choices = getpartners()
class ViewOutgoing(View):
template = 'bots/outgoing.html'
action = '/outgoing/'
idroute = django.forms.CharField(required=False,widget=HiddenInput())
frompartner = django.forms.CharField(required=False,widget=HiddenInput())
topartner = django.forms.CharField(required=False,widget=HiddenInput())
editype = django.forms.CharField(required=False,widget=HiddenInput())
messagetype = django.forms.CharField(required=False,widget=HiddenInput())
lastrun = django.forms.BooleanField(required=False,initial=False,widget=HiddenInput())
class SelectProcess(Select):
template = 'bots/selectform.html'
action = '/process/'
idroute = django.forms.ChoiceField([],required=False,initial='')
lastrun = django.forms.BooleanField(required=False,initial=False)
def __init__(self, *args, **kwargs):
super(SelectProcess, self).__init__(*args, **kwargs)
self.fields['idroute'].choices = getroutelist()
class ViewProcess(View):
template = 'bots/process.html'
action = '/process/'
idroute = django.forms.CharField(required=False,widget=HiddenInput())
lastrun = django.forms.BooleanField(required=False,initial=False,widget=HiddenInput())
class SelectConfirm(Select):
template = 'bots/selectform.html'
action = '/confirm/'
confirmtype = django.forms.ChoiceField(confirmtypelist,required=False,initial='0')
confirmed = django.forms.ChoiceField([('0',"All runs"),('1',"Current run"),('2',"Last run")],required=False,initial='0')
idroute = django.forms.ChoiceField([],required=False,initial='')
editype = django.forms.ChoiceField(editypelist,required=False)
messagetype = django.forms.ChoiceField([],required=False)
frompartner = django.forms.ChoiceField([],required=False)
topartner = django.forms.ChoiceField([],required=False)
fromchannel = django.forms.ChoiceField([],required=False)
tochannel = django.forms.ChoiceField([],required=False)
def __init__(self, *args, **kwargs):
super(SelectConfirm, self).__init__(*args, **kwargs)
self.fields['idroute'].choices = getroutelist()
self.fields['messagetype'].choices = getallmessagetypes()
self.fields['frompartner'].choices = getpartners()
self.fields['topartner'].choices = getpartners()
self.fields['fromchannel'].choices = getfromchannels()
self.fields['tochannel'].choices = gettochannels()
class ViewConfirm(View):
template = 'bots/confirm.html'
action = '/confirm/'
confirmtype = django.forms.CharField(required=False,widget=HiddenInput())
confirmed = django.forms.CharField(required=False,widget=HiddenInput())
idroute = django.forms.CharField(required=False,widget=HiddenInput())
editype = django.forms.CharField(required=False,widget=HiddenInput())
messagetype = django.forms.CharField(required=False,widget=HiddenInput())
frompartner = django.forms.CharField(required=False,widget=HiddenInput())
topartner = django.forms.CharField(required=False,widget=HiddenInput())
fromchannel = django.forms.CharField(required=False,widget=HiddenInput())
tochannel = django.forms.CharField(required=False,widget=HiddenInput())
class UploadFileForm(django.forms.Form):
file = django.forms.FileField(label='Plugin to read',required=True,widget=django.forms.widgets.FileInput(attrs={'size':'100'}))
class PlugoutForm(django.forms.Form):
databaseconfiguration = django.forms.BooleanField(required=False,initial=True,help_text='Routes, channels, translations, partners, etc.')
umlists = django.forms.BooleanField(required=False,initial=True,label='User maintained code lists',help_text='')
fileconfiguration = django.forms.BooleanField(required=False,initial=True,help_text='Grammars, mapping scrips, routes scripts, etc. (bots/usersys)')
infiles = django.forms.BooleanField(required=False,initial=True,help_text='Examples edi file in bots/botssys/infile')
charset = django.forms.BooleanField(required=False,initial=False,label='(Edifact) files with character sets',help_text='seldom needed.')
databasetransactions = django.forms.BooleanField(required=False,initial=False,help_text='From the database: Runs, incoming files, outgoing files, documents; only for support purposes, on request.')
data = django.forms.BooleanField(required=False,initial=False,label='All transaction files',help_text='bots/botssys/data; only for support purposes, on request.')
logfiles = django.forms.BooleanField(required=False,initial=False,label='Log files',help_text='bots/botssys/logging; only for support purposes, on request.')
config = django.forms.BooleanField(required=False,initial=False,label='configuration files',help_text='bots/config; only for support purposes, on request.')
database = django.forms.BooleanField(required=False,initial=False,label='SQLite database',help_text='Only for support purposes, on request.')
filename = django.forms.CharField(required=True,label='Plugin filename',max_length=250)
def __init__(self, *args, **kwargs):
super(PlugoutForm, self).__init__(*args, **kwargs)
self.fields['filename'].initial = botslib.join(botsglobal.ini.get('directories','botssys'),'myplugin' + time.strftime('_%Y%m%d') + '.zip')
class DeleteForm(django.forms.Form):
delbackup = django.forms.BooleanField(required=False,label='Delete backups of user scripts',initial=True,help_text='Delete backup files in usersys (purge).')
deltransactions = django.forms.BooleanField(required=False,label='Delete transactions',initial=True,help_text='Delete runs, reports, incoming, outgoing, data files.')
delconfiguration = django.forms.BooleanField(required=False,label='Delete configuration',initial=False,help_text='Delete routes, channels, translations, partners etc.')
delcodelists = django.forms.BooleanField(required=False,label='Delete user code lists',initial=False,help_text='Delete user code lists.')
deluserscripts = django.forms.BooleanField(required=False,label='Delete all user scripts',initial=False,help_text='Delete all scripts in usersys (grammars, mappings etc) except charsets.')
delinfile = django.forms.BooleanField(required=False,label='Delete botssys/infiles',initial=False,help_text='Delete files in botssys/infile.')
deloutfile = django.forms.BooleanField(required=False,label='Delete botssys/outfiles',initial=False,help_text='Delete files in botssys/outfile.')
| [
[
1,
0,
0.0046,
0.0046,
0,
0.66,
0,
654,
0,
1,
0,
0,
654,
0,
0
],
[
1,
0,
0.0093,
0.0046,
0,
0.66,
0.0294,
294,
0,
1,
0,
0,
294,
0,
0
],
[
1,
0,
0.0139,
0.0046,
0,
... | [
"import time",
"import django",
"import models",
"import viewlib",
"import botslib",
"import botsglobal",
"django.contrib.admin.widgets.AdminSplitDateTime",
"HiddenInput = django.forms.widgets.HiddenInput",
"DEFAULT_ENTRY = ('',\"---------\")",
"editypelist=[DEFAULT_ENTRY] + sorted(models.EDITYPES... |
'''module contains the functions to be called from user scripts'''
try:
import cPickle as pickle
except:
import pickle
import copy
import collections
from django.utils.translation import ugettext as _
#bots-modules
import botslib
import botsglobal
import inmessage
import outmessage
from botsconfig import *
#*******************************************************************************************************************
#****** functions imported from other modules. reason: user scripting uses primary transform functions *************
#*******************************************************************************************************************
from botslib import addinfo,updateinfo,changestatustinfo,checkunique
from envelope import mergemessages
from communication import run
@botslib.log_session
def translate(startstatus=TRANSLATE,endstatus=TRANSLATED,idroute=''):
''' translates edifiles in one or more edimessages.
reads and parses edifiles that have to be translated.
tries to split files into messages (using 'nextmessage' of grammar); if no splitting: edifile is one message.
searches the right translation in translate-table;
runs the mapping-script for the translation;
Function takes db-ta with status=TRANSLATE->PARSED->SPLITUP->TRANSLATED
'''
#select edifiles to translate; fill ta-object
#~ import gc
#~ gc.disable()
for row in botslib.query(u'''SELECT idta,frompartner,topartner,filename,messagetype,testindicator,editype,charset,alt,fromchannel
FROM ta
WHERE idta>%(rootidta)s
AND status=%(status)s
AND statust=%(statust)s
AND idroute=%(idroute)s
''',
{'status':startstatus,'statust':OK,'idroute':idroute,'rootidta':botslib.get_minta4query()}):
try:
ta_fromfile=botslib.OldTransaction(row['idta']) #TRANSLATE ta
ta_parsedfile = ta_fromfile.copyta(status=PARSED) #copy TRANSLATE to PARSED ta
#whole edi-file is read, parsed and made into a inmessage-object:
edifile = inmessage.edifromfile(frompartner=row['frompartner'],
topartner=row['topartner'],
filename=row['filename'],
messagetype=row['messagetype'],
testindicator=row['testindicator'],
editype=row['editype'],
charset=row['charset'],
alt=row['alt'],
fromchannel=row['fromchannel'],
idroute=idroute)
botsglobal.logger.debug(u'start read and parse input file "%s" editype "%s" messagetype "%s".',row['filename'],row['editype'],row['messagetype'])
for inn in edifile.nextmessage(): #for each message in the edifile:
#inn.ta_info: parameters from inmessage.edifromfile(), syntax-information and parse-information
ta_frommes=ta_parsedfile.copyta(status=SPLITUP) #copy PARSED to SPLITUP ta
inn.ta_info['idta_fromfile'] = ta_fromfile.idta #for confirmations in user script; used to give idta of 'confirming message'
ta_frommes.update(**inn.ta_info) #update ta-record SLIPTUP with info from message content and/or grammar
while 1: #whileloop continues as long as there are alt-translations
#************select parameters for translation(script):
for row2 in botslib.query(u'''SELECT tscript,tomessagetype,toeditype
FROM translate
WHERE frommessagetype = %(frommessagetype)s
AND fromeditype = %(fromeditype)s
AND active=%(booll)s
AND alt=%(alt)s
AND (frompartner_id IS NULL OR frompartner_id=%(frompartner)s OR frompartner_id in (SELECT to_partner_id
FROM partnergroup
WHERE from_partner_id=%(frompartner)s ))
AND (topartner_id IS NULL OR topartner_id=%(topartner)s OR topartner_id in (SELECT to_partner_id
FROM partnergroup
WHERE from_partner_id=%(topartner)s ))
ORDER BY alt DESC,
CASE WHEN frompartner_id IS NULL THEN 1 ELSE 0 END, frompartner_id ,
CASE WHEN topartner_id IS NULL THEN 1 ELSE 0 END, topartner_id ''',
{'frommessagetype':inn.ta_info['messagetype'],
'fromeditype':inn.ta_info['editype'],
'alt':inn.ta_info['alt'],
'frompartner':inn.ta_info['frompartner'],
'topartner':inn.ta_info['topartner'],
'booll':True}):
break #escape if found; we need only the first - ORDER BY in the query
else: #no translation record is found
raise botslib.TranslationNotFoundError(_(u'Editype "$editype", messagetype "$messagetype", frompartner "$frompartner", topartner "$topartner", alt "$alt"'),
editype=inn.ta_info['editype'],
messagetype=inn.ta_info['messagetype'],
frompartner=inn.ta_info['frompartner'],
topartner=inn.ta_info['topartner'],
alt=inn.ta_info['alt'])
ta_tomes=ta_frommes.copyta(status=endstatus) #copy SPLITUP to TRANSLATED ta
tofilename = str(ta_tomes.idta)
tscript=row2['tscript']
tomessage = outmessage.outmessage_init(messagetype=row2['tomessagetype'],editype=row2['toeditype'],filename=tofilename,reference=unique('messagecounter'),statust=OK,divtext=tscript) #make outmessage object
#copy ta_info
botsglobal.logger.debug(u'script "%s" translates messagetype "%s" to messagetype "%s".',tscript,inn.ta_info['messagetype'],tomessage.ta_info['messagetype'])
translationscript,scriptfilename = botslib.botsimport('mappings',inn.ta_info['editype'] + '.' + tscript) #get the mapping-script
doalttranslation = botslib.runscript(translationscript,scriptfilename,'main',inn=inn,out=tomessage)
botsglobal.logger.debug(u'script "%s" finished.',tscript)
if 'topartner' not in tomessage.ta_info: #tomessage does not contain values from ta......
tomessage.ta_info['topartner']=inn.ta_info['topartner']
if tomessage.ta_info['statust'] == DONE: #if indicated in user script the message should be discarded
botsglobal.logger.debug(u'No output file because mapping script explicitly indicated this.')
tomessage.ta_info['filename'] = ''
tomessage.ta_info['status'] = DISCARD
else:
botsglobal.logger.debug(u'Start writing output file editype "%s" messagetype "%s".',tomessage.ta_info['editype'],tomessage.ta_info['messagetype'])
tomessage.writeall() #write tomessage (result of translation).
#problem is that not all values ta_tomes are know to to_message....
#~ print 'tomessage.ta_info',tomessage.ta_info
ta_tomes.update(**tomessage.ta_info) #update outmessage transaction with ta_info;
del tomessage
#~ gc.collect()
if not doalttranslation:
break #out of while loop
else:
inn.ta_info['alt'] = doalttranslation
#end of while-loop
#~ print inn.ta_info
ta_frommes.update(statust=DONE,**inn.ta_info) #update db. inn.ta_info could be changed by script. Is this useful?
del inn
#~ gc.collect()
#exceptions file_in-level
except:
#~ edifile.handleconfirm(ta_fromfile,error=True) #only useful if errors are reported in acknowledgement (eg x12 997). Not used now.
txt=botslib.txtexc()
ta_parsedfile.failure()
ta_parsedfile.update(statust=ERROR,errortext=txt)
botsglobal.logger.debug(u'error in translating input file "%s":\n%s',row['filename'],txt)
else:
edifile.handleconfirm(ta_fromfile,error=False)
ta_fromfile.update(statust=DONE)
ta_parsedfile.update(statust=DONE,**edifile.confirminfo)
botsglobal.logger.debug(u'translated input file "%s".',row['filename'])
del edifile
#~ gc.collect()
#~ gc.enable()
#*********************************************************************
#*** utily functions for persist: store things in the bots database.
#*** this is intended as a memory stretching across messages.
#*********************************************************************
def persist_add(domein,botskey,value):
''' store persistent values in db.
'''
content = pickle.dumps(value,0)
if botsglobal.settings.DATABASE_ENGINE != 'sqlite3' and len(content)>1024:
raise botslib.PersistError(_(u'Data too long for domein "$domein", botskey "$botskey", value "$value".'),domein=domein,botskey=botskey,value=value)
try:
botslib.change(u'''INSERT INTO persist (domein,botskey,content)
VALUES (%(domein)s,%(botskey)s,%(content)s)''',
{'domein':domein,'botskey':botskey,'content':content})
except:
raise botslib.PersistError(_(u'Failed to add for domein "$domein", botskey "$botskey", value "$value".'),domein=domein,botskey=botskey,value=value)
def persist_update(domein,botskey,value):
''' store persistent values in db.
'''
content = pickle.dumps(value,0)
if botsglobal.settings.DATABASE_ENGINE != 'sqlite3' and len(content)>1024:
raise botslib.PersistError(_(u'Data too long for domein "$domein", botskey "$botskey", value "$value".'),domein=domein,botskey=botskey,value=value)
botslib.change(u'''UPDATE persist
SET content=%(content)s
WHERE domein=%(domein)s
AND botskey=%(botskey)s''',
{'domein':domein,'botskey':botskey,'content':content})
def persist_add_update(domein,botskey,value):
# add the record, or update it if already there.
try:
persist_add(domein,botskey,value)
except:
persist_update(domein,botskey,value)
def persist_delete(domein,botskey):
''' store persistent values in db.
'''
botslib.change(u'''DELETE FROM persist
WHERE domein=%(domein)s
AND botskey=%(botskey)s''',
{'domein':domein,'botskey':botskey})
def persist_lookup(domein,botskey):
''' lookup persistent values in db.
'''
for row in botslib.query(u'''SELECT content
FROM persist
WHERE domein=%(domein)s
AND botskey=%(botskey)s''',
{'domein':domein,'botskey':botskey}):
return pickle.loads(str(row['content']))
return None
#*********************************************************************
#*** utily functions for codeconversion
#*** 2 types: codeconversion via database tabel ccode, and via file.
#*** 20111116: codeconversion via file is depreciated, will disappear.
#*********************************************************************
#***code conversion via database tabel ccode
def ccode(ccodeid,leftcode,field='rightcode'):
''' converts code using a db-table.
converted value is returned, exception if not there.
'''
for row in botslib.query(u'''SELECT ''' +field+ '''
FROM ccode
WHERE ccodeid_id = %(ccodeid)s
AND leftcode = %(leftcode)s''',
{'ccodeid':ccodeid,
'leftcode':leftcode,
}):
return row[field]
raise botslib.CodeConversionError(_(u'Value "$value" not in code-conversion, user table "$table".'),value=leftcode,table=ccodeid)
codetconversion = ccode
def safe_ccode(ccodeid,leftcode,field='rightcode'):
''' converts code using a db-table.
converted value is returned, if not there return orginal code
'''
try:
return ccode(ccodeid,leftcode,field)
except botslib.CodeConversionError:
return leftcode
safecodetconversion = safe_ccode
def reverse_ccode(ccodeid,rightcode,field='leftcode'):
''' as ccode but reversed lookup.'''
for row in botslib.query(u'''SELECT ''' +field+ '''
FROM ccode
WHERE ccodeid_id = %(ccodeid)s
AND rightcode = %(rightcode)s''',
{'ccodeid':ccodeid,
'rightcode':rightcode,
}):
return row[field]
raise botslib.CodeConversionError(_(u'Value "$value" not in code-conversion, user table "$table".'),value=rightcode,table=ccodeid)
rcodetconversion = reverse_ccode
def safe_reverse_ccode(ccodeid,rightcode,field='leftcode'):
''' as safe_ccode but reversed lookup.'''
try:
return ccode(ccodeid,rightcode,field)
except botslib.CodeConversionError:
return rightcode
safercodetconversion = safe_reverse_ccode
def getcodeset(ccodeid,leftcode,field='rightcode'):
''' Get a code set
'''
return list(botslib.query(u'''SELECT ''' +field+ '''
FROM ccode
WHERE ccodeid_id = %(ccodeid)s
AND leftcode = %(leftcode)s''',
{'ccodeid':ccodeid,
'leftcode':leftcode,
}))
#***code conversion via file. 20111116: depreciated
def safecodeconversion(modulename,value):
''' converts code using a codelist.
converted value is returned.
codelist is first imported from file in codeconversions (lookup right place/mudule in bots.ini)
'''
module,filename = botslib.botsimport('codeconversions',modulename)
try:
return module.codeconversions[value]
except KeyError:
return value
def codeconversion(modulename,value):
''' converts code using a codelist.
converted value is returned.
codelist is first imported from file in codeconversions (lookup right place/mudule in bots.ini)
'''
module,filename = botslib.botsimport('codeconversions',modulename)
try:
return module.codeconversions[value]
except KeyError:
raise botslib.CodeConversionError(_(u'Value "$value" not in file for codeconversion "$filename".'),value=value,filename=filename)
def safercodeconversion(modulename,value):
''' as codeconversion but reverses the dictionary first'''
module,filename = botslib.botsimport('codeconversions',modulename)
if not hasattr(module,'botsreversed'+'codeconversions'):
reversedict = dict((value,key) for key,value in module.codeconversions.items())
setattr(module,'botsreversed'+'codeconversions',reversedict)
try:
return module.botsreversedcodeconversions[value]
except KeyError:
return value
def rcodeconversion(modulename,value):
''' as codeconversion but reverses the dictionary first'''
module,filename = botslib.botsimport('codeconversions',modulename)
if not hasattr(module,'botsreversed'+'codeconversions'):
reversedict = dict((value,key) for key,value in module.codeconversions.items())
setattr(module,'botsreversed'+'codeconversions',reversedict)
try:
return module.botsreversedcodeconversions[value]
except KeyError:
raise botslib.CodeConversionError(_(u'Value "$value" not in file for reversed codeconversion "$filename".'),value=value,filename=filename)
#*********************************************************************
#*** utily functions for calculating/generating/checking EAN/GTIN/GLN
#*********************************************************************
def calceancheckdigit(ean):
''' input: EAN without checkdigit; returns the checkdigit'''
try:
if not ean.isdigit():
raise botslib.EanError(_(u'GTIN "$ean" should be string with only numericals'),ean=ean)
except AttributeError:
raise botslib.EanError(_(u'GTIN "$ean" should be string, but is a "$type"'),ean=ean,type=type(ean))
sum1=sum([int(x)*3 for x in ean[-1::-2]]) + sum([int(x) for x in ean[-2::-2]])
return str((1000-sum1)%10)
def calceancheckdigit2(ean):
''' just for fun: slightly different algoritm for calculating the ean checkdigit. same results; is 10% faster.
'''
sum1 = 0
factor = 3
for i in ean[-1::-1]:
sum1 += int(i) * factor
factor = 4 - factor #factor flip-flops between 3 and 1...
return str(((1000 - sum1) % 10))
def checkean(ean):
''' input: EAN; returns: True (valid EAN) of False (EAN not valid)'''
return (ean[-1] == calceancheckdigit(ean[:-1]))
def addeancheckdigit(ean):
''' input: EAN without checkdigit; returns EAN with checkdigit'''
return ean+calceancheckdigit(ean)
#*********************************************************************
#*** div utily functions for mappings
#*********************************************************************
def unique(domein):
''' generate unique number within range domein.
uses db to keep track of last generated number.
if domein not used before, initialized with 1.
'''
return str(botslib.unique(domein))
def inn2out(inn,out):
''' copies inn-message to outmessage
'''
out.root = copy.deepcopy(inn.root)
def useoneof(*args):
for arg in args:
if arg:
return arg
else:
return None
def dateformat(date):
''' for edifact: return right format code for the date. '''
if not date:
return None
if len(date)==8:
return '102'
if len(date)==12:
return '203'
if len(date)==16:
return '718'
return None
def datemask(value,frommask,tomask):
''' value is formatted according as in frommask;
returned is the value formatted according to tomask.
'''
if not value:
return value
convdict = collections.defaultdict(list)
for key,value in zip(frommask,value):
convdict[key].append(value)
#~ return ''.join([convdict.get(c,[c]).pop(0) for c in tomask]) #very short, but not faster....
terug = ''
for c in tomask:
terug += convdict.get(c,[c]).pop(0)
return terug
| [
[
8,
0,
0.0026,
0.0026,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
7,
0,
0.009,
0.0103,
0,
0.66,
0.025,
0,
0,
1,
0,
0,
0,
0,
0
],
[
1,
1,
0.0078,
0.0026,
1,
0.24,
... | [
"'''module contains the functions to be called from user scripts'''",
"try:\n import cPickle as pickle\nexcept:\n import pickle",
" import cPickle as pickle",
" import pickle",
"import copy",
"import collections",
"from django.utils.translation import ugettext as _",
"import botslib",
"i... |
import os
import sys
import atexit
import traceback
import logging
#import bots-modules
import bots.botslib as botslib
import bots.botsglobal as botsglobal
def showusage():
print ' Update existing bots database for new release 1.6.0'
print ' Options:'
print " -c<directory> directory for configuration files (default: config)."
def start(configdir = 'config'):
#********command line arguments**************************
for arg in sys.argv[1:]:
if not arg:
continue
if arg.startswith('-c'):
configdir = arg[2:]
if not configdir:
print 'Indicated Bots should use specific .ini file but no file name was given.'
sys.exit(1)
elif arg in ["?", "/?"] or arg.startswith('-'):
showusage()
sys.exit(0)
else: #pick up names of routes to run
showusage()
#**************initialise configuration file******************************
try:
botsinit.generalinit(configdir)
botslib.settimeout(botsglobal.ini.getint('settings','globaltimeout',10)) #
except:
traceback.print_exc()
print 'Error in reading/initializing ini-file.'
sys.exit(1)
#**************initialise logging******************************
try:
botsinit.initenginelogging()
except:
traceback.print_exc()
print 'Error in initialising logging system.'
sys.exit(1)
else:
atexit.register(logging.shutdown)
botsglobal.logger.info('Python version: "%s".',sys.version)
botsglobal.logger.info('Bots configuration file: "%s".',botsinifile)
botsglobal.logger.info('Bots database configuration file: "%s".',botslib.join('config',os.path.basename(botsglobal.ini.get('directories','tgconfig','botstg.cfg'))))
#**************connect to database**********************************
try:
botslib.connect()
except:
traceback.print_exc()
print 'Error connecting to database.'
sys.exit(1)
else:
atexit.register(botsglobal.db.close)
try:
cursor = botsglobal.db.cursor()
cursor.execute('''ALTER TABLE routes ADD COLUMN notindefaultrun BOOLEAN''',None)
cursor.execute('''ALTER TABLE channel ADD COLUMN archivepath VARCHAR(256)''',None)
cursor.execute('''ALTER TABLE partner ADD COLUMN mail VARCHAR(256)''',None)
cursor.execute('''ALTER TABLE partner ADD COLUMN cc VARCHAR(256)''',None)
cursor.execute('''ALTER TABLE chanpar ADD COLUMN cc VARCHAR(256)''',None)
cursor.execute('''ALTER TABLE ta ADD COLUMN confirmasked BOOLEAN''',None)
cursor.execute('''ALTER TABLE ta ADD COLUMN confirmed BOOLEAN''',None)
cursor.execute('''ALTER TABLE ta ADD COLUMN confirmtype VARCHAR(35) DEFAULT '' ''',None)
cursor.execute('''ALTER TABLE ta ADD COLUMN confirmidta INTEGER DEFAULT 0''',None)
cursor.execute('''ALTER TABLE ta ADD COLUMN envelope VARCHAR(35) DEFAULT '' ''',None)
cursor.execute('''ALTER TABLE ta ADD COLUMN botskey VARCHAR(35) DEFAULT '' ''',None)
cursor.execute('''ALTER TABLE ta ADD COLUMN cc VARCHAR(512) DEFAULT '' ''',None)
if botsglobal.dbinfo.drivername == 'mysql':
cursor.execute('''ALTER TABLE ta MODIFY errortext VARCHAR(2048)''',None)
elif botsglobal.dbinfo.drivername == 'postgres':
cursor.execute('''ALTER TABLE ta ALTER COLUMN errortext type VARCHAR(2048)''',None)
#else: #sqlite does not allow modifying existing field, but does not check lengths either so this works.
cursor.execute('''CREATE TABLE confirmrule (
id INTEGER PRIMARY KEY,
active BOOLEAN,
confirmtype VARCHAR(35),
ruletype VARCHAR(35),
negativerule BOOLEAN,
frompartner VARCHAR(35),
topartner VARCHAR(35),
idchannel VARCHAR(35),
idroute VARCHAR(35),
editype VARCHAR(35),
messagetype VARCHAR(35) )
''',None)
except:
traceback.print_exc()
print 'Error while updating the database. Database is not updated.'
botsglobal.db.rollback()
sys.exit(1)
botsglobal.db.commit()
cursor.close()
print 'Database is updated.'
sys.exit(0)
| [
[
1,
0,
0.0096,
0.0096,
0,
0.66,
0,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.0192,
0.0096,
0,
0.66,
0.125,
509,
0,
1,
0,
0,
509,
0,
0
],
[
1,
0,
0.0288,
0.0096,
0,
0... | [
"import os",
"import sys",
"import atexit",
"import traceback",
"import logging",
"import bots.botslib as botslib",
"import bots.botsglobal as botsglobal",
"def showusage():\n print(' Update existing bots database for new release 1.6.0')\n print(' Options:')\n print(\" -c<directo... |
from django.conf.urls.defaults import *
from django.contrib import admin,auth
from django.views.generic.simple import redirect_to
from django.contrib.auth.decorators import login_required,user_passes_test
from bots import views
admin.autodiscover()
staff_required = user_passes_test(lambda u: u.is_staff)
superuser_required = user_passes_test(lambda u: u.is_superuser)
urlpatterns = patterns('',
(r'^login.*', 'django.contrib.auth.views.login', {'template_name': 'admin/login.html'}),
(r'^logout.*', 'django.contrib.auth.views.logout',{'next_page': '/'}),
#login required
(r'^home.*', login_required(views.home)),
(r'^incoming.*', login_required(views.incoming)),
(r'^detail.*', login_required(views.detail)),
(r'^process.*', login_required(views.process)),
(r'^outgoing.*', login_required(views.outgoing)),
(r'^document.*', login_required(views.document)),
(r'^reports.*', login_required(views.reports)),
(r'^confirm.*', login_required(views.confirm)),
(r'^filer.*', login_required(views.filer)),
#only staff
(r'^admin/$', login_required(views.home)), #do not show django admin root page
(r'^admin/bots/$', login_required(views.home)), #do not show django admin root page
(r'^admin/bots/uniek/.+$', redirect_to, {'url': '/admin/bots/uniek/'}), #hack. uniek counters can be changed (on main page), but never added. This rule disables the edit/add uniek pages.
(r'^admin/', include(admin.site.urls)),
(r'^runengine.+', staff_required(views.runengine)),
#only superuser
(r'^delete.*', superuser_required(views.delete)),
(r'^plugin.*', superuser_required(views.plugin)),
(r'^plugout.*', superuser_required(views.plugout)),
(r'^unlock.*', superuser_required(views.unlock)),
(r'^sendtestmail.*', superuser_required(views.sendtestmailmanagers)),
#catch-all
(r'^.*', 'bots.views.index'),
)
handler500='bots.views.server_error'
| [
[
1,
0,
0.025,
0.025,
0,
0.66,
0,
341,
0,
1,
0,
0,
341,
0,
0
],
[
1,
0,
0.05,
0.025,
0,
0.66,
0.1111,
302,
0,
2,
0,
0,
302,
0,
0
],
[
1,
0,
0.075,
0.025,
0,
0.66,
... | [
"from django.conf.urls.defaults import *",
"from django.contrib import admin,auth",
"from django.views.generic.simple import redirect_to",
"from django.contrib.auth.decorators import login_required,user_passes_test",
"from bots import views",
"admin.autodiscover()",
"staff_required = user_passes_test(la... |
from django import template
register = template.Library()
@register.filter
def url2path(value):
if value.startswith('/admin/bots/'):
value = value[12:]
else:
value = value[1:]
if value:
if value[-1] == '/':
value = value[:-1]
else:
value = 'home'
return value
| [
[
1,
0,
0.0588,
0.0588,
0,
0.66,
0,
294,
0,
1,
0,
0,
294,
0,
0
],
[
14,
0,
0.1765,
0.0588,
0,
0.66,
0.5,
276,
3,
0,
0,
0,
77,
10,
1
],
[
2,
0,
0.6471,
0.6471,
0,
0.... | [
"from django import template",
"register = template.Library()",
"def url2path(value):\n if value.startswith('/admin/bots/'):\n value = value[12:]\n else:\n value = value[1:]\n if value:\n if value[-1] == '/':\n value = value[:-1]",
" if value.startswith('/admin/bots... |
#!/usr/bin/env python
import os
import optparse
import subprocess
import sys
here = os.path.dirname(__file__)
def main():
usage = "usage: %prog [file1..fileN]"
description = """With no file paths given this script will automatically
compress all jQuery-based files of the admin app. Requires the Google Closure
Compiler library and Java version 6 or later."""
parser = optparse.OptionParser(usage, description=description)
parser.add_option("-c", dest="compiler", default="~/bin/compiler.jar",
help="path to Closure Compiler jar file")
parser.add_option("-v", "--verbose",
action="store_true", dest="verbose")
parser.add_option("-q", "--quiet",
action="store_false", dest="verbose")
(options, args) = parser.parse_args()
compiler = os.path.expanduser(options.compiler)
if not os.path.exists(compiler):
sys.exit("Google Closure compiler jar file %s not found. Please use the -c option to specify the path." % compiler)
if not args:
if options.verbose:
sys.stdout.write("No filenames given; defaulting to admin scripts\n")
args = [os.path.join(here, f) for f in [
"actions.js", "collapse.js", "inlines.js", "prepopulate.js"]]
for arg in args:
if not arg.endswith(".js"):
arg = arg + ".js"
to_compress = os.path.expanduser(arg)
if os.path.exists(to_compress):
to_compress_min = "%s.min.js" % "".join(arg.rsplit(".js"))
cmd = "java -jar %s --js %s --js_output_file %s" % (compiler, to_compress, to_compress_min)
if options.verbose:
sys.stdout.write("Running: %s\n" % cmd)
subprocess.call(cmd.split())
else:
sys.stdout.write("File %s not found. Sure it exists?\n" % to_compress)
if __name__ == '__main__':
main()
| [
[
1,
0,
0.0426,
0.0213,
0,
0.66,
0,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.0638,
0.0213,
0,
0.66,
0.1667,
323,
0,
1,
0,
0,
323,
0,
0
],
[
1,
0,
0.0851,
0.0213,
0,
... | [
"import os",
"import optparse",
"import subprocess",
"import sys",
"here = os.path.dirname(__file__)",
"def main():\n usage = \"usage: %prog [file1..fileN]\"\n description = \"\"\"With no file paths given this script will automatically\ncompress all jQuery-based files of the admin app. Requires the ... |
#!/usr/bin/env python
import os
import optparse
import subprocess
import sys
here = os.path.dirname(__file__)
def main():
usage = "usage: %prog [file1..fileN]"
description = """With no file paths given this script will automatically
compress all jQuery-based files of the admin app. Requires the Google Closure
Compiler library and Java version 6 or later."""
parser = optparse.OptionParser(usage, description=description)
parser.add_option("-c", dest="compiler", default="~/bin/compiler.jar",
help="path to Closure Compiler jar file")
parser.add_option("-v", "--verbose",
action="store_true", dest="verbose")
parser.add_option("-q", "--quiet",
action="store_false", dest="verbose")
(options, args) = parser.parse_args()
compiler = os.path.expanduser(options.compiler)
if not os.path.exists(compiler):
sys.exit("Google Closure compiler jar file %s not found. Please use the -c option to specify the path." % compiler)
if not args:
if options.verbose:
sys.stdout.write("No filenames given; defaulting to admin scripts\n")
args = [os.path.join(here, f) for f in [
"actions.js", "collapse.js", "inlines.js", "prepopulate.js"]]
for arg in args:
if not arg.endswith(".js"):
arg = arg + ".js"
to_compress = os.path.expanduser(arg)
if os.path.exists(to_compress):
to_compress_min = "%s.min.js" % "".join(arg.rsplit(".js"))
cmd = "java -jar %s --js %s --js_output_file %s" % (compiler, to_compress, to_compress_min)
if options.verbose:
sys.stdout.write("Running: %s\n" % cmd)
subprocess.call(cmd.split())
else:
sys.stdout.write("File %s not found. Sure it exists?\n" % to_compress)
if __name__ == '__main__':
main()
| [
[
1,
0,
0.0426,
0.0213,
0,
0.66,
0,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.0638,
0.0213,
0,
0.66,
0.1667,
323,
0,
1,
0,
0,
323,
0,
0
],
[
1,
0,
0.0851,
0.0213,
0,
... | [
"import os",
"import optparse",
"import subprocess",
"import sys",
"here = os.path.dirname(__file__)",
"def main():\n usage = \"usage: %prog [file1..fileN]\"\n description = \"\"\"With no file paths given this script will automatically\ncompress all jQuery-based files of the admin app. Requires the ... |
'''
code found at code.djangoproject.com/ticket/3777
'''
from django import http
class FilterPersistMiddleware(object):
def _get_default(self, key):
""" Gets any set default filters for the admin. Returns None if no
default is set. """
default = None
#~ default = settings.ADMIN_DEFAULT_FILTERS.get(key, None)
# Filters are allowed to be functions. If this key is one, call it.
if hasattr(default, '__call__'):
default = default()
return default
def process_request(self, request):
if '/admin/' not in request.path or request.method == 'POST':
return None
if request.META.has_key('HTTP_REFERER'):
referrer = request.META['HTTP_REFERER'].split('?')[0]
referrer = referrer[referrer.find('/admin'):len(referrer)]
else:
referrer = u''
popup = 'pop=1' in request.META['QUERY_STRING']
path = request.path
query_string = request.META['QUERY_STRING']
session = request.session
if session.get('redirected', False):#so that we dont loop once redirected
del session['redirected']
return None
key = 'key'+path.replace('/','_')
if popup:
key = 'popup'+key
if path == referrer:
""" We are in the same page as before. We assume that filters were
changed and update them. """
if query_string == '': #Filter is empty, delete it
if session.has_key(key):
del session[key]
return None
else:
request.session[key] = query_string
else:
""" We are are coming from another page. Set querystring to
saved or default value. """
query_string=session.get(key, self._get_default(key))
if query_string is not None:
redirect_to = path+'?'+query_string
request.session['redirected'] = True
return http.HttpResponseRedirect(redirect_to)
else:
return None
'''
Sample default filters:
from datetime import date
def _today():
return 'starttime__gte=' + date.today().isoformat()
# Default filters. Format: 'key_$url', where $url has slashes replaced
# with underscores
# value can either be a function or a string
ADMIN_DEFAULT_FILTERS= {
# display only events starting today
'key_admin_event_calendar_event_': _today,
# display active members
'key_admin_users_member_': 'is_active__exact=1',
# only show new suggestions
'key_admin_suggestions_suggestion_': 'status__exact=new',
}
''' | [
[
8,
0,
0.025,
0.0375,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.05,
0.0125,
0,
0.66,
0.3333,
294,
0,
1,
0,
0,
294,
0,
0
],
[
3,
0,
0.4188,
0.675,
0,
0.66,
... | [
"'''\ncode found at code.djangoproject.com/ticket/3777\n'''",
"from django import http",
"class FilterPersistMiddleware(object):\n\n def _get_default(self, key):\n \"\"\" Gets any set default filters for the admin. Returns None if no \n default is set. \"\"\"\n default = None\n ... |
import time
import sys
try:
import cPickle as pickle
except:
import pickle
import decimal
NODECIMAL = decimal.Decimal(1)
try:
import cElementTree as ET
#~ print 'imported cElementTree'
except ImportError:
try:
import elementtree.ElementTree as ET
#~ print 'imported elementtree.ElementTree'
except ImportError:
try:
from xml.etree import cElementTree as ET
#~ print 'imported xml.etree.cElementTree'
except ImportError:
from xml.etree import ElementTree as ET
#~ print 'imported xml.etree.ElementTree'
#~ print ET.VERSION
try:
import elementtree.ElementInclude as ETI
except ImportError:
from xml.etree import ElementInclude as ETI
try:
import json as simplejson
except ImportError:
import simplejson
from django.utils.translation import ugettext as _
#bots-modules
import botslib
import botsglobal
import grammar
import message
import node
from botsconfig import *
def outmessage_init(**ta_info):
''' dispatch function class Outmessage or subclass
ta_info: needed is editype, messagetype, filename, charset, merge
'''
try:
classtocall = globals()[ta_info['editype']]
except KeyError:
raise botslib.OutMessageError(_(u'Unknown editype for outgoing message: $editype'),editype=ta_info['editype'])
return classtocall(ta_info)
class Outmessage(message.Message):
''' abstract class; represents a outgoing edi message.
subclassing is necessary for the editype (csv, edi, x12, etc)
A tree of nodes is build form the mpaths received from put()or putloop(). tree starts at self.root.
Put() recieves mpaths from mappingscript
The next algorithm is used to 'map' a mpath into the tree:
For each part of a mpath: search node in 'current' level of tree
If part already as a node:
recursively search node-children
If part not as a node:
append new node to tree;
recursively append next parts to tree
After the mapping-script is finished, the resulting tree is converted to records (self.records).
These records are written to file.
Structure of self.records:
list of record;
record is list of field
field is dict. Keys in field:
- ID field ID (id within this record). For in-file
- VALUE value, content of field
- MPATH mpath of record, only for first field(=recordID)
- LIN linenr of field in in-file
- POS positionnr within line in in-file
- SFIELD True if subfield (edifact-only)
first field for record is recordID.
'''
def __init__(self,ta_info):
self.ta_info = ta_info
self.root = node.Node(record={}) #message tree; build via put()-interface in mapping-script. Initialise with empty dict
super(Outmessage,self).__init__()
def outmessagegrammarread(self,editype,messagetype):
''' read the grammar for a out-message.
try to read the topartner dependent grammar syntax.
'''
self.defmessage = grammar.grammarread(editype,messagetype)
self.defmessage.display(self.defmessage.structure)
#~ print 'self.ta_info',self.ta_info
#~ print 'self.defmessage.syntax',self.defmessage.syntax
botslib.updateunlessset(self.ta_info,self.defmessage.syntax) #write values from grammar to self.ta_info - unless these values are already set eg by mapping script
if self.ta_info['topartner']: #read syntax-file for partner dependent syntax
try:
partnersyntax = grammar.syntaxread('partners',editype,self.ta_info['topartner'])
self.ta_info.update(partnersyntax.syntax) #partner syntax overrules!
except ImportError:
pass #No partner specific syntax found (is not an error).
def writeall(self):
''' writeall is called for writing all 'real' outmessage objects; but not for envelopes.
writeall is call from transform.translate()
'''
self.outmessagegrammarread(self.ta_info['editype'],self.ta_info['messagetype'])
self.nrmessagewritten = 0
if self.root.record: #root record contains information; write whole tree in one time
self.multiplewrite = False
self.normalisetree(self.root)
self._initwrite()
self._write(self.root)
self.nrmessagewritten = 1
self._closewrite()
elif not self.root.children:
raise botslib.OutMessageError(_(u'No outgoing message')) #then there is nothing to write...
else:
self.multiplewrite = True
for childnode in self.root.children:
self.normalisetree(childnode)
self._initwrite()
for childnode in self.root.children:
self._write(childnode)
self.nrmessagewritten += 1
self._closewrite()
def _initwrite(self):
botsglobal.logger.debug(u'Start writing to file "%s".',self.ta_info['filename'])
self._outstream = botslib.opendata(self.ta_info['filename'],'wb',charset=self.ta_info['charset'],errors=self.ta_info['checkcharsetout'])
def _closewrite(self):
botsglobal.logger.debug(u'End writing to file "%s".',self.ta_info['filename'])
self._outstream.close()
def _write(self,node):
''' the write method for most classes.
tree is serialised to sequential records; records are written to file.
Classses that write using other libraries (xml, json, template, db) use specific write methods.
'''
self.tree2records(node)
self._records2file()
def tree2records(self,node):
self.records = [] #tree of nodes is flattened to these records
self._tree2recordscore(node,self.defmessage.structure[0])
def _tree2recordscore(self,node,structure):
''' Write tree of nodes to flat records.
The nodes are already sorted
'''
self._tree2recordfields(node.record,structure) #write root node->first record
for childnode in node.children: #for every node in mpathtree, these are already sorted#SPEED: node.children is already sorted!
for structure_record in structure[LEVEL]: #for structure_record of this level in grammar
if childnode.record['BOTSID'] == structure_record[ID] and childnode.record['BOTSIDnr'] == structure_record[BOTSIDnr]: #if is is the right node:
self._tree2recordscore(childnode,structure_record) #use rest of index in deeper level
def _tree2recordfields(self,noderecord,structure_record):
''' appends fields in noderecord to (raw)record; use structure_record as guide.
complex because is is used for: editypes that have compression rules (edifact), var editypes without compression, fixed protocols
'''
buildrecord = [] #the record that is going to be build; list of dicts. Each dict is a field.
buffer = []
for grammarfield in structure_record[FIELDS]: #loop all fields in grammar-definition
if grammarfield[ISFIELD]: #if field (no composite)
if grammarfield[ID] in noderecord and noderecord[grammarfield[ID]]: #field exists in outgoing message and has data
buildrecord += buffer #write the buffer to buildrecord
buffer=[] #clear the buffer
buildrecord += [{VALUE:noderecord[grammarfield[ID]],SFIELD:False,FORMATFROMGRAMMAR:grammarfield[FORMAT]}] #append new field
else: #there is no data for this field
if self.ta_info['stripfield_sep']:
buffer += [{VALUE:'',SFIELD:False,FORMATFROMGRAMMAR:grammarfield[FORMAT]}] #append new empty to buffer;
else:
value = self._formatfield('',grammarfield,structure_record) #generate field
buildrecord += [{VALUE:value,SFIELD:False,FORMATFROMGRAMMAR:grammarfield[FORMAT]}] #append new field
else: #if composite
donefirst = False #used because first subfield in composite is marked as a field (not a subfield).
subbuffer=[] #buffer for this composite.
subiswritten=False #check if composite contains data
for grammarsubfield in grammarfield[SUBFIELDS]: #loop subfields
if grammarsubfield[ID] in noderecord and noderecord[grammarsubfield[ID]]: #field exists in outgoing message and has data
buildrecord += buffer #write buffer
buffer=[] #clear buffer
buildrecord += subbuffer #write subbuffer
subbuffer=[] #clear subbuffer
buildrecord += [{VALUE:noderecord[grammarsubfield[ID]],SFIELD:donefirst}] #append field
subiswritten = True
else:
if self.ta_info['stripfield_sep']:
subbuffer += [{VALUE:'',SFIELD:donefirst}] #append new empty to buffer;
else:
value = self._formatfield('',grammarsubfield,structure_record) #generate & append new field. For eg fixed and csv: all field have to be present
subbuffer += [{VALUE:value,SFIELD:donefirst}] #generate & append new field
donefirst = True
if not subiswritten: #if composite has no data: write placeholder for composite (stripping is done later)
buffer += [{VALUE:'',SFIELD:False}]
#~ print [buildrecord]
self.records += [buildrecord]
def _formatfield(self,value, grammarfield,record):
''' Input: value (as a string) and field definition.
Some parameters of self.syntax are used: decimaal
Format is checked and converted (if needed).
return the formatted value
'''
if grammarfield[BFORMAT] == 'A':
if isinstance(self,fixed): #check length fields in variable records
if grammarfield[FORMAT] == 'AR': #if field format is alfanumeric right aligned
value = value.rjust(grammarfield[MINLENGTH])
else:
value = value.ljust(grammarfield[MINLENGTH]) #add spaces (left, because A-field is right aligned)
valuelength=len(value)
if valuelength > grammarfield[LENGTH]:
raise botslib.OutMessageError(_(u'record "$mpath" field "$field" too big (max $max): "$content".'),field=grammarfield[ID],content=value,mpath=record[MPATH],max=grammarfield[LENGTH])
if valuelength < grammarfield[MINLENGTH]:
raise botslib.OutMessageError(_(u'record "$mpath" field "$field" too small (min $min): "$content".'),field=grammarfield[ID],content=value,mpath=record[MPATH],min=grammarfield[MINLENGTH])
elif grammarfield[BFORMAT] == 'D':
try:
lenght = len(value)
if lenght==6:
time.strptime(value,'%y%m%d')
elif lenght==8:
time.strptime(value,'%Y%m%d')
else:
raise ValueError(u'To be catched')
except ValueError:
raise botslib.OutMessageError(_(u'record "$mpath" field "$field" no valid date: "$content".'),field=grammarfield[ID],content=value,mpath=record[MPATH])
valuelength=len(value)
if valuelength > grammarfield[LENGTH]:
raise botslib.OutMessageError(_(u'record "$mpath" field "$field" too big (max $max): "$content".'),field=grammarfield[ID],content=value,mpath=record[MPATH],max=grammarfield[LENGTH])
if valuelength < grammarfield[MINLENGTH]:
raise botslib.OutMessageError(_(u'record "$mpath" field "$field" too small (min $min): "$content".'),field=grammarfield[ID],content=value,mpath=record[MPATH],min=grammarfield[MINLENGTH])
elif grammarfield[BFORMAT] == 'T':
try:
lenght = len(value)
if lenght==4:
time.strptime(value,'%H%M')
elif lenght==6:
time.strptime(value,'%H%M%S')
else: #lenght==8: #tsja...just use first part of field
raise ValueError(u'To be catched')
except ValueError:
raise botslib.OutMessageError(_(u'record "$mpath" field "$field" no valid time: "$content".'),field=grammarfield[ID],content=value,mpath=record[MPATH])
valuelength=len(value)
if valuelength > grammarfield[LENGTH]:
raise botslib.OutMessageError(_(u'record "$mpath" field "$field" too big (max $max): "$content".'),field=grammarfield[ID],content=value,mpath=record[MPATH],max=grammarfield[LENGTH])
if valuelength < grammarfield[MINLENGTH]:
raise botslib.OutMessageError(_(u'record "$mpath" field "$field" too small (min $min): "$content".'),field=grammarfield[ID],content=value,mpath=record[MPATH],min=grammarfield[MINLENGTH])
else: #numerics
if value or isinstance(self,fixed): #if empty string for non-fixed: just return. Later on, ta_info[stripemptyfield] determines what to do with them
if not value: #see last if; if a numerical fixed field has content '' , change this to '0' (init)
value='0'
else:
value = value.strip()
if value[0]=='-':
minussign = '-'
absvalue = value[1:]
else:
minussign = ''
absvalue = value
digits,decimalsign,decimals = absvalue.partition('.')
if not digits and not decimals:# and decimalsign:
raise botslib.OutMessageError(_(u'record "$mpath" field "$field" numerical format not valid: "$content".'),field=grammarfield[ID],content=value,mpath=record[MPATH])
if not digits:
digits = '0'
lengthcorrection = 0 #for some formats (if self.ta_info['lengthnumericbare']=True; eg edifact) length is calculated without decimal sing and/or minus sign.
if grammarfield[BFORMAT] == 'R': #floating point: use all decimals received
if self.ta_info['lengthnumericbare']:
if minussign:
lengthcorrection += 1
if decimalsign:
lengthcorrection += 1
try:
value = str(decimal.Decimal(minussign + digits + decimalsign + decimals).quantize(decimal.Decimal(10) ** -len(decimals)))
except:
raise botslib.OutMessageError(_(u'record "$mpath" field "$field" numerical format not valid: "$content".'),field=grammarfield[ID],content=value,mpath=record[MPATH])
if grammarfield[FORMAT] == 'RL': #if field format is numeric right aligned
value = value.ljust(grammarfield[MINLENGTH] + lengthcorrection)
elif grammarfield[FORMAT] == 'RR': #if field format is numeric right aligned
value = value.rjust(grammarfield[MINLENGTH] + lengthcorrection)
else:
value = value.zfill(grammarfield[MINLENGTH] + lengthcorrection)
value = value.replace('.',self.ta_info['decimaal'],1) #replace '.' by required decimal sep.
elif grammarfield[BFORMAT] == 'N': #fixed decimals; round
if self.ta_info['lengthnumericbare']:
if minussign:
lengthcorrection += 1
if grammarfield[DECIMALS]:
lengthcorrection += 1
try:
value = str(decimal.Decimal(minussign + digits + decimalsign + decimals).quantize(decimal.Decimal(10) ** -grammarfield[DECIMALS]))
except:
raise botslib.OutMessageError(_(u'record "$mpath" field "$field" numerical format not valid: "$content".'),field=grammarfield[ID],content=value,mpath=record[MPATH])
if grammarfield[FORMAT] == 'NL': #if field format is numeric right aligned
value = value.ljust(grammarfield[MINLENGTH] + lengthcorrection)
elif grammarfield[FORMAT] == 'NR': #if field format is numeric right aligned
value = value.rjust(grammarfield[MINLENGTH] + lengthcorrection)
else:
value = value.zfill(grammarfield[MINLENGTH] + lengthcorrection)
value = value.replace('.',self.ta_info['decimaal'],1) #replace '.' by required decimal sep.
elif grammarfield[BFORMAT] == 'I': #implicit decimals
if self.ta_info['lengthnumericbare']:
if minussign:
lengthcorrection += 1
try:
d = decimal.Decimal(minussign + digits + decimalsign + decimals) * 10**grammarfield[DECIMALS]
except:
raise botslib.OutMessageError(_(u'record "$mpath" field "$field" numerical format not valid: "$content".'),field=grammarfield[ID],content=value,mpath=record[MPATH])
value = str(d.quantize(NODECIMAL ))
value = value.zfill(grammarfield[MINLENGTH] + lengthcorrection)
if len(value)-lengthcorrection > grammarfield[LENGTH]:
raise botslib.OutMessageError(_(u'record "$mpath" field "$field": content to large: "$content".'),field=grammarfield[ID],content=value,mpath=record[MPATH])
return value
def _records2file(self):
''' convert self.records to a file.
using the right editype (edifact, x12, etc) and charset.
'''
wrap_length = int(self.ta_info.get('wrap_length', 0))
if wrap_length:
s = ''.join(self._record2string(r) for r in self.records) # join all records
for i in range(0,len(s),wrap_length): # then split in fixed lengths
try:
self._outstream.write(s[i:i+wrap_length] + '\r\n')
except UnicodeEncodeError:
raise botslib.OutMessageError(_(u'Chars in outmessage not in charset "$char": $content'),char=self.ta_info['charset'],content=s[i:i+wrap_length])
else:
for record in self.records: #loop all records
try:
self._outstream.write(self._record2string(record))
except UnicodeEncodeError: #, flup: testing with 2.7: flup did not contain the content.
raise botslib.OutMessageError(_(u'Chars in outmessage not in charset "$char": $content'),char=self.ta_info['charset'],content=str(record))
#code before 7 aug 2007 had other handling for flup. May have changed because python2.4->2.5?
def _record2string(self,record):
''' write (all fields of) a record using the right separators, escape etc
'''
sfield_sep = self.ta_info['sfield_sep']
if self.ta_info['record_tag_sep']:
record_tag_sep = self.ta_info['record_tag_sep']
else:
record_tag_sep = self.ta_info['field_sep']
field_sep = self.ta_info['field_sep']
quote_char = self.ta_info['quote_char']
escape = self.ta_info['escape']
record_sep = self.ta_info['record_sep'] + self.ta_info['add_crlfafterrecord_sep']
forcequote = self.ta_info['forcequote']
escapechars = self.getescapechars()
value = u'' #to collect separator/escape plus field content
fieldcount = 0
mode_quote = False
if self.ta_info['noBOTSID']: #for some csv-files: do not write BOTSID so remove it
del record[0]
for field in record: #loop all fields in record
if field[SFIELD]:
value += sfield_sep
else: #is a field:
if fieldcount == 0: #do nothing because first field in record is not preceded by a separator
fieldcount = 1
elif fieldcount == 1:
value += record_tag_sep
fieldcount = 2
else:
value += field_sep
if quote_char: #quote char only used for csv
start_to__quote=False
if forcequote == 2:
if field[FORMATFROMGRAMMAR] in ['AN','A','AR']:
start_to__quote=True
elif forcequote: #always quote; this catches values 1, '1', '0'
start_to__quote=True
else:
if field_sep in field[VALUE] or quote_char in field[VALUE] or record_sep in field[VALUE]:
start_to__quote=True
#TO DO test. if quote_char='' this works OK. Alt: check first if quote_char
if start_to__quote:
value += quote_char
mode_quote = True
for char in field[VALUE]: #use escape (edifact, tradacom). For x12 is warned if content contains separator
if char in escapechars:
if isinstance(self,x12):
if self.ta_info['replacechar']:
char = self.ta_info['replacechar']
else:
raise botslib.OutMessageError(_(u'Character "$char" is in use as separator in this x12 file. Field: "$data".'),char=char,data=field[VALUE])
else:
value +=escape
elif mode_quote and char==quote_char:
value +=quote_char
value += char
if mode_quote:
value += quote_char
mode_quote = False
value += record_sep
return value
def getescapechars(self):
return ''
class fixed(Outmessage):
pass
class idoc(fixed):
def _canonicalfields(self,noderecord,structure_record,headerrecordnumber):
if self.ta_info['automaticcount']:
noderecord.update({'MANDT':self.ta_info['MANDT'],'DOCNUM':self.ta_info['DOCNUM'],'SEGNUM':str(self.recordnumber),'PSGNUM':str(headerrecordnumber),'HLEVEL':str(len(structure_record[MPATH]))})
else:
noderecord.update({'MANDT':self.ta_info['MANDT'],'DOCNUM':self.ta_info['DOCNUM']})
super(idoc,self)._canonicalfields(noderecord,structure_record,headerrecordnumber)
self.recordnumber += 1 #tricky. EDI_DC is not counted, so I count after writing.
class var(Outmessage):
pass
class csv(var):
def getescapechars(self):
return self.ta_info['escape']
class edifact(var):
def getescapechars(self):
terug = self.ta_info['record_sep']+self.ta_info['field_sep']+self.ta_info['sfield_sep']+self.ta_info['escape']
if self.ta_info['version']>='4':
terug += self.ta_info['reserve']
return terug
class tradacoms(var):
def getescapechars(self):
terug = self.ta_info['record_sep']+self.ta_info['field_sep']+self.ta_info['sfield_sep']+self.ta_info['escape']+self.ta_info['record_tag_sep']
return terug
def writeall(self):
''' writeall is called for writing all 'real' outmessage objects; but not for enveloping.
writeall is call from transform.translate()
'''
self.nrmessagewritten = 0
if not self.root.children:
raise botslib.OutMessageError(_(u'No outgoing message')) #then there is nothing to write...
for message in self.root.getloop({'BOTSID':'STX'},{'BOTSID':'MHD'}):
self.outmessagegrammarread(self.ta_info['editype'],message.get({'BOTSID':'MHD','TYPE.01':None}) + message.get({'BOTSID':'MHD','TYPE.02':None}))
if not self.nrmessagewritten:
self._initwrite()
self.normalisetree(message)
self._write(message)
self.nrmessagewritten += 1
self._closewrite()
self.ta_info['nrmessages'] = self.nrmessagewritten
class x12(var):
def getescapechars(self):
terug = self.ta_info['record_sep']+self.ta_info['field_sep']+self.ta_info['sfield_sep']
if self.ta_info['version']>='00403':
terug += self.ta_info['reserve']
return terug
class xml(Outmessage):
''' 20110919: code for _write is almost the same as for envelopewrite.
this could be one method.
Some problems with right xml prolog, standalone, DOCTYPE, processing instructons: Different ET versions give different results:
celementtree in 2.7 is version 1.0.6, but different implementation in 2.6??
So: this works OK for python 2.7
For python <2.7: do not generate standalone, DOCTYPE, processing instructions for encoding !=utf-8,ascii OR if elementtree package is installed (version 1.3.0 or bigger)
'''
def _write(self,node):
''' write normal XML messages (no envelope)'''
xmltree = ET.ElementTree(self._node2xml(node))
root = xmltree.getroot()
self._xmlcorewrite(xmltree,root)
def envelopewrite(self,node):
''' write envelope for XML messages'''
self._initwrite()
self.normalisetree(node)
xmltree = ET.ElementTree(self._node2xml(node))
root = xmltree.getroot()
ETI.include(root)
self._xmlcorewrite(xmltree,root)
self._closewrite()
def _xmlcorewrite(self,xmltree,root):
#xml prolog: always use.*********************************
#standalone, DOCTYPE, processing instructions: only possible in python >= 2.7 or if encoding is utf-8/ascii
if sys.version >= '2.7.0' or self.ta_info['charset'] in ['us-ascii','utf-8'] or ET.VERSION >= '1.3.0':
if self.ta_info['indented']:
indentstring = '\n'
else:
indentstring = ''
if self.ta_info['standalone']:
standalonestring = 'standalone="%s" '%(self.ta_info['standalone'])
else:
standalonestring = ''
PI = ET.ProcessingInstruction('xml', 'version="%s" encoding="%s" %s'%(self.ta_info['version'],self.ta_info['charset'], standalonestring))
self._outstream.write(ET.tostring(PI) + indentstring) #do not use encoding here. gives double xml prolog; possibly because ET.ElementTree.write i used again by write()
#doctype /DTD **************************************
if self.ta_info['DOCTYPE']:
self._outstream.write('<!DOCTYPE %s>'%(self.ta_info['DOCTYPE']) + indentstring)
#processing instructions (other than prolog) ************
if self.ta_info['processing_instructions']:
for pi in self.ta_info['processing_instructions']:
PI = ET.ProcessingInstruction(pi[0], pi[1])
self._outstream.write(ET.tostring(PI) + indentstring) #do not use encoding here. gives double xml prolog; possibly because ET.ElementTree.write i used again by write()
#indent the xml elements
if self.ta_info['indented']:
self.botsindent(root)
#write tree to file; this is differnt for different python/elementtree versions
if sys.version < '2.7.0' and ET.VERSION < '1.3.0':
xmltree.write(self._outstream,encoding=self.ta_info['charset'])
else:
xmltree.write(self._outstream,encoding=self.ta_info['charset'],xml_declaration=False)
def botsindent(self,elem, level=0,indentstring=' '):
i = "\n" + level*indentstring
if len(elem):
if not elem.text or not elem.text.strip():
elem.text = i + indentstring
for e in elem:
self.botsindent(e, level+1)
if not e.tail or not e.tail.strip():
e.tail = i + indentstring
if not e.tail or not e.tail.strip():
e.tail = i
else:
if level and (not elem.tail or not elem.tail.strip()):
elem.tail = i
def _node2xml(self,node):
''' recursive method.
'''
newnode = self._node2xmlfields(node.record)
for childnode in node.children:
newnode.append(self._node2xml(childnode))
return newnode
def _node2xmlfields(self,noderecord):
''' fields in a node are written to xml fields; output is sorted according to grammar
'''
#first generate the xml-'record'
#~ print 'record',noderecord['BOTSID']
attributedict = {}
recordtag = noderecord['BOTSID']
attributemarker = recordtag + self.ta_info['attributemarker'] #attributemarker is a marker in the fieldname used to find out if field is an attribute of either xml-'record' or xml-element
#~ print ' rec_att_mark',attributemarker
for key,value in noderecord.items(): #find attributes belonging to xml-'record' and store in attributedict
if key.startswith(attributemarker):
#~ print ' record attribute',key,value
attributedict[key[len(attributemarker):]] = value
xmlrecord = ET.Element(recordtag,attributedict) #make the xml ET node
if 'BOTSCONTENT' in noderecord: #BOTSCONTENT is used to store the value/text of the xml-record itself.
xmlrecord.text = noderecord['BOTSCONTENT']
del noderecord['BOTSCONTENT']
for key in attributedict.keys(): #remove used fields
del noderecord[attributemarker+key]
del noderecord['BOTSID'] #remove 'record' tag
#generate xml-'fields' in xml-'record'; sort these by looping over records definition
for field_def in self.defmessage.recorddefs[recordtag]: #loop over fields in 'record'
if field_def[ID] not in noderecord: #if field not in outmessage: skip
continue
#~ print ' field',field_def
attributedict = {}
attributemarker = field_def[ID] + self.ta_info['attributemarker']
#~ print ' field_att_mark',attributemarker
for key,value in noderecord.items():
if key.startswith(attributemarker):
#~ print ' field attribute',key,value
attributedict[key[len(attributemarker):]] = value
ET.SubElement(xmlrecord, field_def[ID],attributedict).text=noderecord[field_def[ID]] #add xml element to xml record
for key in attributedict.keys(): #remove used fields
del noderecord[attributemarker+key]
del noderecord[field_def[ID]] #remove xml entity tag
return xmlrecord
def _initwrite(self):
botsglobal.logger.debug(u'Start writing to file "%s".',self.ta_info['filename'])
self._outstream = botslib.opendata(self.ta_info['filename'],"wb")
class xmlnocheck(xml):
def normalisetree(self,node):
pass
def _node2xmlfields(self,noderecord):
''' fields in a node are written to xml fields; output is sorted according to grammar
'''
if 'BOTSID' not in noderecord:
raise botslib.OutMessageError(_(u'No field "BOTSID" in xml-output in: "$record"'),record=noderecord)
#first generate the xml-'record'
attributedict = {}
recordtag = noderecord['BOTSID']
attributemarker = recordtag + self.ta_info['attributemarker']
for key,value in noderecord.items(): #find the attributes for the xml-record, put these in attributedict
if key.startswith(attributemarker):
attributedict[key[len(attributemarker):]] = value
xmlrecord = ET.Element(recordtag,attributedict) #make the xml ET node
if 'BOTSCONTENT' in noderecord:
xmlrecord.text = noderecord['BOTSCONTENT']
del noderecord['BOTSCONTENT']
for key in attributedict.keys(): #remove used fields
del noderecord[attributemarker+key]
del noderecord['BOTSID'] #remove 'record' tag
#generate xml-'fields' in xml-'record'; not sorted
noderecordcopy = noderecord.copy()
for key,value in noderecordcopy.items():
if key not in noderecord or self.ta_info['attributemarker'] in key: #if field not in outmessage: skip
continue
attributedict = {}
attributemarker = key + self.ta_info['attributemarker']
for key2,value2 in noderecord.items():
if key2.startswith(attributemarker):
attributedict[key2[len(attributemarker):]] = value2
ET.SubElement(xmlrecord, key,attributedict).text=value #add xml element to xml record
for key2 in attributedict.keys(): #remove used fields
del noderecord[attributemarker+key2]
del noderecord[key] #remove xml entity tag
return xmlrecord
class json(Outmessage):
def _initwrite(self):
super(json,self)._initwrite()
if self.multiplewrite:
self._outstream.write(u'[')
def _write(self,node):
''' convert node tree to appropriate python object.
python objects are written to json by simplejson.
'''
if self.nrmessagewritten:
self._outstream.write(u',')
jsonobject = {node.record['BOTSID']:self._node2json(node)}
if self.ta_info['indented']:
indent=2
else:
indent=None
simplejson.dump(jsonobject, self._outstream, skipkeys=False, ensure_ascii=False, check_circular=False, indent=indent)
def _closewrite(self):
if self.multiplewrite:
self._outstream.write(u']')
super(json,self)._closewrite()
def _node2json(self,node):
''' recursive method.
'''
#newjsonobject is the json object assembled in the function.
newjsonobject = node.record.copy() #init newjsonobject with record fields from node
for childnode in node.children: #fill newjsonobject with the records from childnodes.
key=childnode.record['BOTSID']
if key in newjsonobject:
newjsonobject[key].append(self._node2json(childnode))
else:
newjsonobject[key]=[self._node2json(childnode)]
del newjsonobject['BOTSID']
return newjsonobject
def _node2jsonold(self,node):
''' recursive method.
'''
newdict = node.record.copy()
if node.children: #if this node has records in it.
sortedchildren={} #empty dict
for childnode in node.children:
botsid=childnode.record['BOTSID']
if botsid in sortedchildren:
sortedchildren[botsid].append(self._node2json(childnode))
else:
sortedchildren[botsid]=[self._node2json(childnode)]
for key,value in sortedchildren.items():
if len(value)==1:
newdict[key]=value[0]
else:
newdict[key]=value
del newdict['BOTSID']
return newdict
class jsonnocheck(json):
def normalisetree(self,node):
pass
class template(Outmessage):
''' uses Kid library for templating.'''
class TemplateData(object):
pass
def __init__(self,ta_info):
self.data = template.TemplateData() #self.data is used by mapping script as container for content
super(template,self).__init__(ta_info)
def writeall(self):
''' Very different writeall:
there is no tree of nodes; there is no grammar.structure/recorddefs; kid opens file by itself.
'''
try:
import kid
except:
txt=botslib.txtexc()
raise ImportError(_(u'Dependency failure: editype "template" requires python library "kid". Error:\n%s'%txt))
#for template-grammar: only syntax is used. Section 'syntax' has to have 'template'
self.outmessagegrammarread(self.ta_info['editype'],self.ta_info['messagetype'])
templatefile = botslib.abspath(u'templates',self.ta_info['template'])
try:
botsglobal.logger.debug(u'Start writing to file "%s".',self.ta_info['filename'])
ediprint = kid.Template(file=templatefile, data=self.data)
except:
txt=botslib.txtexc()
raise botslib.OutMessageError(_(u'While templating "$editype.$messagetype", error:\n$txt'),editype=self.ta_info['editype'],messagetype=self.ta_info['messagetype'],txt=txt)
try:
f = botslib.opendata(self.ta_info['filename'],'wb')
ediprint.write(f,
#~ ediprint.write(botslib.abspathdata(self.ta_info['filename']),
encoding=self.ta_info['charset'],
output=self.ta_info['output'], #output is specific parameter for class; init from grammar.syntax
fragment=self.ta_info['merge'])
except:
txt=botslib.txtexc()
raise botslib.OutMessageError(_(u'While templating "$editype.$messagetype", error:\n$txt'),editype=self.ta_info['editype'],messagetype=self.ta_info['messagetype'],txt=txt)
botsglobal.logger.debug(_(u'End writing to file "%s".'),self.ta_info['filename'])
class templatehtml(Outmessage):
''' uses Genshi library for templating. Genshi is very similar to Kid, and is the fork/follow-up of Kid.
Kid is not being deveolped further; in time Kid will not be in repositories etc.
Templates for Genshi are like Kid templates. Changes:
- other namespace: xmlns:py="http://genshi.edgewall.org/" instead of xmlns:py="http://purl.org/kid/ns#"
- enveloping is different: <xi:include href="${message}" /> instead of <div py:replace="document(message)"/>
'''
class TemplateData(object):
pass
def __init__(self,ta_info):
self.data = template.TemplateData() #self.data is used by mapping script as container for content
super(templatehtml,self).__init__(ta_info)
def writeall(self):
''' Very different writeall:
there is no tree of nodes; there is no grammar.structure/recorddefs; kid opens file by itself.
'''
try:
from genshi.template import TemplateLoader
except:
txt=botslib.txtexc()
raise ImportError(_(u'Dependency failure: editype "template" requires python library "genshi". Error:\n%s'%txt))
#for template-grammar: only syntax is used. Section 'syntax' has to have 'template'
self.outmessagegrammarread(self.ta_info['editype'],self.ta_info['messagetype'])
templatefile = botslib.abspath(u'templateshtml',self.ta_info['template'])
try:
botsglobal.logger.debug(u'Start writing to file "%s".',self.ta_info['filename'])
loader = TemplateLoader(auto_reload=False)
tmpl = loader.load(templatefile)
except:
txt=botslib.txtexc()
raise botslib.OutMessageError(_(u'While templating "$editype.$messagetype", error:\n$txt'),editype=self.ta_info['editype'],messagetype=self.ta_info['messagetype'],txt=txt)
try:
f = botslib.opendata(self.ta_info['filename'],'wb')
stream = tmpl.generate(data=self.data)
stream.render(method='xhtml',encoding=self.ta_info['charset'],out=f)
except:
txt=botslib.txtexc()
raise botslib.OutMessageError(_(u'While templating "$editype.$messagetype", error:\n$txt'),editype=self.ta_info['editype'],messagetype=self.ta_info['messagetype'],txt=txt)
botsglobal.logger.debug(_(u'End writing to file "%s".'),self.ta_info['filename'])
class database(jsonnocheck):
pass
class db(Outmessage):
''' out.root is pickled, and saved.
'''
def __init__(self,ta_info):
super(db,self).__init__(ta_info)
self.root = None #make root None; root is not a Node-object anyway; None can easy be tested when writing.
def writeall(self):
if self.root is None:
raise botslib.OutMessageError(_(u'No outgoing message')) #then there is nothing to write...
botsglobal.logger.debug(u'Start writing to file "%s".',self.ta_info['filename'])
self._outstream = botslib.opendata(self.ta_info['filename'],'wb')
db_object = pickle.dump(self.root,self._outstream,2)
self._outstream.close()
botsglobal.logger.debug(u'End writing to file "%s".',self.ta_info['filename'])
self.ta_info['envelope'] = 'db' #use right enveloping for db: no coping etc, use same file.
class raw(Outmessage):
''' out.root is just saved.
'''
def __init__(self,ta_info):
super(raw,self).__init__(ta_info)
self.root = None #make root None; root is not a Node-object anyway; None can easy be tested when writing.
def writeall(self):
if self.root is None:
raise botslib.OutMessageError(_(u'No outgoing message')) #then there is nothing to write...
botsglobal.logger.debug(u'Start writing to file "%s".',self.ta_info['filename'])
self._outstream = botslib.opendata(self.ta_info['filename'],'wb')
self._outstream.write(self.root)
self._outstream.close()
botsglobal.logger.debug(u'End writing to file "%s".',self.ta_info['filename'])
self.ta_info['envelope'] = 'raw' #use right enveloping for raw: no coping etc, use same file.
| [
[
1,
0,
0.0012,
0.0012,
0,
0.66,
0,
654,
0,
1,
0,
0,
654,
0,
0
],
[
1,
0,
0.0025,
0.0012,
0,
0.66,
0.0312,
509,
0,
1,
0,
0,
509,
0,
0
],
[
7,
0,
0.0056,
0.005,
0,
0... | [
"import time",
"import sys",
"try:\n import cPickle as pickle\nexcept:\n import pickle",
" import cPickle as pickle",
" import pickle",
"import decimal",
"NODECIMAL = decimal.Decimal(1)",
"try:\n import cElementTree as ET\n #~ print 'imported cElementTree'\nexcept ImportError:\n t... |
import os
import glob
import time
import datetime
import stat
import shutil
from django.utils.translation import ugettext as _
#bots modules
import botslib
import botsglobal
from botsconfig import *
def cleanup():
''' public function, does all cleanup of the database and file system.'''
try:
_cleanupsession()
_cleandatafile()
_cleanarchive()
_cleanpersist()
_cleantransactions()
_cleanprocessnothingreceived()
except:
botsglobal.logger.exception(u'Cleanup error.')
def _cleanupsession():
''' delete all expired sessions. Bots-engine starts up much more often than web-server.'''
vanaf = datetime.datetime.today()
botslib.change('''DELETE FROM django_session WHERE expire_date < %(vanaf)s''', {'vanaf':vanaf})
def _cleanarchive():
''' delete all archive directories older than maxdaysarchive days.'''
vanaf = (datetime.date.today()-datetime.timedelta(days=botsglobal.ini.getint('settings','maxdaysarchive',180))).strftime('%Y%m%d')
for row in botslib.query('''SELECT archivepath FROM channel '''):
if row['archivepath']:
vanafdir = botslib.join(row['archivepath'],vanaf)
for dir in glob.glob(botslib.join(row['archivepath'],'*')):
if dir < vanafdir:
shutil.rmtree(dir,ignore_errors=True)
def _cleandatafile():
''' delete all data files older than xx days.'''
vanaf = time.time() - (botsglobal.ini.getint('settings','maxdays',30) * 3600 * 24)
frompath = botslib.join(botsglobal.ini.get('directories','data','botssys/data'),'*')
for filename in glob.glob(frompath):
statinfo = os.stat(filename)
if not stat.S_ISDIR(statinfo.st_mode):
try:
os.remove(filename) #remove files - should be no files in root of data dir
except:
botsglobal.logger.exception(_(u'Cleanup could not remove file'))
elif statinfo.st_mtime > vanaf :
continue #directory is newer than maxdays, which is also true for the data files in it. Skip it.
else: #check files in dir and remove all older than maxdays
frompath2 = botslib.join(filename,'*')
emptydir=True #track check if directory is empty after loop (should directory itself be deleted/)
for filename2 in glob.glob(frompath2):
statinfo2 = os.stat(filename2)
if statinfo2.st_mtime > vanaf or stat.S_ISDIR(statinfo2.st_mode): #check files in dir and remove all older than maxdays
emptydir = False
else:
try:
os.remove(filename2)
except:
botsglobal.logger.exception(_(u'Cleanup could not remove file'))
if emptydir:
try:
os.rmdir(filename)
except:
botsglobal.logger.exception(_(u'Cleanup could not remove directory'))
def _cleanpersist():
'''delete all persist older than xx days.'''
vanaf = datetime.datetime.today() - datetime.timedelta(days=botsglobal.ini.getint('settings','maxdayspersist',30))
botslib.change('''DELETE FROM persist WHERE ts < %(vanaf)s''',{'vanaf':vanaf})
def _cleantransactions():
''' delete records from report, filereport and ta.
best indexes are on idta/reportidta; this should go fast.
'''
vanaf = datetime.datetime.today() - datetime.timedelta(days=botsglobal.ini.getint('settings','maxdays',30))
for row in botslib.query('''SELECT max(idta) as max FROM report WHERE ts < %(vanaf)s''',{'vanaf':vanaf}):
maxidta = row['max']
break
else: #if there is no maxidta to delete, do nothing
return
botslib.change('''DELETE FROM report WHERE idta < %(maxidta)s''',{'maxidta':maxidta})
botslib.change('''DELETE FROM filereport WHERE reportidta < %(maxidta)s''',{'maxidta':maxidta})
botslib.change('''DELETE FROM ta WHERE idta < %(maxidta)s''',{'maxidta':maxidta})
#the most recent run that is older than maxdays is kept (using < instead of <=).
#Reason: when deleting in ta this would leave the ta-records of the most recent run older than maxdays (except the first ta-record).
#this will not lead to problems.
def _cleanprocessnothingreceived():
''' delete all --new runs that received no files; including all process under the run
processes are organised as trees, so recursive.
'''
def core(idta):
#select db-ta's referring to this db-ta
for row in botslib.query('''SELECT idta
FROM ta
WHERE idta > %(idta)s
AND script=%(idta)s''',
{'idta':idta}):
core(row['idta'])
ta=botslib.OldTransaction(idta)
ta.delete()
return
#select root-processes older than hoursnotrefferedarekept
vanaf = datetime.datetime.today() - datetime.timedelta(hours=botsglobal.ini.getint('settings','hoursrunwithoutresultiskept',1))
for row in botslib.query('''SELECT idta
FROM report
WHERE type = 'new'
AND lastreceived=0
AND ts < %(vanaf)s''',
{'vanaf':vanaf}):
core(row['idta'])
#delete report
botslib.change('''DELETE FROM report WHERE idta=%(idta)s ''',{'idta':row['idta']})
| [
[
1,
0,
0.008,
0.008,
0,
0.66,
0,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.016,
0.008,
0,
0.66,
0.0625,
958,
0,
1,
0,
0,
958,
0,
0
],
[
1,
0,
0.024,
0.008,
0,
0.66,
... | [
"import os",
"import glob",
"import time",
"import datetime",
"import stat",
"import shutil",
"from django.utils.translation import ugettext as _",
"import botslib",
"import botsglobal",
"from botsconfig import *",
"def cleanup():\n ''' public function, does all cleanup of the database and fi... |
#Globals used by Bots
incommunicate = False #used to set all incommunication off
db = None #db-object
ini = None #ini-file-object that is read (bots.ini)
routeid = '' #current route. This is used to set routeid for Processes.
preprocessnumber = 0 #different preprocessnumbers are needed for different preprocessing.
version = '2.1.0' #bots version
minta4query = 0 #used in retry; this determines which ta's are queried in a route
######################################
| [
[
14,
0,
0.2222,
0.1111,
0,
0.66,
0,
483,
1,
0,
0,
0,
0,
4,
0
],
[
14,
0,
0.3333,
0.1111,
0,
0.66,
0.1667,
761,
1,
0,
0,
0,
0,
9,
0
],
[
14,
0,
0.4444,
0.1111,
0,
0... | [
"incommunicate = False #used to set all incommunication off",
"db = None #db-object",
"ini = None #ini-file-object that is read (bots.ini)",
"routeid = '' #current route. This is used to set routeid for Processes.",
"preprocessnumber = 0 #different preprocessnumbe... |
import copy
from django.utils.translation import ugettext as _
import botslib
import botsglobal
from botsconfig import *
def grammarread(editype,grammarname):
''' dispatch function for class Grammar or subclass
read whole grammar
'''
try:
classtocall = globals()[editype]
except KeyError:
raise botslib.GrammarError(_(u'Read grammar for editype "$editype" messagetype "$messagetype", but editype is unknown.'), editype=editype, messagetype=grammarname)
terug = classtocall('grammars',editype,grammarname)
terug.initsyntax(includedefault=True)
terug.initrestofgrammar()
return terug
def syntaxread(soortpythonfile,editype,grammarname):
''' dispatch function for class Grammar or subclass
read only grammar
'''
try:
classtocall = globals()[editype]
except KeyError:
raise botslib.GrammarError(_(u'Read grammar for type "$soort" editype "$editype" messagetype "$messagetype", but editype is unknown.'), soort=soortpythonfile,editype=editype, messagetype=grammarname)
terug = classtocall(soortpythonfile,editype,grammarname)
terug.initsyntax(includedefault=False)
return terug
class Grammar(object):
''' Class for translation grammar. The grammar is used in reading or writing an edi file.
Description of the grammar file: see user manual.
The grammar is read from the grammar file.
Grammar file has several grammar parts , eg 'structure'and 'recorddefs'.
every grammar part is in a module is either the grammar part itself or a import from another module.
every module is read once, (default python import-machinery).
The information in a grammar is checked and manipulated.
structure of self.grammar:
is a list of dict
attributes of dict: see header.py
- ID record id
- MIN min #occurences record or group
- MAX max #occurences record of group
- COUNT added after read
- MPATH mpath of record (only record-ids). added after read
- FIELDS tuple of the fields in record. Added ather read from separate record.py-file
- LEVEL child-records
structure of fields:
fields is tuple of (field or subfield)
field is tuple of (ID, MANDATORY, LENGTH, FORMAT)
subfield is tuple of (ID, MANDATORY, tuple of fields)
if a structure or recorddef has been read, Bots remembers this and skip most of the checks.
'''
_checkstructurerequired=True
def __init__(self,soortpythonfile,editype,grammarname):
self.module,self.grammarname = botslib.botsimport(soortpythonfile,editype + '.' + grammarname)
def initsyntax(self,includedefault):
''' Update default syntax from class with syntax read from grammar. '''
if includedefault:
self.syntax = copy.deepcopy(self.__class__.defaultsyntax) #copy syntax from class data
else:
self.syntax = {}
try:
syntaxfromgrammar = getattr(self.module, 'syntax')
except AttributeError:
pass #there is no syntax in the grammar, is OK.
else:
if not isinstance(syntaxfromgrammar,dict):
raise botslib.GrammarError(_(u'Grammar "$grammar": syntax is not a dict{}.'),grammar=self.grammarname)
self.syntax.update(syntaxfromgrammar)
def initrestofgrammar(self):
try:
self.nextmessage = getattr(self.module, 'nextmessage')
except AttributeError: #if grammarpart does not exist set to None; test required grammarpart elsewhere
self.nextmessage = None
try:
self.nextmessage2 = getattr(self.module, 'nextmessage2')
if self.nextmessage is None:
raise botslib.GrammarError(_(u'Grammar "$grammar": if nextmessage2: nextmessage has to be used.'),grammar=self.grammarname)
except AttributeError: #if grammarpart does not exist set to None; test required grammarpart elsewhere
self.nextmessage2 = None
try:
self.nextmessageblock = getattr(self.module, 'nextmessageblock')
if self.nextmessage:
raise botslib.GrammarError(_(u'Grammar "$grammar": nextmessageblock and nextmessage not both allowed.'),grammar=self.grammarname)
except AttributeError: #if grammarpart does not exist set to None; test required grammarpart elsewhere
self.nextmessageblock = None
if self._checkstructurerequired:
try:
self._dostructure()
except AttributeError: #if grammarpart does not exist set to None; test required grammarpart elsewhere
raise botslib.GrammarError(_(u'Grammar "$grammar": no structure, is required.'),grammar=self.grammarname)
except:
self.structurefromgrammar[0]['error'] = True #mark the structure as having errors
raise
try:
self._dorecorddefs()
except:
self.recorddefs['BOTS_1$@#%_error'] = True #mark structure has been read with errors
raise
else:
self.recorddefs['BOTS_1$@#%_error'] = False #mark structure has been read and checked
self.structure = copy.deepcopy(self.structurefromgrammar) #(deep)copy structure for use in translation (in translation values are changed, so use a copy)
self._checkbotscollision(self.structure)
self._linkrecorddefs2structure(self.structure)
def _dorecorddefs(self):
''' 1. check the recorddefinitions for validity.
2. adapt in field-records: normalise length lists, set bool ISFIELD, etc
'''
try:
self.recorddefs = getattr(self.module, 'recorddefs')
except AttributeError:
raise botslib.GrammarError(_(u'Grammar "$grammar": no recorddefs.'),grammar=self.grammarname)
if not isinstance(self.recorddefs,dict):
raise botslib.GrammarError(_(u'Grammar "$grammar": recorddefs is not a dict{}.'),grammar=self.grammarname)
#check if grammar is read & checked earlier in this run. If so, we can skip all checks.
if 'BOTS_1$@#%_error' in self.recorddefs: #if checked before
if self.recorddefs['BOTS_1$@#%_error']: #if grammar had errors
raise botslib.GrammarError(_(u'Grammar "$grammar" has error that is already reported in this run.'),grammar=self.grammarname)
return #no error, skip checks
for recordID ,fields in self.recorddefs.iteritems():
if not isinstance(recordID,basestring):
raise botslib.GrammarError(_(u'Grammar "$grammar", record "$record": is not a string.'),grammar=self.grammarname,record=recordID)
if not recordID:
raise botslib.GrammarError(_(u'Grammar "$grammar", record "$record": recordID with empty string.'),grammar=self.grammarname,record=recordID)
if not isinstance(fields,list):
raise botslib.GrammarError(_(u'Grammar "$grammar", record "$record": no correct fields found.'),grammar=self.grammarname,record=recordID)
if isinstance(self,(xml,json)):
if len (fields) < 1:
raise botslib.GrammarError(_(u'Grammar "$grammar", record "$record": too few fields.'),grammar=self.grammarname,record=recordID)
else:
if len (fields) < 2:
raise botslib.GrammarError(_(u'Grammar "$grammar", record "$record": too few fields.'),grammar=self.grammarname,record=recordID)
hasBOTSID = False #to check if BOTSID is present
fieldnamelist = [] #to check for double fieldnames
for field in fields:
self._checkfield(field,recordID)
if not field[ISFIELD]: # if composite
for sfield in field[SUBFIELDS]:
self._checkfield(sfield,recordID)
if sfield[ID] in fieldnamelist:
raise botslib.GrammarError(_(u'Grammar "$grammar", record "$record": field "$field" appears twice. Field names should be unique within a record.'),grammar=self.grammarname,record=recordID,field=sfield[ID])
fieldnamelist.append(sfield[ID])
else:
if field[ID] == 'BOTSID':
hasBOTSID = True
if field[ID] in fieldnamelist:
raise botslib.GrammarError(_(u'Grammar "$grammar", record "$record": field "$field" appears twice. Field names should be unique within a record.'),grammar=self.grammarname,record=recordID,field=field[ID])
fieldnamelist.append(field[ID])
if not hasBOTSID: #there is no field 'BOTSID' in record
raise botslib.GrammarError(_(u'Grammar "$grammar", record "$record": no field BOTSID.'),grammar=self.grammarname,record=recordID)
if self.syntax['noBOTSID'] and len(self.recorddefs) != 1:
raise botslib.GrammarError(_(u'Grammar "$grammar": if syntax["noBOTSID"]: there can be only one record in recorddefs.'),grammar=self.grammarname)
if self.nextmessageblock is not None and len(self.recorddefs) != 1:
raise botslib.GrammarError(_(u'Grammar "$grammar": if nextmessageblock: there can be only one record in recorddefs.'),grammar=self.grammarname)
def _checkfield(self,field,recordID):
#'normalise' field: make list equal length
if len(field) == 3: # that is: composite
field +=[None,False,None,None,'A']
elif len(field) == 4: # that is: field (not a composite)
field +=[True,0,0,'A']
elif len(field) == 8: # this happens when there are errors in a table and table is read again
raise botslib.GrammarError(_(u'Grammar "$grammar": error in grammar; error is already reported in this run.'),grammar=self.grammarname)
else:
raise botslib.GrammarError(_(u'Grammar "$grammar", record "$record", field "$field": list has invalid number of arguments.') ,grammar=self.grammarname,record=recordID,field=field[ID])
if not isinstance(field[ID],basestring) or not field[ID]:
raise botslib.GrammarError(_(u'Grammar "$grammar", record "$record", field "$field": fieldID has to be a string.'),grammar=self.grammarname,record=recordID,field=field[ID])
if not isinstance(field[MANDATORY],basestring):
raise botslib.GrammarError(_(u'Grammar "$grammar", record "$record", field "$field": mandatory/conditional has to be a string.'),grammar=self.grammarname,record=recordID,field=field[ID])
if not field[MANDATORY] or field[MANDATORY] not in ['M','C']:
raise botslib.GrammarError(_(u'Grammar "$grammar", record "$record", field "$field": mandatory/conditional must be "M" or "C".'),grammar=self.grammarname,record=recordID,field=field[ID])
if field[ISFIELD]: # that is: field, and not a composite
#get MINLENGTH (from tuple or if fixed
if isinstance(field[LENGTH],tuple):
if not isinstance(field[LENGTH][0],(int,float)):
raise botslib.GrammarError(_(u'Grammar "$grammar", record "$record", field "$field": min length "$min" has to be a number.'),grammar=self.grammarname,record=recordID,field=field[ID],min=field[LENGTH])
if not isinstance(field[LENGTH][1],(int,float)):
raise botslib.GrammarError(_(u'Grammar "$grammar", record "$record", field "$field": max length "$max" has to be a number.'),grammar=self.grammarname,record=recordID,field=field[ID],max=field[LENGTH])
if field[LENGTH][0] > field[LENGTH][1]:
raise botslib.GrammarError(_(u'Grammar "$grammar", record "$record", field "$field": min length "$min" must be > max length "$max".'),grammar=self.grammarname,record=recordID,field=field[ID],min=field[LENGTH][0],max=field[LENGTH][1])
field[MINLENGTH]=field[LENGTH][0]
field[LENGTH]=field[LENGTH][1]
elif isinstance(field[LENGTH],(int,float)):
if isinstance(self,fixed):
field[MINLENGTH]=field[LENGTH]
else:
raise botslib.GrammarError(_(u'Grammar "$grammar", record "$record", field "$field": length "$len" has to be number or (min,max).'),grammar=self.grammarname,record=recordID,field=field[ID],len=field[LENGTH])
if field[LENGTH] < 1:
raise botslib.GrammarError(_(u'Grammar "$grammar", record "$record", field "$field": length "$len" has to be at least 1.'),grammar=self.grammarname,record=recordID,field=field[ID],len=field[LENGTH])
if field[MINLENGTH] < 0:
raise botslib.GrammarError(_(u'Grammar "$grammar", record "$record", field "$field": minlength "$len" has to be at least 0.'),grammar=self.grammarname,record=recordID,field=field[ID],len=field[LENGTH])
#format
if not isinstance(field[FORMAT],basestring):
raise botslib.GrammarError(_(u'Grammar "$grammar", record "$record", field "$field": format "$format" has to be a string.'),grammar=self.grammarname,record=recordID,field=field[ID],format=field[FORMAT])
self._manipulatefieldformat(field,recordID)
if field[BFORMAT] in ['N','I','R']:
if isinstance(field[LENGTH],float):
field[DECIMALS] = int( round((field[LENGTH]-int(field[LENGTH]))*10) ) #fill DECIMALS
field[LENGTH] = int( round(field[LENGTH]))
if field[DECIMALS] >= field[LENGTH]:
raise botslib.GrammarError(_(u'Grammar "$grammar", record "$record", field "$field": field length "$len" has to be greater that nr of decimals "$decimals".'),grammar=self.grammarname,record=recordID,field=field[ID],len=field[LENGTH],decimals=field[DECIMALS])
if isinstance(field[MINLENGTH],float):
field[MINLENGTH] = int( round(field[MINLENGTH]))
else: #if format 'R', A, D, T
if isinstance(field[LENGTH],float):
raise botslib.GrammarError(_(u'Grammar "$grammar", record "$record", field "$field": if format "$format", no length "$len".'),grammar=self.grammarname,record=recordID,field=field[ID],format=field[FORMAT],len=field[LENGTH])
if isinstance(field[MINLENGTH],float):
raise botslib.GrammarError(_(u'Grammar "$grammar", record "$record", field "$field": if format "$format", no minlength "$len".'),grammar=self.grammarname,record=recordID,field=field[ID],format=field[FORMAT],len=field[MINLENGTH])
else: #check composite
if not isinstance(field[SUBFIELDS],list):
raise botslib.GrammarError(_(u'Grammar "$grammar", record "$record", field "$field": is a composite field, has to have subfields.'),grammar=self.grammarname,record=recordID,field=field[ID])
if len(field[SUBFIELDS]) < 2:
raise botslib.GrammarError(_(u'Grammar "$grammar", record "$record", field "$field" has < 2 sfields.'),grammar=self.grammarname,record=recordID,field=field[ID])
def _linkrecorddefs2structure(self,structure):
''' recursive
for each record in structure: add the pointer to the right recorddefinition.
'''
for i in structure:
try:
i[FIELDS] = self.recorddefs[i[ID]]
except KeyError:
raise botslib.GrammarError(_(u'Grammar "$grammar": in recorddef no record "$record".'),grammar=self.grammarname,record=i[ID])
if LEVEL in i:
self._linkrecorddefs2structure(i[LEVEL])
def _dostructure(self):
''' 1. check the structure for validity.
2. adapt in structure: Add keys: mpath, count
3. remember that structure is checked and adapted (so when grammar is read again, no checking/adapt needed)
'''
self.structurefromgrammar = getattr(self.module, 'structure')
if len(self.structurefromgrammar) != 1: #every structure has only 1 root!!
raise botslib.GrammarError(_(u'Grammar "$grammar", in structure: only one root record allowed.'),grammar=self.grammarname)
#check if structure is read & checked earlier in this run. If so, we can skip all checks.
if 'error' in self.structurefromgrammar[0]:
pass # grammar has been read before, but there are errors. Do nothing here, same errors will be raised again.
elif MPATH in self.structurefromgrammar[0]:
return # grammar has been red before, with no errors. Do no checks.
self._checkstructure(self.structurefromgrammar,[])
if self.syntax['checkcollision']:
self._checkbackcollision(self.structurefromgrammar)
self._checknestedcollision(self.structurefromgrammar)
def _checkstructure(self,structure,mpath):
''' Recursive
1. Check structure.
2. Add keys: mpath, count
'''
if not isinstance(structure,list):
raise botslib.GrammarError(_(u'Grammar "$grammar", in structure, at "$mpath": not a list.'),grammar=self.grammarname,mpath=mpath)
for i in structure:
if not isinstance(i,dict):
raise botslib.GrammarError(_(u'Grammar "$grammar", in structure, at "$mpath": record should be a dict: "$record".'),grammar=self.grammarname,mpath=mpath,record=i)
if ID not in i:
raise botslib.GrammarError(_(u'Grammar "$grammar", in structure, at "$mpath": record without ID: "$record".'),grammar=self.grammarname,mpath=mpath,record=i)
if not isinstance(i[ID],basestring):
raise botslib.GrammarError(_(u'Grammar "$grammar", in structure, at "$mpath": recordID of record is not a string: "$record".'),grammar=self.grammarname,mpath=mpath,record=i)
if not i[ID]:
raise botslib.GrammarError(_(u'Grammar "$grammar", in structure, at "$mpath": recordID of record is empty: "$record".'),grammar=self.grammarname,mpath=mpath,record=i)
if MIN not in i:
raise botslib.GrammarError(_(u'Grammar "$grammar", in structure, at "$mpath": record without MIN: "$record".'),grammar=self.grammarname,mpath=mpath,record=i)
if MAX not in i:
raise botslib.GrammarError(_(u'Grammar "$grammar", in structure, at "$mpath": record without MAX: "$record".'),grammar=self.grammarname,mpath=mpath,record=i)
if not isinstance(i[MIN],int):
raise botslib.GrammarError(_(u'Grammar "$grammar", in structure, at "$mpath": record where MIN is not whole number: "$record".'),grammar=self.grammarname,mpath=mpath,record=i)
if not isinstance(i[MAX],int):
raise botslib.GrammarError(_(u'Grammar "$grammar", in structure, at "$mpath": record where MAX is not whole number: "$record".'),grammar=self.grammarname,mpath=mpath,record=i)
if i[MIN] > i[MAX]:
raise botslib.GrammarError(_(u'Grammar "$grammar", in structure, at "$mpath": record where MIN > MAX: "$record".'),grammar=self.grammarname,mpath=mpath,record=str(i)[:100])
i[MPATH]=mpath+[[i[ID]]]
i[COUNT]=0
if LEVEL in i:
self._checkstructure(i[LEVEL],i[MPATH])
def _checkbackcollision(self,structure,collision=None):
''' Recursive.
Check if grammar has collision problem.
A message with collision problems is ambiguous.
'''
headerissave = False
if not collision:
collision=[]
for i in structure:
#~ print 'check back',i[MPATH], 'with',collision
if i[ID] in collision:
raise botslib.GrammarError(_(u'Grammar "$grammar", in structure: back-collision detected at record "$mpath".'),grammar=self.grammarname,mpath=i[MPATH])
if i[MIN]:
collision = []
headerissave = True
collision.append(i[ID])
if LEVEL in i:
returncollision,returnheaderissave = self._checkbackcollision(i[LEVEL],[i[ID]])
collision += returncollision
if returnheaderissave: #if one of segment(groups) is required, there is always a segment after the header segment; so remove header from nowcollision:
collision.remove(i[ID])
return collision,headerissave #collision is used to update on higher level; cleared indicates the header segment can not collide anymore
def _checkbotscollision(self,structure):
''' Recursive.
Within one level: if twice the same tag: use BOTSIDnr.
'''
collision={}
for i in structure:
if i[ID] in collision:
#~ raise botslib.GrammarError(_(u'Grammar "$grammar", in structure: bots-collision detected at record "$mpath".'),grammar=self.grammarname,mpath=i[MPATH])
i[BOTSIDnr] = str(collision[i[ID]] + 1)
collision[i[ID]] = collision[i[ID]] + 1
else:
i[BOTSIDnr] = '1'
collision[i[ID]] = 1
if LEVEL in i:
self._checkbotscollision(i[LEVEL])
return
def _checknestedcollision(self,structure,collision=None):
''' Recursive.
Check if grammar has collision problem.
A message with collision problems is ambiguous.
'''
if not collision:
levelcollision = []
else:
levelcollision = collision[:]
for i in reversed(structure):
checkthissegment = True
if LEVEL in i:
checkthissegment = self._checknestedcollision(i[LEVEL],levelcollision + [i[ID]])
#~ print 'check nested',checkthissegment, i[MPATH], 'with',levelcollision
if checkthissegment and i[ID] in levelcollision:
raise botslib.GrammarError(_(u'Grammar "$grammar", in structure: nesting collision detected at record "$mpath".'),grammar=self.grammarname,mpath=i[MPATH])
if i[MIN]:
levelcollision = [] #enecessarympty uppercollision
return bool(levelcollision)
def display(self,structure,level=0):
''' Draw grammar, with indentation for levels.
For debugging.
'''
for i in structure:
print 'Record: ',i[MPATH],i
for field in i[FIELDS]:
print ' Field: ',field
if LEVEL in i:
self.display(i[LEVEL],level+1)
#bots interpretats the format from the grammer; left side are the allowed values; right side are the internal forams bots uses.
#the list directly below are the default values for the formats, subclasses can have their own list.
#this makes it possible to use x12-formats for x12, edifact-formats for edifact etc
formatconvert = {
'A':'A', #alfanumerical
'AN':'A', #alfanumerical
#~ 'AR':'A', #right aligned alfanumerical field, used in fixed records.
'D':'D', #date
'DT':'D', #date-time
'T':'T', #time
'TM':'T', #time
'N':'N', #numerical, fixed decimal. Fixed nr of decimals; if no decimal used: whole number, integer
#~ 'NL':'N', #numerical, fixed decimal. In fixed format: no preceding zeros, left aligned,
#~ 'NR':'N', #numerical, fixed decimal. In fixed format: preceding blancs, right aligned,
'R':'R', #numerical, any number of decimals; the decimal point is 'floating'
#~ 'RL':'R', #numerical, any number of decimals. fixed: no preceding zeros, left aligned
#~ 'RR':'R', #numerical, any number of decimals. fixed: preceding blancs, right aligned
'I':'I', #numercial, implicit decimal
}
def _manipulatefieldformat(self,field,recordID):
try:
field[BFORMAT] = self.formatconvert[field[FORMAT]]
except KeyError:
raise botslib.GrammarError(_(u'Grammar "$grammar", record "$record", field "$field": format "$format" has to be one of "$keys".'),grammar=self.grammarname,record=recordID,field=field[ID],format=field[FORMAT],keys=self.formatconvert.keys())
#grammar subclasses. contain the defaultsyntax
class test(Grammar):
defaultsyntax = {
'checkcollision':True,
'noBOTSID':False,
}
class csv(Grammar):
defaultsyntax = {
'acceptspaceinnumfield':True, #only really used in fixed formats
'add_crlfafterrecord_sep':'',
'allow_lastrecordnotclosedproperly':False, #in csv sometimes the last record is no closed correctly. This is related to communciation over email. Beware: when using this, other checks will not be enforced!
'charset':'utf-8',
'checkcharsetin':'strict', #strict, ignore or botsreplace (replace with char as set in bots.ini).
'checkcharsetout':'strict', #strict, ignore or botsreplace (replace with char as set in bots.ini).
'checkcollision':True,
'checkunknownentities': True,
'contenttype':'text/csv',
'decimaal':'.',
'envelope':'',
'escape':"",
'field_sep':':',
'forcequote': 1, #(if quote_char is set) 0:no force: only quote if necessary:1:always force: 2:quote if alfanumeric
'lengthnumericbare':False,
'merge':True,
'noBOTSID':False,
'pass_all':True,
'quote_char':"'",
'record_sep':"\r\n",
'record_tag_sep':"", #Tradacoms/GTDI
'reserve':'',
'sfield_sep':'',
'skip_char':'',
'skip_firstline':False,
'stripfield_sep':False, #safe choice, as csv is no real standard
'triad':'',
'wrap_length':0, #for producing wrapped format, where a file consists of fixed length records ending with crr/lf. Often seen in mainframe, as400
}
class fixed(Grammar):
formatconvert = {
'A':'A', #alfanumerical
'AN':'A', #alfanumerical
'AR':'A', #right aligned alfanumerical field, used in fixed records.
'D':'D', #date
'DT':'D', #date-time
'T':'T', #time
'TM':'T', #time
'N':'N', #numerical, fixed decimal. Fixed nr of decimals; if no decimal used: whole number, integer
'NL':'N', #numerical, fixed decimal. In fixed format: no preceding zeros, left aligned,
'NR':'N', #numerical, fixed decimal. In fixed format: preceding blancs, right aligned,
'R':'R', #numerical, any number of decimals; the decimal point is 'floating'
'RL':'R', #numerical, any number of decimals. fixed: no preceding zeros, left aligned
'RR':'R', #numerical, any number of decimals. fixed: preceding blancs, right aligned
'I':'I', #numercial, implicit decimal
}
defaultsyntax = {
'acceptspaceinnumfield':True, #only really used in fixed formats
'add_crlfafterrecord_sep':'',
'charset':'us-ascii',
'checkcharsetin':'strict', #strict, ignore or botsreplace (replace with char as set in bots.ini).
'checkcharsetout':'strict', #strict, ignore or botsreplace (replace with char as set in bots.ini).
'checkcollision':True,
'checkfixedrecordtoolong':True,
'checkfixedrecordtooshort':False,
'checkunknownentities': True,
'contenttype':'text/plain',
'decimaal':'.',
'endrecordID':3,
'envelope':'',
'escape':'',
'field_sep':'',
'forcequote':0, #csv only
'lengthnumericbare':False,
'merge':True,
'noBOTSID':False,
'pass_all':False,
'quote_char':"",
'record_sep':"\r\n",
'record_tag_sep':"", #Tradacoms/GTDI
'reserve':'',
'sfield_sep':'',
'skip_char':'',
'startrecordID':0,
'stripfield_sep':False,
'triad':'',
'wrap_length':0, #for producing wrapped format, where a file consists of fixed length records ending with crr/lf. Often seen in mainframe, as400
}
class idoc(fixed):
defaultsyntax = {
'acceptspaceinnumfield':True, #only really used in fixed formats
'add_crlfafterrecord_sep':'',
'automaticcount':True,
'charset':'us-ascii',
'checkcharsetin':'strict', #strict, ignore or botsreplace (replace with char as set in bots.ini).
'checkcharsetout':'strict', #strict, ignore or botsreplace (replace with char as set in bots.ini).
'checkcollision':True,
'checkfixedrecordtoolong':False,
'checkfixedrecordtooshort':False,
'checkunknownentities': True,
'contenttype':'text/plain',
'decimaal':'.',
'endrecordID':10,
'envelope':'',
'escape':'',
'field_sep':'',
'forcequote':0, #csv only
'lengthnumericbare':False,
'merge':False,
'noBOTSID':False,
'pass_all':False,
'quote_char':"",
'record_sep':"\r\n",
'record_tag_sep':"", #Tradacoms/GTDI
'reserve':'',
'sfield_sep':'',
'skip_char':'',
'startrecordID':0,
'stripfield_sep':False,
'triad':'',
'wrap_length':0, #for producing wrapped format, where a file consists of fixed length records ending with crr/lf. Often seen in mainframe, as400
'MANDT':'0',
'DOCNUM':'0',
}
class xml(Grammar):
defaultsyntax = {
'add_crlfafterrecord_sep':'',
'acceptspaceinnumfield':True, #only really used in fixed formats
'attributemarker':'__',
'charset':'utf-8',
'checkcharsetin':'strict', #strict, ignore or botsreplace (replace with char as set in bots.ini).
'checkcharsetout':'strict', #strict, ignore or botsreplace (replace with char as set in bots.ini).
'checkcollision':False,
'checkunknownentities': True, #??changed later
'contenttype':'text/xml ',
'decimaal':'.',
'DOCTYPE':'', #doctype declaration to use in xml header. DOCTYPE = 'mydoctype SYSTEM "mydoctype.dtd"' will lead to: <!DOCTYPE mydoctype SYSTEM "mydoctype.dtd">
'envelope':'',
'extra_character_entity':{}, #additional character entities to resolve when parsing XML; mostly html character entities. Not in python 2.4. Example: {'euro':u'','nbsp':unichr(160),'apos':u'\u0027'}
'escape':'',
'field_sep':'',
'forcequote':0, #csv only
'indented':False, #False: xml output is one string (no cr/lf); True: xml output is indented/human readable
'lengthnumericbare':False,
'merge':False,
'noBOTSID':False,
'pass_all':False,
'processing_instructions': None, #to generate processing instruction in xml prolog. is a list, consisting of tuples, each tuple consists of type of instruction and text for instruction.
#Example: processing_instructions': [('xml-stylesheet' ,'href="mystylesheet.xsl" type="text/xml"'),('type-of-ppi' ,'attr1="value1" attr2="value2"')]
#leads to this output in xml-file: <?xml-stylesheet href="mystylesheet.xsl" type="text/xml"?><?type-of-ppi attr1="value1" attr2="value2"?>
'quote_char':"",
'record_sep':"",
'record_tag_sep':"", #Tradacoms/GTDI
'reserve':'',
'sfield_sep':'',
'skip_char':'',
'standalone':None, #as used in xml prolog; values: 'yes' , 'no' or None (not used)
'stripfield_sep':False,
'triad':'',
'version':'1.0', #as used in xml prolog
}
class xmlnocheck(xml):
_checkstructurerequired=False
defaultsyntax = {
'add_crlfafterrecord_sep':'',
'acceptspaceinnumfield':True, #only really used in fixed formats
'attributemarker':'__',
'charset':'utf-8',
'checkcharsetin':'strict', #strict, ignore or botsreplace (replace with char as set in bots.ini).
'checkcharsetout':'strict', #strict, ignore or botsreplace (replace with char as set in bots.ini).
'checkcollision':False,
'checkunknownentities': False,
'contenttype':'text/xml ',
'decimaal':'.',
'DOCTYPE':'', #doctype declaration to use in xml header. DOCTYPE = 'mydoctype SYSTEM "mydoctype.dtd"' will lead to: <!DOCTYPE mydoctype SYSTEM "mydoctype.dtd">
'envelope':'',
'escape':'',
'extra_character_entity':{}, #additional character entities to resolve when parsing XML; mostly html character entities. Not in python 2.4. Example: {'euro':u'','nbsp':unichr(160),'apos':u'\u0027'}
'field_sep':'',
'forcequote':0, #csv only
'indented':False, #False: xml output is one string (no cr/lf); True: xml output is indented/human readable
'lengthnumericbare':False,
'merge':False,
'noBOTSID':False,
'pass_all':False,
'processing_instructions': None, #to generate processing instruction in xml prolog. is a list, consisting of tuples, each tuple consists of type of instruction and text for instruction.
#Example: processing_instructions': [('xml-stylesheet' ,'href="mystylesheet.xsl" type="text/xml"'),('type-of-ppi' ,'attr1="value1" attr2="value2"')]
#leads to this output in xml-file: <?xml-stylesheet href="mystylesheet.xsl" type="text/xml"?><?type-of-ppi attr1="value1" attr2="value2"?>
'quote_char':"",
'record_sep':"",
'record_tag_sep':"", #Tradacoms/GTDI
'reserve':'',
'sfield_sep':'',
'skip_char':'',
'standalone':None, #as used in xml prolog; values: 'yes' , 'no' or None (not used)
'stripfield_sep':False,
'triad':'',
'version':'1.0', #as used in xml prolog
}
class template(Grammar):
_checkstructurerequired=False
defaultsyntax = { \
'add_crlfafterrecord_sep':'',
'charset':'utf-8',
'checkcharsetin':'strict', #strict, ignore or botsreplace (replace with char as set in bots.ini).
'checkcharsetout':'strict', #strict, ignore or botsreplace (replace with char as set in bots.ini).
'checkcollision':False,
'contenttype':'text/xml',
'checkunknownentities': True,
'decimaal':'.',
'envelope':'template',
'envelope-template':'',
'escape':'',
'field_sep':'',
'forcequote':0, #csv only
'lengthnumericbare':False,
'merge':True,
'noBOTSID':False,
'output':'xhtml-strict',
'quote_char':"",
'pass_all':False,
'record_sep':"",
'record_tag_sep':"", #Tradacoms/GTDI
'reserve':'',
'sfield_sep':'',
'skip_char':'',
'stripfield_sep':False,
'triad':'',
}
class templatehtml(Grammar):
_checkstructurerequired=False
defaultsyntax = { \
'add_crlfafterrecord_sep':'',
'charset':'utf-8',
'checkcharsetin':'strict', #strict, ignore or botsreplace (replace with char as set in bots.ini).
'checkcharsetout':'strict', #strict, ignore or botsreplace (replace with char as set in bots.ini).
'checkcollision':False,
'contenttype':'text/xml',
'checkunknownentities': True,
'decimaal':'.',
'envelope':'templatehtml',
'envelope-template':'',
'escape':'',
'field_sep':'',
'forcequote':0, #csv only
'lengthnumericbare':False,
'merge':True,
'noBOTSID':False,
'output':'xhtml-strict',
'quote_char':"",
'pass_all':False,
'record_sep':"",
'record_tag_sep':"", #Tradacoms/GTDI
'reserve':'',
'sfield_sep':'',
'skip_char':'',
'stripfield_sep':False,
'triad':'',
}
class edifact(Grammar):
defaultsyntax = {
'add_crlfafterrecord_sep':'\r\n',
'acceptspaceinnumfield':True, #only really used in fixed formats
'charset':'UNOA',
'checkcharsetin':'strict', #strict, ignore or botsreplace (replace with char as set in bots.ini).
'checkcharsetout':'strict', #strict, ignore or botsreplace (replace with char as set in bots.ini).
'checkcollision':True,
'checkunknownentities': True,
'contenttype':'application/EDIFACT',
'decimaal':'.',
'envelope':'edifact',
'escape':'?',
'field_sep':'+',
'forcequote':0, #csv only
'forceUNA' : False,
'lengthnumericbare':True,
'merge':True,
'noBOTSID':False,
'pass_all':False,
'quote_char':'',
'record_sep':"'",
'record_tag_sep':"", #Tradacoms/GTDI
'reserve':'*',
'sfield_sep':':',
'skip_char':'\r\n',
'stripfield_sep':True,
'triad':'',
'version':'3',
'wrap_length':0, #for producing wrapped format, where a file consists of fixed length records ending with crr/lf. Often seen in mainframe, as400
'UNB.S002.0007':'14',
'UNB.S003.0007':'14',
'UNB.0026':'',
'UNB.0035':'0',
}
formatconvert = {
'A':'A',
'AN':'A',
'N':'R',
}
class x12(Grammar):
defaultsyntax = {
'add_crlfafterrecord_sep':'\r\n',
'acceptspaceinnumfield':True, #only really used in fixed formats
'charset':'us-ascii',
'checkcharsetin':'strict', #strict, ignore or botsreplace (replace with char as set in bots.ini).
'checkcharsetout':'strict', #strict, ignore or botsreplace (replace with char as set in bots.ini).
'checkcollision':True,
'checkunknownentities': True,
'contenttype':'application/X12',
'decimaal':'.',
'envelope':'x12',
'escape':'',
'field_sep':'*',
'forcequote':0, #csv only
'functionalgroup' : 'XX',
'lengthnumericbare':True,
'merge':True,
'noBOTSID':False,
'pass_all':False,
'quote_char':'',
'record_sep':"~",
'record_tag_sep':"", #Tradacoms/GTDI
'replacechar':'', #if separator found, replace by this character; if replacechar is an empty string: raise error
'reserve':'^',
'sfield_sep':'>', #advised '\'?
'skip_char':'\r\n',
'stripfield_sep':True,
'triad':'',
'version':'00403',
'wrap_length':0, #for producing wrapped format, where a file consists of fixed length records ending with crr/lf. Often seen in mainframe, as400
'ISA01':'00',
'ISA02':' ',
'ISA03':'00',
'ISA04':' ',
'ISA05':'01',
'ISA07':'01',
'ISA11':'U', #since ISA version 00403 this is the reserve/repetition separator. Bots does not use this anymore for ISA version >00403
'ISA14':'1',
'ISA15':'P',
'GS07':'X',
}
formatconvert = {
'AN':'A',
'DT':'D',
'TM':'T',
'N':'I',
'N0':'I',
'N1':'I',
'N2':'I',
'N3':'I',
'N4':'I',
'N5':'I',
'N6':'I',
'N7':'I',
'N8':'I',
'N9':'I',
'R':'R',
'B':'A',
'ID':'A',
}
def _manipulatefieldformat(self,field,recordID):
super(x12,self)._manipulatefieldformat(field,recordID)
if field[BFORMAT]=='I':
if field[FORMAT][1:]:
field[DECIMALS] = int(field[FORMAT][1])
else:
field[DECIMALS] = 0
class json(Grammar):
defaultsyntax = {
'add_crlfafterrecord_sep':'',
'acceptspaceinnumfield':True, #only really used in fixed formats
'charset':'utf-8',
'checkcharsetin':'strict', #strict, ignore or botsreplace (replace with char as set in bots.ini).
'checkcharsetout':'strict', #strict, ignore or botsreplace (replace with char as set in bots.ini).
'checkcollision':False,
'checkunknownentities': True, #??changed later
'contenttype':'text/xml ',
'decimaal':'.',
'defaultBOTSIDroot':'ROOT',
'envelope':'',
'escape':'',
'field_sep':'',
'forcequote':0, #csv only
'indented':False, #False: output is one string (no cr/lf); True: output is indented/human readable
'lengthnumericbare':False,
'merge':False,
'noBOTSID':False,
'pass_all':False,
'quote_char':"",
'record_sep':"",
'record_tag_sep':"", #Tradacoms/GTDI
'reserve':'',
'sfield_sep':'',
'skip_char':'',
'stripfield_sep':False,
'triad':'',
}
class jsonnocheck(json):
_checkstructurerequired=False
defaultsyntax = {
'add_crlfafterrecord_sep':'',
'acceptspaceinnumfield':True, #only really used in fixed formats
'charset':'utf-8',
'checkcharsetin':'strict', #strict, ignore or botsreplace (replace with char as set in bots.ini).
'checkcharsetout':'strict', #strict, ignore or botsreplace (replace with char as set in bots.ini).
'checkcollision':False,
'checkunknownentities': False,
'contenttype':'text/xml ',
'decimaal':'.',
'defaultBOTSIDroot':'ROOT',
'envelope':'',
'escape':'',
'field_sep':'',
'forcequote':0, #csv only
'indented':False, #False: output is one string (no cr/lf); True: output is indented/human readable
'lengthnumericbare':False,
'merge':False,
'noBOTSID':False,
'pass_all':False,
'quote_char':"",
'record_sep':"",
'record_tag_sep':"", #Tradacoms/GTDI
'reserve':'',
'sfield_sep':'',
'skip_char':'',
'stripfield_sep':False,
'triad':'',
}
class tradacoms(Grammar):
defaultsyntax = {
'add_crlfafterrecord_sep':'\n',
'acceptspaceinnumfield':True, #only really used in fixed formats
'charset':'us-ascii',
'checkcharsetin':'strict', #strict, ignore or botsreplace (replace with char as set in bots.ini).
'checkcharsetout':'strict', #strict, ignore or botsreplace (replace with char as set in bots.ini).
'checkcollision':True,
'checkunknownentities': True,
'contenttype':'application/text',
'decimaal':'.',
'envelope':'tradacoms',
'escape':'?',
'field_sep':'+',
'forcequote':0, #csv only
'indented':False, #False: output is one string (no cr/lf); True: output is indented/human readable
'lengthnumericbare':True,
'merge':False,
'noBOTSID':False,
'pass_all':False,
'quote_char':'',
'record_sep':"'",
'record_tag_sep':"=", #Tradacoms/GTDI
'reserve':'',
'sfield_sep':':',
'skip_char':'\r\n',
'stripfield_sep':True,
'triad':'',
'wrap_length':0, #for producing wrapped format, where a file consists of fixed length records ending with crr/lf. Often seen in mainframe, as400
'STX.STDS1':'ANA',
'STX.STDS2':'1',
'STX.FROM.02':'',
'STX.UNTO.02':'',
'STX.APRF':'',
'STX.PRCD':'',
}
formatconvert = {
'X':'A',
'9':'R',
'9V9':'I',
}
class database(jsonnocheck):
pass
| [
[
1,
0,
0.0012,
0.0012,
0,
0.66,
0,
739,
0,
1,
0,
0,
739,
0,
0
],
[
1,
0,
0.0023,
0.0012,
0,
0.66,
0.0476,
389,
0,
1,
0,
0,
389,
0,
0
],
[
1,
0,
0.0035,
0.0012,
0,
... | [
"import copy",
"from django.utils.translation import ugettext as _",
"import botslib",
"import botsglobal",
"from botsconfig import *",
"def grammarread(editype,grammarname):\n ''' dispatch function for class Grammar or subclass\n read whole grammar\n '''\n try:\n classtocall = glob... |
#!/usr/bin/env python
import sys
import os
import logging
from logging.handlers import TimedRotatingFileHandler
from django.core.handlers.wsgi import WSGIHandler
from django.utils.translation import ugettext as _
import cherrypy
from cherrypy import wsgiserver
import botslib
import botsglobal
import botsinit
def showusage():
usage = '''
This is "%(name)s", a part of Bots open source edi translator - http://bots.sourceforge.net.
The %(name)s is the web server for bots; the interface (bots-monitor) can be accessed in a browser, eg 'http://localhost:8080'.
Usage:
%(name)s -c<directory>
Options:
-c<directory> directory for configuration files (default: config).
'''%{'name':os.path.basename(sys.argv[0])}
print usage
sys.exit(0)
def start():
#NOTE bots is always on PYTHONPATH!!! - otherwise it will not start.
#***command line arguments**************************
configdir = 'config'
for arg in sys.argv[1:]:
if not arg:
continue
if arg.startswith('-c'):
configdir = arg[2:]
if not configdir:
print 'Configuration directory indicated, but no directory name.'
sys.exit(1)
elif arg in ["?", "/?"] or arg.startswith('-'):
showusage()
else:
showusage()
#***init general: find locating of bots, configfiles, init paths etc.***********************
botsinit.generalinit(configdir)
#***initialise logging. This logging only contains the logging from bots-webserver, not from cherrypy.
botsglobal.logger = logging.getLogger('bots-webserver')
botsglobal.logger.setLevel(logging.DEBUG)
h = TimedRotatingFileHandler(botslib.join(botsglobal.ini.get('directories','logging'),'webserver.log'), backupCount=10)
fileformat = logging.Formatter("%(asctime)s %(levelname)-8s: %(message)s",'%Y%m%d %H:%M:%S')
h.setFormatter(fileformat)
botsglobal.logger.addHandler(h)
#***init cherrypy as webserver*********************************************
#global configuration for cherrypy
cherrypy.config.update({'global': {'log.screen': False, 'server.environment': botsglobal.ini.get('webserver','environment','production')}})
#cherrypy handling of static files
conf = {'/': {'tools.staticdir.on' : True,'tools.staticdir.dir' : 'media' ,'tools.staticdir.root': botsglobal.ini.get('directories','botspath')}}
servestaticfiles = cherrypy.tree.mount(None, '/media', conf) #None: no cherrypy application (as this only serves static files)
#cherrypy handling of django
servedjango = WSGIHandler() #was: servedjango = AdminMediaHandler(WSGIHandler()) but django does not need the AdminMediaHandler in this setup. is much faster.
#cherrypy uses a dispatcher in order to handle the serving of static files and django.
dispatcher = wsgiserver.WSGIPathInfoDispatcher({'/': servedjango, '/media': servestaticfiles})
botswebserver = wsgiserver.CherryPyWSGIServer(bind_addr=('0.0.0.0', botsglobal.ini.getint('webserver','port',8080)), wsgi_app=dispatcher, server_name=botsglobal.ini.get('webserver','name','bots-webserver'))
botsglobal.logger.info(_(u'Bots web-server started.'))
#handle ssl: cherrypy < 3.2 always uses pyOpenssl. cherrypy >= 3.2 uses python buildin ssl (python >= 2.6 has buildin support for ssl).
ssl_certificate = botsglobal.ini.get('webserver','ssl_certificate',None)
ssl_private_key = botsglobal.ini.get('webserver','ssl_private_key',None)
if ssl_certificate and ssl_private_key:
if cherrypy.__version__ >= '3.2.0':
adapter_class = wsgiserver.get_ssl_adapter_class('builtin')
botswebserver.ssl_adapter = adapter_class(ssl_certificate,ssl_private_key)
else:
#but: pyOpenssl should be there!
botswebserver.ssl_certificate = ssl_certificate
botswebserver.ssl_private_key = ssl_private_key
botsglobal.logger.info(_(u'Bots web-server uses ssl (https).'))
else:
botsglobal.logger.info(_(u'Bots web-server uses plain http (no ssl).'))
#***start the cherrypy webserver.
try:
botswebserver.start()
except KeyboardInterrupt:
botswebserver.stop()
if __name__=='__main__':
start()
| [
[
1,
0,
0.0225,
0.0112,
0,
0.66,
0,
509,
0,
1,
0,
0,
509,
0,
0
],
[
1,
0,
0.0337,
0.0112,
0,
0.66,
0.0769,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.0449,
0.0112,
0,
... | [
"import sys",
"import os",
"import logging",
"from logging.handlers import TimedRotatingFileHandler",
"from django.core.handlers.wsgi import WSGIHandler",
"from django.utils.translation import ugettext as _",
"import cherrypy",
"from cherrypy import wsgiserver",
"import botslib",
"import botsgloba... |
import os
import re
import zipfile
from django.utils.translation import ugettext as _
#bots-modules
import botslib
import botsglobal
from botsconfig import *
@botslib.log_session
def preprocess(routedict,function, status=FILEIN,**argv):
''' for pre- and postprocessing of files.
these are NOT translations; translation involve grammars, mapping scripts etc. think of eg:
- unzipping zipped files.
- convert excel to csv
- password protected files.
Select files from INFILE -> SET_FOR_PROCESSING using criteria
Than the actual processing function is called.
The processing function does: SET_FOR_PROCESSING -> PROCESSING -> FILEIN
If errors occur during processing, no ta are left with status FILEIN !
preprocess is called right after the in-communicatiation
'''
nr_files = 0
preprocessnumber = botslib.getpreprocessnumber()
if not botslib.addinfo(change={'status':preprocessnumber},where={'status':status,'idroute':routedict['idroute'],'fromchannel':routedict['fromchannel']}): #check if there is something to do
return 0
for row in botslib.query(u'''SELECT idta,filename,charset
FROM ta
WHERE idta>%(rootidta)s
AND status=%(status)s
AND statust=%(statust)s
AND idroute=%(idroute)s
AND fromchannel=%(fromchannel)s
''',
{'status':preprocessnumber,'statust':OK,'idroute':routedict['idroute'],'fromchannel':routedict['fromchannel'],'rootidta':botslib.get_minta4query()}):
try:
botsglobal.logmap.debug(u'Start preprocessing "%s" for file "%s".',function.__name__,row['filename'])
ta_set_for_processing = botslib.OldTransaction(row['idta'])
ta_processing = ta_set_for_processing.copyta(status=preprocessnumber+1)
ta_processing.filename=row['filename']
function(ta_from=ta_processing,endstatus=status,routedict=routedict,**argv)
except:
txt=botslib.txtexc()
ta_processing.failure()
ta_processing.update(statust=ERROR,errortext=txt)
else:
botsglobal.logmap.debug(u'OK preprocessing "%s" for file "%s".',function.__name__,row['filename'])
ta_set_for_processing.update(statust=DONE)
ta_processing.update(statust=DONE)
nr_files += 1
return nr_files
header = re.compile('(\s*(ISA))|(\s*(UNA.{6})?\s*(U\s*N\s*B)s*.{1}(.{4}).{1}(.{1}))',re.DOTALL)
# group: 1 2 3 4 5 6 7
def mailbag(ta_from,endstatus,**argv):
''' split 'mailbag' files to separate files each containing one interchange (ISA-IEA or UNA/UNB-UNZ).
handles x12 and edifact; these can be mixed.
recognizes xml files. messagetype 'xml' has a special handling when reading xml-files.
about auto-detect/mailbag:
- in US mailbag is used: one file for all received edi messages...appended in one file. I heard that edifact and x12 can be mixed,
but have actually never seen this.
- bots needs a 'splitter': one edi-file, more interchanges. it is preferred to split these first.
- handle multiple UNA in one file, including different charsets.
- auto-detect: is is x12, edifact, xml, or??
'''
edifile = botslib.readdata(filename=ta_from.filename) #read as binary...
startpos=0
while (1):
found = header.search(edifile[startpos:])
if found is None:
if startpos: #ISA/UNB have been found in file; no new ISA/UNB is found. So all processing is done.
break
#guess if this is an xml file.....
sniffxml = edifile[:25]
sniffxml = sniffxml.lstrip(' \t\n\r\f\v\xFF\xFE\xEF\xBB\xBF\x00') #to find first ' real' data; some char are because of BOM, UTF-16 etc
if sniffxml and sniffxml[0]=='<':
ta_to=ta_from.copyta(status=endstatus,statust=OK,filename=ta_from.filename,editype='xml',messagetype='mailbag') #make transaction for translated message; gets ta_info of ta_frommes
#~ ta_tomes.update(status=STATUSTMP,statust=OK,filename=ta_set_for_processing.filename,editype='xml') #update outmessage transaction with ta_info;
break;
else:
raise botslib.InMessageError(_(u'Found no content in mailbag.'))
elif found.group(1):
editype='x12'
headpos=startpos+ found.start(2)
count=0
for c in edifile[headpos:headpos+120]: #search first 120 characters to find separators
if c in '\r\n' and count!=105:
continue
count +=1
if count==4:
field_sep = c
elif count==106:
record_sep = c
break
#~ foundtrailer = re.search(re.escape(record_sep)+'\s*IEA'+re.escape(field_sep)+'.+?'+re.escape(record_sep),edifile[headpos:],re.DOTALL)
foundtrailer = re.search(re.escape(record_sep)+'\s*I\s*E\s*A\s*'+re.escape(field_sep)+'.+?'+re.escape(record_sep),edifile[headpos:],re.DOTALL)
elif found.group(3):
editype='edifact'
if found.group(4):
field_sep = edifile[startpos + found.start(4) + 4]
record_sep = edifile[startpos + found.start(4) + 8]
headpos=startpos+ found.start(4)
else:
field_sep = '+'
record_sep = "'"
headpos=startpos+ found.start(5)
foundtrailer = re.search(re.escape(record_sep)+'\s*U\s*N\s*Z\s*'+re.escape(field_sep)+'.+?'+re.escape(record_sep),edifile[headpos:],re.DOTALL)
if not foundtrailer:
raise botslib.InMessageError(_(u'Found no valid envelope trailer in mailbag.'))
endpos = headpos+foundtrailer.end()
#so: interchange is from headerpos untill endpos
#~ if header.search(edifile[headpos+25:endpos]): #check if there is another header in the interchange
#~ raise botslib.InMessageError(u'Error in mailbag format: found no valid envelope trailer.')
ta_to = ta_from.copyta(status=endstatus) #make transaction for translated message; gets ta_info of ta_frommes
tofilename = str(ta_to.idta)
tofile = botslib.opendata(tofilename,'wb')
tofile.write(edifile[headpos:endpos])
tofile.close()
ta_to.update(statust=OK,filename=tofilename,editype=editype,messagetype=editype) #update outmessage transaction with ta_info;
startpos=endpos
botsglobal.logger.debug(_(u' File written: "%s".'),tofilename)
def botsunzip(ta_from,endstatus,password=None,pass_non_zip=False,**argv):
''' unzip file;
editype & messagetype are unchanged.
'''
try:
z = zipfile.ZipFile(botslib.abspathdata(filename=ta_from.filename),mode='r')
except zipfile.BadZipfile:
botsglobal.logger.debug(_(u'File is not a zip-file.'))
if pass_non_zip: #just pass the file
botsglobal.logger.debug(_(u'"pass_non_zip" is True, just pass the file.'))
ta_to = ta_from.copyta(status=endstatus,statust=OK)
return
raise botslib.InMessageError(_(u'File is not a zip-file.'))
if password:
z.setpassword(password)
for f in z.infolist():
if f.filename[-1] == '/': #check if this is a dir; if so continue
continue
ta_to = ta_from.copyta(status=endstatus)
tofilename = str(ta_to.idta)
tofile = botslib.opendata(tofilename,'wb')
tofile.write(z.read(f.filename))
tofile.close()
ta_to.update(statust=OK,filename=tofilename) #update outmessage transaction with ta_info;
botsglobal.logger.debug(_(u' File written: "%s".'),tofilename)
def extractpdf(ta_from,endstatus,**argv):
''' Try to extract text content of a PDF file to a csv.
You know this is not a great idea, right? But we'll do the best we can anyway!
Page and line numbers are added to each row.
Columns and rows are based on the x and y coordinates of each text element within tolerance allowed.
Multiple text elements may combine to make one field, some PDFs have every character separated!
You may need to experiment with x_group and y_group values, but defaults seem ok for most files.
Output csv is UTF-8 encoded - The csv module doesn't directly support reading and writing Unicode
If the PDF is just an image, all bets are off. Maybe try OCR, good luck with that!
Mike Griffin 14/12/2011
'''
from pdfminer.pdfinterp import PDFResourceManager, process_pdf
from pdfminer.converter import TextConverter
from pdfminer.layout import LAParams, LTContainer, LTText, LTTextBox
import csv
class CsvConverter(TextConverter):
def __init__(self, *args, **kwargs):
TextConverter.__init__(self, *args, **kwargs)
def receive_layout(self, ltpage):
# recursively get every text element and it's coordinates
def render(item):
if isinstance(item, LTContainer):
for child in item:
render(child)
elif isinstance(item, LTText):
(_,_,x,y) = item.bbox
# group the y values (rows) within group tolerance
for v in yv:
if y > v-y_group and y < v+y_group:
y = v
yv.append(y)
line = lines[int(-y)]
line[x] = item.get_text().encode('utf-8')
from collections import defaultdict
lines = defaultdict(lambda : {})
yv = []
render(ltpage)
lineid = 0
for y in sorted(lines.keys()):
line = lines[y]
lineid += 1
csvdata = [ltpage.pageid,lineid] # first 2 columns are page and line numbers
# group the x values (fields) within group tolerance
p = 0
field_txt=''
for x in sorted(line.keys()):
gap = x - p
if p > 0 and gap > x_group:
csvdata.append(field_txt)
field_txt=''
field_txt += line[x]
p = x
csvdata.append(field_txt)
csvout.writerow(csvdata)
if lineid == 0:
raise botslib.InMessageError(_(u'PDF text extraction failed, it may contain just image(s)?'))
#get some optional parameters
x_group = argv.get('x_group',10) # group text closer than this as one field
y_group = argv.get('y_group',5) # group lines closer than this as one line
password = argv.get('password','')
quotechar = argv.get('quotechar','"')
field_sep = argv.get('field_sep',',')
escape = argv.get('escape','\\')
charset = argv.get('charset','utf-8')
if not escape:
doublequote = True
else:
doublequote = False
try:
pdf_stream = botslib.opendata(ta_from.filename, 'rb')
ta_to = ta_from.copyta(status=endstatus)
tofilename = str(ta_to.idta)
csv_stream = botslib.opendata(tofilename,'wb')
csvout = csv.writer(csv_stream, quotechar=quotechar, delimiter=field_sep, doublequote=doublequote, escapechar=escape)
# Process PDF
rsrcmgr = PDFResourceManager(caching=True)
device = CsvConverter(rsrcmgr, csv_stream, codec=charset)
process_pdf(rsrcmgr, device, pdf_stream, pagenos=set(), password=password, caching=True, check_extractable=True)
device.close()
pdf_stream.close()
csv_stream.close()
ta_to.update(statust=OK,filename=tofilename) #update outmessage transaction with ta_info;
botsglobal.logger.debug(_(u' File written: "%s".'),tofilename)
except:
txt=botslib.txtexc()
botsglobal.logger.error(_(u'PDF extraction failed, may not be a PDF file? Error:\n%s'),txt)
raise botslib.InMessageError(_(u'PDF extraction failed, may not be a PDF file? Error:\n$error'),error=txt)
def extractexcel(ta_from,endstatus,**argv):
''' extract excel file.
editype & messagetype are unchanged.
'''
#***functions used by extractexcel
#-------------------------------------------------------------------------------
def read_xls(infilename):
# Read excel first sheet into a 2-d array
book = xlrd.open_workbook(infilename)
sheet = book.sheet_by_index(0)
formatter = lambda(t,v): format_excelval(book,t,v,False)
xlsdata = []
for row in range(sheet.nrows):
(types, values) = (sheet.row_types(row), sheet.row_values(row))
xlsdata.append(map(formatter, zip(types, values)))
return xlsdata
#-------------------------------------------------------------------------------
def dump_csv(xlsdata, tofilename):
stream = botslib.opendata(tofilename, 'wb')
csvout = csv.writer(stream, quotechar=quotechar, delimiter=field_sep, doublequote=doublequote, escapechar=escape)
csvout.writerows( map(utf8ize, xlsdata) )
stream.close()
#-------------------------------------------------------------------------------
def format_excelval(book, type, value, wanttupledate):
# Clean up the incoming excel data for some data types
returnrow = []
if type == 2:
if value == int(value):
value = int(value)
elif type == 3:
datetuple = xlrd.xldate_as_tuple(value, book.datemode)
value = datetuple if wanttupledate else tupledate_to_isodate(datetuple)
elif type == 5:
value = xlrd.error_text_from_code[value]
return value
#-------------------------------------------------------------------------------
def tupledate_to_isodate(tupledate):
# Turns a gregorian (year, month, day, hour, minute, nearest_second) into a
# standard YYYY-MM-DDTHH:MM:SS ISO date.
(y,m,d, hh,mm,ss) = tupledate
nonzero = lambda n: n!=0
date = "%04d-%02d-%02d" % (y,m,d) if filter(nonzero, (y,m,d)) else ''
time = "T%02d:%02d:%02d" % (hh,mm,ss) if filter(nonzero, (hh,mm,ss)) or not date else ''
return date+time
#-------------------------------------------------------------------------------
def utf8ize(l):
# Make string-like things into utf-8, leave other things alone
return [unicode(s).encode(charset) if hasattr(s,'encode') else s for s in l]
#***end functions used by extractexcel
import xlrd
import csv
#get parameters for csv-format; defaults are as the csv defaults (in grammar.py)
charset = argv.get('charset',"utf-8")
quotechar = argv.get('quotechar',"'")
field_sep = argv.get('field_sep',':')
escape = argv.get('escape','')
if escape:
doublequote = False
else:
doublequote = True
try:
infilename = botslib.abspathdata(ta_from.filename)
xlsdata = read_xls(infilename)
ta_to = ta_from.copyta(status=endstatus)
tofilename = str(ta_to.idta)
dump_csv(xlsdata,tofilename)
ta_to.update(statust=OK,filename=tofilename) #update outmessage transaction with ta_info;
botsglobal.logger.debug(_(u' File written: "%s".'),tofilename)
except:
txt=botslib.txtexc()
botsglobal.logger.error(_(u'Excel extraction failed, may not be an Excel file? Error:\n%s'),txt)
raise botslib.InMessageError(_(u'Excel extraction failed, may not be an Excel file? Error:\n$error'),error=txt)
| [
[
1,
0,
0.0031,
0.0031,
0,
0.66,
0,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.0061,
0.0031,
0,
0.66,
0.0833,
540,
0,
1,
0,
0,
540,
0,
0
],
[
1,
0,
0.0092,
0.0031,
0,
... | [
"import os",
"import re",
"import zipfile",
"from django.utils.translation import ugettext as _",
"import botslib",
"import botsglobal",
"from botsconfig import *",
"def preprocess(routedict,function, status=FILEIN,**argv):\n ''' for pre- and postprocessing of files.\n these are NOT translat... |
from django.utils.translation import ugettext as _
#bots-modules
import botslib
import node
from botsconfig import *
class Message(object):
''' abstract class; represents a edi message.
is subclassed as outmessage or inmessage object.
'''
def __init__(self):
self.recordnumber=0 #segment counter. Is not used for UNT of SE record; some editypes want sequential recordnumbering
def kill(self):
""" explicitly del big attributes....."""
if hasattr(self,'ta_info'): del self.ta_info
if hasattr(self,'root'): del self.root
if hasattr(self,'defmessage'): del self.defmessage
if hasattr(self,'records'): del self.records
if hasattr(self,'rawinput'): del self.rawinput
@staticmethod
def display(records):
'''for debugging lexed records.'''
for record in records:
t = 0
for veld in record:
if t==0:
print '%s (Record-id)'%(veld[VALUE])
else:
if veld[SFIELD]:
print ' %s (sub)'%(veld[VALUE])
else:
print ' %s (veld)'%(veld[VALUE])
t += 1
def change(self,where,change):
''' query tree (self.root) with where; if found replace with change; return True if change, return False if not changed.'''
if self.root.record is None:
raise botslib.MappingRootError(_(u'change($where,$change"): "root" of incoming message is empty; either split messages or use inn.getloop'),where=where,change=change)
return self.root.change(where,change)
def delete(self,*mpaths):
''' query tree (self.root) with mpath; delete if found. return True if deleted, return False if not deleted.'''
if self.root.record is None:
raise botslib.MappingRootError(_(u'delete($mpath): "root" of incoming message is empty; either split messages or use inn.getloop'),mpath=mpaths)
return self.root.delete(*mpaths)
def get(self,*mpaths):
''' query tree (self.root) with mpath; get value (string); get None if not found.'''
if self.root.record is None:
raise botslib.MappingRootError(_(u'get($mpath): "root" of incoming message is empty; either split messages or use inn.getloop'),mpath=mpaths)
return self.root.get(*mpaths)
def getnozero(self,*mpaths):
''' like get, returns None is value is zero (0) or not numeric.
Is sometimes usefull in mapping.'''
if self.root.record is None:
raise botslib.MappingRootError(_(u'get($mpath): "root" of incoming message is empty; either split messages or use inn.getloop'),mpath=mpaths)
return self.root.getnozero(*mpaths)
def getcount(self):
''' count number of nodes in self.root. Number of nodes is number of records.'''
return self.root.getcount()
def getcountoccurrences(self,*mpaths):
''' count number of nodes in self.root. Number of nodes is number of records.'''
count = 0
for value in self.getloop(*mpaths):
count += 1
return count
def getcountsum(self,*mpaths):
''' return the sum for all values found in mpath. Eg total number of ordered quantities.'''
if self.root.record is None:
raise botslib.MappingRootError(_(u'get($mpath): "root" of incoming message is empty; either split messages or use inn.getloop'),mpath=mpaths)
return self.root.getcountsum(*mpaths)
def getloop(self,*mpaths):
''' query tree with mpath; generates all the nodes. Is typically used as: for record in inn.get(mpath):
'''
if self.root.record: #self.root is a real root
for terug in self.root.getloop(*mpaths): #search recursive for rest of mpaths
yield terug
else: #self.root is dummy root
for childnode in self.root.children:
for terug in childnode.getloop(*mpaths): #search recursive for rest of mpaths
yield terug
def put(self,*mpaths,**kwargs):
if self.root.record is None and self.root.children:
raise botslib.MappingRootError(_(u'put($mpath): "root" of outgoing message is empty; use out.putloop'),mpath=mpaths)
return self.root.put(*mpaths,**kwargs)
def putloop(self,*mpaths):
if not self.root.record: #no input yet, and start with a putloop(): dummy root
if len(mpaths) == 1:
self.root.append(node.Node(mpaths[0]))
return self.root.children[-1]
else: #TODO: what if self.root.record is None and len(mpaths) > 1?
raise botslib.MappingRootError(_(u'putloop($mpath): mpath too long???'),mpath=mpaths)
return self.root.putloop(*mpaths)
def sort(self,*mpaths):
if self.root.record is None:
raise botslib.MappingRootError(_(u'get($mpath): "root" of message is empty; either split messages or use inn.getloop'),mpath=mpaths)
self.root.sort(*mpaths)
def normalisetree(self,node):
''' The node tree is check, sorted, fields are formatted etc.
Always use this method before writing output.
'''
self._checktree(node,self.defmessage.structure[0])
#~ node.display()
self._canonicaltree(node,self.defmessage.structure[0])
def _checktree(self,tree,structure):
''' checks tree with table:
- all records should be in table at the right place in hierarchy
- for each record, all fields should be in grammar
This function checks the root of grammar-structure with root of node tree
'''
if tree.record['BOTSID'] == structure[ID]:
#check tree recursively with structure
self._checktreecore(tree,structure)
else:
raise botslib.MessageError(_(u'Grammar "$grammar" has (root)record "$grammarroot"; found "$root".'),root=tree.record['BOTSID'],grammarroot=structure[ID],grammar=self.defmessage.grammarname)
def _checktreecore(self,node,structure):
''' recursive
'''
deletelist=[]
self._checkfields(node.record,structure)
if node.children and not LEVEL in structure:
if self.ta_info['checkunknownentities']:
raise botslib.MessageError(_(u'Record "$record" in message has children, but grammar "$grammar" not. Found "$xx".'),record=node.record['BOTSID'],grammar=self.defmessage.grammarname,xx=node.children[0].record['BOTSID'])
node.children=[]
return
for childnode in node.children: #for every node:
for structure_record in structure[LEVEL]: #search in grammar-records
if childnode.record['BOTSID'] == structure_record[ID]: #if found right structure_record
#check children recursive
self._checktreecore(childnode,structure_record)
break #check next mpathnode
else: #checked all structure_record in grammar, but nothing found
if self.ta_info['checkunknownentities']:
raise botslib.MessageError(_(u'Record "$record" in message not in structure of grammar "$grammar". Whole record: "$content".'),record=childnode.record['BOTSID'],grammar=self.defmessage.grammarname,content=childnode.record)
deletelist.append(childnode)
for child in deletelist:
node.children.remove(child)
def _checkfields(self,record,structure_record):
''' checks for every field in record if field exists in structure_record (from grammar).
'''
deletelist=[]
for field in record.keys(): #all fields in record should exist in structure_record
if field == 'BOTSIDnr':
continue
for grammarfield in structure_record[FIELDS]:
if grammarfield[ISFIELD]: #if field (no composite)
if field == grammarfield[ID]:
break
else: #if composite
for grammarsubfield in grammarfield[SUBFIELDS]: #loop subfields
if field == grammarsubfield[ID]:
break
else:
continue
break
else:
if self.ta_info['checkunknownentities']:
raise botslib.MessageError(_(u'Record: "$mpath" field "$field" does not exist.'),field=field,mpath=structure_record[MPATH])
deletelist.append(field)
for field in deletelist:
del record[field]
def _canonicaltree(self,node,structure,headerrecordnumber=0):
''' For nodes: check min and max occurence; sort the records conform grammar
'''
sortednodelist = []
self._canonicalfields(node.record,structure,headerrecordnumber) #handle fields of this record
if LEVEL in structure:
for structure_record in structure[LEVEL]: #for structure_record of this level in grammar
count = 0 #count number of occurences of record
for childnode in node.children: #for every node in mpathtree; SPEED: delete nodes from list when found
if childnode.record['BOTSID'] != structure_record[ID] or childnode.record['BOTSIDnr'] != structure_record[BOTSIDnr]: #if it is not the right NODE":
continue
count += 1
self._canonicaltree(childnode,structure_record,self.recordnumber) #use rest of index in deeper level
sortednodelist.append(childnode)
if structure_record[MIN] > count:
raise botslib.MessageError(_(u'Record "$mpath" mandatory but not present.'),mpath=structure_record[MPATH])
if structure_record[MAX] < count:
raise botslib.MessageError(_(u'Record "$mpath" occurs to often ($count times).'),mpath=structure_record[MPATH],count=count)
node.children=sortednodelist
if hasattr(self,'get_queries_from_edi'):
self.get_queries_from_edi(node,structure)
def _canonicalfields(self,noderecord,structure_record,headerrecordnumber):
''' For fields: check M/C; format the fields. Fields are not sorted (a dict can not be sorted).
Fields are never added.
'''
for grammarfield in structure_record[FIELDS]:
if grammarfield[ISFIELD]: #if field (no composite)
value = noderecord.get(grammarfield[ID])
#~ print '(message)field',noderecord,grammarfield
if not value:
#~ print 'field',grammarfield[ID], 'has no value'
if grammarfield[MANDATORY] == 'M':
raise botslib.MessageError(_(u'Record "$mpath" field "$field" is mandatory.'),mpath=structure_record[MPATH],field=grammarfield[ID])
continue
#~ print 'field',grammarfield[ID], 'value', value
noderecord[grammarfield[ID]] = self._formatfield(value,grammarfield,structure_record)
else: #if composite
for grammarsubfield in grammarfield[SUBFIELDS]: #loop subfields to see if data in composite
if noderecord.get(grammarsubfield[ID]):
break #composite has data.
else: #composite has no data
if grammarfield[MANDATORY]=='M':
raise botslib.MessageError(_(u'Record "$mpath" composite "$field" is mandatory.'),mpath=structure_record[MPATH],field=grammarfield[ID])
continue
#there is data in the composite!
for grammarsubfield in grammarfield[SUBFIELDS]: #loop subfields
value = noderecord.get(grammarsubfield[ID])
if not value:
if grammarsubfield[MANDATORY]=='M':
raise botslib.MessageError(_(u'Record "$mpath" subfield "$field" is mandatory: "$record".'),mpath=structure_record[MPATH],field=grammarsubfield[ID],record=noderecord)
continue
noderecord[grammarsubfield[ID]] = self._formatfield(value,grammarsubfield,structure_record)
| [
[
1,
0,
0.0043,
0.0043,
0,
0.66,
0,
389,
0,
1,
0,
0,
389,
0,
0
],
[
1,
0,
0.013,
0.0043,
0,
0.66,
0.25,
484,
0,
1,
0,
0,
484,
0,
0
],
[
1,
0,
0.0173,
0.0043,
0,
0.6... | [
"from django.utils.translation import ugettext as _",
"import botslib",
"import node",
"from botsconfig import *",
"class Message(object):\n ''' abstract class; represents a edi message.\n is subclassed as outmessage or inmessage object.\n '''\n def __init__(self):\n self.recordnumber... |
import decimal
import copy
from django.utils.translation import ugettext as _
import botslib
import botsglobal
from botsconfig import *
comparekey=None
def nodecompare(node):
global comparekey
return node.get(*comparekey)
class Node(object):
''' Node class for building trees in inmessage and outmessage
'''
def __init__(self,record=None,BOTSIDnr=None):
self.record = record #record is a dict with fields
if self.record is not None:
if BOTSIDnr is None:
if not 'BOTSIDnr' in self.record:
self.record['BOTSIDnr'] = '1'
else:
self.record['BOTSIDnr'] = BOTSIDnr
self.children = []
self._queries = None
def getquerie(self):
''' get queries of a node '''
if self._queries:
return self._queries
else:
return {}
def updatequerie(self,updatequeries):
''' set/update queries of a node with dict queries.
'''
if updatequeries:
if self._queries is None:
self._queries = updatequeries.copy()
else:
self._queries.update(updatequeries)
queries = property(getquerie,updatequerie)
def processqueries(self,queries,maxlevel):
''' copies values for queries 'down the tree' untill right level.
So when edi file is split up in messages,
querie-info from higher levels is copied to message.'''
self.queries = queries
if self.record and not maxlevel:
return
for child in self.children:
child.processqueries(self.queries,maxlevel-1)
def append(self,node):
'''append child to node'''
self.children += [node]
def display(self,level=0):
'''for debugging
usage: in mapping script: inn.root.display()
'''
if level==0:
print 'displaying all nodes in node tree:'
print ' '*level,self.record
for child in self.children:
child.display(level+1)
def displayqueries(self,level=0):
'''for debugging
usage: in mapping script: inn.root.displayqueries()
'''
if level==0:
print 'displaying queries for nodes in tree'
print ' '*level,'node:',
if self.record:
print self.record['BOTSID'],
else:
print 'None',
print '',
print self.queries
for child in self.children:
child.displayqueries(level+1)
def enhancedget(self,mpaths,replace=False):
''' to get QUERIES or SUBTRANSLATION while parsing edifile;
mpath can be
- dict: do get(mpath); can not be a mpath with multiple
- tuple: do get(mpath); can be multiple dicts in mapth
- list: for each listmembr do a get(); append the results
Used by:
- QUERIES
- SUBTRANSLATION
'''
if isinstance(mpaths,dict):
return self.get(mpaths)
elif isinstance(mpaths,tuple):
return self.get(*mpaths)
elif isinstance(mpaths,list):
collect = u''
for mpath in mpaths:
found = self.get(mpath)
if found:
if replace:
found = found.replace('.','_')
collect += found
return collect
else:
raise botslib.MappingFormatError(_(u'must be dict, list or tuple: enhancedget($mpath)'),mpath=mpaths)
def change(self,where,change):
''' '''
#find first matching node using 'where'. Do not look at other matching nodes (is a feature)
#prohibit change of BOTSID?
mpaths = where #diff from getcore
if not mpaths or not isinstance(mpaths,tuple):
raise botslib.MappingFormatError(_(u'parameter "where" must be tuple: change(where=$where,change=$change)'),where=where,change=change)
#check: 'BOTSID' is required
#check: all values should be strings
for part in mpaths:
if not isinstance(part,dict):
raise botslib.MappingFormatError(_(u'parameter "where" must be dicts in a tuple: change(where=$where,change=$change)'),where=where,change=change)
if not 'BOTSID' in part:
raise botslib.MappingFormatError(_(u'section without "BOTSID": change(where=$where,change=$change)'),where=where,change=change)
for key,value in part.iteritems():
if not isinstance(key,basestring):
raise botslib.MappingFormatError(_(u'keys must be strings: change(where=$where,change=$change)'),where=where,change=change)
if not isinstance(value,basestring):
raise botslib.MappingFormatError(_(u'values must be strings: change(where=$where,change=$change)'),where=where,change=change)
#check change parameter
if not change or not isinstance(change,dict):
raise botslib.MappingFormatError(_(u'parameter "change" must be dict: change(where=$where,change=$change)'),where=where,change=change)
#remove 'BOTSID' from change.
#check: all values should be strings
change.pop('BOTSID','nep')
for key,value in change.iteritems():
if not isinstance(key,basestring):
raise botslib.MappingFormatError(_(u'keys in "change" must be strings: change(where=$where,change=$change)'),where=where,change=change)
if not isinstance(value,basestring) and value is not None:
raise botslib.MappingFormatError(_(u'values in "change" must be strings or "None": change(where=$where,change=$change)'),where=where,change=change)
#go get it!
terug = self._changecore(where,change)
botsglobal.logmap.debug(u'"%s" for change(where=%s,change=%s)',terug,str(where),str(change))
return terug
def _changecore(self,where,change): #diff from getcore
mpaths = where #diff from getcore
mpath = mpaths[0]
if self.record['BOTSID'] == mpath['BOTSID']: #is record-id equal to mpath-botsid? Not strictly needed, but gives much beter performance...
for part in mpath: #check all mpath-parts;
if part in self.record:
if mpath[part] == self.record[part]:
continue
else: #content of record-field and mpath-part do not match
return False
else: #not all parts of mpath are in record, so no match:
return False
else: #all parts are matched, and OK.
if len(mpaths) == 1: #mpath is exhausted; so we are there!!! #replace values with values in 'change'; delete if None
for key,value in change.iteritems():
if value is None:
self.record.pop(key,'dummy for pop')
else:
self.record[key]=value
return True
else:
for childnode in self.children:
terug = childnode._changecore(mpaths[1:],change) #search recursive for rest of mpaths #diff from getcore
if terug:
return terug
else: #no child has given a valid return
return False
else: #record-id is not equal to mpath-botsid, so no match
return False
def delete(self,*mpaths):
''' delete the last record of mpath if found (first: find/identify, than delete. '''
if not mpaths or not isinstance(mpaths,tuple):
raise botslib.MappingFormatError(_(u'must be dicts in tuple: delete($mpath)'),mpath=mpaths)
if len(mpaths) ==1:
raise botslib.MappingFormatError(_(u'only one dict: not allowed. Use different solution: delete($mpath)'),mpath=mpaths)
#check: None only allowed in last section of Mpath (check firsts sections)
#check: 'BOTSID' is required
#check: all values should be strings
for part in mpaths:
if not isinstance(part,dict):
raise botslib.MappingFormatError(_(u'must be dicts in tuple: delete($mpath)'),mpath=mpaths)
if not 'BOTSID' in part:
raise botslib.MappingFormatError(_(u'section without "BOTSID": delete($mpath)'),mpath=mpaths)
for key,value in part.iteritems():
if not isinstance(key,basestring):
raise botslib.MappingFormatError(_(u'keys must be strings: delete($mpath)'),mpath=mpaths)
if not isinstance(value,basestring):
raise botslib.MappingFormatError(_(u'values must be strings: delete($mpath)'),mpath=mpaths)
#go get it!
terug = bool(self._deletecore(*mpaths))
botsglobal.logmap.debug(u'"%s" for delete%s',terug,str(mpaths))
return terug #return False if not removed, return True if removed
def _deletecore(self,*mpaths):
mpath = mpaths[0]
if self.record['BOTSID'] == mpath['BOTSID']: #is record-id equal to mpath-botsid? Not strictly needed, but gives much beter performance...
for part in mpath: #check all mpath-parts;
if part in self.record:
if mpath[part] == self.record[part]:
continue
else: #content of record-field and mpath-part do not match
return 0
else: #not all parts of mpath are in record, so no match:
return 0
else: #all parts are matched, and OK.
if len(mpaths) == 1: #mpath is exhausted; so we are there!!!
return 2
else:
for i, childnode in enumerate(self.children):
terug = childnode._deletecore(*mpaths[1:]) #search recursive for rest of mpaths
if terug == 2: #indicates node should be removed
del self.children[i] #remove node
return 1 #this indicates: deleted successfull, do not remove anymore (no removal of parents)
if terug:
return terug
else: #no child has given a valid return
return 0
else: #record-id is not equal to mpath-botsid, so no match
return 0
def get(self,*mpaths):
''' get value of a field in a record from a edi-message
mpath is xpath-alike query to identify the record/field
function returns 1 value; return None if nothing found.
if more than one value can be found: first one is returned
starts searching in current node, then deeper
'''
if not mpaths or not isinstance(mpaths,tuple):
raise botslib.MappingFormatError(_(u'must be dicts in tuple: get($mpath)'),mpath=mpaths)
for part in mpaths:
if not isinstance(part,dict):
raise botslib.MappingFormatError(_(u'must be dicts in tuple: get($mpath)'),mpath=mpaths)
#check: None only allowed in last section of Mpath (check firsts sections)
#check: 'BOTSID' is required
#check: all values should be strings
for part in mpaths[:-1]:
if not 'BOTSID' in part:
raise botslib.MappingFormatError(_(u'section without "BOTSID": get($mpath)'),mpath=mpaths)
if not 'BOTSIDnr' in part:
part['BOTSIDnr'] = '1'
for key,value in part.iteritems():
if not isinstance(key,basestring):
raise botslib.MappingFormatError(_(u'keys must be strings: get($mpath)'),mpath=mpaths)
if not isinstance(value,basestring):
raise botslib.MappingFormatError(_(u'values must be strings: get($mpath)'),mpath=mpaths)
#check: None only allowed in last section of Mpath (check last section)
#check: 'BOTSID' is required
#check: all values should be strings
if not 'BOTSID' in mpaths[-1]:
raise botslib.MappingFormatError(_(u'last section without "BOTSID": get($mpath)'),mpath=mpaths)
if not 'BOTSIDnr' in mpaths[-1]:
mpaths[-1]['BOTSIDnr'] = '1'
count = 0
for key,value in mpaths[-1].iteritems():
if not isinstance(key,basestring):
raise botslib.MappingFormatError(_(u'keys must be strings in last section: get($mpath)'),mpath=mpaths)
if value is None:
count += 1
elif not isinstance(value,basestring):
raise botslib.MappingFormatError(_(u'values must be strings (or none) in last section: get($mpath)'),mpath=mpaths)
if count > 1:
raise botslib.MappingFormatError(_(u'max one "None" in last section: get($mpath)'),mpath=mpaths)
#go get it!
terug = self._getcore(*mpaths)
botsglobal.logmap.debug(u'"%s" for get%s',terug,str(mpaths))
return terug
def _getcore(self,*mpaths):
mpath = mpaths[0]
terug = 1 #if there is no 'None' in the mpath, but everything is matched, 1 is returned (like True)
if self.record['BOTSID'] == mpath['BOTSID']: #is record-id equal to mpath-botsid? Not strictly needed, but gives much beter performance...
for part in mpath: #check all mpath-parts;
if part in self.record:
if mpath[part] is None: #this is the field we are looking for; but not all matches have been made so remember value
terug = self.record[part][:] #copy to avoid memory problems
else: #compare values of mpath-part and recordfield
if mpath[part] == self.record[part]:
continue
else: #content of record-field and mpath-part do not match
return None
else: #not all parts of mpath are in record, so no match:
return None
else: #all parts are matched, and OK.
if len(mpaths) == 1: #mpath is exhausted; so we are there!!!
return terug
else:
for childnode in self.children:
terug = childnode._getcore(*mpaths[1:]) #search recursive for rest of mpaths
if terug:
return terug
else: #no child has given a valid return
return None
else: #record-id is not equal to mpath-botsid, so no match
return None
def getcount(self):
'''count the number of nodes/records uner the node/in whole tree'''
count = 0
if self.record:
count += 1 #count itself
for child in self.children:
count += child.getcount()
return count
def getcountoccurrences(self,*mpaths):
''' count number of occurences of mpath. Eg count nr of LIN's'''
count = 0
for value in self.getloop(*mpaths):
count += 1
return count
def getcountsum(self,*mpaths):
''' return the sum for all values found in mpath. Eg total number of ordered quantities.'''
count = decimal.Decimal(0)
mpathscopy = copy.deepcopy(mpaths)
for key,value in mpaths[-1].items():
if value is None:
del mpathscopy[-1][key]
for i in self.getloop(*mpathscopy):
value = i.get(mpaths[-1])
if value:
count += decimal.Decimal(value)
return unicode(count)
def getloop(self,*mpaths):
''' generator. Returns one by one the nodes as indicated in mpath
'''
#check validity mpaths
if not mpaths or not isinstance(mpaths,tuple):
raise botslib.MappingFormatError(_(u'must be dicts in tuple: getloop($mpath)'),mpath=mpaths)
for part in mpaths:
if not isinstance(part,dict):
raise botslib.MappingFormatError(_(u'must be dicts in tuple: getloop($mpath)'),mpath=mpaths)
if not 'BOTSID' in part:
raise botslib.MappingFormatError(_(u'section without "BOTSID": getloop($mpath)'),mpath=mpaths)
if not 'BOTSIDnr' in part:
part['BOTSIDnr'] = '1'
for key,value in part.iteritems():
if not isinstance(key,basestring):
raise botslib.MappingFormatError(_(u'keys must be strings: getloop($mpath)'),mpath=mpaths)
if not isinstance(value,basestring):
raise botslib.MappingFormatError(_(u'values must be strings: getloop($mpath)'),mpath=mpaths)
for terug in self._getloopcore(*mpaths):
botsglobal.logmap.debug(u'getloop %s returns "%s".',mpaths,terug.record)
yield terug
def _getloopcore(self,*mpaths):
''' recursive part of getloop()
'''
mpath = mpaths[0]
if self.record['BOTSID'] == mpath['BOTSID']: #found right record
for part in mpath:
if not part in self.record or mpath[part] != self.record[part]:
return
else: #all parts are checked, and OK.
if len(mpaths) == 1:
yield self
else:
for childnode in self.children:
for terug in childnode._getloopcore(*mpaths[1:]): #search recursive for rest of mpaths
yield terug
return
def getnozero(self,*mpaths):
terug = self.get(*mpaths)
try:
value = float(terug)
except TypeError:
return None
except ValueError:
return None
if value == 0:
return None
return terug
def put(self,*mpaths,**kwargs):
if not mpaths or not isinstance(mpaths,tuple):
raise botslib.MappingFormatError(_(u'must be dicts in tuple: put($mpath)'),mpath=mpaths)
for part in mpaths:
if not isinstance(part,dict):
raise botslib.MappingFormatError(_(u'must be dicts in tuple: put($mpath)'),mpath=mpaths)
#check: 'BOTSID' is required
#check: all values should be strings
for part in mpaths:
if not 'BOTSID' in part:
raise botslib.MappingFormatError(_(u'section without "BOTSID": put($mpath)'),mpath=mpaths)
if not 'BOTSIDnr' in part:
part['BOTSIDnr'] = '1'
for key,value in part.iteritems():
if value is None:
botsglobal.logmap.debug(u'"None" in put %s.',str(mpaths))
return False
if not isinstance(key,basestring):
raise botslib.MappingFormatError(_(u'keys must be strings: put($mpath)'),mpath=mpaths)
if kwargs and 'strip' in kwargs and kwargs['strip'] == False:
part[key] = unicode(value) #used for fixed ISA header of x12
else:
part[key] = unicode(value).strip() #leading and trailing spaces are stripped from the values
if self.sameoccurence(mpaths[0]):
self._putcore(*mpaths[1:])
else:
raise botslib.MappingRootError(_(u'error in root put "$mpath".'),mpath=mpaths[0])
botsglobal.logmap.debug(u'"True" for put %s',str(mpaths))
return True
def _putcore(self,*mpaths):
if not mpaths: #newmpath is exhausted, stop searching.
return True
for node in self.children:
if node.record['BOTSID']==mpaths[0]['BOTSID'] and node.sameoccurence(mpaths[0]):
node._putcore(*mpaths[1:])
return
else: #is not present in children, so append
self.append(Node(mpaths[0]))
self.children[-1]._putcore(*mpaths[1:])
def putloop(self,*mpaths):
if not mpaths or not isinstance(mpaths,tuple):
raise botslib.MappingFormatError(_(u'must be dicts in tuple: putloop($mpath)'),mpath=mpaths)
for part in mpaths:
if not isinstance(part,dict):
raise botslib.MappingFormatError(_(u'must be dicts in tuple: putloop($mpath)'),mpath=mpaths)
#check: 'BOTSID' is required
#check: all values should be strings
for part in mpaths:
if not 'BOTSID' in part:
raise botslib.MappingFormatError(_(u'section without "BOTSID": putloop($mpath)'),mpath=mpaths)
if not 'BOTSIDnr' in part:
part['BOTSIDnr'] = '1'
for key,value in part.iteritems():
if not isinstance(key,basestring):
raise botslib.MappingFormatError(_(u'keys must be strings: putloop($mpath)'),mpath=mpaths)
if value is None:
return False
#~ if not isinstance(value,basestring):
#~ raise botslib.MappingFormatError(_(u'values must be strings in putloop%s'%(str(mpaths)))
part[key] = unicode(value).strip()
if self.sameoccurence(mpaths[0]):
if len(mpaths)==1:
return self
return self._putloopcore(*mpaths[1:])
else:
raise botslib.MappingRootError(_(u'error in root putloop "$mpath".'),mpath=mpaths[0])
def _putloopcore(self,*mpaths):
if len(mpaths) ==1: #end of mpath reached; always make new child-node
self.append(Node(mpaths[0]))
return self.children[-1]
for node in self.children: #if first part of mpaths exists already in children go recursive
if node.record['BOTSID']==mpaths[0]['BOTSID'] and node.record['BOTSIDnr']==mpaths[0]['BOTSIDnr'] and node.sameoccurence(mpaths[0]):
return node._putloopcore(*mpaths[1:])
else: #is not present in children, so append a child, and go recursive
self.append(Node(mpaths[0]))
return self.children[-1]._putloopcore(*mpaths[1:])
def sameoccurence(self, mpath):
for key,value in self.record.iteritems():
if (key in mpath) and (mpath[key]!=value):
return False
else: #all equal keys have same values, thus both are 'equal'.
self.record.update(mpath)
return True
def sort(self,*mpaths):
global comparekey
comparekey = mpaths[1:]
self.children.sort(key=nodecompare)
| [
[
1,
0,
0.0021,
0.0021,
0,
0.66,
0,
349,
0,
1,
0,
0,
349,
0,
0
],
[
1,
0,
0.0042,
0.0021,
0,
0.66,
0.125,
739,
0,
1,
0,
0,
739,
0,
0
],
[
1,
0,
0.0063,
0.0021,
0,
0... | [
"import decimal",
"import copy",
"from django.utils.translation import ugettext as _",
"import botslib",
"import botsglobal",
"from botsconfig import *",
"comparekey=None",
"def nodecompare(node):\n global comparekey\n return node.get(*comparekey)",
" return node.get(*comparekey)",
"class... |
import sys
import os
import encodings
import codecs
import ConfigParser
import logging, logging.handlers
from django.utils.translation import ugettext as _
#Bots-modules
from botsconfig import *
import botsglobal
import botslib
class BotsConfig(ConfigParser.SafeConfigParser):
''' See SafeConfigParser.
'''
def get(self,section, option, default=''):
try:
return ConfigParser.SafeConfigParser.get(self,section,option)
except: #if there is no such section,option
if default == '':
raise botslib.BotsError(_(u'No entry "$entry" in section "$section" in "bots.ini".'),entry=option,section=section)
return default
def getint(self,section, option, default):
try:
return ConfigParser.SafeConfigParser.getint(self,section,option)
except:
return default
def getboolean(self,section, option, default):
try:
return ConfigParser.SafeConfigParser.getboolean(self,section,option)
except:
return default
def generalinit(configdir):
#Set Configdir
#Configdir MUST be importable. So configdir is relative to PYTHONPATH. Try several options for this import.
try: #configdir outside bots-directory: import configdir.settings.py
importnameforsettings = os.path.normpath(os.path.join(configdir,'settings')).replace(os.sep,'.')
settings = botslib.botsbaseimport(importnameforsettings)
except ImportError: #configdir is in bots directory: import bots.configdir.settings.py
try:
importnameforsettings = os.path.normpath(os.path.join('bots',configdir,'settings')).replace(os.sep,'.')
settings = botslib.botsbaseimport(importnameforsettings)
except ImportError: #set pythonpath to config directory first
if not os.path.exists(configdir): #check if configdir exists.
raise botslib.BotsError(_(u'In initilisation: path to configuration does not exists: "$path".'),path=configdir)
addtopythonpath = os.path.abspath(os.path.dirname(configdir))
#~ print 'add pythonpath for usersys',addtopythonpath
moduletoimport = os.path.basename(configdir)
sys.path.append(addtopythonpath)
importnameforsettings = os.path.normpath(os.path.join(moduletoimport,'settings')).replace(os.sep,'.')
settings = botslib.botsbaseimport(importnameforsettings)
#settings are accessed using botsglobal
botsglobal.settings = settings
#Find pathname configdir using imported settings.py.
configdirectory = os.path.abspath(os.path.dirname(settings.__file__))
#Read configuration-file bots.ini.
botsglobal.ini = BotsConfig()
cfgfile = open(os.path.join(configdirectory,'bots.ini'), 'r')
botsglobal.ini.readfp(cfgfile)
cfgfile.close()
#Set usersys.
#usersys MUST be importable. So usersys is relative to PYTHONPATH. Try several options for this import.
usersys = botsglobal.ini.get('directories','usersys','usersys')
try: #usersys outside bots-directory: import usersys
importnameforusersys = os.path.normpath(usersys).replace(os.sep,'.')
importedusersys = botslib.botsbaseimport(importnameforusersys)
except ImportError: #usersys is in bots directory: import bots.usersys
try:
importnameforusersys = os.path.normpath(os.path.join('bots',usersys)).replace(os.sep,'.')
importedusersys = botslib.botsbaseimport(importnameforusersys)
except ImportError: #set pythonpath to usersys directory first
if not os.path.exists(usersys): #check if configdir exists.
raise botslib.BotsError(_(u'In initilisation: path to configuration does not exists: "$path".'),path=usersys)
addtopythonpath = os.path.abspath(os.path.dirname(usersys)) #????
moduletoimport = os.path.basename(usersys)
#~ print 'add pythonpath for usersys',addtopythonpath
sys.path.append(addtopythonpath)
importnameforusersys = os.path.normpath(usersys).replace(os.sep,'.')
importedusersys = botslib.botsbaseimport(importnameforusersys)
#set directory settings in bots.ini************************************************************
botsglobal.ini.set('directories','botspath',botsglobal.settings.PROJECT_PATH)
botsglobal.ini.set('directories','config',configdirectory)
botsglobal.ini.set('directories','usersysabs',os.path.abspath(os.path.dirname(importedusersys.__file__))) #???Find pathname usersys using imported usersys
botsglobal.usersysimportpath = importnameforusersys
botssys = botsglobal.ini.get('directories','botssys','botssys')
botsglobal.ini.set('directories','botssys',botslib.join(botssys))
botsglobal.ini.set('directories','data',botslib.join(botssys,'data'))
botslib.dirshouldbethere(botsglobal.ini.get('directories','data'))
botsglobal.ini.set('directories','logging',botslib.join(botssys,'logging'))
botslib.dirshouldbethere(botsglobal.ini.get('directories','logging'))
botsglobal.ini.set('directories','templates',botslib.join(botsglobal.ini.get('directories','usersysabs'),'grammars/template/templates'))
botsglobal.ini.set('directories','templateshtml',botslib.join(botsglobal.ini.get('directories','usersysabs'),'grammars/templatehtml/templates'))
#set values in setting.py**********************************************************************
if botsglobal.ini.get('webserver','environment','development') == 'development': #values in bots.ini are also used in setting up cherrypy
settings.DEBUG = True
else:
settings.DEBUG = False
settings.TEMPLATE_DEBUG = settings.DEBUG
#set paths in settings.py:
#~ settings.FILE_UPLOAD_TEMP_DIR = os.path.join(settings.PROJECT_PATH, 'botssys/pluginsuploaded')
#start initializing bots charsets
initbotscharsets()
#set environment for django to start***************************************************************************************************
os.environ['DJANGO_SETTINGS_MODULE'] = importnameforsettings
initbotscharsets()
botslib.settimeout(botsglobal.ini.getint('settings','globaltimeout',10)) #
def initbotscharsets():
'''set up right charset handling for specific charsets (UNOA, UNOB, UNOC, etc).'''
codecs.register(codec_search_function) #tell python how to search a codec defined by bots. These are the codecs in usersys/charset
botsglobal.botsreplacechar = unicode(botsglobal.ini.get('settings','botsreplacechar',u' '))
codecs.register_error('botsreplace', botscharsetreplace) #define the ' botsreplace' error handling for codecs/charsets.
for key, value in botsglobal.ini.items('charsets'): #set aliases for charsets in bots.ini
encodings.aliases.aliases[key]=value
def codec_search_function(encoding):
try:
module,filename = botslib.botsimport('charsets',encoding)
except:
return None
else:
if hasattr(module,'getregentry'):
return module.getregentry()
else:
return None
def botscharsetreplace(info):
'''replaces an char outside a charset by a user defined char. Useful eg for fixed records: recordlength does not change. Do not know if this works for eg UTF-8...'''
return (botsglobal.botsreplacechar, info.start+1)
def initenginelogging():
convertini2logger={'DEBUG':logging.DEBUG,'INFO':logging.INFO,'WARNING':logging.WARNING,'ERROR':logging.ERROR,'CRITICAL':logging.CRITICAL}
# create main logger 'bots'
botsglobal.logger = logging.getLogger('bots')
botsglobal.logger.setLevel(logging.DEBUG)
# create rotating file handler
log_file = botslib.join(botsglobal.ini.get('directories','logging'),'engine.log')
rotatingfile = logging.handlers.RotatingFileHandler(log_file,backupCount=botsglobal.ini.getint('settings','log_file_number',10))
rotatingfile.setLevel(convertini2logger[botsglobal.ini.get('settings','log_file_level','ERROR')])
fileformat = logging.Formatter("%(asctime)s %(levelname)-8s %(name)s : %(message)s",'%Y%m%d %H:%M:%S')
rotatingfile.setFormatter(fileformat)
rotatingfile.doRollover() #each run a new log file is used; old one is rotated
# add rotating file handler to main logger
botsglobal.logger.addHandler(rotatingfile)
#logger for trace of mapping; tried to use filters but got this not to work.....
botsglobal.logmap = logging.getLogger('bots.map')
if not botsglobal.ini.getboolean('settings','mappingdebug',False):
botsglobal.logmap.setLevel(logging.CRITICAL)
#logger for reading edifile. is now used only very limited (1 place); is done with 'if'
#~ botsglobal.ini.getboolean('settings','readrecorddebug',False)
# create console handler
if botsglobal.ini.getboolean('settings','log_console',True):
console = logging.StreamHandler()
console.setLevel(logging.INFO)
consuleformat = logging.Formatter("%(levelname)-8s %(message)s")
console.setFormatter(consuleformat) # add formatter to console
botsglobal.logger.addHandler(console) # add console to logger
def connect():
#different connect code per tyoe of database
if botsglobal.settings.DATABASE_ENGINE == 'sqlite3':
#sqlite has some more fiddling; in separate file. Mainly because of some other method of parameter passing.
if not os.path.isfile(botsglobal.settings.DATABASE_NAME):
raise botslib.PanicError(_(u'Could not find database file for SQLite'))
import botssqlite
botsglobal.db = botssqlite.connect(database = botsglobal.settings.DATABASE_NAME)
elif botsglobal.settings.DATABASE_ENGINE == 'mysql':
import MySQLdb
from MySQLdb import cursors
botsglobal.db = MySQLdb.connect(host=botsglobal.settings.DATABASE_HOST,
port=int(botsglobal.settings.DATABASE_PORT),
db=botsglobal.settings.DATABASE_NAME,
user=botsglobal.settings.DATABASE_USER,
passwd=botsglobal.settings.DATABASE_PASSWORD,
cursorclass=cursors.DictCursor,
**botsglobal.settings.DATABASE_OPTIONS)
elif botsglobal.settings.DATABASE_ENGINE == 'postgresql_psycopg2':
import psycopg2
import psycopg2.extensions
import psycopg2.extras
psycopg2.extensions.register_type(psycopg2.extensions.UNICODE)
botsglobal.db = psycopg2.connect( 'host=%s dbname=%s user=%s password=%s'%( botsglobal.settings.DATABASE_HOST,
botsglobal.settings.DATABASE_NAME,
botsglobal.settings.DATABASE_USER,
botsglobal.settings.DATABASE_PASSWORD),connection_factory=psycopg2.extras.DictConnection)
botsglobal.db.set_client_encoding('UNICODE')
| [
[
1,
0,
0.0051,
0.0051,
0,
0.66,
0,
509,
0,
1,
0,
0,
509,
0,
0
],
[
1,
0,
0.0102,
0.0051,
0,
0.66,
0.0625,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.0153,
0.0051,
0,
... | [
"import sys",
"import os",
"import encodings",
"import codecs",
"import ConfigParser",
"import logging, logging.handlers",
"from django.utils.translation import ugettext as _",
"from botsconfig import *",
"import botsglobal",
"import botslib",
"class BotsConfig(ConfigParser.SafeConfigParser):\n ... |
# Django settings for bots project.
import os
import bots
#*******settings for bots error reports**********************************
MANAGERS = ( #bots will send error reports to the MANAGERS
('name_manager', 'manager@domain.org'),
)
#~ EMAIL_HOST = 'smtp.gmail.com' #Default: 'localhost'
#~ EMAIL_PORT = '587' #Default: 25
#~ EMAIL_USE_TLS = True #Default: False
#~ EMAIL_HOST_USER = 'user@gmail.com' #Default: ''. Username to use for the SMTP server defined in EMAIL_HOST. If empty, Django won't attempt authentication.
#~ EMAIL_HOST_PASSWORD = '' #Default: ''. PASSWORD to use for the SMTP server defined in EMAIL_HOST. If empty, Django won't attempt authentication.
#~ SERVER_EMAIL = 'user@gmail.com' #Sender of bots error reports. Default: 'root@localhost'
#~ EMAIL_SUBJECT_PREFIX = '' #This is prepended on email subject.
#*********path settings*************************advised is not to change these values!!
PROJECT_PATH = os.path.abspath(os.path.dirname(bots.__file__))
# Absolute path to the directory that holds media.
# Example: "/home/media/media.lawrence.com/"
MEDIA_ROOT = PROJECT_PATH + '/'
# URL that handles the media served from MEDIA_ROOT. Make sure to use a
# trailing slash if there is a path component (optional in other cases).
# Examples: "http://media.lawrence.com", "http://example.com/media/"
MEDIA_URL = ''
# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
# trailing slash.
# Examples: "http://foo.com/media/", "/media/".
ADMIN_MEDIA_PREFIX = '/media/'
#~ FILE_UPLOAD_TEMP_DIR = os.path.join(PROJECT_PATH, 'botssys/pluginsuploaded') #set in bots.ini
ROOT_URLCONF = 'bots.urls'
LOGIN_URL = '/login/'
LOGIN_REDIRECT_URL = '/'
LOGOUT_URL = '/logout/'
#~ LOGOUT_REDIRECT_URL = #??not such parameter; is set in urls
TEMPLATE_DIRS = (
os.path.join(PROJECT_PATH, 'templates'),
# Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
# Always use forward slashes, even on Windows.
# Don't forget to use absolute paths, not relative paths.
)
#*********database settings*************************
#django-admin syncdb --pythonpath='/home/hje/botsup' --settings='bots.config.settings'
#SQLITE:
DATABASE_ENGINE = 'sqlite3' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
DATABASE_NAME = os.path.join(PROJECT_PATH, 'botssys/sqlitedb/botsdb') #path to database; if relative path: interpreted relative to bots root directory
DATABASE_USER = ''
DATABASE_PASSWORD = ''
DATABASE_HOST = ''
DATABASE_PORT = ''
DATABASE_OPTIONS = {}
#~ #MySQL:
#~ DATABASE_ENGINE = 'mysql'
#~ DATABASE_NAME = 'botsdb'
#~ DATABASE_USER = 'bots'
#~ DATABASE_PASSWORD = 'botsbots'
#~ DATABASE_HOST = '192.168.0.7'
#~ DATABASE_PORT = '3306'
#~ DATABASE_OPTIONS = {'use_unicode':True,'charset':'utf8',"init_command": 'SET storage_engine=INNODB'}
#PostgreSQL:
#~ DATABASE_ENGINE = 'postgresql_psycopg2'
#~ DATABASE_NAME = 'botsdb'
#~ DATABASE_USER = 'bots'
#~ DATABASE_PASSWORD = 'botsbots'
#~ DATABASE_HOST = '192.168.0.7'
#~ DATABASE_PORT = '5432'
#~ DATABASE_OPTIONS = {}
#*********sessions, cookies, log out time*************************
SESSION_EXPIRE_AT_BROWSER_CLOSE = True #True: always log in when browser is closed
SESSION_COOKIE_AGE = 3600 #seconds a user needs to login when no activity
SESSION_SAVE_EVERY_REQUEST = True #if True: SESSION_COOKIE_AGE is interpreted as: since last activity
#*********localization*************************
# Local time zone for this installation. Choices can be found here:
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
# although not all choices may be available on all operating systems.
# If running in a Windows environment this must be set to the same as your
# system time zone.
TIME_ZONE = 'Europe/Amsterdam'
DATE_FORMAT = "Y-m-d"
DATETIME_FORMAT = "Y-m-d G:i"
TIME_FORMAT = "G:i"
# Language code for this installation. All choices can be found here:
# http://www.i18nguy.com/unicode/language-identifiers.html
#~ LANGUAGE_CODE = 'en-us'
LANGUAGE_CODE = 'en'
# If you set this to False, Django will make some optimizations so as not
# to load the internationalization machinery.
USE_I18N = True
#*************************************************************************
#*********other django setting. please consult django docs.***************
#set in bots.ini
#~ DEBUG = True
#~ TEMPLATE_DEBUG = DEBUG
SITE_ID = 1
# Make this unique, and don't share it with anybody.
SECRET_KEY = 'm@-u37qiujmeqfbu$daaaaz)sp^7an4u@h=wfx9dd$$$zl2i*x9#awojdc'
ADMINS = (
('bots', 'your_email@domain.com'),
)
#save uploaded file (=plugin) always to file. no path for temp storage is used, so system default is used.
FILE_UPLOAD_HANDLERS = (
"django.core.files.uploadhandler.TemporaryFileUploadHandler",
)
# List of callables that know how to import templates from various sources.
TEMPLATE_LOADERS = (
'django.template.loaders.filesystem.load_template_source',
'django.template.loaders.app_directories.load_template_source',
#'django.template.loaders.eggs.load_template_source',
)
MIDDLEWARE_CLASSES = (
'django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'bots.persistfilters.FilterPersistMiddleware',
)
INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.admin',
'bots',
)
TEMPLATE_CONTEXT_PROCESSORS = (
"django.core.context_processors.auth",
"django.core.context_processors.debug",
"django.core.context_processors.i18n",
"django.core.context_processors.media",
"django.core.context_processors.request",
)
| [
[
1,
0,
0.0146,
0.0073,
0,
0.66,
0,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.0219,
0.0073,
0,
0.66,
0.0286,
261,
0,
1,
0,
0,
261,
0,
0
],
[
14,
0,
0.0511,
0.0219,
0,
... | [
"import os",
"import bots",
"MANAGERS = ( #bots will send error reports to the MANAGERS\n ('name_manager', 'manager@domain.org'),\n )",
"PROJECT_PATH = os.path.abspath(os.path.dirname(bots.__file__))",
"MEDIA_ROOT = PROJECT_PATH + '/'",
"MEDIA_URL = ''",
"ADMIN_MEDIA_PREFIX = '/media/'",
"ROO... |
''' Base library for bots. Botslib should not import from other Bots-modules.'''
import sys
import os
import codecs
import traceback
import subprocess
import socket #to set a time-out for connections
import string
import urlparse
import urllib
import platform
import django
from django.utils.translation import ugettext as _
#Bots-modules
from botsconfig import *
import botsglobal #as botsglobal
def botsinfo():
return [
(_(u'server name'),botsglobal.ini.get('webserver','name','bots-webserver')),
(_(u'served at port'),botsglobal.ini.getint('webserver','port',8080)),
(_(u'platform'),platform.platform()),
(_(u'machine'),platform.machine()),
(_(u'python version'),sys.version),
(_(u'django version'),django.VERSION),
(_(u'bots version'),botsglobal.version),
(_(u'bots installation path'),botsglobal.ini.get('directories','botspath')),
(_(u'config path'),botsglobal.ini.get('directories','config')),
(_(u'botssys path'),botsglobal.ini.get('directories','botssys')),
(_(u'usersys path'),botsglobal.ini.get('directories','usersysabs')),
(u'DATABASE_ENGINE',botsglobal.settings.DATABASE_ENGINE),
(u'DATABASE_NAME',botsglobal.settings.DATABASE_NAME),
(u'DATABASE_USER',botsglobal.settings.DATABASE_USER),
(u'DATABASE_HOST',botsglobal.settings.DATABASE_HOST),
(u'DATABASE_PORT',botsglobal.settings.DATABASE_PORT),
(u'DATABASE_OPTIONS',botsglobal.settings.DATABASE_OPTIONS),
]
#**********************************************************/**
#**************getters/setters for some globals***********************/**
#**********************************************************/**
def get_minta4query():
''' get the first idta for queries etc.'''
return botsglobal.minta4query
def set_minta4query():
if botsglobal.minta4query: #if already set, do nothing
return
else:
botsglobal.minta4query = _Transaction.processlist[1] #set root-idta of current run
def set_minta4query_retry():
botsglobal.minta4query = get_idta_last_error()
return botsglobal.minta4query
def get_idta_last_error():
for row in query('''SELECT idta
FROM filereport
GROUP BY idta
HAVING MAX(statust) != %(statust)s''',
{'statust':DONE}):
#found incoming file with error
for row2 in query('''SELECT min(reportidta) as min
FROM filereport
WHERE idta = %(idta)s ''',
{'idta':row['idta']}):
return row2['min']
return 0 #if no error found.
def set_minta4query_crashrecovery():
''' set/return rootidta of last run - that is supposed to crashed'''
for row in query('''SELECT max(idta) as max
FROM ta
WHERE script= 0
'''):
if row['max'] is None:
return 0
botsglobal.minta4query = row['max']
return botsglobal.minta4query
return 0
def getlastrun():
return _Transaction.processlist[1] #get root-idta of last run
def setrouteid(routeid):
botsglobal.routeid = routeid
def getrouteid():
return botsglobal.routeid
def setpreprocessnumber(statusnumber):
botsglobal.preprocessnumber = statusnumber
def getpreprocessnumber():
terug = botsglobal.preprocessnumber
botsglobal.preprocessnumber +=2
return terug
#**********************************************************/**
#***************** class Transaction *********************/**
#**********************************************************/**
class _Transaction(object):
''' abstract class for db-ta.
This class is used for communication with db-ta.
'''
#filtering values fo db handling (to avoid unknown fields in db.
filterlist=['statust','status','divtext','parent','child','script','frompartner','topartner','fromchannel','tochannel','editype','messagetype','merge',
'testindicator','reference','frommail','tomail','contenttype','errortext','filename','charset','alt','idroute','nrmessages','retransmit',
'confirmasked','confirmed','confirmtype','confirmidta','envelope','botskey','cc']
processlist=[0] #stack for bots-processes. last one is the current process; starts with 1 element in list: root
def update(self,**ta_info):
''' Updates db-ta with named-parameters/dict.
Use a filter to update only valid fields in db-ta
'''
setstring = ','.join([key+'=%('+key+')s' for key in ta_info if key in _Transaction.filterlist])
if not setstring: #nothing to update
return
ta_info['selfid'] = self.idta #always set this...I'm not sure if this is needed...take no chances
cursor = botsglobal.db.cursor()
cursor.execute(u'''UPDATE ta
SET '''+setstring+ '''
WHERE idta=%(selfid)s''',
ta_info)
botsglobal.db.commit()
cursor.close()
def delete(self):
'''Deletes current transaction '''
cursor = botsglobal.db.cursor()
cursor.execute(u'''DELETE FROM ta
WHERE idta=%(selfid)s''',
{'selfid':self.idta})
botsglobal.db.commit()
cursor.close()
def failure(self):
'''Failure: deletes all children of transaction (and children of children etc)'''
cursor = botsglobal.db.cursor()
cursor.execute(u'''SELECT idta FROM ta
WHERE idta>%(rootidta)s
AND parent=%(selfid)s''',
{'selfid':self.idta,'rootidta':get_minta4query()})
rows = cursor.fetchall()
for row in rows:
ta=OldTransaction(row['idta'])
ta.failure()
cursor.execute(u'''DELETE FROM ta
WHERE idta>%(rootidta)s
AND parent=%(selfid)s''',
{'selfid':self.idta,'rootidta':get_minta4query()})
botsglobal.db.commit()
cursor.close()
def mergefailure(self):
'''Failure while merging: all parents of transaction get status OK (turn back)'''
cursor = botsglobal.db.cursor()
cursor.execute(u'''UPDATE ta
SET statust=%(statustnew)s
WHERE idta>%(rootidta)s
AND child=%(selfid)s
AND statust=%(statustold)s''',
{'selfid':self.idta,'statustold':DONE,'statustnew':OK,'rootidta':get_minta4query()})
botsglobal.db.commit()
cursor.close()
def syn(self,*ta_vars):
'''access of attributes of transaction as ta.fromid, ta.filename etc'''
cursor = botsglobal.db.cursor()
varsstring = ','.join(ta_vars)
cursor.execute(u'''SELECT ''' + varsstring + '''
FROM ta
WHERE idta=%(selfid)s''',
{'selfid':self.idta})
result = cursor.fetchone()
for key in result.keys():
setattr(self,key,result[key])
cursor.close()
def synall(self):
'''access of attributes of transaction as ta.fromid, ta.filename etc'''
cursor = botsglobal.db.cursor()
varsstring = ','.join(self.filterlist)
cursor.execute(u'''SELECT ''' + varsstring + '''
FROM ta
WHERE idta=%(selfid)s''',
{'selfid':self.idta})
result = cursor.fetchone()
for key in result.keys():
setattr(self,key,result[key])
cursor.close()
def copyta(self,status,**ta_info):
''' copy: make a new transaction, copy '''
script = _Transaction.processlist[-1]
cursor = botsglobal.db.cursor()
cursor.execute(u'''INSERT INTO ta (script, status, parent,frompartner,topartner,fromchannel,tochannel,editype,messagetype,alt,merge,testindicator,reference,frommail,tomail,charset,contenttype,filename,idroute,nrmessages,botskey)
SELECT %(script)s,%(newstatus)s,idta,frompartner,topartner,fromchannel,tochannel,editype,messagetype,alt,merge,testindicator,reference,frommail,tomail,charset,contenttype,filename,idroute,nrmessages,botskey
FROM ta
WHERE idta=%(selfid)s''',
{'selfid':self.idta,'script':script,'newstatus':status})
newidta = cursor.lastrowid
if not newidta: #if botsglobal.settings.DATABASE_ENGINE ==
cursor.execute('''SELECT lastval() as idta''')
newidta = cursor.fetchone()['idta']
botsglobal.db.commit()
cursor.close()
newdbta = OldTransaction(newidta)
newdbta.update(**ta_info)
return newdbta
class OldTransaction(_Transaction):
def __init__(self,idta,**ta_info):
'''Use old transaction '''
self.idta = idta
self.talijst=[]
for key in ta_info.keys(): #only used by trace
setattr(self,key,ta_info[key]) #could be done better, but SQLite does not support .items()
class NewTransaction(_Transaction):
def __init__(self,**ta_info):
'''Generates new transaction, returns key of transaction '''
updatedict = dict([(key,value) for key,value in ta_info.items() if key in _Transaction.filterlist])
updatedict['script'] = _Transaction.processlist[-1]
namesstring = ','.join([key for key in updatedict])
varsstring = ','.join(['%('+key+')s' for key in updatedict])
cursor = botsglobal.db.cursor()
cursor.execute(u'''INSERT INTO ta (''' + namesstring + ''')
VALUES (''' + varsstring + ''')''',
updatedict)
self.idta = cursor.lastrowid
if not self.idta:
cursor.execute('''SELECT lastval() as idta''')
self.idta = cursor.fetchone()['idta']
botsglobal.db.commit()
cursor.close()
class NewProcess(NewTransaction):
''' Used in logging of processes. Each process is placed on stack processlist'''
def __init__(self,functionname=''):
super(NewProcess,self).__init__(filename=functionname,status=PROCESS,idroute=getrouteid())
_Transaction.processlist.append(self.idta)
def update(self,**ta_info):
super(NewProcess,self).update(**ta_info)
_Transaction.processlist.pop()
def trace_origin(ta,where=None):
''' bots traces back all from the current step/ta.
where is a dict that is used to indicate a condition.
eg: {'status':EXTERNIN}
If bots finds a ta for which this is true, the ta is added to a list.
The list is returned when all tracing is done, and contains all ta's for which 'where' is True
'''
def trace_recurse(ta):
''' recursive
walk over ta's backward (to origin).
if condition is met, add the ta to a list
'''
for idta in get_parent(ta):
donelijst.append(idta)
taparent=OldTransaction(idta=idta)
taparent.synall()
for key,value in where.items():
if getattr(taparent,key) != value:
break
else: #all where-criteria are true; check if we already have this ta
teruglijst.append(taparent)
trace_recurse(taparent)
def get_parent(ta):
''' yields the parents of a ta '''
if ta.parent: #the is a parent via the normal parent-pointer
if ta.parent not in donelijst:
yield ta.parent
else: #no parent via parent-link, so look via child-link
for row in query('''SELECT idta
FROM ta
WHERE idta>%(rootidta)s
AND child=%(idta)s''',
{'idta':ta.idta,'rootidta':get_minta4query()}):
if row['idta'] in donelijst:
continue
yield row['idta']
donelijst = []
teruglijst = []
ta.syn('parent')
trace_recurse(ta)
return teruglijst
def addinfocore(change,where,wherestring):
''' core function for add/changes information in db-ta's.
where-dict selects db-ta's, change-dict sets values;
returns the number of db-ta that have been changed.
'''
if 'rootidta' not in where:
where['rootidta']=get_minta4query()
wherestring = ' idta > %(rootidta)s AND ' + wherestring
if 'statust' not in where: #by default: look only for statust is OK
where['statust']=OK
wherestring += ' AND statust = %(statust)s '
if 'statust' not in change: #by default: new ta is OK
change['statust']= OK
counter = 0 #count the number of dbta changed
for row in query(u'''SELECT idta FROM ta WHERE '''+wherestring,where):
counter += 1
ta_from = OldTransaction(row['idta'])
ta_from.copyta(**change) #make new ta from ta_from, using parameters from change
ta_from.update(statust=DONE) #update 'old' ta
return counter
def addinfo(change,where):
''' add/changes information in db-ta's by coping the ta's; the status is updated.
using only change and where dict.'''
wherestring = ' AND '.join([key+'=%('+key+')s ' for key in where]) #wherestring for copy & done
return addinfocore(change=change,where=where,wherestring=wherestring)
def updateinfo(change,where):
''' update info in ta if not set; no status change.
where-dict selects db-ta's, change-dict sets values;
returns the number of db-ta that have been changed.
'''
if 'statust' not in where:
where['statust']=OK
wherestring = ' AND '.join([key+'=%('+key+')s ' for key in where]) #wherestring for copy & done
if 'rootidta' not in where:
where['rootidta']=get_minta4query()
wherestring = ' idta > %(rootidta)s AND ' + wherestring
counter = 0 #count the number of dbta changed
for row in query(u'''SELECT idta FROM ta WHERE '''+wherestring,where):
counter += 1
ta_from = OldTransaction(row['idta'])
ta_from.synall()
defchange = {}
for key,value in change.items():
if value and not getattr(ta_from,key,None): #if there is a value and the key is not set in ta_from:
defchange[key]=value
ta_from.update(**defchange)
return counter
def changestatustinfo(change,where):
''' update info in ta if not set; no status change.
where-dict selects db-ta's, change is the new statust;
returns the number of db-ta that have been changed.
'''
if not isinstance(change,int):
raise BotsError(_(u'change not valid: expect status to be an integer. Programming error.'))
if 'statust' not in where:
where['statust']=OK
wherestring = ' AND '.join([key+'=%('+key+')s ' for key in where]) #wherestring for copy & done
if 'rootidta' not in where:
where['rootidta']=get_minta4query()
wherestring = ' idta > %(rootidta)s AND ' + wherestring
counter = 0 #count the number of dbta changed
for row in query(u'''SELECT idta FROM ta WHERE '''+wherestring,where):
counter += 1
ta_from = OldTransaction(row['idta'])
ta_from.update(statust = change)
return counter
#**********************************************************/**
#*************************Database***********************/**
#**********************************************************/**
def set_database_lock():
try:
change(u'''INSERT INTO mutex (mutexk) VALUES (1)''')
except:
return False
return True
def remove_database_lock():
change('''DELETE FROM mutex WHERE mutexk=1''')
def query(querystring,*args):
''' general query. yields rows from query '''
cursor = botsglobal.db.cursor()
cursor.execute(querystring,*args)
results = cursor.fetchall()
cursor.close()
for result in results:
yield result
def change(querystring,*args):
'''general inset/update. no return'''
cursor = botsglobal.db.cursor()
try:
cursor.execute(querystring,*args)
except: #IntegrityError from postgresql
botsglobal.db.rollback()
raise
botsglobal.db.commit()
cursor.close()
def unique(domein):
''' generate unique number within range domain.
uses db to keep track of last generated number
if domain not used before, initialize with 1.
'''
cursor = botsglobal.db.cursor()
try:
cursor.execute(u'''UPDATE uniek SET nummer=nummer+1 WHERE domein=%(domein)s''',{'domein':domein})
cursor.execute(u'''SELECT nummer FROM uniek WHERE domein=%(domein)s''',{'domein':domein})
nummer = cursor.fetchone()['nummer']
except: # ???.DatabaseError; domein does not exist
cursor.execute(u'''INSERT INTO uniek (domein) VALUES (%(domein)s)''',{'domein': domein})
nummer = 1
if nummer > sys.maxint-2:
nummer = 1
cursor.execute(u'''UPDATE uniek SET nummer=1 WHERE domein=%(domein)s''',{'domein':domein})
botsglobal.db.commit()
cursor.close()
return nummer
def checkunique(domein, receivednumber):
''' to check of received number is sequential: value is compare with earlier received value.
if domain not used before, initialize it . '1' is the first value expected.
'''
cursor = botsglobal.db.cursor()
try:
cursor.execute(u'''SELECT nummer FROM uniek WHERE domein=%(domein)s''',{'domein':domein})
expectednumber = cursor.fetchone()['nummer'] + 1
except: # ???.DatabaseError; domein does not exist
cursor.execute(u'''INSERT INTO uniek (domein,nummer) VALUES (%(domein)s,0)''',{'domein': domein})
expectednumber = 1
if expectednumber == receivednumber:
if expectednumber > sys.maxint-2:
nummer = 1
cursor.execute(u'''UPDATE uniek SET nummer=nummer+1 WHERE domein=%(domein)s''',{'domein':domein})
terug = True
else:
terug = False
botsglobal.db.commit()
cursor.close()
return terug
def keeptrackoflastretry(domein,newlastta):
''' keep track of last automaticretrycommunication/retry
if domain not used before, initialize it . '1' is the first value expected.
'''
cursor = botsglobal.db.cursor()
try:
cursor.execute(u'''SELECT nummer FROM uniek WHERE domein=%(domein)s''',{'domein':domein})
oldlastta = cursor.fetchone()['nummer']
except: # ???.DatabaseError; domein does not exist
cursor.execute(u'''INSERT INTO uniek (domein) VALUES (%(domein)s)''',{'domein': domein})
oldlastta = 1
cursor.execute(u'''UPDATE uniek SET nummer=%(nummer)s WHERE domein=%(domein)s''',{'domein':domein,'nummer':newlastta})
botsglobal.db.commit()
cursor.close()
return oldlastta
#**********************************************************/**
#*************************Logging, Error handling********************/**
#**********************************************************/**
def sendbotserrorreport(subject,reporttext):
if botsglobal.ini.getboolean('settings','sendreportiferror',False):
from django.core.mail import mail_managers
try:
mail_managers(subject, reporttext)
except:
botsglobal.logger.debug(u'Error in sending error report: %s',txtexc())
def log_session(f):
''' used as decorator.
The decorated functions are logged as processes.
Errors in these functions are caught and logged.
'''
def wrapper(*args,**argv):
try:
ta_session = NewProcess(f.__name__)
except:
botsglobal.logger.exception(u'System error - no new session made')
raise
try:
terug =f(*args,**argv)
except:
txt=txtexc()
botsglobal.logger.debug(u'Error in process: %s',txt)
ta_session.update(statust=ERROR,errortext=txt)
else:
ta_session.update(statust=DONE)
return terug
return wrapper
def txtexc():
''' Get text from last exception '''
if botsglobal.ini:
if botsglobal.ini.getboolean('settings','debug',False):
limit = None
else:
limit=0
else:
limit=0
#problems with char set for some input data that are reported in traces....so always decode this;
terug = traceback.format_exc(limit).decode('utf-8','ignore')
#~ botsglobal.logger.debug(u'exception %s',terug)
if hasattr(botsglobal,'dbinfo') and botsglobal.dbinfo.drivername != 'sqlite': #sqlite does not enforce strict lengths
return terug[-1848:] #filed isze is 2048; but more text can be prepended.
else:
return terug
class ErrorProcess(NewTransaction):
''' Used in logging of errors in processes.
20110828: used in communication.py
'''
def __init__(self,functionname='',errortext='',channeldict=None):
fromchannel = tochannel = ''
if channeldict:
if channeldict['inorout'] == 'in':
fromchannel = channeldict['idchannel']
else:
tochannel = channeldict['idchannel']
super(ErrorProcess,self).__init__(filename=functionname,status=PROCESS,idroute=getrouteid(),statust=ERROR,errortext=errortext,fromchannel=fromchannel,tochannel=tochannel)
#**********************************************************/**
#*************************File handling os.path, imports etc***********************/**
#**********************************************************/**
def botsbaseimport(modulename):
''' Do a dynamic import.
Errors/exceptions are handled in calling functions.
'''
if modulename.startswith('.'):
modulename = modulename[1:]
module = __import__(modulename)
components = modulename.split('.')
for comp in components[1:]:
module = getattr(module, comp)
return module
def botsimport(soort,modulename):
''' import modules from usersys.
return: imported module, filename imported module;
if could not be found or error in module: raise
'''
try: #__import__ is picky on the charset used. Might be different for different OS'es. So: test if charset is us-ascii
modulename.encode('ascii')
except UnicodeEncodeError: #if not us-ascii, convert to punycode
modulename = modulename.encode('punycode')
modulepath = '.'.join((botsglobal.usersysimportpath,soort,modulename)) #assemble import string
modulefile = join(botsglobal.usersysimportpath,soort,modulename) #assemble abs filename for errortexts
try:
module = botsbaseimport(modulepath)
except ImportError: #if module not found
botsglobal.logger.debug(u'no import of "%s".',modulefile)
raise
except: #other errors
txt=txtexc()
raise ScriptImportError(_(u'import error in "$module", error:\n$txt'),module=modulefile,txt=txt)
else:
botsglobal.logger.debug(u'import "%s".',modulefile)
return module,modulefile
def join(*paths):
'''Does does more as join.....
- join the paths (compare os.path.join)
- if path is not absolute, interpretate this as relative from bots directory.
- normalize'''
return os.path.normpath(os.path.join(botsglobal.ini.get('directories','botspath'),*paths))
def dirshouldbethere(path):
if path and not os.path.exists(path):
os.makedirs(path)
return True
return False
def abspath(soort,filename):
''' get absolute path for internal files; path is a section in bots.ini '''
directory = botsglobal.ini.get('directories',soort)
return join(directory,filename)
def abspathdata(filename):
''' abspathdata if filename incl dir: return absolute path; else (only filename): return absolute path (datadir)'''
if '/' in filename: #if filename already contains path
return join(filename)
else:
directory = botsglobal.ini.get('directories','data')
datasubdir = filename[:-3]
if not datasubdir:
datasubdir = '0'
return join(directory,datasubdir,filename)
def opendata(filename,mode,charset=None,errors=None):
''' open internal data file. if no encoding specified: read file raw/binary.'''
filename = abspathdata(filename)
if 'w' in mode:
dirshouldbethere(os.path.dirname(filename))
if charset:
return codecs.open(filename,mode,charset,errors)
else:
return open(filename,mode)
def readdata(filename,charset=None,errors=None):
''' read internal data file in memory using the right encoding or no encoding'''
f = opendata(filename,'rb',charset,errors)
content = f.read()
f.close()
return content
#**********************************************************/**
#*************************calling modules, programs***********************/**
#**********************************************************/**
def runscript(module,modulefile,functioninscript,**argv):
''' Execute user script. Functioninscript is supposed to be there; if not AttributeError is raised.
Often is checked in advance if Functioninscript does exist.
'''
botsglobal.logger.debug(u'run user script "%s" in "%s".',functioninscript,modulefile)
functiontorun = getattr(module, functioninscript)
try:
return functiontorun(**argv)
except:
txt=txtexc()
raise ScriptError(_(u'Script file "$filename": "$txt".'),filename=modulefile,txt=txt)
def tryrunscript(module,modulefile,functioninscript,**argv):
if module and hasattr(module,functioninscript):
runscript(module,modulefile,functioninscript,**argv)
return True
return False
def runscriptyield(module,modulefile,functioninscript,**argv):
botsglobal.logger.debug(u'run user (yield) script "%s" in "%s".',functioninscript,modulefile)
functiontorun = getattr(module, functioninscript)
try:
for result in functiontorun(**argv):
yield result
except:
txt=txtexc()
raise ScriptError(_(u'Script file "$filename": "$txt".'),filename=modulefile,txt=txt)
def runexternprogram(*args):
botsglobal.logger.debug(u'run external program "%s".',args)
path = os.path.dirname(args[0])
try:
subprocess.call(list(args),cwd=path)
except:
txt=txtexc()
raise OSError(_(u'error running extern program "%(program)s", error:\n%(error)s'%{'program':args,'error':txt}))
#**********************************************************/**
#***************############### mdn #############
#**********************************************************/**
def checkconfirmrules(confirmtype,**kwargs):
terug = False #boolean to return: ask a confirm of not?
for confirmdict in query(u'''SELECT ruletype,idroute,idchannel_id as idchannel,frompartner_id as frompartner,topartner_id as topartner,editype,messagetype,negativerule
FROM confirmrule
WHERE active=%(active)s
AND confirmtype=%(confirmtype)s
ORDER BY negativerule ASC
''',
{'active':True,'confirmtype':confirmtype}):
if confirmdict['ruletype']=='all':
terug = not confirmdict['negativerule']
elif confirmdict['ruletype']=='route':
if 'idroute' in kwargs and confirmdict['idroute'] == kwargs['idroute']:
terug = not confirmdict['negativerule']
elif confirmdict['ruletype']=='channel':
if 'idchannel' in kwargs and confirmdict['idchannel'] == kwargs['idchannel']:
terug = not confirmdict['negativerule']
elif confirmdict['ruletype']=='frompartner':
if 'frompartner' in kwargs and confirmdict['frompartner'] == kwargs['frompartner']:
terug = not confirmdict['negativerule']
elif confirmdict['ruletype']=='topartner':
if 'topartner' in kwargs and confirmdict['topartner'] == kwargs['topartner']:
terug = not confirmdict['negativerule']
elif confirmdict['ruletype']=='messagetype':
if 'editype' in kwargs and confirmdict['editype'] == kwargs['editype'] and 'messagetype' in kwargs and confirmdict['messagetype'] == kwargs['messagetype']:
terug = not confirmdict['negativerule']
#~ print '>>>>>>>>>>>>', terug,confirmtype,kwargs
return terug
#**********************************************************/**
#***************############### codecs #############
#**********************************************************/**
def getcodeccanonicalname(codecname):
c = codecs.lookup(codecname)
return c.name
def checkcodeciscompatible(charset1,charset2):
''' check if charset of edifile) is 'compatible' with charset of channel: OK; else: raise exception
'''
#some codecs are upward compatible (subsets); charsetcompatible is used to check if charsets are upward compatibel with each other.
#some charset are 1 byte (ascii, ISO-8859-*). others are more bytes (UTF-16, utf-32. UTF-8 is more bytes, but is ascii compatible.
charsetcompatible = {
'unoa':['unob','ascii','utf-8','iso8859-1','cp1252','iso8859-15'],
'unob':['ascii','utf-8','iso8859-1','cp1252','iso8859-15'],
'ascii':['utf-8','iso8859-1','cp1252','iso8859-15'],
}
charset_edifile = getcodeccanonicalname(charset1)
charset_channel = getcodeccanonicalname(charset2)
if charset_channel == charset_edifile:
return True
if charset_edifile in charsetcompatible and charset_channel in charsetcompatible[charset_edifile]:
return True
raise CommunicationOutError(_(u'Charset "$charset2" for channel not matching with charset "$charset1" for edi-file.'),charset1=charset1,charset2=charset2)
#**********************************************************/**
#***************############### misc. #############
#**********************************************************/**
class Uri(object):
''' generate uri from parts. '''
def __init__(self,**kw):
self.uriparts = dict(scheme='',username='',password='',host='',port='',path='',parameters='',filename='',query={},fragment='')
self.uriparts.update(**kw)
def update(self,**kw):
self.uriparts.update(kw)
return self.uri
@property #the getter
def uri(self):
if not self.uriparts['scheme']:
raise BotsError(_(u'No scheme in uri.'))
#assemble complete host name
fullhost = ''
if self.uriparts['username']: #always use both?
fullhost += self.uriparts['username'] + '@'
if self.uriparts['host']:
fullhost += self.uriparts['host']
if self.uriparts['port']:
fullhost += ':' + str(self.uriparts['port'])
#assemble complete path
if self.uriparts['path'].strip().endswith('/'):
fullpath = self.uriparts['path'] + self.uriparts['filename']
else:
fullpath = self.uriparts['path'] + '/' + self.uriparts['filename']
if fullpath.endswith('/'):
fullpath = fullpath[:-1]
_uri = urlparse.urlunparse((self.uriparts['scheme'],fullhost,fullpath,self.uriparts['parameters'],urllib.urlencode(self.uriparts['query']),self.uriparts['fragment']))
if not _uri:
raise BotsError(_(u'Uri is empty.'))
return _uri
def settimeout(milliseconds):
socket.setdefaulttimeout(milliseconds) #set a time-out for TCP-IP connections
def countunripchars(value,delchars):
return len([c for c in value if c not in delchars])
def updateunlessset(updatedict,fromdict):
for key, value in fromdict.items():
if key not in updatedict:
updatedict[key]=value
#**********************************************************/**
#************** Exception classes ***************************
#**********************************************************/**
class BotsError(Exception):
def __init__(self, msg,**kwargs):
self.msg = msg
self.kwargs = kwargs
def __str__(self):
s = string.Template(self.msg).safe_substitute(self.kwargs)
return s.encode(u'utf-8',u'ignore')
class CodeConversionError(BotsError):
pass
class CommunicationError(BotsError):
pass
class CommunicationInError(BotsError):
pass
class CommunicationOutError(BotsError):
pass
class EanError(BotsError):
pass
class GrammarError(BotsError): #grammar.py
pass
class InMessageError(BotsError):
pass
class InMessageFieldError(BotsError):
pass
class LockedFileError(BotsError):
pass
class MessageError(BotsError):
pass
class MappingRootError(BotsError):
pass
class MappingFormatError(BotsError): #mpath is not valid; mapth will mostly come from mapping-script
pass
class OutMessageError(BotsError):
pass
class PanicError(BotsError):
pass
class PersistError(BotsError):
pass
class PluginError(BotsError):
pass
class ScriptImportError(BotsError): #can not find script; not for errors in a script
pass
class ScriptError(BotsError): #runtime errors in a script
pass
class TraceError(BotsError):
pass
class TraceNotPickedUpError(BotsError):
pass
class TranslationNotFoundError(BotsError):
pass
| [
[
8,
0,
0.0013,
0.0013,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0025,
0.0013,
0,
0.66,
0.0116,
509,
0,
1,
0,
0,
509,
0,
0
],
[
1,
0,
0.0038,
0.0013,
0,
0.66... | [
"''' Base library for bots. Botslib should not import from other Bots-modules.'''",
"import sys",
"import os",
"import codecs",
"import traceback",
"import subprocess",
"import socket #to set a time-out for connections",
"import string",
"import urlparse",
"import urllib",
"import platform",
... |
"""
sef2bots.py
Command line params: sourcefile.sef targetfile.py
Optional command line params: -seq, -struct
Converts a SEF grammar into a Bots grammar. If targetfile exists (and is writeable),
it will be overwritten.
If -seq is specified, field names in record definitions will be
sequential (TAG01, TAG02, ..., where TAG is the record tag) instead of
the 'normal' field names.
If -struct is specified, only the Bots grammar variable 'structure' will be
constructed, i.e. the 'recorddefs' variable will be left out.
Parses the .SETS, .SEGS, .COMS and .ELMS sections. Any other sections are ignored.
(Mostly) assumes correct SEF syntax. May well break on some syntax errors.
If there are multiple .SETS sections, only the last one is processed. If there are
multiple message definitions in the (last) .SETS section, only the last one is
processed.
If there are multiple definitions of a segment, only the first one is taken
into account.
If there are multiple definitions of a field, only the last one is taken into
account.
Skips ^ and ignores .!$-&*@ in segment/field refs.
Also ignores syntax rules and dependency notes.
Changes seg max of '>1' to 99999 and elm maxlength to 99999 if 0 or > 99999
If you don't like that, change the 'constants' MAXMAX and/or MAXLEN below
"""
MAXMAX = 99999 # for dealing with segs/groups with max '>1'
MAXLEN = 99999 # for overly large elm maxlengths
TAB = ' '
import sys
import os
import copy
import atexit
import traceback
def showusage(scriptname):
print "Usage: python %s [-seq] [-nostruct] [-norecords] sourcefile targetfile" % scriptname
print " Convert SEF grammar in <sourcefile> into Bots grammar in <targetfile>."
print " Option -seq : use sequential numbered fields in record definitions instead of field names/ID's."
print " Option -nostruct : the 'structure' will not be written."
print " Option -norecords : the 'records' will not be written."
print
sys.exit(0)
class SEFError(Exception):
pass
class StructComp(object):
""" For components of the Bots grammar variable 'structure' """
def __init__(self, tag, min, max, sub = None):
self.id = tag
self.min = min
self.max = max
if sub:
self.sub = sub
else:
self.sub = []
def tostring(self, tablevel = 0):
s = tablevel*TAB + "{ID: '%s', MIN: %d, MAX: %d" % (self.id, self.min, self.max)
if self.sub:
s += ", LEVEL: [\n" \
+ ",\n".join([subcomp.tostring(tablevel + 1) for subcomp in self.sub]) + "," \
+ "\n" + tablevel * TAB + "]"
s += "}"
return s
class RecDef(object):
""" For records/segments; these end up in the Bots grammar variable 'recorddefs' """
def __init__(self, tag, sub = None):
self.id = tag
if sub:
self.sub = sub
else:
self.sub = []
def tostring(self, useseq = False, tablevel = 0):
return tablevel*TAB + \
"'%s': [\n"%(self.id) + \
"\n".join([c.tostring(useseq, tablevel+1) for c in self.sub]) +\
"\n" + \
tablevel*TAB + "],"
class FieldDef(object):
""" For composite and non-composite fields """
def __init__(self, tag, req = 'C', minlen = '', maxlen = '', type = 'AN', sub = None, freq = 1, seq = None):
self.id = tag
self.req = req
self.minlen = minlen
self.maxlen = maxlen
self.type = type
self.sub = sub
if not sub:
self.sub = []
self.freq = freq
self.seq = seq
def tostring(self, useseq = False, tablevel = 0):
if not useseq:
fldname = self.id
else:
fldname = self.seq
if not self.sub:
if self.minlen.strip() == '1':
return tablevel * TAB + "['%s', '%s', %s, '%s']" %\
(fldname, self.req, self.maxlen, self.type) + ","
else:
return tablevel * TAB + "['%s', '%s', (%s, %s), '%s']" %\
(fldname, self.req, self.minlen, self.maxlen, self.type) + ","
else:
return tablevel * TAB + "['%s', '%s', [\n" % (fldname, self.req) \
+ "\n".join([field.tostring(useseq, tablevel + 1) for field in self.sub]) \
+ "\n" + tablevel * TAB + "]],"
def split2(line, seps):
"""
Split <line> on whichever character in <seps> occurs in <line> first.
Return pair (line_up_to_first_sep_found, first_sep_found_plus_rest_of_line)
If none of <seps> occurs, return pair ('', <line>)
"""
i = 0
length = len(line)
while i < length and line[i] not in seps:
i += 1
if i == length:
return '', line
return line[:i], line[i:]
def do_set(line):
"""
Reads the (current) .SETS section and converts it into a Bots grammar 'structure'.
Returns the *contents* of the structure, as a string.
"""
definition = line.split('=')
line = definition[1].lstrip('^')
comps = readcomps(line)
tree = comps[0]
tree.sub = comps[1:]
return tree.tostring()
def readcomps(line):
""" Reads all components from a .SETS line, and returns them in a nested list """
comps = []
while line:
comp, line = readcomp(line)
comps.append(comp)
#~ displaystructure(comps)
return comps
def displaystructure(comps,tablevel=0):
for i in comps:
print tablevel*TAB, i.id,i.min,i.max
if i.sub:
displaystructure(i.sub,tablevel+1)
def readcomp(line):
"""
Reads a component, which can be either a segment or a segment group.
Returns pair (component, rest_of_line)
"""
discard, line = split2(line, "[{")
if not line:
return None, ''
if line[0] == '[':
return readseg(line)
if line[0] == '{':
return readgroup(line)
raise SEFError("readcomp() - unexpected character at start of: %s" % line)
def readseg(line):
""" Reads a single segment. Returns pair (segment, rest_of_line) """
discard, line = line.split('[', 1)
segstr, line = line.split(']', 1)
components = segstr.split(',')
num = len(components)
maxstr = ''
if num == 3:
tag, req, maxstr = components
elif num == 2:
tag, req = components
elif num == 1:
tag, req = components[0], 'C'
if req == 'M':
min = 1
else:
min = 0
if tag[0] in ".!$-&":
tag = tag[1:]
if '*' in tag:
tag = tag.split('*')[0]
if '@' in tag:
tag = tag.split('@')[0]
if tag.upper() == 'LS':
print "LS segment found"
if not maxstr:
max = 1
elif maxstr == '>1':
max = MAXMAX
print "Changed max for seg '%s' to %d (orig. %s)" % (tag, MAXMAX, maxstr)
else:
max = int(maxstr)
return StructComp(tag, min, max), line
def readgroup(line):
""" Reads a segment group. Returns pair (segment_group, rest_of_line) """
discard, line = line.split('{', 1)
#~ print '>>',line
tag, line = split2(line, ':+-[{')
#~ print '>>',tag,'>>',line
maxstr = ''
if line[0] == ':': # next element can be group.max
maxstr, line = split2(line[1:], '+-[{')
#~ print '>>',line
discard, line = split2(line, "[{")
group = StructComp(tag, 0, 0) # dummy values for group. This is later on adjusted
done = False
while not done:
if not line or line[0] == '}':
done = True
else:
comp, line = readcomp(line)
group.sub.append(comp)
if group.sub:
header = group.sub[0]
group.id = header.id #use right tag for header segment
if header.min > group.min:
group.min = header.min
group.sub = group.sub[1:]
if not maxstr:
group.max = 1
else:
if maxstr != '>1':
group.max = int(maxstr)
else:
group.max = MAXMAX
if tag:
oldtag = tag
else:
oldtag = group.id
print "Changed max for group '%s' to %d (orig. %s)" % (oldtag, MAXMAX, maxstr)
return group, line[1:]
def comdef(line, issegdef = False):
"""
Reads segment or composite definition (syntactically identical; defaults to composite).
Returns RecDef (for segment) or FieldDef (for composite)
"""
tag, spec = line.split('=')
if issegdef:
com = RecDef(tag)
else:
com = FieldDef(tag)
com.sub = getfields(spec)[0]
return com
def getfields(line, isgroup = False):
""" Returns pair (fieldlist, rest_of_line) """
if isgroup and line[0] == '}':
return [], line[1:]
if not isgroup and not line:
return [], ''
if not isgroup and line[0] in ",+":
return [], line[1:]
if line[0] == '[':
field, line = getfield(line[1:])
multifield = [field]
for i in range(1, field.freq):
extrafield = copy.deepcopy(field)
extrafield.req = 'C'
multifield.append(extrafield)
fields, line = getfields(line, isgroup)
return multifield + fields, line
if line[0] == '{':
multstr, line = split2(line[1:], "[{")
if not multstr:
mult = 1
else:
mult = int(multstr)
group, line = getfields(line, True)
repgroup = []
for i in range(mult):
repgroup += copy.deepcopy(group)
fields, line = getfields(line, isgroup)
return repgroup + fields, line
def getfield(line):
""" Returns pair (single_field_ref, rest_of_line) """
splits = line.split(']', 1)
field = fielddef(splits[0])
if len(splits) == 1:
return field, ''
return field, splits[1]
def fielddef(line):
"""
Get a field's tag, its req (M or else C), its min and max lengths, and its frequency (repeat count).
Return FieldDef
"""
if line[0] in ".!$-&":
line = line[1:]
if ',' not in line:
req, freq = 'C', 1
else:
splits = line.split(',')
num = len(splits)
if num == 3:
line, req, freq = splits
freq = int(freq)
elif num == 2:
(line, req), freq = splits, 1
else:
line, req, freq = splits[0], 'C', 1
if req != 'M':
req = 'C'
if ';' not in line:
lenstr = ''
else:
line, lenstr = line.split(';')
if '@' in line:
line, discard = line.split('@', 1)
if not lenstr:
minlen = maxlen = ''
else:
if ':' in lenstr:
minlen, maxlen = lenstr.split(':')
else:
minlen = lenstr
return FieldDef(line, req = req, minlen = minlen, maxlen = maxlen, freq = freq)
def elmdef(line):
""" Reads elm definition (min and max lengths and data type), returns FieldDef """
tag, spec = line.split('=')
type, minlenstr, maxlenstr = spec.split(',')
try:
maxlen = int(maxlenstr)
except ValueError:
maxlen = 0
if maxlen == 0 or maxlen > MAXLEN:
print "Changed max length for elm '%s' to %d (orig. %s)" % (tag, MAXLEN, maxlenstr)
maxlenstr = str(MAXLEN)
elm = FieldDef(tag, minlen = minlenstr, maxlen = maxlenstr, type = type)
return elm
def getelmsinfo(elms, coms):
"""
Get types and lengths from elm defs into com defs,
and rename multiple occurrences of subfields
"""
for comid in coms:
com = coms[comid]
counters = {}
sfids = [sf.id for sf in com.sub]
for i, sfield in enumerate(com.sub):
sfield.seq = "%02d" % (i + 1)
if sfield.id not in elms:
raise SEFError("getelmsinfo() - no subfield definition found for element '%s'" % sfield.id)
elm = elms[sfield.id]
if not sfield.minlen:
sfield.minlen = elm.minlen
if not sfield.maxlen:
sfield.maxlen = elm.maxlen
sfield.type = elm.type
if sfield.id not in counters:
counters[sfield.id] = 1
else:
counters[sfield.id] += 1
if counters[sfield.id] > 1 or sfield.id in sfids[i + 1:]:
sfield.id += "#%d" % counters[sfield.id]
def getfieldsinfo(elms, coms, segs):
"""
Get types and lengths from elm defs and com defs into seg defs,
and rename multiple occurrences of fields. Also rename subfields
of composites to include the name of their parents.
Finally, add the necessary BOTSID element.
"""
for seg in segs:
counters = {}
fids = [f.id for f in seg.sub]
for i, field in enumerate(seg.sub):
field.seq = "%s%02d" % (seg.id, i + 1)
iscomposite = False
if field.id in elms:
elm = elms[field.id]
field.type = elm.type
if not field.minlen:
field.minlen = elm.minlen
if not field.maxlen:
field.maxlen = elm.maxlen
elif field.id in coms:
iscomposite = True
com = coms[field.id]
field.sub = copy.deepcopy(com.sub)
else:
raise SEFError("getfieldsinfo() - no field definition found for element '%s'" % field.id)
if not field.id in counters:
counters[field.id] = 1
else:
counters[field.id] += 1
if counters[field.id] > 1 or field.id in fids[i + 1:]:
field.id += "#%d" % counters[field.id]
if iscomposite:
for sfield in field.sub:
sfield.id = field.id + '.' + sfield.id
sfield.seq = field.seq + '.' + sfield.seq
seg.sub.insert(0, FieldDef('BOTSID', req = 'M', minlen = "1", maxlen = "3", type = "AN", seq = 'BOTSID'))
def convertfile(infile, outfile, useseq, nostruct, norecords,edifactversionID):
struct = ""
segdefs, segdict, comdefs, elmdefs = [], {}, {}, {}
# segdict just keeps a list of segs already found, so they don't get re-defined
in_sets = in_segs = in_coms = in_elms = False
#*******reading sef grammar***********************
for line in infile:
line = line.strip('\n')
if line:
if line[0] == '*': # a comment, skip
pass
elif line[0] == '.':
line = line.upper()
in_sets = in_segs = in_coms = in_elms = False
if line == '.SETS':
in_sets = True
elif line == '.SEGS':
in_segs = True
elif line == '.COMS':
in_coms = True
elif line == '.ELMS':
in_elms = True
else:
if in_sets:
struct = do_set(line)
elif not norecords: #if record need to be written
if in_segs:
seg = comdef(line, issegdef = True)
# if multiple defs for this seg, only do first one
if seg.id not in segdict:
segdict[seg.id] = 1
segdefs.append(seg)
elif in_coms:
com = comdef(line)
comdefs[com.id] = com
elif in_elms:
elm = elmdef(line)
elmdefs[elm.id] = elm
#*****writing bots grammar **************
outfile.write('from bots.botsconfig import *\n')
if not nostruct: #if structure: need syntax
outfile.write('from edifactsyntax3 import syntax\n')
if norecords: #if record need to import thee
outfile.write('from records%s import recorddefs\n\n'%edifactversionID)
#****************************************
if not nostruct:
outfile.write("\nstructure = [\n%s\n]\n" % struct)
if not norecords:
getelmsinfo(elmdefs, comdefs)
getfieldsinfo(elmdefs, comdefs, segdefs)
outfile.write("\nrecorddefs = {\n%s\n}\n" % "\n".join([seg.tostring(useseq) for seg in segdefs]))
def start(args):
useseq, nostruct, norecords, infilename, outfilename = False, False, False, None, None
for arg in args:
if not arg:
continue
if arg in ["-h", "--help", "?", "/?", "-?"]:
showusage(args[0].split(os.sep)[-1])
if arg == "-seq":
useseq = True
elif arg == "-nostruct":
nostruct = True
elif arg == "-norecords":
norecords = True
elif not infilename:
infilename = arg
elif not outfilename:
outfilename = arg
else:
showusage(args[0].split(os.sep)[-1])
if not infilename or not outfilename:
showusage(args[0].split(os.sep)[-1])
#************************************
infile = open(infilename, 'r')
outfile = open(outfilename, 'w')
edifactversionID = os.path.splitext(os.path.basename(outfilename))[0][6:]
print ' Convert sef->bots "%s".'%(outfilename)
convertfile(infile, outfile, useseq, nostruct, norecords,edifactversionID)
infile.close()
outfile.close()
if __name__ == "__main__":
try:
start(sys.argv[1:])
except:
traceback.print_exc()
else:
print "Done"
| [
[
8,
0,
0.0375,
0.073,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.0769,
0.002,
0,
0.66,
0.0333,
113,
1,
0,
0,
0,
0,
1,
0
],
[
14,
0,
0.0789,
0.002,
0,
0.66,
... | [
"\"\"\"\nsef2bots.py\n\nCommand line params: sourcefile.sef targetfile.py\n\nOptional command line params: -seq, -struct\n\nConverts a SEF grammar into a Bots grammar. If targetfile exists (and is writeable),",
"MAXMAX = 99999 # for dealing with segs/groups with max '>1'",
"MAXLEN = 99999 # for overly large elm... |
#constants/definitions for Bots
#to be used as from bots.config import *
#for statust in ta:
OPEN = 0 #Bots always closes transaction. OPEN is severe error
ERROR = 1 #error in transaction.
OK = 2 #successfull, result is 'save'. But processing has stopped: next step with error, or no next steps defined
DONE = 3 #successfull, and result is picked up by next step
#for status in ta:
PROCESS = 1
DISCARD= 3
EXTERNIN = 200 #transaction is OK; file is exported; out of reach
RAWIN = 210 #the file as received, unprocessed; eg mail is in email-format (headers, body, attachments)
MIMEIN = 215 #mime is checked and read; mime-info (sender, receiver) is in db-ta
FILEIN = 220 #received edifile; ready for further use
SET_FOR_PROCESSING = 230
TRANSLATE = 300 #file to be translated
PARSED = 310 #the edifile is lexed and parsed
SPLITUP = 320 #the edimessages in the PARSED edifile have been split up
TRANSLATED = 330 #edimessage is result of translation
MERGED = 400 #is enveloped
FILEOUT = 500 #edifile ready to be 'send' (just the edi-file)
RAWOUT = 510 #file in send format eg email format (including headers, body, attachemnts)
EXTERNOUT = 520 #transaction is complete; file is exported; out of reach
#grammar.structure: keys in grammarrecords
ID = 0
MIN = 1
MAX = 2
COUNT = 3
LEVEL = 4
MPATH = 5
FIELDS = 6
QUERIES = 7
SUBTRANSLATION = 8
BOTSIDnr = 9
#grammar.recorddefs: dict keys for fields of record er: record[FIELDS][ID] == 'C124.0034'
#already definedID = 0
MANDATORY = 1
LENGTH = 2
SUBFIELDS = 2 #for composites
FORMAT = 3 #format in grammar file
ISFIELD = 4
DECIMALS = 5
MINLENGTH = 6
BFORMAT = 7 #internal bots format; formats in grammar are convertd to bformat
#modules inmessage, outmessage; record in self.records; ex:
#already defined ID = 0
VALUE = 1
POS = 2
LIN = 3
SFIELD = 4 #boolean: True: is subfield, False: field or first element composite
#already defined MPATH = 5 #only for first field (=recordID)
FIXEDLINE = 6 #for fixed records; tmp storage of fixed record
FORMATFROMGRAMMAR = 7 #to store FORMAT field has in grammar
| [
[
14,
0,
0.0833,
0.0167,
0,
0.66,
0,
484,
1,
0,
0,
0,
0,
1,
0
],
[
14,
0,
0.1,
0.0167,
0,
0.66,
0.0238,
88,
1,
0,
0,
0,
0,
1,
0
],
[
14,
0,
0.1167,
0.0167,
0,
0.66,... | [
"OPEN = 0 #Bots always closes transaction. OPEN is severe error",
"ERROR = 1 #error in transaction.",
"OK = 2 #successfull, result is 'save'. But processing has stopped: next step with error, or no next steps defined",
"DONE = 3 #successfull, and result is picked up by next step",
"PROCESS =... |
import django
from django.contrib import admin
from django.utils.translation import ugettext as _
from django.http import Http404, HttpResponse, HttpResponseRedirect
from django.contrib.admin.util import unquote, flatten_fieldsets, get_deleted_objects, model_ngettext, model_format_dict
from django.core.exceptions import PermissionDenied
from django.utils.encoding import force_unicode
from django.utils.html import escape
from django.utils.safestring import mark_safe
from django.utils.text import capfirst, get_text_list
#***********
import models
import botsglobal
admin.site.disable_action('delete_selected')
class BotsAdmin(admin.ModelAdmin):
list_per_page = botsglobal.ini.getint('settings','adminlimit',botsglobal.ini.getint('settings','limit',30))
save_as = True
def delete_view(self, request, object_id, extra_context=None):
''' copy from admin.ModelAdmin; adapted: do not check references: no cascading deletes; no confirmation.'''
opts = self.model._meta
app_label = opts.app_label
try:
obj = self.queryset(request).get(pk=unquote(object_id))
except self.model.DoesNotExist:
obj = None
if not self.has_delete_permission(request, obj):
raise PermissionDenied(_(u'Permission denied'))
if obj is None:
raise Http404(_('%(name)s object with primary key %(key)r does not exist.') % {'name': force_unicode(opts.verbose_name), 'key': escape(object_id)})
obj_display = force_unicode(obj)
self.log_deletion(request, obj, obj_display)
obj.delete()
self.message_user(request, _('The %(name)s "%(obj)s" was deleted successfully.') % {'name': force_unicode(opts.verbose_name), 'obj': force_unicode(obj_display)})
if not self.has_change_permission(request, None):
return HttpResponseRedirect("../../../../")
return HttpResponseRedirect("../../")
def activate(self, request, queryset):
''' admin action.'''
for obj in queryset:
obj.active = not obj.active
obj.save()
activate.short_description = _(u'activate/de-activate')
def bulk_delete(self, request, queryset):
''' admin action.'''
for obj in queryset:
obj.delete()
bulk_delete.short_description = _(u'delete selected')
#*****************************************************************************************************
class CcodeAdmin(BotsAdmin):
actions = ('bulk_delete',)
list_display = ('ccodeid','leftcode','rightcode','attr1','attr2','attr3','attr4','attr5','attr6','attr7','attr8')
list_display_links = ('ccodeid',)
list_filter = ('ccodeid',)
ordering = ('ccodeid','leftcode')
search_fields = ('ccodeid__ccodeid','leftcode','rightcode','attr1','attr2','attr3','attr4','attr5','attr6','attr7','attr8')
def lookup_allowed(self, lookup, *args, **kwargs):
if lookup.startswith('ccodeid'):
return True
return super(CcodeAdmin, self).lookup_allowed(lookup, *args, **kwargs)
admin.site.register(models.ccode,CcodeAdmin)
class CcodetriggerAdmin(BotsAdmin):
actions = ('bulk_delete',)
list_display = ('ccodeid','ccodeid_desc',)
list_display_links = ('ccodeid',)
ordering = ('ccodeid',)
search_fields = ('ccodeid','ccodeid_desc')
admin.site.register(models.ccodetrigger,CcodetriggerAdmin)
class ChannelAdmin(BotsAdmin):
actions = ('bulk_delete',)
list_display = ('idchannel', 'inorout', 'type','host', 'port', 'username', 'secret', 'path', 'filename', 'remove', 'charset', 'archivepath','rsrv2','ftpactive', 'ftpbinary','askmdn', 'syslock', 'starttls','apop')
list_filter = ('inorout','type')
ordering = ('idchannel',)
search_fields = ('idchannel', 'inorout', 'type','host', 'username', 'path', 'filename', 'archivepath', 'charset')
fieldsets = (
(None, {'fields': ('idchannel', ('inorout','type'), ('host','port'), ('username', 'secret'), ('path', 'filename'), 'remove', 'archivepath', 'charset','desc')
}),
(_(u'FTP specific data'),{'fields': ('ftpactive', 'ftpbinary', 'ftpaccount' ),
'classes': ('collapse',)
}),
(_(u'Advanced'),{'fields': (('lockname', 'syslock'), 'parameters', 'starttls','apop','askmdn','rsrv2'),
'classes': ('collapse',)
}),
)
admin.site.register(models.channel,ChannelAdmin)
class ConfirmruleAdmin(BotsAdmin):
actions = ('activate','bulk_delete')
list_display = ('active','negativerule','confirmtype','ruletype', 'frompartner', 'topartner','idroute','idchannel','editype','messagetype')
list_display_links = ('confirmtype',)
list_filter = ('active','confirmtype','ruletype')
search_fields = ('confirmtype','ruletype', 'frompartner__idpartner', 'topartner__idpartner', 'idroute', 'idchannel__idchannel', 'editype', 'messagetype')
ordering = ('confirmtype','ruletype')
fieldsets = (
(None, {'fields': ('active','negativerule','confirmtype','ruletype','frompartner', 'topartner','idroute','idchannel',('editype','messagetype'))}),
)
admin.site.register(models.confirmrule,ConfirmruleAdmin)
class MailInline(admin.TabularInline):
model = models.chanpar
fields = ('idchannel','mail', 'cc')
extra = 1
class MyPartnerAdminForm(django.forms.ModelForm):
''' customs form for partners to check if group has groups'''
class Meta:
model = models.partner
def clean(self):
super(MyPartnerAdminForm, self).clean()
if self.cleaned_data['isgroup'] and self.cleaned_data['group']:
raise django.forms.util.ValidationError(_(u'A group can not be part of a group.'))
return self.cleaned_data
class PartnerAdmin(BotsAdmin):
actions = ('bulk_delete','activate')
form = MyPartnerAdminForm
fields = ('active', 'isgroup', 'idpartner', 'name','mail','cc','group')
filter_horizontal = ('group',)
inlines = (MailInline,)
list_display = ('active','isgroup','idpartner', 'name','mail','cc')
list_display_links = ('idpartner',)
list_filter = ('active','isgroup')
ordering = ('idpartner',)
search_fields = ('idpartner','name','mail','cc')
admin.site.register(models.partner,PartnerAdmin)
class RoutesAdmin(BotsAdmin):
actions = ('bulk_delete','activate')
list_display = ('active', 'idroute', 'seq', 'fromchannel', 'fromeditype', 'frommessagetype', 'alt', 'frompartner', 'topartner', 'translateind', 'tochannel', 'defer', 'toeditype', 'tomessagetype', 'frompartner_tochannel', 'topartner_tochannel', 'testindicator', 'notindefaultrun')
list_display_links = ('idroute',)
list_filter = ('idroute','active','fromeditype')
ordering = ('idroute','seq')
search_fields = ('idroute', 'fromchannel__idchannel','fromeditype', 'frommessagetype', 'alt', 'tochannel__idchannel','toeditype', 'tomessagetype')
fieldsets = (
(None, {'fields': ('active',('idroute', 'seq'),'fromchannel', ('fromeditype', 'frommessagetype'),'translateind','tochannel','desc')}),
(_(u'Filtering for outchannel'),{'fields':('toeditype', 'tomessagetype','frompartner_tochannel', 'topartner_tochannel', 'testindicator'),
'classes': ('collapse',)
}),
(_(u'Advanced'),{'fields': ('alt', 'frompartner', 'topartner', 'notindefaultrun','defer'),
'classes': ('collapse',)
}),
)
admin.site.register(models.routes,RoutesAdmin)
class MyTranslateAdminForm(django.forms.ModelForm):
''' customs form for translations to check if entry exists (unique_together not validated right (because of null values in partner fields))'''
class Meta:
model = models.translate
def clean(self):
super(MyTranslateAdminForm, self).clean()
b = models.translate.objects.filter(fromeditype=self.cleaned_data['fromeditype'],
frommessagetype=self.cleaned_data['frommessagetype'],
alt=self.cleaned_data['alt'],
frompartner=self.cleaned_data['frompartner'],
topartner=self.cleaned_data['topartner'])
if b and (self.instance.pk is None or self.instance.pk != b[0].id):
raise django.forms.util.ValidationError(_(u'Combination of fromeditype,frommessagetype,alt,frompartner,topartner already exists.'))
return self.cleaned_data
class TranslateAdmin(BotsAdmin):
actions = ('bulk_delete','activate')
form = MyTranslateAdminForm
list_display = ('active', 'fromeditype', 'frommessagetype', 'alt', 'frompartner', 'topartner', 'tscript', 'toeditype', 'tomessagetype')
list_display_links = ('fromeditype',)
list_filter = ('active','fromeditype','toeditype')
ordering = ('fromeditype','frommessagetype')
search_fields = ('fromeditype', 'frommessagetype', 'alt', 'frompartner__idpartner', 'topartner__idpartner', 'tscript', 'toeditype', 'tomessagetype')
fieldsets = (
(None, {'fields': ('active', ('fromeditype', 'frommessagetype'),'tscript', ('toeditype', 'tomessagetype','desc'))
}),
(_(u'Advanced - multiple translations per editype/messagetype'),{'fields': ('alt', 'frompartner', 'topartner'),
'classes': ('collapse',)
}),
)
admin.site.register(models.translate,TranslateAdmin)
class UniekAdmin(BotsAdmin): #AKA counters
actions = None
list_display = ('domein', 'nummer')
list_editable = ('nummer',)
ordering = ('domein',)
search_fields = ('domein',)
admin.site.register(models.uniek,UniekAdmin)
#User - change the default display of user screen
from django.contrib.auth.admin import UserAdmin
from django.contrib.auth.models import User
UserAdmin.list_display = ('username', 'first_name', 'last_name','email', 'is_active', 'is_staff', 'is_superuser', 'date_joined','last_login')
admin.site.unregister(User)
admin.site.register(User, UserAdmin)
| [
[
1,
0,
0.005,
0.005,
0,
0.66,
0,
294,
0,
1,
0,
0,
294,
0,
0
],
[
1,
0,
0.0101,
0.005,
0,
0.66,
0.027,
302,
0,
1,
0,
0,
302,
0,
0
],
[
1,
0,
0.0151,
0.005,
0,
0.66,... | [
"import django",
"from django.contrib import admin",
"from django.utils.translation import ugettext as _",
"from django.http import Http404, HttpResponse, HttpResponseRedirect",
"from django.contrib.admin.util import unquote, flatten_fieldsets, get_deleted_objects, model_ngettext, model_format_dict",
"fro... |
#bots modules
import botslib
import botsglobal
from botsconfig import *
from django.utils.translation import ugettext as _
tavars = 'idta,statust,divtext,child,ts,filename,status,idroute,fromchannel,tochannel,frompartner,topartner,frommail,tomail,contenttype,nrmessages,editype,messagetype,errortext,script'
def evaluate(type,stuff2evaluate):
# try: catch errors in retry....this should of course not happen...
try:
if type in ['--retry','--retrycommunication','--automaticretrycommunication']:
return evaluateretryrun(type,stuff2evaluate)
else:
return evaluaterun(type,stuff2evaluate)
except:
botsglobal.logger.exception(_(u'Error in automatic maintenance.'))
return 1 #there has been an error!
def evaluaterun(type,stuff2evaluate):
''' traces all received files.
Write a filereport for each file,
and writes a report for the run.
'''
resultlast={OPEN:0,ERROR:0,OK:0,DONE:0} #gather results of all filereports for runreport
#look at infiles from this run; trace them to determine their tracestatus.
for tadict in botslib.query('''SELECT ''' + tavars + '''
FROM ta
WHERE idta > %(rootidta)s
AND status=%(status)s ''',
{'status':EXTERNIN,'rootidta':stuff2evaluate}):
botsglobal.logger.debug(u'evaluate %s.',tadict['idta'])
mytrace = Trace(tadict,stuff2evaluate)
resultlast[mytrace.statusttree]+=1
insert_filereport(mytrace)
del mytrace.ta
del mytrace
return finish_evaluation(stuff2evaluate,resultlast,type)
def evaluateretryrun(type,stuff2evaluate):
resultlast={OPEN:0,ERROR:0,OK:0,DONE:0}
didretry = False
for row in botslib.query('''SELECT idta
FROM filereport
GROUP BY idta
HAVING MAX(statust) != %(statust)s''',
{'statust':DONE}):
didretry = True
for tadict in botslib.query('''SELECT ''' + tavars + '''
FROM ta
WHERE idta= %(idta)s ''',
{'idta':row['idta']}):
break
else: #there really should be a corresponding ta
raise botslib.PanicError(_(u'MaintenanceRetry: could not find transaction "$txt".'),txt=row['idta'])
mytrace = Trace(tadict,stuff2evaluate)
resultlast[mytrace.statusttree]+=1
if mytrace.statusttree == DONE:
mytrace.errortext = ''
#~ mytrace.ta.update(tracestatus=mytrace.statusttree)
#ts for retried filereports is tricky: is this the time the file was originally received? best would be to use ts of prepare...
#that is quite difficult, so use time of this run
rootta=botslib.OldTransaction(stuff2evaluate)
rootta.syn('ts') #get the timestamp of this run
mytrace.ts = rootta.ts
insert_filereport(mytrace)
del mytrace.ta
del mytrace
if not didretry:
return 0 #no error
return finish_evaluation(stuff2evaluate,resultlast,type)
def insert_filereport(mytrace):
botslib.change(u'''INSERT INTO filereport (idta,statust,reportidta,retransmit,idroute,fromchannel,ts,
infilename,tochannel,frompartner,topartner,frommail,
tomail,ineditype,inmessagetype,outeditype,outmessagetype,
incontenttype,outcontenttype,nrmessages,outfilename,errortext,
divtext,outidta)
VALUES (%(idta)s,%(statust)s,%(reportidta)s,%(retransmit)s,%(idroute)s,%(fromchannel)s,%(ts)s,
%(infilename)s,%(tochannel)s,%(frompartner)s,%(topartner)s,%(frommail)s,
%(tomail)s,%(ineditype)s,%(inmessagetype)s,%(outeditype)s,%(outmessagetype)s,
%(incontenttype)s,%(outcontenttype)s,%(nrmessages)s,%(outfilename)s,%(errortext)s,
%(divtext)s,%(outidta)s )
''',
{'idta':mytrace.idta,'statust':mytrace.statusttree,'reportidta':mytrace.reportidta,
'retransmit':mytrace.retransmit,'idroute':mytrace.idroute,'fromchannel':mytrace.fromchannel,
'ts':mytrace.ts,'infilename':mytrace.infilename,'tochannel':mytrace.tochannel,
'frompartner':mytrace.frompartner,'topartner':mytrace.topartner,'frommail':mytrace.frommail,
'tomail':mytrace.tomail,'ineditype':mytrace.ineditype,'inmessagetype':mytrace.inmessagetype,
'outeditype':mytrace.outeditype,'outmessagetype':mytrace.outmessagetype,
'incontenttype':mytrace.incontenttype,'outcontenttype':mytrace.outcontenttype,
'nrmessages':mytrace.nrmessages,'outfilename':mytrace.outfilename,'errortext':mytrace.errortext,
'divtext':mytrace.divtext,'outidta':mytrace.outidta})
def finish_evaluation(stuff2evaluate,resultlast,type):
#count nr files send
for row in botslib.query('''SELECT COUNT(*) as count
FROM ta
WHERE idta > %(rootidta)s
AND status=%(status)s
AND statust=%(statust)s ''',
{'status':EXTERNOUT,'rootidta':stuff2evaluate,'statust':DONE}):
send = row['count']
#count process errors
for row in botslib.query('''SELECT COUNT(*) as count
FROM ta
WHERE idta >= %(rootidta)s
AND status=%(status)s
AND statust=%(statust)s''',
{'status':PROCESS,'rootidta':stuff2evaluate,'statust':ERROR}):
processerrors = row['count']
#generate report (in database)
rootta=botslib.OldTransaction(stuff2evaluate)
rootta.syn('ts') #get the timestamp of this run
LastReceived=resultlast[DONE]+resultlast[OK]+resultlast[OPEN]+resultlast[ERROR]
status = bool(resultlast[OK]+resultlast[OPEN]+resultlast[ERROR]+processerrors)
botslib.change(u'''INSERT INTO report (idta,lastopen,lasterror,lastok,lastdone,
send,processerrors,ts,lastreceived,status,type)
VALUES (%(idta)s,
%(lastopen)s,%(lasterror)s,%(lastok)s,%(lastdone)s,
%(send)s,%(processerrors)s,%(ts)s,%(lastreceived)s,%(status)s,%(type)s)
''',
{'idta':stuff2evaluate,
'lastopen':resultlast[OPEN],'lasterror':resultlast[ERROR],'lastok':resultlast[OK],'lastdone':resultlast[DONE],
'send':send,'processerrors':processerrors,'ts':rootta.ts,'lastreceived':LastReceived,'status':status,'type':type[2:]})
return generate_report(stuff2evaluate) #return report status: 0 (no error) or 1 (error)
def generate_report(stuff2evaluate):
for results in botslib.query('''SELECT idta,lastopen,lasterror,lastok,lastdone,
send,processerrors,ts,lastreceived,type,status
FROM report
WHERE idta=%(rootidta)s''',
{'rootidta':stuff2evaluate}):
break
else:
raise botslib.PanicError(_(u'In generate report: could not find report?'))
subject = _(u'[Bots Error Report] %(time)s')%{'time':str(results['ts'])[:16]}
reporttext = _(u'Bots Report; type: %(type)s, time: %(time)s\n')%{'type':results['type'],'time':str(results['ts'])[:19]}
reporttext += _(u' %d files received/processed in run.\n')%(results['lastreceived'])
if results['lastdone']:
reporttext += _(u' %d files without errors,\n')%(results['lastdone'])
if results['lasterror']:
subject += _(u'; %d file errors')%(results['lasterror'])
reporttext += _(u' %d files with errors,\n')%(results['lasterror'])
if results['lastok']:
subject += _(u'; %d files stuck')%(results['lastok'])
reporttext += _(u' %d files got stuck,\n')%(results['lastok'])
if results['lastopen']:
subject += _(u'; %d system errors')%(results['lastopen'])
reporttext += _(u' %d system errors,\n')%(results['lastopen'])
if results['processerrors']:
subject += _(u'; %d process errors')%(results['processerrors'])
reporttext += _(u' %d errors in processes.\n')%(results['processerrors'])
reporttext += _(u' %d files send in run.\n')%(results['send'])
botsglobal.logger.info(reporttext)
# sendreportifprocesserror allows blocking of email reports for process errors
if (results['lasterror'] or results['lastopen'] or results['lastok'] or
(results['processerrors'] and botsglobal.ini.getboolean('settings','sendreportifprocesserror',True))):
botslib.sendbotserrorreport(subject,reporttext)
return int(results['status']) #return report status: 0 (no error) or 1 (error)
class Trace(object):
''' ediobject-ta's form a tree; the incoming ediobject-ta (status EXTERNIN) is root.
(yes, this works for merging, strange but inherent).
tree gets a (one) statust, by walking the tree and evaluating the statust of nodes.
all nodes are put into a tree of ta-objects;
'''
def __init__(self,tadict,stuff2evaluate):
realdict = dict([(key,tadict[key]) for key in tadict.keys()])
self.ta=botslib.OldTransaction(**realdict)
self.rootidta = stuff2evaluate
self._buildevaluationstructure(self.ta)
#~ self.display(self.ta)
self._evaluatestatus()
self._gatherfilereportdata()
def display(self,currentta,level=0):
print level*' ',currentta.idta,currentta.statust,currentta.talijst
for ta in currentta.talijst:
self.display(ta,level+1)
def _buildevaluationstructure(self,tacurrent):
''' recursive,for each db-ta:
- fill global talist with the children (and children of children, etc)
'''
#gather next steps/ta's for tacurrent;
if tacurrent.child: #find successor by using child relation ship
for row in botslib.query('''SELECT ''' + tavars + '''
FROM ta
WHERE idta=%(child)s''',
{'child':tacurrent.child}):
realdict = dict([(key,row[key]) for key in row.keys()])
tacurrent.talijst = [botslib.OldTransaction(**realdict)]
else: #find successor by using parent-relationship; mostly this relation except for merge operations
talijst = []
for row in botslib.query('''SELECT ''' + tavars + '''
FROM ta
WHERE idta > %(currentidta)s
AND parent=%(currentidta)s ''', #adding the idta > %(parent)s to selection speeds up a lot.
{'currentidta':tacurrent.idta}):
realdict = dict([(key,row[key]) for key in row.keys()])
talijst.append(botslib.OldTransaction(**realdict))
#filter:
#one ta might have multiple children; 2 possible reasons for that:
#1. split up
#2. error is processing the file; and retried
#Here case 2 (error/retry) is filtered; it is not interesting to evaluate the older errors!
#So: if the same filename and different script: use newest idta
#shortcut: when an error occurs in a split all is turned back.
#so: split up is OK as a whole or because of retries.
#so: if split, and different scripts: split is becaue of retries: use newest idta.
#~ print tacurrent.talijst
if len(talijst) > 1 and talijst[0].script != talijst[1].script:
#find higest idta
highest_ta = talijst[0]
for ta in talijst[1:]:
if ta.idta > highest_ta.idta:
highest_ta = ta
tacurrent.talijst = [highest_ta]
else:
tacurrent.talijst = talijst
#recursive build:
for child in tacurrent.talijst:
self._buildevaluationstructure(child)
def _evaluatestatus(self):
self.done = False
try:
self.statusttree = self._evaluatetreestatus(self.ta)
if self.statusttree == OK:
self.statusttree = ERROR #this is ugly!!
except botslib.TraceNotPickedUpError:
self.statusttree = OK
except: #botslib.TraceError:
self.statusttree = OPEN
def _evaluatetreestatus(self,tacurrent):
''' recursive, walks tree of ediobject-ta, depth-first
for each db-ta:
- get statust of all child-db-ta (recursive); count these statust's
- evaluate this
rules for evaluating:
- typical error-situation: DONE->OK->ERROR
- Db-ta with statust OK will be picked up next botsrun.
- if succes on next botsrun: DONE-> DONE-> ERROR
-> DONE
- one db-ta can have more children; each of these children has to evaluated
- not possible is: DONE-> ERROR (because there should always be statust OK)
'''
statustcount = [0,0,0,0] #count of statust: number of OPEN, ERROR, OK, DONE
for child in tacurrent.talijst:
if child.idta > self.rootidta:
self.done = True
statustcount[self._evaluatetreestatus(child)]+=1
else: #evaluate & return statust of current ta & children;
if tacurrent.statust==DONE:
if statustcount[OK]:
return OK #at least one of the child-trees is not DONE
elif statustcount[DONE]:
return DONE #all is OK
elif statustcount[ERROR]:
raise botslib.TraceError(_(u'DONE but no child is DONE or OK (idta: $idta).'),idta=tacurrent.idta)
else: #if no ERROR and has no children: end of trace
return DONE
elif tacurrent.statust==OK:
if statustcount[ERROR]:
return OK #child(ren) ERROR, this is expected
elif statustcount[DONE]:
raise botslib.TraceError(_(u'OK but child is DONE (idta: $idta). Changing setup while errors are pending?'),idta=tacurrent.idta)
elif statustcount[OK]:
raise botslib.TraceError(_(u'OK but child is OK (idta: $idta). Changing setup while errors are pending?'),idta=tacurrent.idta)
else:
raise botslib.TraceNotPickedUpError(_(u'OK but file is not processed further (idta: $idta).'),idta=tacurrent.idta)
elif tacurrent.statust==ERROR:
if tacurrent.talijst:
raise botslib.TraceError(_(u'ERROR but has child(ren) (idta: $idta). Changing setup while errors are pending?'),idta=tacurrent.idta)
else:
#~ self.errorta += [tacurrent]
return ERROR
else: #tacurrent.statust==OPEN
raise botslib.TraceError(_(u'Severe error: found statust (idta: $idta).'),idta=tacurrent.idta)
def _gatherfilereportdata(self):
''' Walk the ta-tree again in order to retrieve information/data belonging to incoming file; statust (OK, DONE, ERROR etc) is NOT done here.
If information is different in different ta's: place '*'
Start 'root'-ta; a file coming in; status=EXTERNIN. Retrieve as much information from ta's as possible for the filereport.
'''
def core(ta):
if ta.status==MIMEIN:
self.frommail=ta.frommail
self.tomail=ta.tomail
self.incontenttype=ta.contenttype
elif ta.status==RAWOUT:
if ta.frommail:
if self.frommail:
if self.frommail != ta.frommail and asterisk:
self.frommail='*'
else:
self.frommail=ta.frommail
if ta.tomail:
if self.tomail:
if self.tomail != ta.tomail and asterisk:
self.tomail='*'
else:
self.tomail=ta.tomail
if ta.contenttype:
if self.outcontenttype:
if self.outcontenttype != ta.contenttype and asterisk:
self.outcontenttype='*'
else:
self.outcontenttype=ta.contenttype
if ta.idta:
if self.outidta:
if self.outidta != ta.idta and asterisk:
self.outidta=0
else:
self.outidta=ta.idta
elif ta.status==TRANSLATE:
#self.ineditype=ta.editype
if self.ineditype:
if self.ineditype!=ta.editype and asterisk:
self.ineditype='*'
else:
self.ineditype=ta.editype
elif ta.status==SPLITUP:
self.nrmessages+=1
if self.inmessagetype:
if self.inmessagetype!=ta.messagetype and asterisk:
self.inmessagetype='*'
else:
self.inmessagetype=ta.messagetype
elif ta.status==TRANSLATED:
#self.outeditype=ta.editype
if self.outeditype:
if self.outeditype!=ta.editype and asterisk:
self.outeditype='*'
else:
self.outeditype=ta.editype
if self.outmessagetype:
if self.outmessagetype!=ta.messagetype and asterisk:
self.outmessagetype='*'
else:
self.outmessagetype=ta.messagetype
if self.divtext:
if self.divtext!=ta.divtext and asterisk:
self.divtext='*'
else:
self.divtext=ta.divtext
elif ta.status==EXTERNOUT:
if self.outfilename:
if self.outfilename != ta.filename and asterisk:
self.outfilename='*'
else:
self.outfilename=ta.filename
if self.tochannel:
if self.tochannel != ta.tochannel and asterisk:
self.tochannel='*'
else:
self.tochannel=ta.tochannel
if ta.frompartner:
if not self.frompartner:
self.frompartner=ta.frompartner
elif self.frompartner!=ta.frompartner and asterisk:
self.frompartner='*'
if ta.topartner:
if not self.topartner:
self.topartner=ta.topartner
elif self.topartner!=ta.topartner and asterisk:
self.topartner='*'
if ta.errortext:
self.errortext = ta.errortext
for child in ta.talijst:
core(child)
#end of core function
asterisk = botsglobal.ini.getboolean('settings','multiplevaluesasterisk',True)
self.idta = self.ta.idta
self.reportidta = self.rootidta
self.retransmit = 0
self.idroute = self.ta.idroute
self.fromchannel = self.ta.fromchannel
self.ts = self.ta.ts
self.infilename = self.ta.filename
self.tochannel = ''
self.frompartner = ''
self.topartner = ''
self.frommail = ''
self.tomail = ''
self.ineditype = ''
self.inmessagetype = ''
self.outeditype = ''
self.outmessagetype = ''
self.incontenttype = ''
self.outcontenttype = ''
self.nrmessages = 0
self.outfilename = ''
self.outidta = 0
self.errortext = ''
self.divtext = ''
core(self.ta)
| [
[
1,
0,
0.0049,
0.0025,
0,
0.66,
0,
484,
0,
1,
0,
0,
484,
0,
0
],
[
1,
0,
0.0074,
0.0025,
0,
0.66,
0.0909,
261,
0,
1,
0,
0,
261,
0,
0
],
[
1,
0,
0.0099,
0.0025,
0,
... | [
"import botslib",
"import botsglobal",
"from botsconfig import *",
"from django.utils.translation import ugettext as _",
"tavars = 'idta,statust,divtext,child,ts,filename,status,idroute,fromchannel,tochannel,frompartner,topartner,frommail,tomail,contenttype,nrmessages,editype,messagetype,errortext,script'",... |
try:
from pysqlite2 import dbapi2 as sqlite #prefer external modules for pylite
except ImportError:
import sqlite3 as sqlite #works OK for python26
#~ #bots engine uses:
#~ ''' SELECT *
#~ FROM ta
#~ WHERE idta=%(idta)s ''',
#~ {'idta':12345})
#~ #SQLite wants:
#~ ''' SELECT *
#~ FROM ta
#~ WHERE idta=:idta ''',
#~ {'idta': 12345}
import re
reformatparamstyle = re.compile(u'%\((?P<name>[^)]+)\)s')
def adapter4bool(boolfrompython):
#SQLite expects a string
if boolfrompython:
return '1'
else:
return '0'
def converter4bool(strfromdb):
#SQLite returns a string
if strfromdb == '1':
return True
else:
return False
sqlite.register_adapter(bool,adapter4bool)
sqlite.register_converter('BOOLEAN',converter4bool)
def connect(database):
con = sqlite.connect(database, factory=BotsConnection,detect_types=sqlite.PARSE_DECLTYPES, timeout=99.0, isolation_level='IMMEDIATE')
con.row_factory = sqlite.Row
con.execute('''PRAGMA synchronous=OFF''')
return con
class BotsConnection(sqlite.Connection):
def cursor(self):
return sqlite.Connection.cursor(self, factory=BotsCursor)
class BotsCursor(sqlite.Cursor):
def execute(self,string,parameters=None):
if parameters is None:
sqlite.Cursor.execute(self,string)
else:
sqlite.Cursor.execute(self,reformatparamstyle.sub(u''':\g<name>''',string),parameters)
| [
[
7,
0,
0.0472,
0.0755,
0,
0.66,
0,
0,
0,
1,
0,
0,
0,
0,
0
],
[
1,
1,
0.0377,
0.0189,
1,
0.11,
0,
987,
0,
1,
0,
0,
987,
0,
0
],
[
1,
1,
0.0755,
0.0189,
1,
0.11,
... | [
"try:\n from pysqlite2 import dbapi2 as sqlite #prefer external modules for pylite\nexcept ImportError:\n import sqlite3 as sqlite #works OK for python26",
" from pysqlite2 import dbapi2 as sqlite #prefer external modules for pylite",
" import sqlite3 as sqlite #works OK for python26",
"im... |
import sys
import os
import botsinit
import botslib
import grammar
def showusage():
print
print " Usage: %s -c<directory> <editype> <messagetype>"%os.path.basename(sys.argv[0])
print
print " Checks a Bots grammar."
print " Same checks are used as in translations with bots-engine."
print " Searches for grammar in regular place: bots/usersys/grammars/<editype>/<messagetype>.py"
print " Options:"
print " -c<directory> directory for configuration files (default: config)."
print " Example:"
print " %s -cconfig edifact ORDERSD96AUNEAN008"%os.path.basename(sys.argv[0])
print
sys.exit(0)
def startmulti(grammardir,editype):
''' used in seperate tool for bulk checking of gramamrs while developing edifact->botsgramamrs '''
import glob
botslib.generalinit('config')
botslib.initenginelogging()
for g in glob.glob(grammardir):
g1 = os.path.basename(g)
g2 = os.path.splitext(g1)[0]
if g1 in ['__init__.py']:
continue
if g1.startswith('edifact'):
continue
if g1.startswith('records') or g1.endswith('records.py'):
continue
try:
grammar.grammarread(editype,g2)
except:
#~ print 'Found error in grammar:',g
print botslib.txtexc()
print '\n'
else:
print 'OK - no error found in grammar',g,'\n'
def start():
#********command line arguments**************************
editype =''
messagetype = ''
configdir = 'config'
for arg in sys.argv[1:]:
if not arg:
continue
if arg.startswith('-c'):
configdir = arg[2:]
if not configdir:
print ' !!Indicated Bots should use specific .ini file but no file name was given.'
showusage()
elif arg in ["?", "/?"] or arg.startswith('-'):
showusage()
else:
if not editype:
editype = arg
else:
messagetype = arg
if not (editype and messagetype):
print ' !!Both editype and messagetype are required.'
showusage()
#********end handling command line arguments**************************
try:
botsinit.generalinit(configdir)
botsinit.initenginelogging()
grammar.grammarread(editype,messagetype)
except:
print 'Found error in grammar:'
print botslib.txtexc()
else:
print 'OK - no error found in grammar'
if __name__=='__main__':
start()
| [
[
1,
0,
0.0132,
0.0132,
0,
0.66,
0,
509,
0,
1,
0,
0,
509,
0,
0
],
[
1,
0,
0.0263,
0.0132,
0,
0.66,
0.125,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.0395,
0.0132,
0,
0... | [
"import sys",
"import os",
"import botsinit",
"import botslib",
"import grammar",
"def showusage():\n print(\" Same checks are used as in translations with bots-engine.\")\n print(\" Searches for grammar in regular place: bots/usersys/grammars/<editype>/<messagetype>.py\")\n print(\" Opt... |
import sys
import os
import tarfile
import glob
import shutil
import subprocess
import traceback
import bots.botsglobal as botsglobal
def join(path,*paths):
return os.path.normpath(os.path.join(path,*paths))
#******************************************************************************
#*** start *********************************************
#******************************************************************************
def start():
print 'Installation of bots open source edi translator.'
#python version dependencies
version = str(sys.version_info[0]) + str(sys.version_info[1])
if version == '25':
pass
elif version == '26':
pass
elif version == '27':
pass
else:
raise Exception('Wrong python version, use python 2.5.*, 2.6.* or 2.7.*')
botsdir = os.path.dirname(botsglobal.__file__)
print ' Installed bots in "%s".'%(botsdir)
#******************************************************************************
#*** shortcuts *******************************************************
#******************************************************************************
scriptpath = join(sys.prefix,'Scripts')
shortcutdir = join(get_special_folder_path('CSIDL_COMMON_PROGRAMS'),'Bots2.1')
try:
os.mkdir(shortcutdir)
except:
pass
else:
directory_created(shortcutdir)
try:
#~ create_shortcut(join(scriptpath,'botswebserver'),'Bots open source EDI translator',join(shortcutdir,'Bots-webserver.lnk'))
create_shortcut(join(sys.prefix,'python'),'bots open source edi translator',join(shortcutdir,'bots-webserver.lnk'),join(scriptpath,'bots-webserver.py'))
file_created(join(shortcutdir,'bots-webserver.lnk'))
except:
print ' Failed to install shortcut/link for bots in your menu.'
else:
print ' Installed shortcut in "Program Files".'
#******************************************************************************
#*** install libraries, dependencies ***************************************
#******************************************************************************
for library in glob.glob(join(botsdir,'installwin','*.gz')):
tar = tarfile.open(library)
tar.extractall(path=os.path.dirname(library))
tar.close()
untar_dir = library[:-len('.tar.gz')]
subprocess.call([join(sys.prefix,'pythonw'), 'setup.py','install'],cwd=untar_dir,stdin=open(os.devnull,'r'),stdout=open(os.devnull,'w'),stderr=open(os.devnull,'w'))
shutil.rmtree(untar_dir, ignore_errors=True)
print ' Installed needed libraries.'
#******************************************************************************
#*** install configuration files **************************************
#******************************************************************************
if os.path.exists(join(botsdir,'config','settings.py')): #use this to see if this is an existing installation
print ' Found existing configuration files'
print ' Configuration files bots.ini and settings.py not overwritten.'
print ' Manual action is needed.'
print ' See bots web site-documentation-migrate for more info.'
else:
shutil.copy(join(botsdir,'install','bots.ini'),join(botsdir,'config','bots.ini'))
shutil.copy(join(botsdir,'install','settings.py'),join(botsdir,'config','settings.py'))
print ' Installed configuration files'
#******************************************************************************
#*** install database; upgrade existing db *********************************
#******************************************************************************
sqlitedir = join(botsdir,'botssys','sqlitedb')
if os.path.exists(join(sqlitedir,'botsdb')): #use this to see if this is an existing installation
print ' Found existing database file botssys/sqlitedb/botsdb'
print ' Manual action is needed - there is a tool/program to update the database.'
print ' See bots web site-documentation-migrate for more info.'
else:
if not os.path.exists(sqlitedir): #use this to see if this is an existing installation
os.makedirs(sqlitedir)
shutil.copy(join(botsdir,'install','botsdb'),join(sqlitedir,'botsdb'))
print ' Installed SQLite database'
#******************************************************************************
#******************************************************************************
if __name__=='__main__':
if len(sys.argv)>1 and sys.argv[1]=='-install':
try:
start()
except:
print traceback.format_exc(0)
print
print 'Bots installation failed.'
else:
print
print 'Bots installation succeeded.'
| [
[
1,
0,
0.0323,
0.0323,
0,
0.66,
0,
509,
0,
1,
0,
0,
509,
0,
0
],
[
1,
0,
0.0645,
0.0323,
0,
0.66,
0.1111,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.0968,
0.0323,
0,
... | [
"import sys",
"import os",
"import tarfile",
"import glob",
"import shutil",
"import subprocess",
"import traceback",
"import bots.botsglobal as botsglobal",
"def join(path,*paths):\n return os.path.normpath(os.path.join(path,*paths))",
" return os.path.normpath(os.path.join(path,*paths))",
... |
import copy
import os
import glob
import bots.inmessage as inmessage
import bots.outmessage as outmessage
def comparenode(node1,node2org):
node2 = copy.deepcopy(node2org)
if node1.record is not None and node2.record is None:
print 'node2 is "None"'
return False
if node1.record is None and node2.record is not None:
print 'node1 is "None"'
return False
return comparenodecore(node1,node2)
def comparenodecore(node1,node2):
if node1.record is None and node2.record is None:
pass
else:
for key,value in node1.record.items():
if key not in node2.record:
print 'key not in node2', key,value
return False
elif node2.record[key]!=value:
print 'unequal attr', key,value,node2.record[key]
return False
for key,value in node2.record.items():
if key not in node1.record:
print 'key not in node1', key,value
return False
elif node1.record[key]!=value:
print 'unequal attr', key,value,node1.record[key]
return False
if len(node1.children) != len(node2.children):
print 'number of children not equal'
return False
for child1 in node1.children:
for i,child2 in enumerate(node2.children):
if child1.record['BOTSID'] == child2.record['BOTSID']:
if comparenodecore(child1,child2) != True:
return False
del node2.children[i:i+1]
break
else:
print 'Found no matching record in node2 for',child1.record
return False
return True
def readfilelines(bestand):
fp = open(bestand,'rU')
terug=fp.readlines()
fp.close()
return terug
def readfile(bestand):
fp = open(bestand,'rU')
terug=fp.read()
fp.close()
return terug
def readwrite(filenamein='',filenameout='',**args):
inn = inmessage.edifromfile(filename=filenamein,**args)
out = outmessage.outmessage_init(filename=filenameout,divtext='',topartner='',**args) #make outmessage object
out.root = inn.root
out.writeall()
def getdirbysize(path):
''' read fils in directory path, return as a sorted list.'''
lijst = getdir(path)
lijst.sort(key=lambda s: os.path.getsize(s))
return lijst
def getdir(path):
''' read files in directory path, return incl length.'''
return [s for s in glob.glob(path) if os.path.isfile(s)]
| [
[
1,
0,
0.0123,
0.0123,
0,
0.66,
0,
739,
0,
1,
0,
0,
739,
0,
0
],
[
1,
0,
0.0247,
0.0123,
0,
0.66,
0.0909,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.037,
0.0123,
0,
0... | [
"import copy",
"import os",
"import glob",
"import bots.inmessage as inmessage",
"import bots.outmessage as outmessage",
"def comparenode(node1,node2org):\n node2 = copy.deepcopy(node2org)\n if node1.record is not None and node2.record is None:\n print('node2 is \"None\"')\n return Fal... |
import os
import unittest
import shutil
import bots.inmessage as inmessage
import bots.outmessage as outmessage
import filecmp
try:
import json as simplejson
except ImportError:
import simplejson
import bots.botslib as botslib
import bots.botsinit as botsinit
import utilsunit
try:
import cElementTree as ET
except ImportError:
try:
import elementtree.ElementTree as ET
except ImportError:
try:
from xml.etree import cElementTree as ET
except ImportError:
from xml.etree import ElementTree as ET
'''
PLUGIN: unitinmessagejson.zip
'''
class InmessageJson(unittest.TestCase):
#~ #***********************************************************************
#~ #***********test json eg list of article (as eg used in database comm *******
#~ #***********************************************************************
def testjson01(self):
filein = 'botssys/infile/unitinmessagejson/org/01.jsn'
filecomp = 'botssys/infile/unitinmessagejson/comp/01.xml'
inn1 = inmessage.edifromfile(filename=filein,editype='json',messagetype='articles')
inn2 = inmessage.edifromfile(filename=filecomp,editype='xml',messagetype='articles')
self.failUnless(utilsunit.comparenode(inn1.root,inn2.root))
def testjson01nocheck(self):
filein = 'botssys/infile/unitinmessagejson/org/01.jsn'
filecomp = 'botssys/infile/unitinmessagejson/comp/01.xml'
inn1 = inmessage.edifromfile(filename=filein,editype='jsonnocheck',messagetype='articles')
inn2 = inmessage.edifromfile(filename=filecomp,editype='xml',messagetype='articles')
self.failUnless(utilsunit.comparenode(inn1.root,inn2.root))
def testjson11(self):
filein = 'botssys/infile/unitinmessagejson/org/11.jsn'
filecomp = 'botssys/infile/unitinmessagejson/comp/01.xml'
inn1 = inmessage.edifromfile(filename=filein,editype='json',messagetype='articles')
inn2 = inmessage.edifromfile(filename=filecomp,editype='xml',messagetype='articles')
self.failUnless(utilsunit.comparenode(inn1.root,inn2.root))
def testjson11nocheck(self):
filein = 'botssys/infile/unitinmessagejson/org/11.jsn'
filecomp = 'botssys/infile/unitinmessagejson/comp/01.xml'
inn1 = inmessage.edifromfile(filename=filein,editype='jsonnocheck',messagetype='articles')
inn2 = inmessage.edifromfile(filename=filecomp,editype='xml',messagetype='articles')
self.failUnless(utilsunit.comparenode(inn1.root,inn2.root))
#***********************************************************************
#*********json incoming tests complex structure*************************
#***********************************************************************
def testjsoninvoic01(self):
filein = 'botssys/infile/unitinmessagejson/org/invoic01.jsn'
filecomp = 'botssys/infile/unitinmessagejson/comp/invoic01.xml'
inn1 = inmessage.edifromfile(filename=filein,editype='json',messagetype='invoic')
inn2 = inmessage.edifromfile(filename=filecomp,editype='xml',messagetype='invoic')
self.failUnless(utilsunit.comparenode(inn1.root,inn2.root))
def testjsoninvoic01nocheck(self):
filein = 'botssys/infile/unitinmessagejson/org/invoic01.jsn'
filecomp = 'botssys/infile/unitinmessagejson/comp/invoic01.xml'
inn1 = inmessage.edifromfile(filename=filein,editype='jsonnocheck',messagetype='invoic')
inn2 = inmessage.edifromfile(filename=filecomp,editype='xml',messagetype='invoic')
self.failUnless(utilsunit.comparenode(inn1.root,inn2.root))
def testjsoninvoic02(self):
''' check 01.xml the same after rad&write/check '''
filein = 'botssys/infile/unitinmessagejson/org/invoic02.jsn'
filecomp = 'botssys/infile/unitinmessagejson/comp/invoic01.xml'
inn1 = inmessage.edifromfile(filename=filein,editype='json',messagetype='invoic')
inn2 = inmessage.edifromfile(filename=filecomp,editype='xml',messagetype='invoic')
self.failUnless(utilsunit.comparenode(inn1.root,inn2.root))
def testjsoninvoic02nocheck(self):
''' check 01.xml the same after rad&write/check '''
filein = 'botssys/infile/unitinmessagejson/org/invoic02.jsn'
filecomp = 'botssys/infile/unitinmessagejson/comp/invoic01.xml'
inn1 = inmessage.edifromfile(filename=filein,editype='jsonnocheck',messagetype='invoic')
inn2 = inmessage.edifromfile(filename=filecomp,editype='xml',messagetype='invoic')
self.failUnless(utilsunit.comparenode(inn1.root,inn2.root))
#***********************************************************************
#*********json incoming tests int,float*********************************
#***********************************************************************
def testjsoninvoic03(self):
''' test int, float in json '''
filein = 'botssys/infile/unitinmessagejson/org/invoic03.jsn'
filecomp = 'botssys/infile/unitinmessagejson/comp/invoic02.xml'
inn1 = inmessage.edifromfile(filename=filein,editype='json',messagetype='invoic')
inn2 = inmessage.edifromfile(filename=filecomp,editype='xml',messagetype='invoic')
self.failUnless(utilsunit.comparenode(inn1.root,inn2.root))
def testjsoninvoic03xmlnocheck(self):
''' test int, float in json '''
filein = 'botssys/infile/unitinmessagejson/org/invoic03.jsn'
filecomp = 'botssys/infile/unitinmessagejson/comp/invoic02.xml'
inn1 = inmessage.edifromfile(filename=filein,editype='json',messagetype='invoic')
inn2 = inmessage.edifromfile(filename=filecomp,editype='xmlnocheck',messagetype='invoic')
self.failUnless(utilsunit.comparenode(inn1.root,inn2.root))
def testjsoninvoic03nocheck(self):
''' test int, float in json '''
filein = 'botssys/infile/unitinmessagejson/org/invoic03.jsn'
filecomp = 'botssys/infile/unitinmessagejson/comp/invoic02.xml'
inn1 = inmessage.edifromfile(filename=filein,editype='jsonnocheck',messagetype='invoic')
inn2 = inmessage.edifromfile(filename=filecomp,editype='xml',messagetype='invoic')
self.failUnless(utilsunit.comparenode(inn1.root,inn2.root))
def testjsoninvoic03nocheckxmlnocheck(self):
''' test int, float in json '''
filein = 'botssys/infile/unitinmessagejson/org/invoic03.jsn'
filecomp = 'botssys/infile/unitinmessagejson/comp/invoic02.xml'
inn1 = inmessage.edifromfile(filename=filein,editype='jsonnocheck',messagetype='invoic')
inn2 = inmessage.edifromfile(filename=filecomp,editype='xmlnocheck',messagetype='invoic')
self.failUnless(utilsunit.comparenode(inn1.root,inn2.root))
def testjsondiv(self):
self.failUnless(inmessage.edifromfile(editype='json',messagetype='testjsonorder01',checkunknownentities=True,filename='botssys/infile/unitinmessagejson/org/130101.json'), 'standaard test')
self.failUnless(inmessage.edifromfile(editype='jsonnocheck',messagetype='jsonnocheck',filename='botssys/infile/unitinmessagejson/org/130101.json'), 'standaard test')
#empty object
self.assertRaises(botslib.InMessageError,inmessage.edifromfile, editype='json',messagetype='testjsonorder01',checkunknownentities=True,filename='botssys/infile/unitinmessagejson/org/130102.json')
#unknown field
self.failUnless(inmessage.edifromfile(editype='json',messagetype='testjsonorder01',checkunknownentities=False,filename='botssys/infile/unitinmessagejson/org/130103.json'), 'unknown field')
self.failUnless(inmessage.edifromfile(editype='jsonnocheck',messagetype='jsonnocheck',filename='botssys/infile/unitinmessagejson/org/130103.json'), 'unknown field')
self.assertRaises(botslib.MessageError,inmessage.edifromfile, editype='json',messagetype='testjsonorder01',checkunknownentities=True,filename='botssys/infile/unitinmessagejson/org/130103.json') #unknown field
#compare standard test with standard est with extra unknown fields and objects: must give same tree:
in1 = inmessage.edifromfile(editype='json',messagetype='testjsonorder01',checkunknownentities=True,filename='botssys/infile/unitinmessagejson/org/130101.json')
in2 = inmessage.edifromfile(editype='json',messagetype='testjsonorder01',checkunknownentities=False,filename='botssys/infile/unitinmessagejson/org/130115.json')
self.failUnless(utilsunit.comparenode(in1.root,in2.root),'compare')
#numeriek field
self.failUnless(inmessage.edifromfile(editype='json',messagetype='testjsonorder01',checkunknownentities=False,filename='botssys/infile/unitinmessagejson/org/130104.json'), 'numeriek field')
self.failUnless(inmessage.edifromfile(editype='jsonnocheck',messagetype='jsonnocheck',checkunknownentities=False,filename='botssys/infile/unitinmessagejson/org/130104.json'), 'numeriek field')
self.failUnless(inmessage.edifromfile(editype='json',messagetype='testjsonorder01',checkunknownentities=True,filename='botssys/infile/unitinmessagejson/org/130104.json'), 'numeriek field')
self.failUnless(inmessage.edifromfile(editype='json',messagetype='testjsonorder01',checkunknownentities=False,filename='botssys/infile/unitinmessagejson/org/130105.json'), 'fucked up')
self.failUnless(inmessage.edifromfile(editype='jsonnocheck',messagetype='jsonnocheck',filename='botssys/infile/unitinmessagejson/org/130105.json'), 'fucked up')
self.assertRaises(botslib.MessageError,inmessage.edifromfile, editype='json',messagetype='testjsonorder01',checkunknownentities=True,filename='botssys/infile/unitinmessagejson/org/130105.json') #fucked up
self.failUnless(inmessage.edifromfile(editype='json',messagetype='testjsonorder01',checkunknownentities=False,filename='botssys/infile/unitinmessagejson/org/130106.json'), 'fucked up')
self.failUnless(inmessage.edifromfile(editype='jsonnocheck',messagetype='jsonnocheck',filename='botssys/infile/unitinmessagejson/org/130106.json'), 'fucked up')
self.assertRaises(botslib.InMessageError,inmessage.edifromfile, editype='json',messagetype='testjsonorder01',checkunknownentities=True,filename='botssys/infile/unitinmessagejson/org/130106.json') #fucked up
self.failUnless(inmessage.edifromfile(editype='json',messagetype='testjsonorder01',checkunknownentities=False,filename='botssys/infile/unitinmessagejson/org/130107.json'), 'fucked up')
self.failUnless(inmessage.edifromfile(editype='jsonnocheck',messagetype='jsonnocheck',filename='botssys/infile/unitinmessagejson/org/130107.json'), 'fucked up')
self.assertRaises(botslib.InMessageError,inmessage.edifromfile, editype='json',messagetype='testjsonorder01',checkunknownentities=True,filename='botssys/infile/unitinmessagejson/org/130107.json') #fucked up
#root is list with 3 messagetrees
inn = inmessage.edifromfile(editype='json',messagetype='testjsonorder01',checkunknownentities=False,filename='botssys/infile/unitinmessagejson/org/130108.json')
self.assertEqual(len(inn.root.children), 3,'should deliver 3 messagetrees')
inn = inmessage.edifromfile(editype='jsonnocheck',messagetype='jsonnocheck',filename='botssys/infile/unitinmessagejson/org/130108.json')
self.assertEqual(len(inn.root.children), 3,'should deliver 3 messagetrees')
#root is list, but list has a non-object member
self.failUnless(inmessage.edifromfile(editype='json',messagetype='testjsonorder01',checkunknownentities=False,filename='botssys/infile/unitinmessagejson/org/130109.json'), 'root is list, but list has a non-object member')
self.failUnless(inmessage.edifromfile(editype='jsonnocheck',messagetype='jsonnocheck',filename='botssys/infile/unitinmessagejson/org/130109.json'), 'root is list, but list has a non-object member')
self.assertRaises(botslib.InMessageError,inmessage.edifromfile, editype='json',messagetype='testjsonorder01',checkunknownentities=True,filename='botssys/infile/unitinmessagejson/org/130109.json') #root is list, but list has a non-object member
self.assertRaises(botslib.MessageError,inmessage.edifromfile, editype='json',messagetype='testjsonorder01',checkunknownentities=False,filename='botssys/infile/unitinmessagejson/org/130110.json') #too many occurences
self.assertRaises(botslib.MessageError,inmessage.edifromfile, editype='json',messagetype='testjsonorder01',checkunknownentities=False,filename='botssys/infile/unitinmessagejson/org/130111.json') #ent TEST1 should have a TEST2
self.failUnless(inmessage.edifromfile(editype='jsonnocheck',messagetype='jsonnocheck',filename='botssys/infile/unitinmessagejson/org/130111.json'), 'ent TEST1 should have a TEST2')
self.assertRaises(botslib.MessageError,inmessage.edifromfile, editype='json',messagetype='testjsonorder01',checkunknownentities=True,filename='botssys/infile/unitinmessagejson/org/130111.json') #ent TEST1 should have a TEST2
self.assertRaises(botslib.MessageError,inmessage.edifromfile, editype='json',messagetype='testjsonorder01',checkunknownentities=False,filename='botssys/infile/unitinmessagejson/org/130112.json') #ent TEST1 has a TEST2
self.failUnless(inmessage.edifromfile(editype='jsonnocheck',messagetype='jsonnocheck',filename='botssys/infile/unitinmessagejson/org/130112.json'), 'ent TEST1 has a TEST2')
self.assertRaises(botslib.MessageError,inmessage.edifromfile, editype='json',messagetype='testjsonorder01',checkunknownentities=True,filename='botssys/infile/unitinmessagejson/org/130112.json') #ent TEST1 has a TEST2
#unknown entries
inn = inmessage.edifromfile(editype='json',messagetype='testjsonorder01',checkunknownentities=False,filename='botssys/infile/unitinmessagejson/org/130113.json')
#empty file
self.assertRaises(ValueError,inmessage.edifromfile, editype='json',messagetype='testjsonorder01',checkunknownentities=False,filename='botssys/infile/unitinmessagejson/org/130114.json') #empty file
self.assertRaises(ValueError,inmessage.edifromfile, editype='jsonnocheck',messagetype='jsonnocheck',filename='botssys/infile/unitinmessagejson/org/130114.json') #empty file
#numeric key
self.assertRaises(ValueError,inmessage.edifromfile, editype='json',messagetype='testjsonorder01',checkunknownentities=False,filename='botssys/infile/unitinmessagejson/org/130116.json')
#key is list
self.assertRaises(ValueError,inmessage.edifromfile, editype='json',messagetype='testjsonorder01',checkunknownentities=False,filename='botssys/infile/unitinmessagejson/org/130117.json')
def testinisoutjson01(self):
filein = 'botssys/infile/unitinmessagejson/org/inisout01.json'
fileout1 = 'botssys/infile/unitinmessagejson/output/inisout01.json'
fileout3 = 'botssys/infile/unitinmessagejson/output/inisout03.json'
utilsunit.readwrite(editype='json',messagetype='jsonorder',filenamein=filein,filenameout=fileout1)
utilsunit.readwrite(editype='jsonnocheck',messagetype='jsonnocheck',filenamein=filein,filenameout=fileout3)
inn1 = inmessage.edifromfile(filename=fileout1,editype='jsonnocheck',messagetype='jsonnocheck')
inn2 = inmessage.edifromfile(filename=fileout3,editype='jsonnocheck',messagetype='jsonnocheck')
self.failUnless(utilsunit.comparenode(inn1.root,inn2.root))
def testinisoutjson02(self):
#fails. this is because list of messages is read; and these are written in one time....nice for next release...
filein = 'botssys/infile/unitinmessagejson/org/inisout05.json'
fileout = 'botssys/infile/unitinmessagejson/output/inisout05.json'
inn = inmessage.edifromfile(editype='json',messagetype='jsoninvoic',filename=filein)
out = outmessage.outmessage_init(editype='json',messagetype='jsoninvoic',filename=fileout,divtext='',topartner='') #make outmessage object
#~ inn.root.display()
out.root = inn.root
out.writeall()
inn1 = inmessage.edifromfile(filename=filein,editype='jsonnocheck',messagetype='jsonnocheck',defaultBOTSIDroot='HEA')
inn2 = inmessage.edifromfile(filename=fileout,editype='jsonnocheck',messagetype='jsonnocheck')
#~ inn1.root.display()
#~ inn2.root.display()
#~ self.failUnless(utilsunit.comparenode(inn1.root,inn2.root))
#~ rawfile1 = utilsunit.readfile(filein)
#~ rawfile2 = utilsunit.readfile(fileout)
#~ jsonobject1 = simplejson.loads(rawfile1)
#~ jsonobject2 = simplejson.loads(rawfile2)
#~ self.assertEqual(jsonobject1,jsonobject2,'CmpJson')
def testinisoutjson03(self):
''' non-ascii-char'''
filein = 'botssys/infile/unitinmessagejson/org/inisout04.json'
fileout = 'botssys/infile/unitinmessagejson/output/inisout04.json'
utilsunit.readwrite(editype='json',messagetype='jsonorder',filenamein=filein,filenameout=fileout)
inn1 = inmessage.edifromfile(filename=filein,editype='jsonnocheck',messagetype='jsonnocheck')
inn2 = inmessage.edifromfile(filename=fileout,editype='jsonnocheck',messagetype='jsonnocheck')
self.failUnless(utilsunit.comparenode(inn1.root,inn2.root))
def testinisoutjson04(self):
filein = 'botssys/infile/unitinmessagejson/org/inisout05.json'
inn1 = inmessage.edifromfile(filename=filein,editype='jsonnocheck',messagetype='jsonnocheck',defaultBOTSIDroot='HEA')
inn2 = inmessage.edifromfile(filename=filein,editype='json',messagetype='jsoninvoic')
self.failUnless(utilsunit.comparenode(inn1.root,inn2.root))
if __name__ == '__main__':
botsinit.generalinit('config')
botsinit.initenginelogging()
shutil.rmtree('bots/botssys/infile/unitinmessagejson/output/',ignore_errors=True) #remove whole output directory
os.mkdir('bots/botssys/infile/unitinmessagejson/output')
unittest.main()
| [
[
1,
0,
0.004,
0.004,
0,
0.66,
0,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.008,
0.004,
0,
0.66,
0.0769,
88,
0,
1,
0,
0,
88,
0,
0
],
[
1,
0,
0.012,
0.004,
0,
0.66,
... | [
"import os",
"import unittest",
"import shutil",
"import bots.inmessage as inmessage",
"import bots.outmessage as outmessage",
"import filecmp",
"try:\n import json as simplejson\nexcept ImportError:\n import simplejson",
" import json as simplejson",
" import simplejson",
"import bots... |
import os
import unittest
import shutil
import filecmp
import bots.inmessage as inmessage
import bots.outmessage as outmessage
import bots.botslib as botslib
import bots.botsinit as botsinit
'''plugin unitnode.zip'''
class Testnode(unittest.TestCase):
''' test node.py and message.py.
'''
def testedifact01(self):
inn = inmessage.edifromfile(editype='edifact',messagetype='invoicwithenvelope',filename='botssys/infile/unitnode/nodetest01.edi')
out = outmessage.outmessage_init(editype='edifact',messagetype='invoicwithenvelope',filename='botssys/infile/unitnode/output/inisout03.edi',divtext='',topartner='') #make outmessage object
out.root = inn.root
#* getloop **************************************
count = 0
for t in inn.getloop({'BOTSID':'XXX'}):
count += 1
self.assertEqual(count,0,'Cmplines')
count = 0
for t in inn.getloop({'BOTSID':'UNB'}):
count += 1
self.assertEqual(count,2,'Cmplines')
count = 0
for t in out.getloop({'BOTSID':'UNB'},{'BOTSID':'XXX'}):
count += 1
self.assertEqual(count,0,'Cmplines')
count = 0
for t in out.getloop({'BOTSID':'UNB'},{'BOTSID':'UNH'}):
count += 1
self.assertEqual(count,3,'Cmplines')
count = 0
for t in inn.getloop({'BOTSID':'UNB'},{'BOTSID':'UNH'},{'BOTSID':'XXX'}):
count += 1
self.assertEqual(count,0,'Cmplines')
count = 0
for t in inn.getloop({'BOTSID':'UNB'},{'BOTSID':'UNH'},{'BOTSID':'LIN'}):
count += 1
self.assertEqual(count,6,'Cmplines')
count = 0
for t in inn.getloop({'BOTSID':'UNB'},{'BOTSID':'XXX'},{'BOTSID':'LIN'},{'BOTSID':'QTY'}):
count += 1
self.assertEqual(count,0,'Cmplines')
count = 0
for t in inn.getloop({'BOTSID':'UNB'},{'BOTSID':'UNH'},{'BOTSID':'LIN'},{'BOTSID':'XXX'}):
count += 1
self.assertEqual(count,0,'Cmplines')
count = 0
for t in inn.getloop({'BOTSID':'UNB'},{'BOTSID':'UNH'},{'BOTSID':'LIN'},{'BOTSID':'QTY'}):
count += 1
self.assertEqual(count,6,'Cmplines')
#* getcount, getcountmpath **************************************
count = 0
countlist=[5,0,1]
nrsegmentslist=[132,10,12]
for t in out.getloop({'BOTSID':'UNB'},{'BOTSID':'UNH'}):
count2 = 0
for u in t.getloop({'BOTSID':'UNH'},{'BOTSID':'LIN'}):
count2 += 1
count3 = t.getcountoccurrences({'BOTSID':'UNH'},{'BOTSID':'LIN'})
self.assertEqual(t.getcount(),nrsegmentslist[count],'Cmplines')
self.assertEqual(count2,countlist[count],'Cmplines')
self.assertEqual(count3,countlist[count],'Cmplines')
count += 1
self.assertEqual(out.getcountoccurrences({'BOTSID':'UNB'},{'BOTSID':'UNH'}),count,'Cmplines')
self.assertEqual(out.getcount(),sum(nrsegmentslist,4),'Cmplines')
#* get, getnozero, countmpath, sort**************************************
for t in out.getloop({'BOTSID':'UNB'},{'BOTSID':'UNH'}):
self.assertRaises(botslib.MappingRootError,out.get,())
self.assertRaises(botslib.MappingRootError,out.getnozero,())
self.assertRaises(botslib.MappingRootError,out.get,0)
self.assertRaises(botslib.MappingRootError,out.getnozero,0)
t.sort({'BOTSID':'UNH'},{'BOTSID':'LIN','C212.7140':None})
start='0'
for u in t.getloop({'BOTSID':'UNH'},{'BOTSID':'LIN'}):
nextstart = u.get({'BOTSID':'LIN','C212.7140':None})
self.failUnless(start<nextstart)
start = nextstart
t.sort({'BOTSID':'UNH'},{'BOTSID':'LIN','1082':None})
start='0'
for u in t.getloop({'BOTSID':'UNH'},{'BOTSID':'LIN'}):
nextstart = u.get({'BOTSID':'LIN','1082':None})
self.failUnless(start<nextstart)
start = nextstart
self.assertRaises(botslib.MappingRootError,out.get,())
self.assertRaises(botslib.MappingRootError,out.getnozero,())
#~ # self.assertRaises(botslib.MpathError,out.get,())
first=True
for t in out.getloop({'BOTSID':'UNB'}):
if first:
self.assertEqual('15',t.getcountsum({'BOTSID':'UNB'},{'BOTSID':'UNH'},{'BOTSID':'LIN','1082':None}),'Cmplines')
self.assertEqual('8',t.getcountsum({'BOTSID':'UNB'},{'BOTSID':'UNH'},{'BOTSID':'LIN'},{'BOTSID':'QTY','C186.6063':'47','C186.6060':None}),'Cmplines')
self.assertEqual('0',t.getcountsum({'BOTSID':'UNB'},{'BOTSID':'UNH'},{'BOTSID':'LIN'},{'BOTSID':'QTY','C186.6063':'12','C186.6060':None}),'Cmplines')
self.assertEqual('54.4',t.getcountsum({'BOTSID':'UNB'},{'BOTSID':'UNH'},{'BOTSID':'LIN'},{'BOTSID':'MOA','C516.5025':'203','C516.5004':None}),'Cmplines')
first = False
else:
self.assertEqual('1',t.getcountsum({'BOTSID':'UNB'},{'BOTSID':'UNH'},{'BOTSID':'LIN'},{'BOTSID':'QTY','C186.6063':'47','C186.6060':None}),'Cmplines')
self.assertEqual('0',t.getcountsum({'BOTSID':'UNB'},{'BOTSID':'UNH'},{'BOTSID':'LIN'},{'BOTSID':'QTY','C186.6063':'12','C186.6060':None}),'Cmplines')
self.assertEqual('0',t.getcountsum({'BOTSID':'UNB'},{'BOTSID':'UNH'},{'BOTSID':'LIN'},{'BOTSID':'MOA','C516.5025':'203','C516.5004':None}),'Cmplines')
def testedifact02(self):
#~ #display query correct? incluuding propagating 'down the tree'?
inn = inmessage.edifromfile(editype='edifact',messagetype='invoicwithenvelopetestquery',filename='botssys/infile/unitnode/nodetest01.edi')
inn.root.processqueries({},2)
inn.root.displayqueries()
if __name__ == '__main__':
import datetime
botsinit.generalinit('config')
botsinit.initenginelogging()
shutil.rmtree('bots/botssys/infile/unitnode/output',ignore_errors=True) #remove whole output directory
os.mkdir('bots/botssys/infile/unitnode/output')
unittest.main()
unittest.main()
unittest.main()
| [
[
1,
0,
0.0075,
0.0075,
0,
0.66,
0,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.015,
0.0075,
0,
0.66,
0.1,
88,
0,
1,
0,
0,
88,
0,
0
],
[
1,
0,
0.0226,
0.0075,
0,
0.66,
... | [
"import os",
"import unittest",
"import shutil",
"import filecmp",
"import bots.inmessage as inmessage",
"import bots.outmessage as outmessage",
"import bots.botslib as botslib",
"import bots.botsinit as botsinit",
"'''plugin unitnode.zip'''",
"class Testnode(unittest.TestCase):\n ''' test node... |
#!/usr/bin/python2.6
#
# Simple http server to emulate api.playfoursquare.com
import logging
import shutil
import sys
import urlparse
import SimpleHTTPServer
import BaseHTTPServer
class RequestHandler(BaseHTTPServer.BaseHTTPRequestHandler):
"""Handle playfoursquare.com requests, for testing."""
def do_GET(self):
logging.warn('do_GET: %s, %s', self.command, self.path)
url = urlparse.urlparse(self.path)
logging.warn('do_GET: %s', url)
query = urlparse.parse_qs(url.query)
query_keys = [pair[0] for pair in query]
response = self.handle_url(url)
if response != None:
self.send_200()
shutil.copyfileobj(response, self.wfile)
self.wfile.close()
do_POST = do_GET
def handle_url(self, url):
path = None
if url.path == '/v1/venue':
path = '../captures/api/v1/venue.xml'
elif url.path == '/v1/addvenue':
path = '../captures/api/v1/venue.xml'
elif url.path == '/v1/venues':
path = '../captures/api/v1/venues.xml'
elif url.path == '/v1/user':
path = '../captures/api/v1/user.xml'
elif url.path == '/v1/checkcity':
path = '../captures/api/v1/checkcity.xml'
elif url.path == '/v1/checkins':
path = '../captures/api/v1/checkins.xml'
elif url.path == '/v1/cities':
path = '../captures/api/v1/cities.xml'
elif url.path == '/v1/switchcity':
path = '../captures/api/v1/switchcity.xml'
elif url.path == '/v1/tips':
path = '../captures/api/v1/tips.xml'
elif url.path == '/v1/checkin':
path = '../captures/api/v1/checkin.xml'
elif url.path == '/history/12345.rss':
path = '../captures/api/v1/feed.xml'
if path is None:
self.send_error(404)
else:
logging.warn('Using: %s' % path)
return open(path)
def send_200(self):
self.send_response(200)
self.send_header('Content-type', 'text/xml')
self.end_headers()
def main():
if len(sys.argv) > 1:
port = int(sys.argv[1])
else:
port = 8080
server_address = ('0.0.0.0', port)
httpd = BaseHTTPServer.HTTPServer(server_address, RequestHandler)
sa = httpd.socket.getsockname()
print "Serving HTTP on", sa[0], "port", sa[1], "..."
httpd.serve_forever()
if __name__ == '__main__':
main()
| [
[
1,
0,
0.0588,
0.0118,
0,
0.66,
0,
715,
0,
1,
0,
0,
715,
0,
0
],
[
1,
0,
0.0706,
0.0118,
0,
0.66,
0.125,
614,
0,
1,
0,
0,
614,
0,
0
],
[
1,
0,
0.0824,
0.0118,
0,
0... | [
"import logging",
"import shutil",
"import sys",
"import urlparse",
"import SimpleHTTPServer",
"import BaseHTTPServer",
"class RequestHandler(BaseHTTPServer.BaseHTTPRequestHandler):\n \"\"\"Handle playfoursquare.com requests, for testing.\"\"\"\n\n def do_GET(self):\n logging.warn('do_GET: %s, %s',... |
#!/usr/bin/python
import datetime
import sys
import textwrap
import common
from xml.dom import pulldom
PARSER = """\
/**
* Copyright 2009 Joe LaPenna
*/
package com.joelapenna.foursquare.parsers;
import com.joelapenna.foursquare.Foursquare;
import com.joelapenna.foursquare.error.FoursquareError;
import com.joelapenna.foursquare.error.FoursquareParseException;
import com.joelapenna.foursquare.types.%(type_name)s;
import org.xmlpull.v1.XmlPullParser;
import org.xmlpull.v1.XmlPullParserException;
import java.io.IOException;
import java.util.logging.Level;
import java.util.logging.Logger;
/**
* Auto-generated: %(timestamp)s
*
* @author Joe LaPenna (joe@joelapenna.com)
* @param <T>
*/
public class %(type_name)sParser extends AbstractParser<%(type_name)s> {
private static final Logger LOG = Logger.getLogger(%(type_name)sParser.class.getCanonicalName());
private static final boolean DEBUG = Foursquare.PARSER_DEBUG;
@Override
public %(type_name)s parseInner(XmlPullParser parser) throws XmlPullParserException, IOException,
FoursquareError, FoursquareParseException {
parser.require(XmlPullParser.START_TAG, null, null);
%(type_name)s %(top_node_name)s = new %(type_name)s();
while (parser.nextTag() == XmlPullParser.START_TAG) {
String name = parser.getName();
%(stanzas)s
} else {
// Consume something we don't understand.
if (DEBUG) LOG.log(Level.FINE, "Found tag that we don't recognize: " + name);
skipSubTree(parser);
}
}
return %(top_node_name)s;
}
}"""
BOOLEAN_STANZA = """\
} else if ("%(name)s".equals(name)) {
%(top_node_name)s.set%(camel_name)s(Boolean.valueOf(parser.nextText()));
"""
GROUP_STANZA = """\
} else if ("%(name)s".equals(name)) {
%(top_node_name)s.set%(camel_name)s(new GroupParser(new %(sub_parser_camel_case)s()).parse(parser));
"""
COMPLEX_STANZA = """\
} else if ("%(name)s".equals(name)) {
%(top_node_name)s.set%(camel_name)s(new %(parser_name)s().parse(parser));
"""
STANZA = """\
} else if ("%(name)s".equals(name)) {
%(top_node_name)s.set%(camel_name)s(parser.nextText());
"""
def main():
type_name, top_node_name, attributes = common.WalkNodesForAttributes(
sys.argv[1])
GenerateClass(type_name, top_node_name, attributes)
def GenerateClass(type_name, top_node_name, attributes):
"""generate it.
type_name: the type of object the parser returns
top_node_name: the name of the object the parser returns.
per common.WalkNodsForAttributes
"""
stanzas = []
for name in sorted(attributes):
typ, children = attributes[name]
replacements = Replacements(top_node_name, name, typ, children)
if typ == common.BOOLEAN:
stanzas.append(BOOLEAN_STANZA % replacements)
elif typ == common.GROUP:
stanzas.append(GROUP_STANZA % replacements)
elif typ in common.COMPLEX:
stanzas.append(COMPLEX_STANZA % replacements)
else:
stanzas.append(STANZA % replacements)
if stanzas:
# pop off the extranious } else for the first conditional stanza.
stanzas[0] = stanzas[0].replace('} else ', '', 1)
replacements = Replacements(top_node_name, name, typ, [None])
replacements['stanzas'] = '\n'.join(stanzas).strip()
print PARSER % replacements
def Replacements(top_node_name, name, typ, children):
# CameCaseClassName
type_name = ''.join([word.capitalize() for word in top_node_name.split('_')])
# CamelCaseClassName
camel_name = ''.join([word.capitalize() for word in name.split('_')])
# camelCaseLocalName
attribute_name = camel_name.lower().capitalize()
# mFieldName
field_name = 'm' + camel_name
if children[0]:
sub_parser_camel_case = children[0] + 'Parser'
else:
sub_parser_camel_case = (camel_name[:-1] + 'Parser')
return {
'type_name': type_name,
'name': name,
'top_node_name': top_node_name,
'camel_name': camel_name,
'parser_name': typ + 'Parser',
'attribute_name': attribute_name,
'field_name': field_name,
'typ': typ,
'timestamp': datetime.datetime.now(),
'sub_parser_camel_case': sub_parser_camel_case,
'sub_type': children[0]
}
if __name__ == '__main__':
main()
| [
[
1,
0,
0.0201,
0.0067,
0,
0.66,
0,
426,
0,
1,
0,
0,
426,
0,
0
],
[
1,
0,
0.0268,
0.0067,
0,
0.66,
0.0769,
509,
0,
1,
0,
0,
509,
0,
0
],
[
1,
0,
0.0336,
0.0067,
0,
... | [
"import datetime",
"import sys",
"import textwrap",
"import common",
"from xml.dom import pulldom",
"PARSER = \"\"\"\\\n/**\n * Copyright 2009 Joe LaPenna\n */\n\npackage com.joelapenna.foursquare.parsers;\n\nimport com.joelapenna.foursquare.Foursquare;",
"BOOLEAN_STANZA = \"\"\"\\\n } else i... |
#!/usr/bin/python
"""
Pull a oAuth protected page from foursquare.
Expects ~/.oget to contain (one on each line):
CONSUMER_KEY
CONSUMER_KEY_SECRET
USERNAME
PASSWORD
Don't forget to chmod 600 the file!
"""
import httplib
import os
import re
import sys
import urllib
import urllib2
import urlparse
import user
from xml.dom import pulldom
from xml.dom import minidom
import oauth
"""From: http://groups.google.com/group/foursquare-api/web/oauth
@consumer = OAuth::Consumer.new("consumer_token","consumer_secret", {
:site => "http://foursquare.com",
:scheme => :header,
:http_method => :post,
:request_token_path => "/oauth/request_token",
:access_token_path => "/oauth/access_token",
:authorize_path => "/oauth/authorize"
})
"""
SERVER = 'api.foursquare.com:80'
CONTENT_TYPE_HEADER = {'Content-Type' :'application/x-www-form-urlencoded'}
SIGNATURE_METHOD = oauth.OAuthSignatureMethod_HMAC_SHA1()
AUTHEXCHANGE_URL = 'http://api.foursquare.com/v1/authexchange'
def parse_auth_response(auth_response):
return (
re.search('<oauth_token>(.*)</oauth_token>', auth_response).groups()[0],
re.search('<oauth_token_secret>(.*)</oauth_token_secret>',
auth_response).groups()[0]
)
def create_signed_oauth_request(username, password, consumer):
oauth_request = oauth.OAuthRequest.from_consumer_and_token(
consumer, http_method='POST', http_url=AUTHEXCHANGE_URL,
parameters=dict(fs_username=username, fs_password=password))
oauth_request.sign_request(SIGNATURE_METHOD, consumer, None)
return oauth_request
def main():
url = urlparse.urlparse(sys.argv[1])
# Nevermind that the query can have repeated keys.
parameters = dict(urlparse.parse_qsl(url.query))
password_file = open(os.path.join(user.home, '.oget'))
lines = [line.strip() for line in password_file.readlines()]
if len(lines) == 4:
cons_key, cons_key_secret, username, password = lines
access_token = None
else:
cons_key, cons_key_secret, username, password, token, secret = lines
access_token = oauth.OAuthToken(token, secret)
consumer = oauth.OAuthConsumer(cons_key, cons_key_secret)
if not access_token:
oauth_request = create_signed_oauth_request(username, password, consumer)
connection = httplib.HTTPConnection(SERVER)
headers = {'Content-Type' :'application/x-www-form-urlencoded'}
connection.request(oauth_request.http_method, AUTHEXCHANGE_URL,
body=oauth_request.to_postdata(), headers=headers)
auth_response = connection.getresponse().read()
token = parse_auth_response(auth_response)
access_token = oauth.OAuthToken(*token)
open(os.path.join(user.home, '.oget'), 'w').write('\n'.join((
cons_key, cons_key_secret, username, password, token[0], token[1])))
oauth_request = oauth.OAuthRequest.from_consumer_and_token(consumer,
access_token, http_method='POST', http_url=url.geturl(),
parameters=parameters)
oauth_request.sign_request(SIGNATURE_METHOD, consumer, access_token)
connection = httplib.HTTPConnection(SERVER)
connection.request(oauth_request.http_method, oauth_request.to_url(),
body=oauth_request.to_postdata(), headers=CONTENT_TYPE_HEADER)
print connection.getresponse().read()
#print minidom.parse(connection.getresponse()).toprettyxml(indent=' ')
if __name__ == '__main__':
main()
| [
[
8,
0,
0.0631,
0.0991,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.1261,
0.009,
0,
0.66,
0.05,
2,
0,
1,
0,
0,
2,
0,
0
],
[
1,
0,
0.1351,
0.009,
0,
0.66,
0.... | [
"\"\"\"\nPull a oAuth protected page from foursquare.\n\nExpects ~/.oget to contain (one on each line):\nCONSUMER_KEY\nCONSUMER_KEY_SECRET\nUSERNAME\nPASSWORD",
"import httplib",
"import os",
"import re",
"import sys",
"import urllib",
"import urllib2",
"import urlparse",
"import user",
"from xml.... |
#!/usr/bin/python
import os
import subprocess
import sys
BASEDIR = '../main/src/com/joelapenna/foursquare'
TYPESDIR = '../captures/types/v1'
captures = sys.argv[1:]
if not captures:
captures = os.listdir(TYPESDIR)
for f in captures:
basename = f.split('.')[0]
javaname = ''.join([c.capitalize() for c in basename.split('_')])
fullpath = os.path.join(TYPESDIR, f)
typepath = os.path.join(BASEDIR, 'types', javaname + '.java')
parserpath = os.path.join(BASEDIR, 'parsers', javaname + 'Parser.java')
cmd = 'python gen_class.py %s > %s' % (fullpath, typepath)
print cmd
subprocess.call(cmd, stdout=sys.stdout, shell=True)
cmd = 'python gen_parser.py %s > %s' % (fullpath, parserpath)
print cmd
subprocess.call(cmd, stdout=sys.stdout, shell=True)
| [
[
1,
0,
0.1111,
0.037,
0,
0.66,
0,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.1481,
0.037,
0,
0.66,
0.1429,
394,
0,
1,
0,
0,
394,
0,
0
],
[
1,
0,
0.1852,
0.037,
0,
0.6... | [
"import os",
"import subprocess",
"import sys",
"BASEDIR = '../main/src/com/joelapenna/foursquare'",
"TYPESDIR = '../captures/types/v1'",
"captures = sys.argv[1:]",
"if not captures:\n captures = os.listdir(TYPESDIR)",
" captures = os.listdir(TYPESDIR)",
"for f in captures:\n basename = f.split('... |
#!/usr/bin/python
import logging
from xml.dom import minidom
from xml.dom import pulldom
BOOLEAN = "boolean"
STRING = "String"
GROUP = "Group"
# Interfaces that all FoursquareTypes implement.
DEFAULT_INTERFACES = ['FoursquareType']
# Interfaces that specific FoursqureTypes implement.
INTERFACES = {
}
DEFAULT_CLASS_IMPORTS = [
]
CLASS_IMPORTS = {
# 'Checkin': DEFAULT_CLASS_IMPORTS + [
# 'import com.joelapenna.foursquare.filters.VenueFilterable'
# ],
# 'Venue': DEFAULT_CLASS_IMPORTS + [
# 'import com.joelapenna.foursquare.filters.VenueFilterable'
# ],
# 'Tip': DEFAULT_CLASS_IMPORTS + [
# 'import com.joelapenna.foursquare.filters.VenueFilterable'
# ],
}
COMPLEX = [
'Group',
'Badge',
'Beenhere',
'Checkin',
'CheckinResponse',
'City',
'Credentials',
'Data',
'Mayor',
'Rank',
'Score',
'Scoring',
'Settings',
'Stats',
'Tags',
'Tip',
'User',
'Venue',
]
TYPES = COMPLEX + ['boolean']
def WalkNodesForAttributes(path):
"""Parse the xml file getting all attributes.
<venue>
<attribute>value</attribute>
</venue>
Returns:
type_name - The java-style name the top node will have. "Venue"
top_node_name - unadultured name of the xml stanza, probably the type of
java class we're creating. "venue"
attributes - {'attribute': 'value'}
"""
doc = pulldom.parse(path)
type_name = None
top_node_name = None
attributes = {}
level = 0
for event, node in doc:
# For skipping parts of a tree.
if level > 0:
if event == pulldom.END_ELEMENT:
level-=1
logging.warn('(%s) Skip end: %s' % (str(level), node))
continue
elif event == pulldom.START_ELEMENT:
logging.warn('(%s) Skipping: %s' % (str(level), node))
level+=1
continue
if event == pulldom.START_ELEMENT:
logging.warn('Parsing: ' + node.tagName)
# Get the type name to use.
if type_name is None:
type_name = ''.join([word.capitalize()
for word in node.tagName.split('_')])
top_node_name = node.tagName
logging.warn('Found Top Node Name: ' + top_node_name)
continue
typ = node.getAttribute('type')
child = node.getAttribute('child')
# We don't want to walk complex types.
if typ in COMPLEX:
logging.warn('Found Complex: ' + node.tagName)
level = 1
elif typ not in TYPES:
logging.warn('Found String: ' + typ)
typ = STRING
else:
logging.warn('Found Type: ' + typ)
logging.warn('Adding: ' + str((node, typ)))
attributes.setdefault(node.tagName, (typ, [child]))
logging.warn('Attr: ' + str((type_name, top_node_name, attributes)))
return type_name, top_node_name, attributes
| [
[
1,
0,
0.0263,
0.0088,
0,
0.66,
0,
715,
0,
1,
0,
0,
715,
0,
0
],
[
1,
0,
0.0439,
0.0088,
0,
0.66,
0.0833,
290,
0,
1,
0,
0,
290,
0,
0
],
[
1,
0,
0.0526,
0.0088,
0,
... | [
"import logging",
"from xml.dom import minidom",
"from xml.dom import pulldom",
"BOOLEAN = \"boolean\"",
"STRING = \"String\"",
"GROUP = \"Group\"",
"DEFAULT_INTERFACES = ['FoursquareType']",
"INTERFACES = {\n}",
"DEFAULT_CLASS_IMPORTS = [\n]",
"CLASS_IMPORTS = {\n# 'Checkin': DEFAULT_CLASS_IMP... |
#====================================================================
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
# ====================================================================
#
# This software consists of voluntary contributions made by many
# individuals on behalf of the Apache Software Foundation. For more
# information on the Apache Software Foundation, please see
# <http://www.apache.org/>.
#
import os
import re
import tempfile
import shutil
ignore_pattern = re.compile('^(.svn|target|bin|classes)')
java_pattern = re.compile('^.*\.java')
annot_pattern = re.compile('import org\.apache\.http\.annotation\.')
def process_dir(dir):
files = os.listdir(dir)
for file in files:
f = os.path.join(dir, file)
if os.path.isdir(f):
if not ignore_pattern.match(file):
process_dir(f)
else:
if java_pattern.match(file):
process_source(f)
def process_source(filename):
tmp = tempfile.mkstemp()
tmpfd = tmp[0]
tmpfile = tmp[1]
try:
changed = False
dst = os.fdopen(tmpfd, 'w')
try:
src = open(filename)
try:
for line in src:
if annot_pattern.match(line):
changed = True
line = line.replace('import org.apache.http.annotation.', 'import net.jcip.annotations.')
dst.write(line)
finally:
src.close()
finally:
dst.close();
if changed:
shutil.move(tmpfile, filename)
else:
os.remove(tmpfile)
except:
os.remove(tmpfile)
process_dir('.')
| [
[
1,
0,
0.3514,
0.0135,
0,
0.66,
0,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.3649,
0.0135,
0,
0.66,
0.1111,
540,
0,
1,
0,
0,
540,
0,
0
],
[
1,
0,
0.3784,
0.0135,
0,
... | [
"import os",
"import re",
"import tempfile",
"import shutil",
"ignore_pattern = re.compile('^(.svn|target|bin|classes)')",
"java_pattern = re.compile('^.*\\.java')",
"annot_pattern = re.compile('import org\\.apache\\.http\\.annotation\\.')",
"def process_dir(dir):\n files = os.listdir(dir)\n for... |
import time
import pprint
def fib6(x):
if x==0 or x==1:
return 1
else:
return fib6(x-2)+fib6(x-1)
def main():
beg = time.clock()
print fib6(33)
end = time.clock()
return end - beg
print __name__
print fib6, fib6.__code__
print fib6.__code__.co_c_function
#pprint.pprint(dir(fib6))
print main
if __name__ == '__main__':
d1 = main()
import _c_fibtest
d2 = _c_fibtest.main()
print 'koef', d1 / d2 | [
[
1,
0,
0.0417,
0.0417,
0,
0.66,
0,
654,
0,
1,
0,
0,
654,
0,
0
],
[
1,
0,
0.0833,
0.0417,
0,
0.66,
0.125,
276,
0,
1,
0,
0,
276,
0,
0
],
[
2,
0,
0.25,
0.2083,
0,
0.6... | [
"import time",
"import pprint",
"def fib6(x):\n if x==0 or x==1:\n return 1\n else:\n return fib6(x-2)+fib6(x-1)",
" if x==0 or x==1:\n return 1\n else:\n return fib6(x-2)+fib6(x-1)",
" return 1",
" return fib6(x-2)+fib6(x-1)",
"def main(): \n ... |
# based on a Java version:
# Based on original version written in BCPL by Dr Martin Richards
# in 1981 at Cambridge University Computer Laboratory, England
# and a C++ version derived from a Smalltalk version written by
# L Peter Deutsch.
# Java version: Copyright (C) 1995 Sun Microsystems, Inc.
# Translation from C++, Mario Wolczko
# Outer loop added by Alex Jacoby
# Task IDs
I_IDLE = 1
I_WORK = 2
I_HANDLERA = 3
I_HANDLERB = 4
I_DEVA = 5
I_DEVB = 6
# Packet types
K_DEV = 1000
K_WORK = 1001
# Packet
BUFSIZE = 4
BUFSIZE_RANGE = range(BUFSIZE)
class Packet(object):
def __init__(self,l,i,k):
self.link = l
self.ident = i
self.kind = k
self.datum = 0
self.data = [0] * BUFSIZE
def append_to(self,lst):
self.link = None
if lst is None:
return self
else:
p = lst
next = p.link
while next is not None:
p = next
next = p.link
p.link = self
return lst
# Task Records
class TaskRec(object):
pass
class DeviceTaskRec(TaskRec):
def __init__(self):
self.pending = None
class IdleTaskRec(TaskRec):
def __init__(self):
self.control = 1
self.count = 10000
class HandlerTaskRec(TaskRec):
def __init__(self):
self.work_in = None
self.device_in = None
def workInAdd(self,p):
self.work_in = p.append_to(self.work_in)
return self.work_in
def deviceInAdd(self,p):
self.device_in = p.append_to(self.device_in)
return self.device_in
class WorkerTaskRec(TaskRec):
def __init__(self):
self.destination = I_HANDLERA
self.count = 0
# Task
class TaskState(object):
def __init__(self):
self.packet_pending = True
self.task_waiting = False
self.task_holding = False
def packetPending(self):
self.packet_pending = True
self.task_waiting = False
self.task_holding = False
return self
def waiting(self):
self.packet_pending = False
self.task_waiting = True
self.task_holding = False
return self
def running(self):
self.packet_pending = False
self.task_waiting = False
self.task_holding = False
return self
def waitingWithPacket(self):
self.packet_pending = True
self.task_waiting = True
self.task_holding = False
return self
def isPacketPending(self):
return self.packet_pending
def isTaskWaiting(self):
return self.task_waiting
def isTaskHolding(self):
return self.task_holding
def isTaskHoldingOrWaiting(self):
return self.task_holding or (not self.packet_pending and self.task_waiting)
def isWaitingWithPacket(self):
return self.packet_pending and self.task_waiting and not self.task_holding
tracing = False
layout = 0
def trace(a):
global layout
layout -= 1
if layout <= 0:
print
layout = 50
print a,
TASKTABSIZE = 10
class TaskWorkArea(object):
def __init__(self):
self.taskTab = [None] * TASKTABSIZE
self.taskList = None
self.holdCount = 0
self.qpktCount = 0
taskWorkArea = TaskWorkArea()
class Task(TaskState):
def __init__(self,i,p,w,initialState,r):
self.link = taskWorkArea.taskList
self.ident = i
self.priority = p
self.input = w
self.packet_pending = initialState.isPacketPending()
self.task_waiting = initialState.isTaskWaiting()
self.task_holding = initialState.isTaskHolding()
self.handle = r
taskWorkArea.taskList = self
taskWorkArea.taskTab[i] = self
def fn(self,pkt,r):
raise NotImplementedError
def addPacket(self,p,old):
if self.input is None:
self.input = p
self.packet_pending = True
if self.priority > old.priority:
return self
else:
p.append_to(self.input)
return old
def runTask(self):
if self.isWaitingWithPacket():
msg = self.input
self.input = msg.link
if self.input is None:
self.running()
else:
self.packetPending()
else:
msg = None
return self.fn(msg,self.handle)
def waitTask(self):
self.task_waiting = True
return self
def hold(self):
taskWorkArea.holdCount += 1
self.task_holding = True
return self.link
def release(self,i):
t = self.findtcb(i)
t.task_holding = False
if t.priority > self.priority:
return t
else:
return self
def qpkt(self,pkt):
t = self.findtcb(pkt.ident)
taskWorkArea.qpktCount += 1
pkt.link = None
pkt.ident = self.ident
return t.addPacket(pkt,self)
def findtcb(self,id):
t = taskWorkArea.taskTab[id]
if t is None:
raise Exception("Bad task id %d" % id)
return t
# DeviceTask
class DeviceTask(Task):
def __init__(self,i,p,w,s,r):
Task.__init__(self,i,p,w,s,r)
def fn(self,pkt,r):
d = r
assert isinstance(d, DeviceTaskRec)
if pkt is None:
pkt = d.pending
if pkt is None:
return self.waitTask()
else:
d.pending = None
return self.qpkt(pkt)
else:
d.pending = pkt
if tracing: trace(pkt.datum)
return self.hold()
class HandlerTask(Task):
def __init__(self,i,p,w,s,r):
Task.__init__(self,i,p,w,s,r)
def fn(self,pkt,r):
h = r
assert isinstance(h, HandlerTaskRec)
if pkt is not None:
if pkt.kind == K_WORK:
h.workInAdd(pkt)
else:
h.deviceInAdd(pkt)
work = h.work_in
if work is None:
return self.waitTask()
count = work.datum
if count >= BUFSIZE:
h.work_in = work.link
return self.qpkt(work)
dev = h.device_in
if dev is None:
return self.waitTask()
h.device_in = dev.link
dev.datum = work.data[count]
work.datum = count + 1
return self.qpkt(dev)
# IdleTask
class IdleTask(Task):
def __init__(self,i,p,w,s,r):
Task.__init__(self,i,0,None,s,r)
def fn(self,pkt,r):
i = r
assert isinstance(i, IdleTaskRec)
i.count -= 1
if i.count == 0:
return self.hold()
elif i.control & 1 == 0:
i.control /= 2
return self.release(I_DEVA)
else:
i.control = i.control/2 ^ 0xd008
return self.release(I_DEVB)
# WorkTask
A = ord('A')
class WorkTask(Task):
def __init__(self,i,p,w,s,r):
Task.__init__(self,i,p,w,s,r)
def fn(self,pkt,r):
w = r
assert isinstance(w, WorkerTaskRec)
if pkt is None:
return self.waitTask()
if w.destination == I_HANDLERA:
dest = I_HANDLERB
else:
dest = I_HANDLERA
w.destination = dest
pkt.ident = dest
pkt.datum = 0
for i in BUFSIZE_RANGE: # xrange(BUFSIZE)
w.count += 1
if w.count > 26:
w.count = 1
pkt.data[i] = A + w.count - 1
return self.qpkt(pkt)
import time
def schedule():
t = taskWorkArea.taskList
while t is not None:
pkt = None
# print '-----', 218, t
if tracing:
print "tcb =",t.ident
# print '-----', 219, t
if t.isTaskHoldingOrWaiting():
t = t.link
# print '-----', 220, t
else:
# print '-----', 221, t
if tracing: trace(chr(ord("0")+t.ident))
# print '-----', 222, t
t = t.runTask()
# print '-----', 223, t
class Richards(object):
def run(self, iterations):
for i in xrange(iterations):
taskWorkArea.holdCount = 0
taskWorkArea.qpktCount = 0
# print '--- 111', i
IdleTask(I_IDLE, 1, 10000, TaskState().running(), IdleTaskRec())
# print '--- 112', i
wkq = Packet(None, 0, K_WORK)
wkq = Packet(wkq , 0, K_WORK)
WorkTask(I_WORK, 1000, wkq, TaskState().waitingWithPacket(), WorkerTaskRec())
# print '--- 113', i
wkq = Packet(None, I_DEVA, K_DEV)
wkq = Packet(wkq , I_DEVA, K_DEV)
wkq = Packet(wkq , I_DEVA, K_DEV)
HandlerTask(I_HANDLERA, 2000, wkq, TaskState().waitingWithPacket(), HandlerTaskRec())
# print '--- 114', i
wkq = Packet(None, I_DEVB, K_DEV)
wkq = Packet(wkq , I_DEVB, K_DEV)
wkq = Packet(wkq , I_DEVB, K_DEV)
HandlerTask(I_HANDLERB, 3000, wkq, TaskState().waitingWithPacket(), HandlerTaskRec())
# print '--- 115', i
wkq = None;
DeviceTask(I_DEVA, 4000, wkq, TaskState().waiting(), DeviceTaskRec());
# print '--- 116', i
DeviceTask(I_DEVB, 5000, wkq, TaskState().waiting(), DeviceTaskRec());
# print '--- 117', i
schedule()
# print '--- 118', i
if taskWorkArea.holdCount == 9297 and taskWorkArea.qpktCount == 23246:
pass
else:
return False
return True
def entry_point(iterations):
r = Richards()
startTime = time.time()
result = r.run(iterations)
endTime = time.time()
return result, startTime, endTime
def main(entry_point = entry_point, iterations = 3):
print "Richards benchmark (Python) starting... [%r]" % entry_point
result, startTime, endTime = entry_point(iterations)
if not result:
print "Incorrect results!"
return -1
print "finished."
total_s = endTime - startTime
print "Total time for %d iterations: %.2f secs" %(iterations,total_s)
print "Average time per iteration: %.2f ms" %(total_s*1000/iterations)
return 42
if __name__ == '__main__':
import sys
if len(sys.argv) >= 2:
main(iterations = int(sys.argv[1]))
else:
main()
# import profile
# profile.runctx('main()', globals(), locals())
import _c_richards
if len(sys.argv) >= 2:
_c_richards.main(iterations = int(sys.argv[1]))
else:
_c_richards.main()
| [
[
14,
0,
0.0248,
0.0023,
0,
0.66,
0,
616,
1,
0,
0,
0,
0,
1,
0
],
[
14,
0,
0.027,
0.0023,
0,
0.66,
0.0294,
207,
1,
0,
0,
0,
0,
1,
0
],
[
14,
0,
0.0293,
0.0023,
0,
0.... | [
"I_IDLE = 1",
"I_WORK = 2",
"I_HANDLERA = 3",
"I_HANDLERB = 4",
"I_DEVA = 5",
"I_DEVB = 6",
"K_DEV = 1000",
"K_WORK = 1001",
"BUFSIZE = 4",
"BUFSIZE_RANGE = range(BUFSIZE)",
"class Packet(object):\n def __init__(self,l,i,k):\n self.link = l\n self.ident = i\n self.kind = ... |
import t_const
FPS= t_const.FPS_SERVER
| [
[
1,
0,
0.5,
0.5,
0,
0.66,
0,
855,
0,
1,
0,
0,
855,
0,
0
],
[
14,
0,
1,
0.5,
0,
0.66,
1,
843,
7,
0,
0,
0,
0,
0,
0
]
] | [
"import t_const",
"FPS= t_const.FPS_SERVER"
] |
#! /usr/bin/env python
#coding=utf-8
#游戏地图事件
data = {
#类型 警告
"warn01":{
"type":"Warning",
"pos":(915,3380), # 坐标
"size":(100), # 范围
"zbpos":(915,2900), #出现僵尸
"zbsize":(800,400), #随机范围
"time":5000, # 持续时间
"zbshow":30, # 僵尸出现机率
},
}
def get_data(id):
return data.get(id)
| [
[
14,
0,
0.5526,
0.6316,
0,
0.66,
0,
929,
0,
0,
0,
0,
0,
6,
0
],
[
2,
0,
0.9737,
0.1053,
0,
0.66,
1,
721,
0,
1,
1,
0,
0,
0,
1
],
[
13,
1,
1,
0.0526,
1,
0.4,
0,
... | [
"data = {\n\t\t#类型 警告\n\t\t\"warn01\":{\n\t\t\t\"type\":\"Warning\",\n\t\t\t\"pos\":(915,3380),\t# 坐标\n\t\t\t\"size\":(100),\t# 范围\n\t\t\t\"zbpos\":(915,2900),\t#出现僵尸\n\t\t\t\"zbsize\":(800,400),\t#随机范围",
"def get_data(id):\n\treturn data.get(id)",
"\treturn data.get(id)"
] |
#! /usr/bin/env python
#coding=utf-8
import base_object
import math
import t_const,t_cmd
import random,copy
class CEvent(object):
def __init__(self):
self.time = 0
self.event = None
pass
class CMapEvent(base_object.CObject):
def __init__(self, mapmgr):
self.sizelist = {}
self.timelist = {}
# 触发事件列表
self.on_eventlist = {}
self.entsum = 0
self.mapmgr = mapmgr
pass
def destroy(self):
pass
# 加载相应地图的事件列表
def loadmapevent(self, map_name, dicPlayersuid):
self.dicPlayersuid = dicPlayersuid
self.eventlist = {}
self.entsum = 0
maps = __import__("tgame_map_%s_event"%map_name)
for eventname in maps.data:
self.addevent(maps.data[eventname], eventname)
pass
def addevent(self, event, eventname):
ent = CEvent()
if event["type"] == "Warning":
ent.event = event
self.sizelist[eventname] = ent
self.entsum += 1
pass
# 更新当前已经触发的事件
def event_update(self):
copy_array = copy.copy(self.on_eventlist)
for entn in copy_array:
event = copy_array[entn]
if event.event["type"] == "Warning":
# 出现僵尸
# 得到出现位置
pos = event.event["zbpos"]
# 出现范围
size = event.event["zbsize"]
# 根据范围生成随机坐标
x = random.randint(size[0]/2-size[0], size[0]/2)
y = random.randint(size[1]/2-size[1], size[1]/2)
pos = (pos[0] + x,pos[1] + y)
param = (pos[0], pos[1])
# 向所有玩家广播,param位置出现僵尸
self.send_event( t_cmd.S_GAME_BULZB, param)
#每帧增加相应的时间 毫秒
event.time += 1000 / t_const.FPS_SERVER
#如果到达时间 则事件停止 释放
if event.time >= event.event["time"]:
del self.on_eventlist[entn]
print "event ovent!!!!!!!!!!!!!!!!!"
pass
def update(self):
copy_array = copy.copy(self.sizelist)
for entn in copy_array:
ent = copy_array[entn]
if not ent:
continue
# 判断所有玩家坐标是否达到事件点范围
for uid in self.dicPlayersuid:
pos = self.dicPlayersuid[uid].pos
x = math.fabs(ent.event["pos"][0]-pos[0])
y = math.fabs(ent.event["pos"][1]-pos[1])
length = math.sqrt(x*x + y*y)
if length <= ent.event["size"]:
# 通知所有玩家,事件被触发
param = (uid, entn)
self.send_event( t_cmd.S_GAME_EVENT, param)
# 删除事件
self.sizelist[entn] = None
del self.sizelist[entn]
# 添加事件至已触发事件中
self.on_eventlist[entn] = ent
self.event_update()
def send_event(self, event, param):
self.mapmgr.send_game_event( event, param) | [
[
1,
0,
0.0404,
0.0101,
0,
0.66,
0,
882,
0,
1,
0,
0,
882,
0,
0
],
[
1,
0,
0.0505,
0.0101,
0,
0.66,
0.2,
526,
0,
1,
0,
0,
526,
0,
0
],
[
1,
0,
0.0606,
0.0101,
0,
0.6... | [
"import base_object",
"import math",
"import t_const,t_cmd",
"import random,copy",
"class CEvent(object):\n\tdef __init__(self):\n\t\tself.time = 0\n\t\tself.event = None\n\t\tpass",
"\tdef __init__(self):\n\t\tself.time = 0\n\t\tself.event = None\n\t\tpass",
"\t\tself.time = 0",
"\t\tself.event = Non... |
#! /usr/bin/env python
#coding=utf-8
import base_object
import math
import t_const,t_cmd
import random,copy
class CEvent(object):
def __init__(self):
self.time = 0
self.event = None
pass
class CMapEvent(base_object.CObject):
def __init__(self, mapmgr):
self.sizelist = {}
self.timelist = {}
# 触发事件列表
self.on_eventlist = {}
self.entsum = 0
self.mapmgr = mapmgr
pass
def destroy(self):
pass
# 加载相应地图的事件列表
def loadmapevent(self, map_name, dicPlayersuid):
self.dicPlayersuid = dicPlayersuid
self.eventlist = {}
self.entsum = 0
maps = __import__("tgame_map_%s_event"%map_name)
for eventname in maps.data:
self.addevent(maps.data[eventname], eventname)
pass
def addevent(self, event, eventname):
ent = CEvent()
if event["type"] == "Warning":
ent.event = event
self.sizelist[eventname] = ent
self.entsum += 1
pass
# 更新当前已经触发的事件
def event_update(self):
copy_array = copy.copy(self.on_eventlist)
for entn in copy_array:
event = copy_array[entn]
if event.event["type"] == "Warning":
# 出现僵尸
# 得到出现位置
pos = event.event["zbpos"]
# 出现范围
size = event.event["zbsize"]
# 根据范围生成随机坐标
x = random.randint(size[0]/2-size[0], size[0]/2)
y = random.randint(size[1]/2-size[1], size[1]/2)
pos = (pos[0] + x,pos[1] + y)
param = (pos[0], pos[1])
# 向所有玩家广播,param位置出现僵尸
self.send_event( t_cmd.S_GAME_BULZB, param)
#每帧增加相应的时间 毫秒
event.time += 1000 / t_const.FPS_SERVER
#如果到达时间 则事件停止 释放
if event.time >= event.event["time"]:
del self.on_eventlist[entn]
print "event ovent!!!!!!!!!!!!!!!!!"
pass
def update(self):
copy_array = copy.copy(self.sizelist)
for entn in copy_array:
ent = copy_array[entn]
if not ent:
continue
# 判断所有玩家坐标是否达到事件点范围
for uid in self.dicPlayersuid:
pos = self.dicPlayersuid[uid].pos
x = math.fabs(ent.event["pos"][0]-pos[0])
y = math.fabs(ent.event["pos"][1]-pos[1])
length = math.sqrt(x*x + y*y)
if length <= ent.event["size"]:
# 通知所有玩家,事件被触发
param = (uid, entn)
self.send_event( t_cmd.S_GAME_EVENT, param)
# 删除事件
self.sizelist[entn] = None
del self.sizelist[entn]
# 添加事件至已触发事件中
self.on_eventlist[entn] = ent
self.event_update()
def send_event(self, event, param):
self.mapmgr.send_game_event( event, param) | [
[
1,
0,
0.0404,
0.0101,
0,
0.66,
0,
882,
0,
1,
0,
0,
882,
0,
0
],
[
1,
0,
0.0505,
0.0101,
0,
0.66,
0.2,
526,
0,
1,
0,
0,
526,
0,
0
],
[
1,
0,
0.0606,
0.0101,
0,
0.6... | [
"import base_object",
"import math",
"import t_const,t_cmd",
"import random,copy",
"class CEvent(object):\n\tdef __init__(self):\n\t\tself.time = 0\n\t\tself.event = None\n\t\tpass",
"\tdef __init__(self):\n\t\tself.time = 0\n\t\tself.event = None\n\t\tpass",
"\t\tself.time = 0",
"\t\tself.event = Non... |
#! /usr/bin/env python
#coding=utf-8
#游戏地图事件
data = {
#类型 警告
"warn01":{
"type":"Warning",
"pos":(915,3380), # 坐标
"size":(100), # 范围
"zbpos":(915,2900), #出现僵尸
"zbsize":(800,400), #随机范围
"time":5000, # 持续时间
"zbshow":30, # 僵尸出现机率
},
}
def get_data(id):
return data.get(id)
| [
[
14,
0,
0.5526,
0.6316,
0,
0.66,
0,
929,
0,
0,
0,
0,
0,
6,
0
],
[
2,
0,
0.9737,
0.1053,
0,
0.66,
1,
721,
0,
1,
1,
0,
0,
0,
1
],
[
13,
1,
1,
0.0526,
1,
0.9,
0,
... | [
"data = {\n\t\t#类型 警告\n\t\t\"warn01\":{\n\t\t\t\"type\":\"Warning\",\n\t\t\t\"pos\":(915,3380),\t# 坐标\n\t\t\t\"size\":(100),\t# 范围\n\t\t\t\"zbpos\":(915,2900),\t#出现僵尸\n\t\t\t\"zbsize\":(800,400),\t#随机范围",
"def get_data(id):\n\treturn data.get(id)",
"\treturn data.get(id)"
] |
# -*- coding: utf-8 -*-
import hall_callback
import t_const, t_error, t_cmd, tgame_wizard
#import tgame_struct
#import tgame_factroy_s
import game_player_s
#import tgame_sprite_config, tgame_stage_config
import tgame_room
import random, cPickle
import tgame_mapevent_s
#游戏逻辑类,单局游戏的全局数据保存在这里
class CMap(object):
#构造函数
def __init__(self, objRoom):
super(CMap, self).__init__()
self.objRoom = objRoom #房间对象的引用,消息发送和写日志用到
self.objMsgMgr = hall_callback.get_game_room_msgmgr() #传输对象的引用,消息打包的时候用到
self.register_recv() #注册游戏子事件的响应函数
self.reset() #初始化游戏内全局数据
#自我清理的函数,释放此对象前调用
def clean(self):
self.reset_map()
self.reset()
self.objRoom = None
self.objMsgMgr = None
#此函数注册游戏子事件的具体响应函数
def register_recv(self):
self.dicEventFunc = {}
self.dicEventFunc[t_cmd.C_TUREND] = self.on_turend
self.dicEventFunc[t_cmd.C_MOVE] = self.on_move
self.dicEventFunc[t_cmd.C_RUN] = self.on_run
self.dicEventFunc[t_cmd.C_ATK] = self.on_atk
self.dicEventFunc[t_cmd.C_PICKITEM] = self.on_pickitem
#此函数对游戏内全局数据进行初始化或重置
def reset(self):
self.iStatus = t_const.GAME_WAIT #游戏状态,初始化为准备(非进行游戏)
self.gametime = -1 # 游戏计时器
self.iStage = None #当前关卡,初始化为None
self.iCurFrame = 0 #当前帧数,初始化为0
self.objTimeLine = None #管理怪物和阳光刷新数据的对象,初始化为None
self.dicTrackSet = {} #当前关卡的地形数据的字典,key是轨道编号,value是一个代表地形的int,可能为草地、水域或屋顶
self.dicPlayers = {} #管理当前游戏内玩家对象的字典,key是玩家的side,value是游戏内玩家对象
self.dicPlayersuid = {}
#self.iCurFreeID = t_const.ID_START_SERVER #当前已经使用到的最大的精灵id
#self.dicUsedID = {} #管理当前存在的全部精灵id的字典,key是精灵的id,value是1
#self.dicTowerBase = {} #管理当前存在的全部基座(可种植植物的地点)的字典, key是基座的唯一id,value是基座对象
#self.dicTower = {} #管理当前存在的全部植物的字典,key是植物的唯一id,value是植物对象
#self.dicMonster = {} #管理当前存在的全部僵尸的字典,key是僵尸的唯一id,value是僵尸对象
#self.dicMissile = {} #管理当前存在的全部子弹的字典,key是子弹的唯一id,value是子弹对象
#self.dicItem = {} #管理当前存在的全部奖励物品(阳光,银币等)的字典,key是物品的唯一id,value是物品对象
self.iWinScore = 0 #本局的胜利得分
self.iLoseScore = 0 #本局的失败得分"""
#此函数释放和清理游戏内的全局数据,一般在游戏结束的时候调用
def reset_map(self):
self.gametime = None
#清空地形数据字典
#self.dicTrackSet.clear()
#清空玩家字典并释放其中的玩家对象
"""for player in self.dicPlayers.itervalues():
player.clean()
self.dicPlayers.clear()
#清空现存精灵id字典
self.dicUsedID.clear()
#清空基座字典并释放基座对象
for basis in self.dicTowerBase.itervalues():
basis.clean()
self.dicTowerBase.clear()
#清空植物字典并释放植物对象
for tower in self.dicTower.itervalues():
tower.clean()
self.dicTower.clear()
#清空僵尸字典并释放僵尸对象
for monster in self.dicMonster.itervalues():
monster.clean()
self.dicMonster.clear()
#清空子弹字典并释放子弹对象
for missile in self.dicMissile.itervalues():
missile.clean()
self.dicMissile.clear()
#清空物品字典并释放物品对象
for item in self.dicItem.itervalues():
item.clean()
self.dicItem.clear()"""
#此函数生成一个可用的精灵id,并维护精灵id字典,大致算法是对当前已经用到的精灵id进行递增,并加入已用精灵字典,然后返回id
def generate_id(self, iType):
pass
"""for i in xrange(t_const.ID_MAX_GENERATE):
self.iCurFreeID += 1
#精灵id具有区间限制,如果达到了区间的最大值,那么就从最小值开始重新递增,不过设计上单局游戏不应该达到区间最大值,所以同时还要加上特殊的日志,用于调整区间设置的依据
if self.iCurFreeID >= t_const.ID_END_SERVER:
self.iCurFreeID = t_const.ID_START_SERVER
self.objRoom.cglog(t_const.LOGTYPE_DESIGN, "[SPRITE_ID_EXCEED]:[frame=%d;stage=%d]" % (self.iCurFrame, self.iStage))
if self.dicUsedID.has_key(self.iCurFreeID):
continue
self.dicUsedID[self.iCurFreeID] = 1
return self.iCurFreeID
#如果超过最大循环次数依旧无法找到可用的精灵id,说明数值区间设计存在重大问题,必须立刻调整
self.objRoom.cglog(t_const.LOGTYPE_DESIGN, "[NO_AVAILABLE_ID]:[frame=%d;stage=%d]" % (self.iCurFrame, self.iStage))
return None"""
#此函数处理游戏开始的相关逻辑
def on_game_start(self, stage, lstPlayer):
#重置游戏内全局数据
self.reset()
#设置游戏状态为游戏中
self.iStatus = t_const.GAME_PLAYING
#保存当前关卡key
self.iStage = stage
#读取关卡配置
#config = td_stage_config.DATA.get(stage)
#初始化游戏内玩家对象
for room_player in lstPlayer:
objPlayer = game_player_s.CGameplayer(room_player)
objPlayer.init_game(0, "")
self.dicPlayers[objPlayer.iside] = objPlayer
self.dicPlayersuid[objPlayer.uid] = objPlayer
self.game_event = tgame_mapevent_s.CMapEvent(self)
# 加载地图事件
self.game_event.loadmapevent("open", self.dicPlayersuid)
#加载地图信息
#scene = config["scene"]
self.iWinScore = 10#config["win_score"]
self.iLoseScore = 0#config["lose_score"]
#加载地形信息,生成基座字典
#for y in xrange(len(scene)):
# landform = scene[y]
# if not self.dicTrackSet.has_key(landform):
# self.dicTrackSet[landform] = []
# self.dicTrackSet[landform].append(y)
# for x in xrange(td_const.MAP_GRID_WIDTH):
# iID = x + y * td_const.MAP_GRID_WIDTH
# self.dicTowerBase[iID] = td_struct.CTowerBase(iID, landform, x, y, None)
#生成怪物和阳光刷新数据对象
#self.objTimeLine = td_struct.CTimeLine(config)
#发送游戏开始消息
self.send_game_start(stage)
#此函数用于检测是否达到游戏胜利条件
def check_game_end(self, second):
#如果还有固定怪物未刷新,则不算胜利
"""if not self.objTimeLine.is_empty_force(second):
return False
#固定怪物都刷新了,那么消灭所有现存怪物后游戏胜利
if len(self.dicMonster) == 0:
return True
else:
return False"""
pass
#此函数检测游戏中有效(未退出或失败)的玩家是否为0,假如有效玩家为0则游戏强制结束
def check_empty_game(self):
"""total = len(self.dicPlayers)
leave = 0
for player in self.dicPlayers.itervalues():
if player.bIsLeave:
leave += 1
if total - leave <= 1:
return True
else:
return False"""
pass
#此函数用于处理游戏结束的相关逻辑
def game_end(self, win):
#根据玩家当局的具体表现对游戏进行结算,并生成游戏内玩家对象的临时列表
lstPlayer = []
for player in self.dicPlayers.itervalues():
player.on_game_end(win, self.iWinScore, self.iLoseScore)
lstPlayer.append(player)
#游戏状态切换到准备
self.iStatus = t_const.GAME_WAIT
#调用房间逻辑的on_game_end函数,处理需要保留的历史数据
"""self.objRoom.on_game_end(win, lstPlayer)
#重置游戏内全局数据
self.reset_map()"""
return lstPlayer
#此函数每个逻辑帧调用一次,处理时间驱动的逻辑
def logic_frame(self):
#当前帧数递增
self.iCurFrame += 1
#每秒一次发送游戏时间
if (self.iCurFrame % t_const.FPS_SERVER) == 0:
#second = self.iCurFrame / t_const.FPS_SERVER
#print self.iCurFrame
self.send_gametime()
# 事件
self.game_event.update()
pass
#此函数每秒调用一次,根据关卡配置刷新僵尸
def generate_monster(self, second):
#self.send_gametime()
#tgame_mapevent_s.inst.update()
pass
#此函数每秒调用一次,根据关卡配置生成阳光
def generate_sun(self, second):
#获取当前秒需要生成的阳光种类列表
"""lstSun = self.objTimeLine.get_sun(second)
if not lstSun:
return
iMaster = random.choice(self.dicPlayers.keys())
for iJob in lstSun:
iID = self.generate_id(t_const.OBJECT_ITEM)
if iID is None:
continue
sprite = self.new_sprite(iID, t_const.OBJECT_ITEM, iJob, iMaster)
if not sprite:
#无法生成阳光一般说明此阳光种类不存在
self.objRoom.cglog(t_const.LOGTYPE_CONFIG, "[FAIL_TO_CREATE_SPRITE][stage=%d;second=%d;iJob=%d]" % (self.iStage, second, iJob))
continue
sprite.set_mapmgr(self)
#向客户端广播有新阳光生成的消息
self.send_new_item(sprite.iID, sprite.iType, sprite.iJob, sprite.iMaster, -1, -1)"""
pass
#此函数在游戏中玩家离开房间时由房间逻辑调用,记录此玩家不再是“有效玩家”,并判断是否因为全部为无效玩家而结束游戏
def player_leave(self, iSide):
"""objPlayer = self.dicPlayers.get(iSide, None)
if objPlayer:
objPlayer.bIsLeave = True
if self.check_empty_game():
self.game_end(t_const.FACTION_NONE)"""
pass
#此函数在客户端发送游戏子事件时由房间逻辑调用,对子事件进行数据解包并根据子事件类型调用具体的子事件处理函数
def on_game_event(self, iSide, frame, event, data):
#print "server:on_game_event:",iSide,frame,event,data
if self.dicEventFunc.has_key(event):
param = [iSide, ]
param.extend(cPickle.loads(data))
apply(self.dicEventFunc[event], param)
pass
#-------------------------------------------------向客户端广播消息
def on_turend(self, obj, uid, rotate):
#print "send:on_turend",obj,names,rotate
param = (uid,rotate)
self.send_game_event(t_cmd.S_TUREND, param)
def on_move(self,obj, uid, ismove, dirx, diry, speed):
param = (uid, ismove, dirx, diry, speed)
self.send_game_event(t_cmd.S_MOVE, param)
def on_run(self, obj, uid, posx, posy):
param = (uid, posx, posy)
self.dicPlayersuid[uid].pos = (posx,posy)
#print "update%s pos"%uid
self.send_game_event(t_cmd.S_RUN, param)
def on_atk(self, obj, uid, pos, dir, weapon):
param = (uid, pos, dir, weapon)
self.send_game_event(t_cmd.S_ATK, param)
def on_pickitem(self, obj, uid, names):
param = (uid, names)
# 判断拾取
if self.dicPlayersuid[uid].pickItem(names):
self.send_game_event(t_cmd.S_PICKITEM, param)
# 游戏时间发送
def send_gametime(self):
self.gametime += 1
param = (self.gametime, 0)
#print "send_time:",self.gametime
#self.send_game_event(t_cmd.S_GAMETIME, param)
#----------------------------------------------------------------
#打包并发送游戏开始的消息,stage:当前关卡的id;player_list:此局游戏的玩家列表;每个玩家的信息包括:side:玩家标识;energy:起始阳光/能量数量;faxtion:阵营(植物方还是僵尸方);card_list:本局选择的可种植/创建的精灵种类列表
def send_game_start(self, iStage):
_list = []
for player in self.dicPlayers.itervalues():
tmp_list = []
#for iJob in player.lstCanBuild:
# int_obj = self.objMsgMgr.game_single_int(value=iJob)
# tmp_list.append(int_obj)
obj = self.objMsgMgr.game_player_start_info(side=player.iside,ifac=1, money=0, dicsprite=0)
_list.append(obj)
obj = self.objMsgMgr.game_s_game_start(stage=iStage, player_list=_list)
self.objRoom.send_all(obj)
#打包并发送游戏子事件的消息,frame:子事件发生的服务端时间帧;event_id:子事件类型;param:子事件具体参数(使用cPickle打包成一个字符串)
def send_game_event(self, event, param_list):
_str = cPickle.dumps(param_list)
obj = self.objMsgMgr.game_s_game_event(frame=self.iCurFrame, event_id=event, param=_str)
self.objRoom.send_all(obj)
# 除某人外的其它人
def send_game_event_other(self, event, param_list, uid):
_str = cPickle.dumps(param_list)
obj = self.objMsgMgr.game_s_game_event(frame=self.iCurFrame, event_id=event, param=_str)
self.objRoom.send_all(obj, self.dicPlayersuid[uid].hid)
def send_game_event_p(self, event, param_list, uid):
_str = cPickle.dumps(param_list)
obj = self.objMsgMgr.game_s_game_event(frame=self.iCurFrame, event_id=event, param=_str)
self.objRomm.send_to_user(self.dicPlayersuid[uid].hid, obj)
pass | [
[
1,
0,
0.0063,
0.0032,
0,
0.66,
0,
380,
0,
1,
0,
0,
380,
0,
0
],
[
1,
0,
0.0095,
0.0032,
0,
0.66,
0.1667,
855,
0,
4,
0,
0,
855,
0,
0
],
[
1,
0,
0.0189,
0.0032,
0,
... | [
"import hall_callback",
"import t_const, t_error, t_cmd, tgame_wizard",
"import game_player_s",
"import tgame_room",
"import random, cPickle",
"import tgame_mapevent_s",
"class CMap(object):\n\t#构造函数\n\tdef __init__(self, objRoom):\n\t\tsuper(CMap, self).__init__()\n\t\tself.objRoom = objRoom\t\t\t\t#房间... |
#-- coding: utf-8 -*-
import t_const
"""巫师指令定义方面客户端和服务端公用,其他的函数为客户端专用"""
WIZARD_CHANGE_SUN = 0x01 #改变阳光数量
WIZARD_END_GAME = 0x02 #立刻结束游戏
WIZARD_ADD_ZOMBIE = 0x03 #立刻刷新僵尸
#帮助文字字典
HELP_TEXT = {WIZARD_CHANGE_SUN : "改变阳光数量指令//change_sun:参数1:整数(可正负,代表阳光数量的改变值),示例://change_sun 100", \
WIZARD_END_GAME : "立刻结束游戏指令//end_game:参数1:0或1(1代表胜利,0代表失败),示例://end_game 1", \
WIZARD_ADD_ZOMBIE : "增加n个僵尸//add_zombie: 参数1:正整数(代表僵尸数量);参数2:正整数(代表僵尸种类,-1代表随机),示例://add_zombie 10 -1", \
}
#对外输出文字,用于向聊天窗口输出帮助文字信息
def out_put(text):
import tgame_ui_wait
tgame_ui_wait.inst.add_notice(text)
#检测某个字符串是否符合某个巫师指令的格式,在发送聊天消息前调用, 用于过滤巫师指令
def check_wizard(text):
#如果空字符串或者为None,返回不是巫师指令
if not text:
return True
#以空格为分隔符进行字符串分解
line = text.split()
#假如是需要显示帮助的指令
if line[0] == "//help":
for text in HELP_TEXT.itervalues():
out_put(text)
return False
#检测是否是游戏中巫师指令
elif check_playing_wizard(line):
return False
#检测是否是准备状态巫师指令
elif check_waiting_wizard(line):
return False
# 输入完后焦点失效
import tgame_game
tgame_game.tgame_API.chat_set_focus(False)
return True
#检测是否是游戏内巫师指令
def check_playing_wizard(line):
import tgame_mapmgr, tgame_command
#如果游戏管理对象不存在,返回false
if not tgame_mapmgr.inst:
return False
#如果并不处于游戏中状态,返回false
if tgame_mapmgr.inst.iStatus != t_const.GAME_PLAYING:
return False
#需要改变阳光数量
if line[0] == "//change_sun":
try:
dEnergy = int(line[1])
except:
out_put(HELP_TEXT[WIZARD_CHANGE_SUN])
return False
tgame_command.inst.send_wizard(WIZARD_CHANGE_SUN, [dEnergy, ])
return True
#需要立刻结束游戏
elif line[0] == "//end_game":
try:
win = int(line[1])
except:
out_put(HELP_TEXT[WIZARD_END_GAME])
return False
tgame_command.inst.send_wizard(WIZARD_END_GAME, [win, ])
return True
#需要立刻刷新僵尸
elif line[0] == "//add_zombie":
try:
iNum = int(line[1])
except:
out_put(HELP_TEXT[WIZARD_ADD_ZOMBIE])
return False
if iNum <= 0:
out_put(HELP_TEXT[WIZARD_ADD_ZOMBIE])
return False
try:
iJob = int(line[2])
except:
iJob = -1
tgame_command.inst.send_wizard(WIZARD_ADD_ZOMBIE, [iNum, iJob])
return True
return False
#检测是否是准备状态巫师指令
def check_waiting_wizard(line):
import tgame_mapmgr, tgame_command
if not tgame_mapmgr.inst:
return False
if tgame_mapmgr.inst.iStatus != t_const.GAME_WAIT:
return False
return False
| [
[
1,
0,
0.0189,
0.0094,
0,
0.66,
0,
855,
0,
1,
0,
0,
855,
0,
0
],
[
8,
0,
0.0377,
0.0094,
0,
0.66,
0.1111,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.0472,
0.0094,
0,
0.6... | [
"import t_const",
"\"\"\"巫师指令定义方面客户端和服务端公用,其他的函数为客户端专用\"\"\"",
"WIZARD_CHANGE_SUN\t= 0x01\t\t\t\t#改变阳光数量",
"WIZARD_END_GAME\t\t= 0x02\t\t\t\t#立刻结束游戏",
"WIZARD_ADD_ZOMBIE\t= 0x03\t\t\t\t#立刻刷新僵尸",
"HELP_TEXT = {WIZARD_CHANGE_SUN : \"改变阳光数量指令//change_sun:参数1:整数(可正负,代表阳光数量的改变值),示例://change_sun 100\", \\\n\t\t... |
# -*- coding: utf-8 -*-
"""以下是帧数相关配置"""
FPS = 30 #客户端逻辑帧数
FPS_SERVER = 5 #服务端逻辑帧数
FPS_RATE = FPS / FPS_SERVER #客户端服务端帧率比
"""以下是游戏模式相关配置"""
GAME_MODE_SINGLE = 0x01 #单人模式
"""以下是玩家个人数据相关的配置"""
#存关卡完成情况的buff的key
BUFF_COMPLETE = "buf0"
#所有用到的buff的列表
ALL_USED_BUFF = (BUFF_COMPLETE, )
#存关卡完成信息的打包格式
BUFF_COMPLETE_FORMAT_1 = 0x01
#现在使用的打包格式的字典
BUFF_FORMAT_ACTIVE = {
BUFF_COMPLETE : BUFF_COMPLETE_FORMAT_1
}
#存放各种不同打包格式的长度的字典
BUFF_FORMAT_LENGTH = {
BUFF_COMPLETE_FORMAT_1 : 51
}
#存放各种不同打包格式的格式化字符的字典
BUFF_FORMAT_TYPE = {
BUFF_COMPLETE_FORMAT_1 : "=50B"
}
"""以下是游戏状态标识的配置"""
GAME_WAIT = 0x01 #准备状态
GAME_INIT = 0x02 #游戏初始化状态(此时可以选择带入游戏的植物)
GAME_PLAYING = 0x03 #游戏中状态
"""以下是倒数相关的配置"""
WAIT_COUNTDOWN = 5 #游戏开始倒数时间
INIT_COUNTDOWN = 20 #游戏准备(选择卡片带入游戏)倒数时间
"""以下是精灵状态标识的配置"""
STATUS_WAIT = 0x00 #等待(AI做出下个动作的决定后直到服务端返回消息之前的状态)
STATUS_NEW = 0x01 #刚刚创建
STATUS_BORN = 0x02 #出生状态
STATUS_STAND = 0x03 #原地不动
STATUS_ATTACK = 0x04 #攻击状态
STATUS_MOVE = 0x05 #移动
STATUS_DIE = 0x06 #死亡状态
STATUS_SKILL = 0x07 #使用技能
STATUS_FLY_OUT = 0x08 #物品向屏幕外飞行中(阳光被拾取后)
STATUS_GROW = 0x09 #成长状态(土豆地雷)
STATUS_DIGEST = 0x0A #消化状态(食尸花)
STATUS_SWALLOW = 0x0B #吞咽状态(食尸花)
STATUS_JUMP_UP = 0x0C #跳跃上升阶段(撑杆跳僵尸)
STATUS_JUMP_DOWN = 0x0D #跳跃下降阶段(撑杆跳僵尸)
STATUS_JUMP_FAIL = 0x0E #跳跃失败滑下来的阶段(撑杆跳僵尸)
"""以下是增益状态和减益状态的配置"""
DEBUFF_COOL = 0x01 #寒冷状态(移动速度减慢)
DEBUFF_EXPLODE = 0x02 #被炸(如果在此状态下死亡,则化为灰烬)
DEBUFF_DISAPPEAR = 0x03 #消失(如果在此状态下死亡,则直接消失,不播放死亡动画)
#各种增益/减益状态的持续时间(单位秒)
BUFF_TIME = {DEBUFF_COOL : 10, \
}
"""以下是生命和护甲状态的配置(某些植物或者僵尸会根据生命值来切换模型状态)"""
LIFE_STATE_FULL = 0x01 #生命2/3以上
LIFE_STATE_HURT = 0x02 #生命2/3到1/3
LIFE_STATE_WEAK = 0x03 #生命1/3以下
ARMOR_STATE_FULL = 0x04 #护甲2/3以上
ARMOR_STATE_HURT = 0x05 #护甲2/3到1/3
ARMOR_STATE_WEAK = 0x06 #护甲1/3以下
ARMOE_STATE_NONE = 0x07 #护甲为0
"""以下是僵尸移动函数的返回值"""
RESULT_CAN_MOVE = 0x01 #可以正常移动
RESULT_ENEMY_STOP = 0x02 #遇到敌对可以攻击的敌对物体
"""以下是子弹攻击目标类型配置"""
TARGET_SPRITE = 0x01 #精灵
TARGET_AREA = 0x02 #位置
"""以下是精灵移动方向的配置"""
DIR_TO_HOME = (-1, 0)
DIR_TO_ZOMBIE = (1, 0)
"""以下是一些游戏细节内容相关的配置信息"""
##可种植植物卡片槽上最多有多少个可用的显示控件
MAX_SELECT_CARD_VIEW = 6
##可选择植物卡片箱子里最多有多少个可用的显示控件
MAX_TOTAL_CARD_VIEW = 14
##时间槽上最大显示多少波旗子
MAX_FLAG_VIEW = 4
##地图上横向最大的格子数
MAP_GRID_WIDTH = 9
##地图上每个格子的大小
GRID_PIXEL_WIDTH = 79
GRID_PIXEL_HEIGHT = 105
##默认的精灵模型缩放比例
GRID_SPRITE_SCALE = 1.0
#阳光上限
MAX_ENERGY_STORE = 99999
"""以下是游戏区域物件遮挡层次关系相关参数"""
MAX_LAYER_NUM = 3 #游戏区域总共分为多少层
BG_LAYER = 0 #背景层
SPRITE_LAYER = 1 #精灵层
ITEM_LAYER = 2 #物品层
GRID_RLEVEL_OFFSET = 5 #单个逻辑格rlevel分多少层
BACK_RLEVEL = 1 #南瓜后半
PLANT_RLEVEL = 2 #植物层
FRONT_RLEVEL = 3 #南瓜前半
ZOMBIE_RLEVEL = 4 #怪物层
MISSILE_RLEVEL = 5 #子弹层
#每个逻辑行占用的rlevel数
ROW_RLEVEL_OFFSET = (GRID_RLEVEL_OFFSET + 1) * MAP_GRID_WIDTH
"""以下是阵营配置"""
FACTION_PLANT = 0x01 #植物
FACTION_ZOMBIE = 0x02 #僵尸
FACTION_NONE = 0x03 #中立方(平局时候用)
"""以下是和索敌相关的配置"""
#面向的配置
FACE_TO_LEFT = -1 #面向左边
FACE_TO_RIGHT = 1 #面向右边
##索敌类型配置(面向为前方)
SEEK_FORWARD_LINE = 0x01 #当前行自己前方的全部敌人
SEEK_BACKWARD_LINE = 0x02 #当前行自己后方的全部敌人
SEEK_ALL_LINE = 0x03 #当前行全部的敌人
SEEK_DISTANCE = 0x04 #自己前后多少范围内的敌人
SEEK_TRIP_FORWARD = 0x05 #当前行和上下各一行且在自己前方的全部敌人
"""以下是子弹攻击类型配置"""
ATTACK_SINGLE = 0x01 #只命中一个敌人
ATTACK_ALL = 0x02 #命中全部敌人
ATTACK_SPURT = 0x03 #溅射
"""以下是地图上地形的配置"""
TBASE_GRASS = 0x01 #草地
TBASE_WATER = 0x02 #水面
TBASE_ROOF = 0x03 #屋顶
TBASE_OTHER_TOWER = 0x04 #其他植物
"""以下是游戏区域精灵类型的配置"""
OBJECT_TOWER = 0x01 #炮台(植物)
OBJECT_MONSTER = 0x02 #怪物(僵尸)
OBJECT_MISSILE = 0x03 #子弹(飞射物)
OBJECT_ITEM = 0x04 #奖励物品(阳光)
OBJECT_BASIS = 0x05 #基座(主要是僵尸的攻击可以认为是针对基座的)
OBJECT_EFFECT = 0x06 #特效(一般是某个动画文件)
"""以下是地图区域精灵的id上下边界配置"""
ID_MAX_GENERATE = 10000 #获取可用id的时候最多只会尝试获取多少次,多余这个次数会认为本次获取失败
ID_START_SERVER = 255 #前255个id留给地图区域的炮台底座
ID_END_SERVER = 10000000
ID_START_CLIENT = 10000001
ID_END_CLIENT = 20000000
"""以下是地图区域精灵种类的配置"""
#删除植物的操作(注意不能和精灵定义重复)
JOB_DELETE_PLANT = -1
##地图上各类精灵的定义
JOB_TOWER_SUNFLOWER = 0x01 #向日葵
JOB_TOWER_PEA = 0x02 #豌豆射手
JOB_TOWER_LILY = 0x03 #睡莲
JOB_TOWER_POT = 0x04 #花盆
JOB_TOWER_PUMPKIN = 0x05 #南瓜
JOB_TOWER_REPEATER = 0x06 #双发豌豆射手
JOB_TOWER_THREEPEATER = 0x07 #散弹豌豆射手
JOB_TOWER_GATLINGPEA = 0x08 #四联发豌豆射手
JOB_TOWER_SPLITPEA = 0x09 #双向豌豆射手
JOB_TOWER_WALLNUT = 0x0A #小坚果
JOB_TOWER_TALLNUT = 0x0B #大坚果
JOB_TOWER_SNOWPEA = 0x0C #冰冻射手
JOB_TOWER_CHERRYBOMB = 0x0D #草莓炸弹
JOB_TOWER_CHOMPER = 0x0E #食尸花
JOB_TOWER_POTATOMINE = 0x0F #土豆地雷
JOB_MONSTER_NAKED = 0x60 #普通僵尸
JOB_MONSTER_FLAG = 0x61 #旗子僵尸
JOB_MONSTER_CONEHEAD = 0x62 #路障僵尸
JOB_MONSTER_BUCKETHEAD = 0x63 #铁桶僵尸
JOB_MONSTER_SCREENDOOR = 0x64 #门板僵尸
JOB_MONSTER_POLEVAULT = 0x65 #跳高僵尸
JOB_MISSILE_PEA = 0xA0 #豌豆子弹
JOB_MISSILE_SNOWPEA = 0xA1 #冰冻子弹
JOB_ITEM_SUN = 0xE0 #阳光
JOB_ITEM_SILVER = 0xE1 #银币
#所有可选的植物的列表(目前个人信息中没有对可以用哪些植物卡片进行保存,默认所有玩家都可以选择所有可用植物)
ALL_CHOOSE_ABLE_PLANT = (JOB_TOWER_SUNFLOWER, JOB_TOWER_PEA, JOB_TOWER_REPEATER, \
JOB_TOWER_WALLNUT, JOB_TOWER_SNOWPEA, \
JOB_TOWER_CHERRYBOMB, JOB_TOWER_CHOMPER, JOB_TOWER_POTATOMINE, \
)
##地图上植物种植需要的地形配置
BUILD_LAND_DIC = {
JOB_TOWER_SUNFLOWER : TBASE_GRASS, \
JOB_TOWER_PEA : TBASE_GRASS, \
JOB_TOWER_LILY : TBASE_WATER, \
JOB_TOWER_POT : TBASE_ROOF, \
JOB_TOWER_PUMPKIN : TBASE_GRASS, \
JOB_TOWER_REPEATER : TBASE_GRASS, \
JOB_TOWER_WALLNUT : TBASE_GRASS, \
JOB_TOWER_TALLNUT : TBASE_GRASS, \
JOB_TOWER_SNOWPEA : TBASE_GRASS, \
JOB_TOWER_CHERRYBOMB : TBASE_GRASS, \
JOB_TOWER_POTATOMINE : TBASE_GRASS, \
JOB_TOWER_CHOMPER : TBASE_GRASS, \
}
##地图上强化植物需要的原始植物类型
BUILD_PANLT_DIC = {
}
##地图上僵尸能够出现的地形
MONSTER_APPEAR_DIC = {
JOB_MONSTER_NAKED : (TBASE_GRASS, TBASE_ROOF), \
JOB_MONSTER_FLAG : (TBASE_GRASS, TBASE_ROOF), \
JOB_MONSTER_CONEHEAD : (TBASE_GRASS, TBASE_ROOF), \
JOB_MONSTER_BUCKETHEAD : (TBASE_GRASS, TBASE_ROOF), \
JOB_MONSTER_POLEVAULT : (TBASE_GRASS, TBASE_ROOF), \
}
##植物和僵尸技能的配置
SKILL_CREATE_SUN = 0x01 #制造阳光
SKILL_EXPLODE = 0x02 #爆炸
SKILL_EAT = 0x03 #吞吃
SKILL_JUMP = 0x04 #跳跃
##植物死亡方式的配置(成就统计用)
DIE_STYLE_HURT = 0x01 #被僵尸杀掉的
DIE_STYLE_DELETE = 0x02 #玩家自己铲掉的
DIE_STYLE_SUICIDE = 0x03 #自杀(炸弹类的死法)
"""以下是日志相关配置"""
LOGTYPE_DEEP = 0x01 #底层调试用日志(日志等级deep)
LOGTYPE_DEBUG = 0x02 #dubug日志(日志等级debug)
LOGTYPE_KEYPOINT = 0x03 #游戏逻辑关键时间点或关键事件的日志,如玩家登陆等(日志等级info)
LOGTYPE_KEYDATA = 0x04 #游戏关键数据日志,玩家的可积累数据、物品、付费道具等(日志等级info)
LOGTYPE_DESIGN = 0x05 #某些数据超出了游戏设计的边界,如动态id溢出(日志等级warn)
LOGTYPE_CONFIG = 0x06 #某些配置在实际运行中不可用或溢出
LOGTYPE_ERROR = 0x07 #意外错误,一般是因为程序逻辑存在漏洞或者被破解的客户端胡乱发包引起
##日志关键字,用以扫描日志的时候区分不同日志类型
LOG_KEYWORD_DIC = {
LOGTYPE_DEEP : '', \
LOGTYPE_DEBUG : '', \
LOGTYPE_KEYPOINT : '[KP]', \
LOGTYPE_KEYDATA : '[KD]', \
LOGTYPE_DESIGN : '[DESIGN]', \
LOGTYPE_CONFIG : '[CONF]', \
LOGTYPE_ERROR : '[ERROR]'
}
| [
[
8,
0,
0.0078,
0.0039,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.0118,
0.0039,
0,
0.66,
0.0063,
843,
1,
0,
0,
0,
0,
1,
0
],
[
14,
0,
0.0157,
0.0039,
0,
0.66... | [
"\"\"\"以下是帧数相关配置\"\"\"",
"FPS\t\t\t\t\t= 30\t\t\t#客户端逻辑帧数",
"FPS_SERVER\t\t\t= 5\t\t#服务端逻辑帧数",
"FPS_RATE\t\t\t= FPS / FPS_SERVER\t\t#客户端服务端帧率比",
"\"\"\"以下是游戏模式相关配置\"\"\"",
"GAME_MODE_SINGLE\t\t= 0x01\t\t#单人模式",
"\"\"\"以下是玩家个人数据相关的配置\"\"\"",
"BUFF_COMPLETE\t\t\t= \"buf0\"",
"ALL_USED_BUFF\t\t\t= (BUF... |
#! /usr/bin/env python
#coding=utf-8
# 此方法用于生成寻路网格
import tgame_map
import iworld2d
class rect(object):
def __init__(self, lu, ru, ld, rd):
self.lu = lu
self.ru = ru
self.ld = ld
self.rd = rd
def init():
global g_allpos, g_allsize, possum, sizesum
g_allpos = {}
g_allsize = {}
possum = 0
sizesum = 0
global g_rects
g_rects = {}
pass
def getnaline():
global g_allpos, g_allsize, possum, sizesum, g_rects
# 地形的所有可碰撞物体(不可移动矩形)
for objn in tgame_map.g_objs:
obj = tgame_map.g_objs[objn]
if not obj.face:
continue
# 获取其位置,大小
pos = obj.pos
size = obj.face.size
g_allpos[str(possum)] = pos
g_allsize[str(possum)] = size
possum += 1
sizesum += 1
print "pos:",pos," size:",size
# 获取到的位置为左上角,目前该功能只做无旋转的物体
# 计算也一个物体的4个顶点,连接成一个四边形
lu = pos
ru = (pos[0] + size[0], pos[1])
ld = (pos[0], pos[1] + size[1])
rd = (pos[0] + size[0], pos[1] + size[1])
g_rects[str(possum)] = rect(lu, ru, ld, rd)
for id in g_rects:
print g_rects[id].ld, g_rects[id].rd, g_rects[id].ru, g_rects[id].lu
pass
# 读取地图,获取其信息
def getmap(map_name):
maps = __import__("tgame_map_%s"%map_name)
global g_allpos, g_allsize, possum, sizesum, g_rects
# 循环获取每一层场景 游戏场景固定物体一共4层
icode = 1
for obj in maps.data:
map_obj = maps.data.get(obj)
if map_obj["type"] != "floor" and map_obj["type"] != "za" and map_obj["type"] != "img_tile_p" and map_obj["type"] != "img_tile_p_b":
continue
img = iworld2d.image2d(map_obj["img"])
pos = map_obj["pos"]
size = img.size
if map_obj["type"] == "img_tile_p" or map_obj["type"] == "img_tile_p_b":
size = (img.size[0]*map_obj["w"], img.size[1] * map_obj["h"])
g_allpos[str(possum)] = pos
g_allsize[str(possum)] = size
possum += 1
sizesum += 1
print "pos:",pos," size:",size
# 获取到的位置为左上角,目前该功能只做无旋转的物体
# 计算也一个物体的4个顶点,连接成一个四边形
pc = 0
#if icode%4 == 2:
# pc = 1
#if icode%4 == 3:
# pc = 2
#if icode%4 == 0:
# pc = 3
lu = (pos[0] + pc, pos[1] + pc)
ru = (pos[0] + size[0] + pc, pos[1] + pc)
ld = (pos[0] + pc, pos[1] + size[1] + pc)
rd = (pos[0] + size[0] + pc, pos[1] + size[1] + pc)
g_rects[str(possum)] = rect(lu, ru, ld, rd)
img.destroy()
icode+=1
for id in g_rects:
print g_rects[id].ld, g_rects[id].rd, g_rects[id].ru, g_rects[id].lu
| [
[
1,
0,
0.051,
0.0102,
0,
0.66,
0,
394,
0,
1,
0,
0,
394,
0,
0
],
[
1,
0,
0.0612,
0.0102,
0,
0.66,
0.2,
863,
0,
1,
0,
0,
863,
0,
0
],
[
3,
0,
0.1071,
0.0612,
0,
0.66... | [
"import tgame_map",
"import iworld2d",
"class rect(object):\n\tdef __init__(self, lu, ru, ld, rd):\n\t\tself.lu = lu\n\t\tself.ru = ru\n\t\tself.ld = ld\n\t\tself.rd = rd",
"\tdef __init__(self, lu, ru, ld, rd):\n\t\tself.lu = lu\n\t\tself.ru = ru\n\t\tself.ld = ld\n\t\tself.rd = rd",
"\t\tself.lu = lu",
... |
#! /usr/bin/env python
#coding=utf-8
# 此方法用于生成寻路网格
import tgame_map
import iworld2d
class rect(object):
def __init__(self, lu, ru, ld, rd):
self.lu = lu
self.ru = ru
self.ld = ld
self.rd = rd
def init():
global g_allpos, g_allsize, possum, sizesum
g_allpos = {}
g_allsize = {}
possum = 0
sizesum = 0
global g_rects
g_rects = {}
pass
def getnaline():
global g_allpos, g_allsize, possum, sizesum, g_rects
# 地形的所有可碰撞物体(不可移动矩形)
for objn in tgame_map.g_objs:
obj = tgame_map.g_objs[objn]
if not obj.face:
continue
# 获取其位置,大小
pos = obj.pos
size = obj.face.size
g_allpos[str(possum)] = pos
g_allsize[str(possum)] = size
possum += 1
sizesum += 1
print "pos:",pos," size:",size
# 获取到的位置为左上角,目前该功能只做无旋转的物体
# 计算也一个物体的4个顶点,连接成一个四边形
lu = pos
ru = (pos[0] + size[0], pos[1])
ld = (pos[0], pos[1] + size[1])
rd = (pos[0] + size[0], pos[1] + size[1])
g_rects[str(possum)] = rect(lu, ru, ld, rd)
for id in g_rects:
print g_rects[id].ld, g_rects[id].rd, g_rects[id].ru, g_rects[id].lu
pass
# 读取地图,获取其信息
def getmap(map_name):
maps = __import__("tgame_map_%s"%map_name)
global g_allpos, g_allsize, possum, sizesum, g_rects
# 循环获取每一层场景 游戏场景固定物体一共4层
icode = 1
for obj in maps.data:
map_obj = maps.data.get(obj)
if map_obj["type"] != "floor" and map_obj["type"] != "za" and map_obj["type"] != "img_tile_p" and map_obj["type"] != "img_tile_p_b":
continue
img = iworld2d.image2d(map_obj["img"])
pos = map_obj["pos"]
size = img.size
if map_obj["type"] == "img_tile_p" or map_obj["type"] == "img_tile_p_b":
size = (img.size[0]*map_obj["w"], img.size[1] * map_obj["h"])
g_allpos[str(possum)] = pos
g_allsize[str(possum)] = size
possum += 1
sizesum += 1
print "pos:",pos," size:",size
# 获取到的位置为左上角,目前该功能只做无旋转的物体
# 计算也一个物体的4个顶点,连接成一个四边形
pc = 0
#if icode%4 == 2:
# pc = 1
#if icode%4 == 3:
# pc = 2
#if icode%4 == 0:
# pc = 3
lu = (pos[0] + pc, pos[1] + pc)
ru = (pos[0] + size[0] + pc, pos[1] + pc)
ld = (pos[0] + pc, pos[1] + size[1] + pc)
rd = (pos[0] + size[0] + pc, pos[1] + size[1] + pc)
g_rects[str(possum)] = rect(lu, ru, ld, rd)
img.destroy()
icode+=1
for id in g_rects:
print g_rects[id].ld, g_rects[id].rd, g_rects[id].ru, g_rects[id].lu
| [
[
1,
0,
0.051,
0.0102,
0,
0.66,
0,
394,
0,
1,
0,
0,
394,
0,
0
],
[
1,
0,
0.0612,
0.0102,
0,
0.66,
0.2,
863,
0,
1,
0,
0,
863,
0,
0
],
[
3,
0,
0.1071,
0.0612,
0,
0.66... | [
"import tgame_map",
"import iworld2d",
"class rect(object):\n\tdef __init__(self, lu, ru, ld, rd):\n\t\tself.lu = lu\n\t\tself.ru = ru\n\t\tself.ld = ld\n\t\tself.rd = rd",
"\tdef __init__(self, lu, ru, ld, rd):\n\t\tself.lu = lu\n\t\tself.ru = ru\n\t\tself.ld = ld\n\t\tself.rd = rd",
"\t\tself.lu = lu",
... |
data = {
"id0":{
"p1":(0,4099),
"p2":(4099,4099),
"p3":(1534,4096),
"minwidth":3,
"lj":["id12","id13"],
},
"id1":{
"p1":(4099,4099),
"p2":(4099,0),
"p3":(1534,2196),
"minwidth":2869,
"lj":["id2","id8"],
},
"id2":{
"p1":(4099,0),
"p2":(0,0),
"p3":(1534,2196),
"minwidth":2456,
"lj":["id1","id9"],
},
"id3":{
"p1":(0,0),
"p2":(0,4099),
"p3":(337,2196),
"minwidth":376,
"lj":["id18","id19"],
},
"id4":{
"p1":(1411,3672),
"p2":(1000,3672),
"p3":(1446,4096),
"minwidth":316,
"lj":["id11","id34"],
},
"id5":{
"p1":(1411,3435),
"p2":(1411,3672),
"p3":(1446,3146),
"minwidth":17,
"lj":["id11","id35"],
},
"id6":{
"p1":(1000,3435),
"p2":(1411,3435),
"p3":(1143,3301),
"minwidth":149,
"lj":["id29","id36"],
},
"id7":{
"p1":(1000,3672),
"p2":(1000,3435),
"p3":(851,3517),
"minwidth":166,
"lj":["id37","id38"],
},
"id8":{
"p1":(1534,2196),
"p2":(1534,3146),
"p3":(4099,4099),
"minwidth":853,
"lj":["id1","id13"],
},
"id9":{
"p1":(1446,2196),
"p2":(1534,2196),
"p3":(0,0),
"minwidth":80,
"lj":["id2","id39"],
},
"id10":{
"p1":(1446,3146),
"p2":(1446,2196),
"p3":(1258,3130),
"minwidth":210,
"lj":["id31","id32"],
},
"id11":{
"p1":(1446,4096),
"p2":(1446,3146),
"p3":(1411,3672),
"minwidth":39,
"lj":["id4","id5"],
},
"id12":{
"p1":(1534,4096),
"p2":(1446,4096),
"p3":(0,4099),
"minwidth":0,
"lj":["id0","id40"],
},
"id13":{
"p1":(1534,3146),
"p2":(1534,4096),
"p3":(4099,4099),
"minwidth":1062,
"lj":["id0","id8"],
},
"id14":{
"p1":(337,4096),
"p2":(337,3146),
"p3":(0,4099),
"minwidth":376,
"lj":["id15","id19"],
},
"id15":{
"p1":(425,4096),
"p2":(337,4096),
"p3":(0,4099),
"minwidth":0,
"lj":["id14","id40"],
},
"id16":{
"p1":(425,3146),
"p2":(425,4096),
"p3":(440,3517),
"minwidth":16,
"lj":["id24","id25"],
},
"id17":{
"p1":(425,2196),
"p2":(425,3146),
"p3":(890,3120),
"minwidth":477,
"lj":["id41","id42"],
},
"id18":{
"p1":(337,2196),
"p2":(425,2196),
"p3":(0,0),
"minwidth":96,
"lj":["id3","id39"],
},
"id19":{
"p1":(337,3146),
"p2":(337,2196),
"p3":(0,4099),
"minwidth":185,
"lj":["id3","id14"],
},
"id20":{
"p1":(1018,3120),
"p2":(1018,3150),
"p3":(1130,3130),
"minwidth":33,
"lj":["id33","id43"],
},
"id21":{
"p1":(890,3120),
"p2":(1018,3120),
"p3":(1446,2196),
"minwidth":122,
"lj":["id41","id43"],
},
"id22":{
"p1":(890,3190),
"p2":(890,3120),
"p3":(785,3190),
"minwidth":65,
"lj":["id42"],
},
"id23":{
"p1":(785,3280),
"p2":(785,3190),
"p3":(440,3280),
"minwidth":97,
"lj":["id44"],
},
"id24":{
"p1":(440,3517),
"p2":(440,3280),
"p3":(425,3146),
"minwidth":10,
"lj":["id16","id44"],
},
"id25":{
"p1":(851,3517),
"p2":(440,3517),
"p3":(425,4096),
"minwidth":370,
"lj":["id16","id37"],
},
"id26":{
"p1":(851,3341),
"p2":(851,3517),
"p3":(913,3341),
"minwidth":69,
"lj":["id38"],
},
"id27":{
"p1":(913,3271),
"p2":(913,3341),
"p3":(1015,3301),
"minwidth":72,
"lj":["id28","id45"],
},
"id28":{
"p1":(1015,3271),
"p2":(913,3271),
"p3":(1015,3301),
"minwidth":33,
"lj":["id27"],
},
"id29":{
"p1":(1143,3301),
"p2":(1015,3301),
"p3":(1000,3435),
"minwidth":97,
"lj":["id6","id45"],
},
"id30":{
"p1":(1143,3281),
"p2":(1143,3301),
"p3":(1258,3281),
"minwidth":22,
"lj":["id36"],
},
"id31":{
"p1":(1258,3130),
"p2":(1258,3281),
"p3":(1446,3146),
"minwidth":137,
"lj":["id10","id35"],
},
"id32":{
"p1":(1130,3130),
"p2":(1258,3130),
"p3":(1446,2196),
"minwidth":140,
"lj":["id10","id43"],
},
"id33":{
"p1":(1130,3150),
"p2":(1130,3130),
"p3":(1018,3150),
"minwidth":22,
"lj":["id20"],
},
"id34":{
"p1":(1446,4096),
"p2":(1000,3672),
"p3":(425,4096),
"minwidth":474,
"lj":["id4","id37","id40"],
},
"id35":{
"p1":(1411,3435),
"p2":(1446,3146),
"p3":(1258,3281),
"minwidth":190,
"lj":["id5","id31","id36"],
},
"id36":{
"p1":(1143,3301),
"p2":(1411,3435),
"p3":(1258,3281),
"minwidth":77,
"lj":["id6","id30","id35"],
},
"id37":{
"p1":(1000,3672),
"p2":(851,3517),
"p3":(425,4096),
"minwidth":236,
"lj":["id7","id25","id34"],
},
"id38":{
"p1":(851,3517),
"p2":(1000,3435),
"p3":(913,3341),
"minwidth":126,
"lj":["id7","id26","id45"],
},
"id39":{
"p1":(1446,2196),
"p2":(0,0),
"p3":(425,2196),
"minwidth":953,
"lj":["id9","id18","id41"],
},
"id40":{
"p1":(0,4099),
"p2":(1446,4096),
"p3":(425,4096),
"minwidth":2,
"lj":["id12","id15","id34"],
},
"id41":{
"p1":(425,2196),
"p2":(890,3120),
"p3":(1446,2196),
"minwidth":978,
"lj":["id17","id21","id39"],
},
"id42":{
"p1":(890,3120),
"p2":(425,3146),
"p3":(785,3190),
"minwidth":71,
"lj":["id17","id22","id44"],
},
"id43":{
"p1":(1018,3120),
"p2":(1130,3130),
"p3":(1446,2196),
"minwidth":122,
"lj":["id20","id21","id32"],
},
"id44":{
"p1":(440,3280),
"p2":(785,3190),
"p3":(425,3146),
"minwidth":149,
"lj":["id23","id24","id42"],
},
"id45":{
"p1":(1015,3301),
"p2":(913,3341),
"p3":(1000,3435),
"minwidth":108,
"lj":["id27","id29","id38"],
},
}
def get_data(id):
return data.get(id)
| [
[
14,
0,
0.4985,
0.9939,
0,
0.66,
0,
929,
0,
0,
0,
0,
0,
6,
0
],
[
2,
0,
0.9985,
0.0061,
0,
0.66,
1,
721,
0,
1,
1,
0,
0,
0,
1
],
[
13,
1,
1,
0.0031,
1,
0.67,
0,... | [
"data = {\n\t\t\"id0\":{\n\t\t\t\"p1\":(0,4099),\n\t\t\t\"p2\":(4099,4099),\n\t\t\t\"p3\":(1534,4096),\n\t\t\t\"minwidth\":3,\n\t\t\t\"lj\":[\"id12\",\"id13\"],\n\t\t\t},",
"def get_data(id):\n\treturn data.get(id)",
"\treturn data.get(id)"
] |
data = {
"id0":{
"p1":(-1,7200),
"p2":(15300,7200),
"p3":(6976,7190),
"minwidth":11,
"lj":["id8","id188"],
},
"id1":{
"p1":(15300,7200),
"p2":(15300,-1),
"p3":(15217,3645),
"minwidth":92,
"lj":["id93","id189"],
},
"id2":{
"p1":(15300,-1),
"p2":(-1,-1),
"p3":(9555,245),
"minwidth":275,
"lj":["id124","id125"],
},
"id3":{
"p1":(-1,-1),
"p2":(-1,7200),
"p3":(1,2878),
"minwidth":2,
"lj":["id183","id190"],
},
"id4":{
"p1":(1702,5481),
"p2":(1574,5481),
"p3":(1238,5750),
"minwidth":71,
"lj":["id133","id134"],
},
"id5":{
"p1":(1702,3820),
"p2":(1702,5481),
"p3":(1877,3803),
"minwidth":195,
"lj":["id6","id191"],
},
"id6":{
"p1":(1574,3820),
"p2":(1702,3820),
"p3":(1877,3803),
"minwidth":8,
"lj":["id5","id57"],
},
"id7":{
"p1":(1574,5481),
"p2":(1574,3820),
"p3":(1238,4264),
"minwidth":375,
"lj":["id134","id135"],
},
"id8":{
"p1":(6976,7190),
"p2":(6888,7190),
"p3":(-1,7200),
"minwidth":0,
"lj":["id0","id192"],
},
"id9":{
"p1":(6976,6365),
"p2":(6976,7190),
"p3":(9520,6364),
"minwidth":877,
"lj":["id64","id65"],
},
"id10":{
"p1":(6888,6365),
"p2":(6976,6365),
"p3":(3960,6364),
"minwidth":0,
"lj":["id11","id193"],
},
"id11":{
"p1":(6888,7190),
"p2":(6888,6365),
"p3":(3960,6364),
"minwidth":922,
"lj":["id10","id143"],
},
"id12":{
"p1":(9728,315),
"p2":(9728,325),
"p3":(9848,325),
"minwidth":11,
"lj":["id194"],
},
"id13":{
"p1":(9600,315),
"p2":(9728,315),
"p3":(9591,245),
"minwidth":65,
"lj":["id14","id195"],
},
"id14":{
"p1":(9600,466),
"p2":(9600,315),
"p3":(9591,245),
"minwidth":6,
"lj":["id13","id123"],
},
"id15":{
"p1":(9720,466),
"p2":(9600,466),
"p3":(9720,476),
"minwidth":11,
"lj":["id196"],
},
"id16":{
"p1":(9848,476),
"p2":(9720,476),
"p3":(9591,2964),
"minwidth":142,
"lj":["id196","id197"],
},
"id17":{
"p1":(9848,325),
"p2":(9848,476),
"p3":(9850,451),
"minwidth":2,
"lj":["id29","id198"],
},
"id18":{
"p1":(6520,708),
"p2":(8056,708),
"p3":(9520,403),
"minwidth":173,
"lj":["id23","id199"],
},
"id19":{
"p1":(6520,866),
"p2":(6520,708),
"p3":(6264,866),
"minwidth":150,
"lj":["id47","id200"],
},
"id20":{
"p1":(7999,866),
"p2":(6520,866),
"p3":(7999,2840),
"minwidth":1323,
"lj":["id201"],
},
"id21":{
"p1":(8070,2840),
"p2":(7999,2840),
"p3":(8275,2841),
"minwidth":0,
"lj":["id22","id202"],
},
"id22":{
"p1":(8070,708),
"p2":(8070,2840),
"p3":(8275,2841),
"minwidth":228,
"lj":["id21","id203"],
},
"id23":{
"p1":(8056,708),
"p2":(8070,708),
"p3":(9520,403),
"minwidth":3,
"lj":["id18","id204"],
},
"id24":{
"p1":(9910,461),
"p2":(9910,451),
"p3":(9850,451),
"minwidth":11,
"lj":["id198"],
},
"id25":{
"p1":(10038,461),
"p2":(9910,461),
"p3":(9848,476),
"minwidth":11,
"lj":["id198","id205"],
},
"id26":{
"p1":(10038,310),
"p2":(10038,461),
"p3":(10040,245),
"minwidth":1,
"lj":["id157","id206"],
},
"id27":{
"p1":(9978,310),
"p2":(10038,310),
"p3":(9978,300),
"minwidth":11,
"lj":["id206"],
},
"id28":{
"p1":(9850,300),
"p2":(9978,300),
"p3":(10040,245),
"minwidth":39,
"lj":["id206","id207"],
},
"id29":{
"p1":(9850,451),
"p2":(9850,300),
"p3":(9848,325),
"minwidth":2,
"lj":["id17","id194"],
},
"id30":{
"p1":(2930,2269),
"p2":(2859,2269),
"p3":(2930,2275),
"minwidth":6,
"lj":["id40","id208"],
},
"id31":{
"p1":(2930,1063),
"p2":(2930,2269),
"p3":(5204,1063),
"minwidth":1191,
"lj":["id208"],
},
"id32":{
"p1":(5204,905),
"p2":(5204,1063),
"p3":(5460,905),
"minwidth":150,
"lj":["id37","id209"],
},
"id33":{
"p1":(2930,905),
"p2":(5204,905),
"p3":(2417,403),
"minwidth":450,
"lj":["id34","id210"],
},
"id34":{
"p1":(2859,905),
"p2":(2930,905),
"p3":(2417,403),
"minwidth":55,
"lj":["id33","id35"],
},
"id35":{
"p1":(2859,2269),
"p2":(2859,905),
"p3":(2417,403),
"minwidth":351,
"lj":["id34","id117"],
},
"id36":{
"p1":(5460,905),
"p2":(5967,905),
"p3":(5967,708),
"minwidth":205,
"lj":["id209"],
},
"id37":{
"p1":(5460,1063),
"p2":(5460,905),
"p3":(5204,1063),
"minwidth":150,
"lj":["id32","id211"],
},
"id38":{
"p1":(5967,1063),
"p2":(5460,1063),
"p3":(5967,2275),
"minwidth":523,
"lj":["id211"],
},
"id39":{
"p1":(2930,2275),
"p2":(5967,2275),
"p3":(5204,1063),
"minwidth":1355,
"lj":["id208","id211"],
},
"id40":{
"p1":(2859,2275),
"p2":(2930,2275),
"p3":(2859,2269),
"minwidth":6,
"lj":["id30","id212"],
},
"id41":{
"p1":(2859,2398),
"p2":(2859,2275),
"p3":(2417,2841),
"minwidth":84,
"lj":["id42","id212"],
},
"id42":{
"p1":(2900,2398),
"p2":(2859,2398),
"p3":(2417,2841),
"minwidth":30,
"lj":["id41","id116"],
},
"id43":{
"p1":(5967,2398),
"p2":(2900,2398),
"p3":(3923,2841),
"minwidth":495,
"lj":["id44","id213"],
},
"id44":{
"p1":(5967,2840),
"p2":(5967,2398),
"p3":(3923,2841),
"minwidth":483,
"lj":["id43","id73"],
},
"id45":{
"p1":(6038,2840),
"p2":(5967,2840),
"p3":(8275,2841),
"minwidth":0,
"lj":["id73","id202"],
},
"id46":{
"p1":(6038,866),
"p2":(6038,2840),
"p3":(6264,866),
"minwidth":252,
"lj":["id200"],
},
"id47":{
"p1":(6264,708),
"p2":(6264,866),
"p3":(6520,708),
"minwidth":150,
"lj":["id19","id199"],
},
"id48":{
"p1":(6038,708),
"p2":(6264,708),
"p3":(9520,403),
"minwidth":22,
"lj":["id49","id199"],
},
"id49":{
"p1":(5967,708),
"p2":(6038,708),
"p3":(9520,403),
"minwidth":6,
"lj":["id48","id118"],
},
"id50":{
"p1":(1,6320),
"p2":(300,6320),
"p3":(300,3645),
"minwidth":334,
"lj":["id214"],
},
"id51":{
"p1":(1,6557),
"p2":(1,6320),
"p3":(-1,7200),
"minwidth":0,
"lj":["id52","id190"],
},
"id52":{
"p1":(411,6557),
"p2":(1,6557),
"p3":(-1,7200),
"minwidth":386,
"lj":["id51","id215"],
},
"id53":{
"p1":(411,6364),
"p2":(411,6557),
"p3":(3413,6364),
"minwidth":215,
"lj":["id215"],
},
"id54":{
"p1":(3413,6241),
"p2":(3413,6364),
"p3":(3669,6241),
"minwidth":124,
"lj":["id141","id216"],
},
"id55":{
"p1":(371,6241),
"p2":(3413,6241),
"p3":(1238,5925),
"minwidth":353,
"lj":["id137","id138"],
},
"id56":{
"p1":(371,3803),
"p2":(371,6241),
"p3":(1110,4264),
"minwidth":826,
"lj":["id136","id217"],
},
"id57":{
"p1":(1877,3803),
"p2":(371,3803),
"p3":(1574,3820),
"minwidth":19,
"lj":["id6","id217"],
},
"id58":{
"p1":(1877,3645),
"p2":(1877,3803),
"p3":(2133,3645),
"minwidth":150,
"lj":["id131","id218"],
},
"id59":{
"p1":(371,3645),
"p2":(1877,3645),
"p3":(1577,2878),
"minwidth":904,
"lj":["id185","id219"],
},
"id60":{
"p1":(300,3645),
"p2":(371,3645),
"p3":(41,2878),
"minwidth":72,
"lj":["id184","id185"],
},
"id61":{
"p1":(4395,3645),
"p2":(4466,3645),
"p3":(4630,2964),
"minwidth":77,
"lj":["id75","id76"],
},
"id62":{
"p1":(4395,6364),
"p2":(4395,3645),
"p3":(3960,6364),
"minwidth":486,
"lj":["id144","id193"],
},
"id63":{
"p1":(4436,6364),
"p2":(4395,6364),
"p3":(6976,6365),
"minwidth":0,
"lj":["id64","id193"],
},
"id64":{
"p1":(9520,6364),
"p2":(4436,6364),
"p3":(6976,6365),
"minwidth":1,
"lj":["id9","id63"],
},
"id65":{
"p1":(9591,6364),
"p2":(9520,6364),
"p3":(6976,7190),
"minwidth":23,
"lj":["id9","id220"],
},
"id66":{
"p1":(9591,5127),
"p2":(9591,6364),
"p3":(10001,5127),
"minwidth":458,
"lj":["id221"],
},
"id67":{
"p1":(10001,4890),
"p2":(10001,5127),
"p3":(10040,6364),
"minwidth":7,
"lj":["id108","id221"],
},
"id68":{
"p1":(9591,4890),
"p2":(10001,4890),
"p3":(9591,3645),
"minwidth":435,
"lj":["id222"],
},
"id69":{
"p1":(9556,3645),
"p2":(9591,3645),
"p3":(9591,2964),
"minwidth":39,
"lj":["id122","id223"],
},
"id70":{
"p1":(5142,3645),
"p2":(9556,3645),
"p3":(8275,2964),
"minwidth":761,
"lj":["id71","id224"],
},
"id71":{
"p1":(5142,2964),
"p2":(5142,3645),
"p3":(8275,2964),
"minwidth":744,
"lj":["id70"],
},
"id72":{
"p1":(8275,2841),
"p2":(8275,2964),
"p3":(8531,2841),
"minwidth":124,
"lj":["id120","id203"],
},
"id73":{
"p1":(3923,2841),
"p2":(8275,2841),
"p3":(5967,2840),
"minwidth":1,
"lj":["id44","id45"],
},
"id74":{
"p1":(3923,2964),
"p2":(3923,2841),
"p3":(3667,2964),
"minwidth":124,
"lj":["id115","id225"],
},
"id75":{
"p1":(4630,2964),
"p2":(3923,2964),
"p3":(4395,3645),
"minwidth":649,
"lj":["id61","id226"],
},
"id76":{
"p1":(4630,3645),
"p2":(4630,2964),
"p3":(4466,3645),
"minwidth":183,
"lj":["id61"],
},
"id77":{
"p1":(9520,6241),
"p2":(9520,3803),
"p3":(4466,6241),
"minwidth":2456,
"lj":["id78"],
},
"id78":{
"p1":(4466,3803),
"p2":(4466,6241),
"p3":(9520,3803),
"minwidth":2456,
"lj":["id77"],
},
"id79":{
"p1":(12652,3803),
"p2":(12652,6241),
"p3":(15146,3803),
"minwidth":1950,
"lj":["id80"],
},
"id80":{
"p1":(15146,6241),
"p2":(15146,3803),
"p3":(12652,6241),
"minwidth":1950,
"lj":["id79"],
},
"id81":{
"p1":(12652,3645),
"p2":(15182,3645),
"p3":(15146,2964),
"minwidth":745,
"lj":["id169","id170"],
},
"id82":{
"p1":(12581,3645),
"p2":(12652,3645),
"p3":(12622,2964),
"minwidth":79,
"lj":["id168","id169"],
},
"id83":{
"p1":(12581,4644),
"p2":(12581,3645),
"p3":(12503,4552),
"minwidth":87,
"lj":["id84","id85"],
},
"id84":{
"p1":(12503,4644),
"p2":(12581,4644),
"p3":(12503,4552),
"minwidth":66,
"lj":["id83"],
},
"id85":{
"p1":(12375,4552),
"p2":(12503,4552),
"p3":(12581,3645),
"minwidth":142,
"lj":["id83","id227"],
},
"id86":{
"p1":(12375,4703),
"p2":(12375,4552),
"p3":(12164,5346),
"minwidth":43,
"lj":["id104","id228"],
},
"id87":{
"p1":(12477,4703),
"p2":(12375,4703),
"p3":(12477,4795),
"minwidth":76,
"lj":["id229"],
},
"id88":{
"p1":(12581,4795),
"p2":(12477,4795),
"p3":(12392,5300),
"minwidth":114,
"lj":["id101","id102"],
},
"id89":{
"p1":(12581,6364),
"p2":(12581,4795),
"p3":(12392,5451),
"minwidth":211,
"lj":["id101","id230"],
},
"id90":{
"p1":(12622,6364),
"p2":(12581,6364),
"p3":(15300,7200),
"minwidth":13,
"lj":["id91","id231"],
},
"id91":{
"p1":(15146,6364),
"p2":(12622,6364),
"p3":(15300,7200),
"minwidth":841,
"lj":["id90","id92"],
},
"id92":{
"p1":(15217,6364),
"p2":(15146,6364),
"p3":(15300,7200),
"minwidth":78,
"lj":["id91","id93"],
},
"id93":{
"p1":(15217,3645),
"p2":(15217,6364),
"p3":(15300,7200),
"minwidth":70,
"lj":["id1","id92"],
},
"id94":{
"p1":(15182,3645),
"p2":(15217,3645),
"p3":(15217,2964),
"minwidth":39,
"lj":["id170","id189"],
},
"id95":{
"p1":(12093,403),
"p2":(10111,403),
"p3":(12093,2841),
"minwidth":1720,
"lj":["id96"],
},
"id96":{
"p1":(10111,2841),
"p2":(12093,2841),
"p3":(10111,403),
"minwidth":1720,
"lj":["id95"],
},
"id97":{
"p1":(12093,6364),
"p2":(10081,6364),
"p3":(6976,7190),
"minwidth":358,
"lj":["id109","id188"],
},
"id98":{
"p1":(12164,6364),
"p2":(12093,6364),
"p3":(15300,7200),
"minwidth":20,
"lj":["id188","id231"],
},
"id99":{
"p1":(12164,5497),
"p2":(12164,6364),
"p3":(12276,5497),
"minwidth":125,
"lj":["id232"],
},
"id100":{
"p1":(12276,5451),
"p2":(12276,5497),
"p3":(12392,5451),
"minwidth":47,
"lj":["id230"],
},
"id101":{
"p1":(12392,5300),
"p2":(12392,5451),
"p3":(12581,4795),
"minwidth":46,
"lj":["id88","id89"],
},
"id102":{
"p1":(12264,5300),
"p2":(12392,5300),
"p3":(12477,4795),
"minwidth":141,
"lj":["id88","id229"],
},
"id103":{
"p1":(12264,5346),
"p2":(12264,5300),
"p3":(12164,5346),
"minwidth":46,
"lj":["id228"],
},
"id104":{
"p1":(12164,3645),
"p2":(12164,5346),
"p3":(12375,4552),
"minwidth":236,
"lj":["id86","id227"],
},
"id105":{
"p1":(12129,3645),
"p2":(12164,3645),
"p3":(12164,2964),
"minwidth":39,
"lj":["id160","id233"],
},
"id106":{
"p1":(10111,3645),
"p2":(12129,3645),
"p3":(12093,2964),
"minwidth":733,
"lj":["id159","id160"],
},
"id107":{
"p1":(10040,3645),
"p2":(10111,3645),
"p3":(10081,2964),
"minwidth":79,
"lj":["id158","id159"],
},
"id108":{
"p1":(10040,6364),
"p2":(10040,3645),
"p3":(10001,4890),
"minwidth":43,
"lj":["id67","id222"],
},
"id109":{
"p1":(10081,6364),
"p2":(10040,6364),
"p3":(6976,7190),
"minwidth":11,
"lj":["id97","id220"],
},
"id110":{
"p1":(12093,6241),
"p2":(12093,3803),
"p3":(10111,6241),
"minwidth":1720,
"lj":["id111"],
},
"id111":{
"p1":(10111,3803),
"p2":(10111,6241),
"p3":(12093,3803),
"minwidth":1720,
"lj":["id110"],
},
"id112":{
"p1":(3925,3645),
"p2":(3960,3645),
"p3":(3923,2964),
"minwidth":39,
"lj":["id225","id226"],
},
"id113":{
"p1":(3482,3645),
"p2":(3925,3645),
"p3":(3667,2964),
"minwidth":463,
"lj":["id114","id225"],
},
"id114":{
"p1":(3482,2964),
"p2":(3482,3645),
"p3":(3667,2964),
"minwidth":206,
"lj":["id113"],
},
"id115":{
"p1":(3667,2841),
"p2":(3667,2964),
"p3":(3923,2841),
"minwidth":124,
"lj":["id74","id213"],
},
"id116":{
"p1":(2417,2841),
"p2":(3667,2841),
"p3":(2900,2398),
"minwidth":495,
"lj":["id42","id213"],
},
"id117":{
"p1":(2417,403),
"p2":(2417,2841),
"p3":(2859,2269),
"minwidth":494,
"lj":["id35","id212"],
},
"id118":{
"p1":(9520,403),
"p2":(2417,403),
"p3":(5967,708),
"minwidth":341,
"lj":["id49","id210"],
},
"id119":{
"p1":(9520,2841),
"p2":(9520,403),
"p3":(8531,2841),
"minwidth":1106,
"lj":["id204"],
},
"id120":{
"p1":(8531,2964),
"p2":(8531,2841),
"p3":(8275,2964),
"minwidth":124,
"lj":["id72","id224"],
},
"id121":{
"p1":(9520,2964),
"p2":(8531,2964),
"p3":(9556,3645),
"minwidth":612,
"lj":["id122","id224"],
},
"id122":{
"p1":(9591,2964),
"p2":(9520,2964),
"p3":(9556,3645),
"minwidth":79,
"lj":["id69","id121"],
},
"id123":{
"p1":(9591,245),
"p2":(9591,2964),
"p3":(9600,466),
"minwidth":10,
"lj":["id14","id196"],
},
"id124":{
"p1":(9555,245),
"p2":(9591,245),
"p3":(15300,-1),
"minwidth":1,
"lj":["id2","id234"],
},
"id125":{
"p1":(2417,245),
"p2":(9555,245),
"p3":(-1,-1),
"minwidth":205,
"lj":["id2","id126"],
},
"id126":{
"p1":(2346,245),
"p2":(2417,245),
"p3":(-1,-1),
"minwidth":8,
"lj":["id125","id235"],
},
"id127":{
"p1":(2346,2964),
"p2":(2346,245),
"p3":(2124,1695),
"minwidth":248,
"lj":["id179","id180"],
},
"id128":{
"p1":(2387,2964),
"p2":(2346,2964),
"p3":(2133,3645),
"minwidth":43,
"lj":["id130","id236"],
},
"id129":{
"p1":(2970,2964),
"p2":(2387,2964),
"p3":(2970,3645),
"minwidth":495,
"lj":["id130"],
},
"id130":{
"p1":(2133,3645),
"p2":(2970,3645),
"p3":(2387,2964),
"minwidth":711,
"lj":["id128","id129"],
},
"id131":{
"p1":(2133,3803),
"p2":(2133,3645),
"p3":(1877,3803),
"minwidth":150,
"lj":["id58","id191"],
},
"id132":{
"p1":(3889,3803),
"p2":(2133,3803),
"p3":(3889,5750),
"minwidth":1458,
"lj":["id237"],
},
"id133":{
"p1":(1238,5750),
"p2":(3889,5750),
"p3":(1702,5481),
"minwidth":300,
"lj":["id4","id237"],
},
"id134":{
"p1":(1238,4264),
"p2":(1238,5750),
"p3":(1574,5481),
"minwidth":375,
"lj":["id4","id7"],
},
"id135":{
"p1":(1110,4264),
"p2":(1238,4264),
"p3":(1574,3820),
"minwidth":98,
"lj":["id7","id217"],
},
"id136":{
"p1":(1110,5925),
"p2":(1110,4264),
"p3":(371,6241),
"minwidth":650,
"lj":["id56","id137"],
},
"id137":{
"p1":(1238,5925),
"p2":(1110,5925),
"p3":(371,6241),
"minwidth":49,
"lj":["id55","id136"],
},
"id138":{
"p1":(1238,5901),
"p2":(1238,5925),
"p3":(3413,6241),
"minwidth":26,
"lj":["id55","id139"],
},
"id139":{
"p1":(3889,5901),
"p2":(1238,5901),
"p3":(3413,6241),
"minwidth":380,
"lj":["id138","id216"],
},
"id140":{
"p1":(3889,6241),
"p2":(3889,5901),
"p3":(3669,6241),
"minwidth":206,
"lj":["id216"],
},
"id141":{
"p1":(3669,6364),
"p2":(3669,6241),
"p3":(3413,6364),
"minwidth":124,
"lj":["id54","id238"],
},
"id142":{
"p1":(3889,6364),
"p2":(3669,6364),
"p3":(6888,7190),
"minwidth":61,
"lj":["id143","id238"],
},
"id143":{
"p1":(3960,6364),
"p2":(3889,6364),
"p3":(6888,7190),
"minwidth":21,
"lj":["id11","id142"],
},
"id144":{
"p1":(3960,3645),
"p2":(3960,6364),
"p3":(4395,3645),
"minwidth":486,
"lj":["id62","id226"],
},
"id145":{
"p1":(15182,245),
"p2":(15217,245),
"p3":(15300,-1),
"minwidth":37,
"lj":["id146","id171"],
},
"id146":{
"p1":(12652,245),
"p2":(15182,245),
"p3":(15300,-1),
"minwidth":261,
"lj":["id145","id147"],
},
"id147":{
"p1":(12581,245),
"p2":(12652,245),
"p3":(15300,-1),
"minwidth":7,
"lj":["id146","id239"],
},
"id148":{
"p1":(12581,310),
"p2":(12581,245),
"p3":(12500,310),
"minwidth":56,
"lj":["id240"],
},
"id149":{
"p1":(12500,325),
"p2":(12500,310),
"p3":(12403,325),
"minwidth":16,
"lj":["id150"],
},
"id150":{
"p1":(12403,300),
"p2":(12403,325),
"p3":(12500,310),
"minwidth":27,
"lj":["id149","id240"],
},
"id151":{
"p1":(12275,300),
"p2":(12403,300),
"p3":(12164,245),
"minwidth":32,
"lj":["id153","id241"],
},
"id152":{
"p1":(12275,315),
"p2":(12275,300),
"p3":(12164,315),
"minwidth":16,
"lj":["id153"],
},
"id153":{
"p1":(12164,245),
"p2":(12164,315),
"p3":(12275,300),
"minwidth":77,
"lj":["id151","id152"],
},
"id154":{
"p1":(12129,245),
"p2":(12164,245),
"p3":(15300,-1),
"minwidth":3,
"lj":["id155","id239"],
},
"id155":{
"p1":(10111,245),
"p2":(12129,245),
"p3":(15300,-1),
"minwidth":106,
"lj":["id154","id156"],
},
"id156":{
"p1":(10040,245),
"p2":(10111,245),
"p3":(15300,-1),
"minwidth":3,
"lj":["id155","id234"],
},
"id157":{
"p1":(10040,2964),
"p2":(10040,245),
"p3":(10038,461),
"minwidth":2,
"lj":["id26","id205"],
},
"id158":{
"p1":(10081,2964),
"p2":(10040,2964),
"p3":(10040,3645),
"minwidth":45,
"lj":["id107","id242"],
},
"id159":{
"p1":(12093,2964),
"p2":(10081,2964),
"p3":(10111,3645),
"minwidth":731,
"lj":["id106","id107"],
},
"id160":{
"p1":(12164,2964),
"p2":(12093,2964),
"p3":(12129,3645),
"minwidth":79,
"lj":["id105","id106"],
},
"id161":{
"p1":(12164,466),
"p2":(12164,2964),
"p3":(12380,476),
"minwidth":241,
"lj":["id162","id243"],
},
"id162":{
"p1":(12278,466),
"p2":(12164,466),
"p3":(12380,476),
"minwidth":5,
"lj":["id161","id164"],
},
"id163":{
"p1":(12278,451),
"p2":(12278,466),
"p3":(12380,451),
"minwidth":16,
"lj":["id164"],
},
"id164":{
"p1":(12380,476),
"p2":(12380,451),
"p3":(12278,466),
"minwidth":27,
"lj":["id162","id163"],
},
"id165":{
"p1":(12508,476),
"p2":(12380,476),
"p3":(12581,2964),
"minwidth":142,
"lj":["id167","id243"],
},
"id166":{
"p1":(12508,461),
"p2":(12508,476),
"p3":(12581,461),
"minwidth":16,
"lj":["id167"],
},
"id167":{
"p1":(12581,2964),
"p2":(12581,461),
"p3":(12508,476),
"minwidth":82,
"lj":["id165","id166"],
},
"id168":{
"p1":(12622,2964),
"p2":(12581,2964),
"p3":(12581,3645),
"minwidth":45,
"lj":["id82","id244"],
},
"id169":{
"p1":(15146,2964),
"p2":(12622,2964),
"p3":(12652,3645),
"minwidth":743,
"lj":["id81","id82"],
},
"id170":{
"p1":(15217,2964),
"p2":(15146,2964),
"p3":(15182,3645),
"minwidth":79,
"lj":["id81","id94"],
},
"id171":{
"p1":(15217,245),
"p2":(15217,2964),
"p3":(15300,-1),
"minwidth":85,
"lj":["id145","id189"],
},
"id172":{
"p1":(15146,403),
"p2":(12652,403),
"p3":(15146,2841),
"minwidth":1950,
"lj":["id173"],
},
"id173":{
"p1":(12652,2841),
"p2":(15146,2841),
"p3":(12652,403),
"minwidth":1950,
"lj":["id172"],
},
"id174":{
"p1":(2053,1853),
"p2":(71,1853),
"p3":(1577,2755),
"minwidth":1008,
"lj":["id187","id245"],
},
"id175":{
"p1":(2053,2755),
"p2":(2053,1853),
"p3":(1833,2755),
"minwidth":246,
"lj":["id245"],
},
"id176":{
"p1":(1833,2878),
"p2":(1833,2755),
"p3":(1577,2878),
"minwidth":124,
"lj":["id186","id219"],
},
"id177":{
"p1":(2053,2878),
"p2":(1833,2878),
"p3":(1877,3645),
"minwidth":245,
"lj":["id218","id219"],
},
"id178":{
"p1":(2124,2878),
"p2":(2053,2878),
"p3":(2133,3645),
"minwidth":78,
"lj":["id218","id236"],
},
"id179":{
"p1":(2124,1695),
"p2":(2124,2878),
"p3":(2346,2964),
"minwidth":228,
"lj":["id127","id236"],
},
"id180":{
"p1":(2089,1695),
"p2":(2124,1695),
"p3":(2346,245),
"minwidth":38,
"lj":["id127","id235"],
},
"id181":{
"p1":(71,1695),
"p2":(2089,1695),
"p3":(-1,-1),
"minwidth":1422,
"lj":["id182","id235"],
},
"id182":{
"p1":(1,1695),
"p2":(71,1695),
"p3":(-1,-1),
"minwidth":78,
"lj":["id181","id183"],
},
"id183":{
"p1":(1,2878),
"p2":(1,1695),
"p3":(-1,-1),
"minwidth":0,
"lj":["id3","id182"],
},
"id184":{
"p1":(41,2878),
"p2":(1,2878),
"p3":(300,3645),
"minwidth":41,
"lj":["id60","id214"],
},
"id185":{
"p1":(1577,2878),
"p2":(41,2878),
"p3":(371,3645),
"minwidth":922,
"lj":["id59","id60"],
},
"id186":{
"p1":(1577,2755),
"p2":(1577,2878),
"p3":(1833,2755),
"minwidth":124,
"lj":["id176","id245"],
},
"id187":{
"p1":(71,2755),
"p2":(1577,2755),
"p3":(71,1853),
"minwidth":865,
"lj":["id174"],
},
"id188":{
"p1":(6976,7190),
"p2":(15300,7200),
"p3":(12093,6364),
"minwidth":930,
"lj":["id0","id97","id98"],
},
"id189":{
"p1":(15217,3645),
"p2":(15300,-1),
"p3":(15217,2964),
"minwidth":17,
"lj":["id1","id94","id171"],
},
"id190":{
"p1":(1,2878),
"p2":(-1,7200),
"p3":(1,6320),
"minwidth":1,
"lj":["id3","id51","id214"],
},
"id191":{
"p1":(1877,3803),
"p2":(1702,5481),
"p3":(2133,3803),
"minwidth":284,
"lj":["id5","id131","id237"],
},
"id192":{
"p1":(-1,7200),
"p2":(6888,7190),
"p3":(3413,6364),
"minwidth":929,
"lj":["id8","id215","id238"],
},
"id193":{
"p1":(3960,6364),
"p2":(6976,6365),
"p3":(4395,6364),
"minwidth":0,
"lj":["id10","id62","id63"],
},
"id194":{
"p1":(9728,315),
"p2":(9848,325),
"p3":(9850,300),
"minwidth":27,
"lj":["id12","id29","id195"],
},
"id195":{
"p1":(9591,245),
"p2":(9728,315),
"p3":(9850,300),
"minwidth":44,
"lj":["id13","id194","id207"],
},
"id196":{
"p1":(9720,476),
"p2":(9600,466),
"p3":(9591,2964),
"minwidth":134,
"lj":["id15","id16","id123"],
},
"id197":{
"p1":(9848,476),
"p2":(9591,2964),
"p3":(10040,2964),
"minwidth":500,
"lj":["id16","id205","id223"],
},
"id198":{
"p1":(9850,451),
"p2":(9848,476),
"p3":(9910,461),
"minwidth":26,
"lj":["id17","id24","id25"],
},
"id199":{
"p1":(6520,708),
"p2":(9520,403),
"p3":(6264,708),
"minwidth":26,
"lj":["id18","id47","id48"],
},
"id200":{
"p1":(6520,866),
"p2":(6264,866),
"p3":(6038,2840),
"minwidth":284,
"lj":["id19","id46","id201"],
},
"id201":{
"p1":(7999,2840),
"p2":(6520,866),
"p3":(6038,2840),
"minwidth":1755,
"lj":["id20","id200","id202"],
},
"id202":{
"p1":(8275,2841),
"p2":(7999,2840),
"p3":(6038,2840),
"minwidth":0,
"lj":["id21","id45","id201"],
},
"id203":{
"p1":(8070,708),
"p2":(8275,2841),
"p3":(8531,2841),
"minwidth":279,
"lj":["id22","id72","id204"],
},
"id204":{
"p1":(9520,403),
"p2":(8070,708),
"p3":(8531,2841),
"minwidth":1374,
"lj":["id23","id119","id203"],
},
"id205":{
"p1":(10038,461),
"p2":(9848,476),
"p3":(10040,2964),
"minwidth":213,
"lj":["id25","id157","id197"],
},
"id206":{
"p1":(10038,310),
"p2":(10040,245),
"p3":(9978,300),
"minwidth":52,
"lj":["id26","id27","id28"],
},
"id207":{
"p1":(9850,300),
"p2":(10040,245),
"p3":(9591,245),
"minwidth":61,
"lj":["id28","id195","id234"],
},
"id208":{
"p1":(2930,2269),
"p2":(2930,2275),
"p3":(5204,1063),
"minwidth":5,
"lj":["id30","id31","id39"],
},
"id209":{
"p1":(5204,905),
"p2":(5460,905),
"p3":(5967,708),
"minwidth":71,
"lj":["id32","id36","id210"],
},
"id210":{
"p1":(2417,403),
"p2":(5204,905),
"p3":(5967,708),
"minwidth":292,
"lj":["id33","id118","id209"],
},
"id211":{
"p1":(5460,1063),
"p2":(5204,1063),
"p3":(5967,2275),
"minwidth":242,
"lj":["id37","id38","id39"],
},
"id212":{
"p1":(2859,2275),
"p2":(2859,2269),
"p3":(2417,2841),
"minwidth":4,
"lj":["id40","id41","id117"],
},
"id213":{
"p1":(3923,2841),
"p2":(2900,2398),
"p3":(3667,2841),
"minwidth":113,
"lj":["id43","id115","id116"],
},
"id214":{
"p1":(1,6320),
"p2":(300,3645),
"p3":(1,2878),
"minwidth":334,
"lj":["id50","id184","id190"],
},
"id215":{
"p1":(411,6557),
"p2":(-1,7200),
"p3":(3413,6364),
"minwidth":588,
"lj":["id52","id53","id192"],
},
"id216":{
"p1":(3413,6241),
"p2":(3669,6241),
"p3":(3889,5901),
"minwidth":166,
"lj":["id54","id139","id140"],
},
"id217":{
"p1":(371,3803),
"p2":(1110,4264),
"p3":(1574,3820),
"minwidth":503,
"lj":["id56","id57","id135"],
},
"id218":{
"p1":(1877,3645),
"p2":(2133,3645),
"p3":(2053,2878),
"minwidth":284,
"lj":["id58","id177","id178"],
},
"id219":{
"p1":(1577,2878),
"p2":(1877,3645),
"p3":(1833,2878),
"minwidth":266,
"lj":["id59","id176","id177"],
},
"id220":{
"p1":(9591,6364),
"p2":(6976,7190),
"p3":(10040,6364),
"minwidth":130,
"lj":["id65","id109","id221"],
},
"id221":{
"p1":(10001,5127),
"p2":(9591,6364),
"p3":(10040,6364),
"minwidth":501,
"lj":["id66","id67","id220"],
},
"id222":{
"p1":(9591,3645),
"p2":(10001,4890),
"p3":(10040,3645),
"minwidth":477,
"lj":["id68","id108","id242"],
},
"id223":{
"p1":(9591,2964),
"p2":(9591,3645),
"p3":(10040,2964),
"minwidth":419,
"lj":["id69","id197","id242"],
},
"id224":{
"p1":(8275,2964),
"p2":(9556,3645),
"p3":(8531,2964),
"minwidth":134,
"lj":["id70","id120","id121"],
},
"id225":{
"p1":(3923,2964),
"p2":(3667,2964),
"p3":(3925,3645),
"minwidth":267,
"lj":["id74","id112","id113"],
},
"id226":{
"p1":(4395,3645),
"p2":(3923,2964),
"p3":(3960,3645),
"minwidth":399,
"lj":["id75","id112","id144"],
},
"id227":{
"p1":(12375,4552),
"p2":(12581,3645),
"p3":(12164,3645),
"minwidth":454,
"lj":["id85","id104","id244"],
},
"id228":{
"p1":(12375,4703),
"p2":(12164,5346),
"p3":(12264,5300),
"minwidth":90,
"lj":["id86","id103","id229"],
},
"id229":{
"p1":(12477,4795),
"p2":(12375,4703),
"p3":(12264,5300),
"minwidth":130,
"lj":["id87","id102","id228"],
},
"id230":{
"p1":(12581,6364),
"p2":(12392,5451),
"p3":(12276,5497),
"minwidth":139,
"lj":["id89","id100","id232"],
},
"id231":{
"p1":(15300,7200),
"p2":(12581,6364),
"p3":(12164,6364),
"minwidth":120,
"lj":["id90","id98","id232"],
},
"id232":{
"p1":(12276,5497),
"p2":(12164,6364),
"p3":(12581,6364),
"minwidth":440,
"lj":["id99","id230","id231"],
},
"id233":{
"p1":(12164,2964),
"p2":(12164,3645),
"p3":(12581,2964),
"minwidth":397,
"lj":["id105","id243","id244"],
},
"id234":{
"p1":(15300,-1),
"p2":(9591,245),
"p3":(10040,245),
"minwidth":21,
"lj":["id124","id156","id207"],
},
"id235":{
"p1":(2346,245),
"p2":(-1,-1),
"p3":(2089,1695),
"minwidth":1440,
"lj":["id126","id180","id181"],
},
"id236":{
"p1":(2133,3645),
"p2":(2346,2964),
"p3":(2124,2878),
"minwidth":247,
"lj":["id128","id178","id179"],
},
"id237":{
"p1":(3889,5750),
"p2":(2133,3803),
"p3":(1702,5481),
"minwidth":1615,
"lj":["id132","id133","id191"],
},
"id238":{
"p1":(3669,6364),
"p2":(3413,6364),
"p3":(6888,7190),
"minwidth":66,
"lj":["id141","id142","id192"],
},
"id239":{
"p1":(12581,245),
"p2":(15300,-1),
"p3":(12164,245),
"minwidth":36,
"lj":["id147","id154","id241"],
},
"id240":{
"p1":(12500,310),
"p2":(12581,245),
"p3":(12403,300),
"minwidth":42,
"lj":["id148","id150","id241"],
},
"id241":{
"p1":(12164,245),
"p2":(12403,300),
"p3":(12581,245),
"minwidth":61,
"lj":["id151","id239","id240"],
},
"id242":{
"p1":(10040,3645),
"p2":(10040,2964),
"p3":(9591,3645),
"minwidth":419,
"lj":["id158","id222","id223"],
},
"id243":{
"p1":(12380,476),
"p2":(12164,2964),
"p3":(12581,2964),
"minwidth":464,
"lj":["id161","id165","id233"],
},
"id244":{
"p1":(12581,3645),
"p2":(12581,2964),
"p3":(12164,3645),
"minwidth":397,
"lj":["id168","id227","id233"],
},
"id245":{
"p1":(2053,1853),
"p2":(1577,2755),
"p3":(1833,2755),
"minwidth":253,
"lj":["id174","id175","id186"],
},
}
def get_data(id):
return data.get(id)
| [
[
14,
0,
0.4997,
0.9988,
0,
0.66,
0,
929,
0,
0,
0,
0,
0,
6,
0
],
[
2,
0,
0.9997,
0.0012,
0,
0.66,
1,
721,
0,
1,
1,
0,
0,
0,
1
],
[
13,
1,
1,
0.0006,
1,
0.63,
0,... | [
"data = {\n\t\t\"id0\":{\n\t\t\t\"p1\":(-1,7200),\n\t\t\t\"p2\":(15300,7200),\n\t\t\t\"p3\":(6976,7190),\n\t\t\t\"minwidth\":11,\n\t\t\t\"lj\":[\"id8\",\"id188\"],\n\t\t\t},",
"def get_data(id):\n\treturn data.get(id)",
"\treturn data.get(id)"
] |
#-- coding: utf-8 -*-
#import tgame_stage_config, tgame_achieve_config
import tgame_stage_config
#房间内玩家对象类
class CPlayer(object):
def __init__(self, objRoom, uid):
super(CPlayer, self).__init__()
self.objRoom = objRoom #房间对象的引用
self.iSide = -1 #玩家的唯一标识
self.hid = -1 #玩家的socket(其实客户端不知道)
self.uid = uid #玩家的uid
self.urs = "" #玩家的账号
self.ip = "" #玩家的ip
self.nickname = "" #玩家的昵称
self.gmlvl = -1 #玩家的gm等级
self.avatar = None #玩家的人物avatar信息
self.pet = None #玩家的宠物avatar信息
self.score = 0 #玩家的总积分
self.win_count = 0 #玩家的胜利局数
self.draw_count = 0 #玩家的平局局数
self.lose_count = 0 #玩家的失败局数
self.break_count = 0 #玩家的断线/逃跑局数
self.yuanbao = 0 #玩家充值人民币代币
self.yuanbao_free = 0 #玩家的获赠人民币代币
self.bIsReady = False #玩家是否准备好进行游戏
self.bIsInit = False #玩家是否发送了本局带入游戏卡片列表
self.iSelectStage = 1 #玩家自己选中的当前关卡
self.lstFinishStage = [] #玩家已经完成的关卡列表
self.lstSelectableStage = [] #玩家可选的关卡列表
self.lstFinishAchieve = [] #玩家已经完成的成就列表
#自清理函数
def clean(self):
#释放对房间对象的引用
self.objRoom = None
#客户端判断是否能够使用巫师指令的函数,目前永远返回True
def can_use_wizard(self):
return True
#加载玩家基本信息的函数
def load_base_data(self, side, urs, uid, nickname, is_ready, gmlvl,hid):
self.iSide = side
self.urs = urs
self.uid = uid
self.nickname = nickname
self.bIsReady = is_ready
self.gmlvl = gmlvl
self.hid = hid
#加载玩家具体信息的函数
def load_detail_data(self, score, win_count, lose_count, draw_count, break_count):
self.score = score
self.win_count = win_count
self.draw_count = draw_count
self.lose_count = lose_count
self.break_count = break_count
#加载玩家avatar信息的函数
def load_avatar_info(self, avatar, pet):
print "avatar = %r; pet = %r" % (avatar, pet)
self.avatar = avatar
self.pet = pet
#加载玩家隐私信息的函数(所谓隐私信息就是不会收到其他玩家的相关信息,只会收到自己的)
def load_secret_info(self, yuanbao, yuanbao_free, finish_stage, finish_achieve):
#玩家的人民币代币信息
self.yuanbao = yuanbao
self.yuanbao_free = yuanbao_free
#保存玩家已经完成关卡的信息
self.lstFinishStage = []
for obj in finish_stage:
self.lstFinishStage.append(obj.value)
#根据玩家已经完成的关卡的信息,生成玩家可选关卡的列表
self.lstSelectableStage = []
for stage, require in tgame_stage_config.STAGE_REQUIRE.iteritems():
flag = True
for rstage in require:
if not rstage in self.lstFinishStage:
flag = False
break
if flag:
self.lstSelectableStage.append(stage)
self.lstSelectableStage.sort()
#保存玩家已经完成的成就的信息
self.lstFinishAchieve = []
for obj in finish_achieve:
self.lstFinishAchieve.append(obj.value)
#返回当前游戏总成就点数的函数
def get_achieve_point(self):
total = 0
for _id in self.lstFinishAchieve:
config = tgame_achieve_config.data.get(_id)
if config:
total += config["AchieveScore"]
return total
#返回总局数的函数
def get_total_round(self):
return self.win_count + self.draw_count + self.lose_count + self.break_count
#返回胜率的函数
def get_win_percent(self):
if self.get_total_round() == 0:
return 0
else:
return 100 * self.win_count / self.get_total_round()
#改变玩家准备状态标志位的函数
def change_ready(self, is_ready):
self.bIsReady = is_ready
#进入游戏初始化状态时调用的函数
def game_init(self):
self.bIsReady = False
#结束游戏,返回游戏准备状态时调用的函数
def game_end(self, stage, rank, score):
#如果玩家当前局的胜利且当前关卡不在已经完成的关卡列表里
"""if rank == 1 and (not stage in self.lstFinishStage):
#更新已经完成的关卡列表
self.lstFinishStage.append(stage)
#已经完成的关卡列表改变了,需要重新生成可选关卡列表
self.lstSelectableStage = []
for stage, require in tgame_stage_config.STAGE_REQUIRE.iteritems():
flag = True
for rstage in require:
if not rstage in self.lstFinishStage:
flag = False
break
if flag:
self.lstSelectableStage.append(stage)
self.lstSelectableStage.sort()
"""
#玩家胜利,胜利局数+1
if rank:
self.win_count += 1
#否则就是负局数+1(游戏目前没有平局)
else:
self.lose_count += 1
#本局得分累加到总积分上
self.score = score
#此函数在收到服务端的得到某个成就的消息的时候调用,更新已经完成的成就信息
def finish_achieve(self, achieve_id):
if not achieve_id in self.lstFinishAchieve:
self.lstFinishAchieve.append(achieve_id)
| [
[
1,
0,
0.0195,
0.0065,
0,
0.66,
0,
489,
0,
1,
0,
0,
489,
0,
0
],
[
3,
0,
0.5162,
0.974,
0,
0.66,
1,
903,
0,
14,
0,
0,
186,
0,
12
],
[
2,
1,
0.1234,
0.1753,
1,
0.52... | [
"import tgame_stage_config",
"class CPlayer(object):\n\tdef __init__(self, objRoom, uid):\n\t\tsuper(CPlayer, self).__init__()\n\t\tself.objRoom = objRoom\t\t#房间对象的引用\n\t\tself.iSide = -1\t\t\t\t#玩家的唯一标识\n\t\tself.hid = -1\t\t\t\t\t#玩家的socket(其实客户端不知道)\n\t\tself.uid = uid\t\t\t\t#玩家的uid\n\t\tself.urs = \"\"\t\t\t... |
#! /usr/bin/env python
#coding=utf-8
# tgame_entity
import tgame_player
import tgame_map
import tgame_mapmgr
g_builds = {}
g_entitys = {}
g_phys = {}
g_items = {}
ET_Player = 0x01
ET_Zombie = 0x02
ET_Barrier = 0x03
ET_Other = 0x04
def init():
pass
def addentity(playerinfo, AItype = None):
import tgame_player_c
global g_entitys
entity = tgame_player.TGame_Player(playerinfo, AItype)
g_entitys[playerinfo.uid] = entity
g_phys[entity.obj.phy.id] = entity
return g_entitys[playerinfo.uid]
def delentity(uid = None,id = None):
if uid:
# 玩家死亡
if uid == tgame_mapmgr.inst.objMe.player.uid:
tgame_mapmgr.inst.playerdead()
return
id = g_entitys[uid].obj.phy.id
g_entitys[uid].destroy()
g_entitys[uid] = None
g_phys[id] = None
del g_entitys[uid]
del g_phys[id]
elif id:
uid = g_phys[id].player.uid
g_phys[id].destroy()
g_entitys[uid] = None
g_phys[id] = None
del g_entitys[uid]
del g_phys[id]
def destroy():
import copy
copyg_e = copy.copy(g_entitys)
for key in copyg_e:
id = g_entitys[key].obj.phy.id
g_entitys[key].destroy()
del g_entitys[key]
del g_phys[id]
pass
def update():
for entity in g_entitys:
g_entitys[entity].update() | [
[
1,
0,
0.0645,
0.0161,
0,
0.66,
0,
17,
0,
1,
0,
0,
17,
0,
0
],
[
1,
0,
0.0806,
0.0161,
0,
0.66,
0.0667,
394,
0,
1,
0,
0,
394,
0,
0
],
[
1,
0,
0.0968,
0.0161,
0,
0.... | [
"import tgame_player",
"import tgame_map",
"import tgame_mapmgr",
"g_builds = {}",
"g_entitys = {}",
"g_phys = {}",
"g_items = {}",
"ET_Player = 0x01",
"ET_Zombie = 0x02",
"ET_Barrier = 0x03",
"ET_Other = 0x04",
"def init():\n\tpass",
"def addentity(playerinfo, AItype = None):\n\timport tgam... |
#! /usr/bin/env python
#coding=utf-8
import tgame_fsm
class PlayerFSMClass(tgame_fsm.IFsmCallbackObj):
TransitionMap = {
('stand', 'onMove'):'move',
('move', 'stopMove'):'stand',
('stand', 'Fire'):'atk',
}
MapState2Look = {
'move' : 'anim_stand_clip1',
'walk' : 'anim_walk_clip1',
'run' : 'anim_run_clip1',
'float' : 'anim_float_clip1',
}
def __init__(self):
self.fsm = tgame_fsm.CFsm(TransitionMap, self)
#self.sprite = # load some super cool model2d
def OnEvent(self, event):
self.fsm.OnEvent(event)
def OnEnterState(self, state):
# 比如进入某状态就切换到对应的动画
self.sprite.change_looks(MapState2Look[state])
def OnLeaveState(self, state):
pass
def OnEvent(self, state, event):
pass
| [
[
1,
0,
0.0938,
0.0312,
0,
0.66,
0,
111,
0,
1,
0,
0,
111,
0,
0
],
[
3,
0,
0.5781,
0.875,
0,
0.66,
1,
535,
0,
5,
0,
0,
717,
0,
3
],
[
14,
1,
0.25,
0.1562,
1,
0.57,
... | [
"import tgame_fsm",
"class PlayerFSMClass(tgame_fsm.IFsmCallbackObj):\n\tTransitionMap = {\n\t\t ('stand', 'onMove'):'move',\n\t\t ('move', 'stopMove'):'stand',\n\t\t ('stand', 'Fire'):'atk',\n\t}\n\tMapState2Look = {\n\t\t 'move' : 'anim_stand_clip1',",
"\tTransitionMap = {\n\t\t ('stand', 'onMove'):'... |
#! /usr/bin/env python
#coding=utf-8
import math3d,math
LEFT_SIDE = 0x01
RIGHT_SIDE = 0x02
NONE_SIDE = 0x03
def angle(o, s, e):
cosfi = 0
fi = 0
norm = 0
dsx = s[0] - o[0]
dsy = s[1] - o[1]
dex = e[0] - o[0]
dey = e[1] - o[1]
cosfi = dsx * dex + dsy * dey
norm = (dsx * dsx + dsy * dsy) * (dex * dex + dey * dey)
cosfi /= math.sqrt(norm)
fi = math.acos(cosfi)
if (180 * fi / math.pi < 180):
return 180 * fi / math.pi
else:
return 360 - 180 * fi / math.pi
def angle360(o, s, e):
if postionsame(o, s) or postionsame(o, e) or postionsame(s, e):
return
rotate = angle(o, s, e)
dir = math3d.vector2(e[0], e[1]) - math3d.vector2(s[0], s[1])
dir.normalize(1)
x = 0
y = 0
if dir.x < 0:
rotate = 360 - rotate
return rotate * math.pi/180
# 两点相等
def postionsame(p0,p1):
if p0[0] == p1[0] and p0[1] == p1[1]:
return True
return False
#单位化向量
def normalize(v=[]):
if len(v) == 2:
length = lambda v: (v[0]*v[0] + v[1]*v[1] ) ** 0.5
return ( v[0] / length(v), v[1] / length(v))
else:
return 0
# 计算三点的夹角
def vector3angle(A, B, C):
x1 = A[0]-B[0]
y1 = A[1]-B[1]
x2 = C[0]-B[0]
y2 = C[1]-B[1]
x = x1*x2+y1*y2
y = x1*y2-x2*y1
#if( x> 0 )
# //角度 <90
#else
# //角度> =90
angle = math.acos(x/(x*x+y*y))
#print "vector3angle",angle
angle = math.acos(x/math.sqrt(x*x+y*y))
return angle
#两向量的夹角(渣 无用)
def vector2angle(da, db):
X1 = da[0]
X2 = db[0]
Y1 = da[1]
Y2 = db[1]
angle = (X1*X2+Y1*Y2)/(math.sqrt(X1^2+X2^2)(X2^2+Y2^2))
return angle
# 逆时针 旋转向量
def RotateVectorN(x,y,d):
p = ( x * math.cos(d) - y * math.sin(d) , x * math.sin(d) + y * math.cos(d) )
return p
# 获得角对角d距离的点(渣 无用)
def anglepoint(p1, p2, p3, d):
da = ((p2[0] - p1[0]), (p2[1] - p1[1]))
#单位化
v = [da[0], da[1]]
da = normalize(v)
# 夹角
angle = vector3angle(p1, p2, p3)
ds = da
# 旋转夹角/2,得到中间向量
dirz = RotateVectorN(ds[0], ds[1], angle/2)
# p1的反向量顶点
fp1 = (p2[0] + dirz[0] * d, p2[1] + dirz[1] * d)
return fp1
# 计算线段长度
def linelength(p0, p1):
x = math.fabs(p0[0]-p1[0])
y = math.fabs(p0[1]-p1[1])
length = math.sqrt(x*x + y*y)
return length
# 计算三角形的重心(中心点)
def traingCenter(p0, p1, p2):
x1 = p0[0]
x2 = p1[0]
x3 = p2[0]
y1 = p0[1]
y2 = p1[1]
y3 = p2[1]
pos = ((x1+x2+x3)/3,(y1+y2+y3)/3)
return pos
# 判断相交
def isOnSameSide(x0, y0, x1, y1, x2, y2, x3, y3):
a = y0 - y1
b = x1 - x0
c = x0 * y1 - x1 * y0
if (a * x2 + b * y2 + c) * (a * x3 + b * y3 + c) > 0:
return True
return False
#p是要检测的点,v0,v1,v2是三角形的三个顶点。
# 计算点是否在三角形内
def isPointInside2(p, v0, v1, v2):
if isOnSameSide(p[0] ,p[1] ,v0[0] ,v0[1] ,v1[0] ,v1[1] ,v2[0] ,v2[1]) or \
isOnSameSide(p[0] ,p[1] ,v1[0] ,v1[1] ,v2[0] ,v2[1] ,v0[0] ,v0[1]) or \
isOnSameSide(p[0] ,p[1] ,v2[0] ,v2[1] ,v0[0] ,v0[1] ,v1[0] ,v1[1]):
return False
return True
#线段求交点
def linenode(P1,P2,Q1,Q2):
P1_X = P1[0]
P2_X = P2[0]
Q1_X = Q1[0]
Q2_X = Q2[0]
P1_Y = P1[1]
P2_Y = P2[1]
Q1_Y = Q1[1]
Q2_Y = Q2[1]
tmp11 = (Q1_X - P1_X) * (Q1_Y - Q2_Y) - (Q1_Y - P1_Y) * (Q1_X - Q2_X)
tmp12 = (P2_X - P1_X) * (Q1_Y - Q2_Y) - (P2_Y - P1_Y) * (Q1_X - Q2_X)
tmp13 = (P2_X - P1_X) * (Q1_Y - P1_Y) - (P2_Y - P1_Y) * (Q1_X - P1_X)
tmp14 = (P2_X - P1_X) * (Q1_Y - Q2_Y) - (P2_Y - P1_Y) * (Q1_X - Q2_X)
u = tmp11/tmp12
v = tmp13/tmp14
node = None
#若参数值同时满足0≤u≤1,0≤v≤1,则两线段有交点
if (0 <= u and u <= 1 and 0 <= v and v <= 1):
x = P1_X + (P2_X - P1_X) * u
y = P1_Y + (P2_Y - P1_Y) * u
node = (x,y)
return node
# 顺时针 旋转向量
def RotateVector(x,y,d):
p = ( x * math.cos(-d) - y * math.sin(-d) , x * math.sin(-d) + y * math.cos(-d) )
return p
# 获得一点与边的直角距离
def traingMiniWidth(p1,p2,p3):
x = p1[0] - p2[0]
y = p1[1] - p2[1]
d = 90
# 顺时针
p = RotateVector(x, y, d)
pe = ( p3[0] + p[0] * 1000, p3[1] + p[1] * 1000)
pon = linenode(p1,p2,p3,pe)
#print "xiangjiao:",pon
length = 0
if pon:
length = linelength(pon, p3)
return length
# 两点p1(x1,y1),p2(x2,y2),判断点p(x,y)在线的左边还是右边
def LeftOfLine(p, p1, p2):
x1 = p1[0]
x2 = p2[0]
y1 = p1[1]
y2 = p2[1]
x = p[0]
y = p[1]
#tmpx = (p1[0] - p2[0]) / (p1[1] - p2[1]) * (p[1] - p2[1]) + p2[0];
Tmp = (y1 - y2) * x + (x2 - x1) * y + x1 * y2 - x2 * y1
if Tmp > 0:
return LEFT_SIDE
elif Tmp < 0:
return RIGHT_SIDE
else:
return NONE_SIDE
#if (tmpx > p[0]):#当tmpx>p.x的时候,说明点在线的左边,小于在右边,等于则在线上。
# return True
#return False
#另外一种方法:
#Tmp = (y1 – y2) * x + (x2 – x1) * y + x1 * y2 – x2 * y1
#Tmp > 0 在左侧
#Tmp = 0 在线上
#Tmp < 0 在右侧
| [
[
1,
0,
0.0135,
0.0045,
0,
0.66,
0,
679,
0,
2,
0,
0,
679,
0,
0
],
[
14,
0,
0.027,
0.0045,
0,
0.66,
0.0526,
654,
1,
0,
0,
0,
0,
1,
0
],
[
14,
0,
0.0315,
0.0045,
0,
0... | [
"import math3d,math",
"LEFT_SIDE = 0x01",
"RIGHT_SIDE = 0x02",
"NONE_SIDE = 0x03",
"def angle(o, s, e):\n\tcosfi = 0\n\tfi = 0\n\tnorm = 0\n\tdsx = s[0] - o[0]\n\tdsy = s[1] - o[1]\n\tdex = e[0] - o[0]\n\tdey = e[1] - o[1]",
"\tcosfi = 0",
"\tfi = 0",
"\tnorm = 0",
"\tdsx = s[0] - o[0]",
"\tdsy = ... |
#! /usr/bin/env python
#coding=utf-8
# -*- coding: utf-8 -*-
import log
#
# transitionMap = {
# (fromState, event):toState,
# (fromState, event):toState,
# ...
# }
#
#
#
class IFsmCallbackObj(object):
def __init__(self):
pass
def OnEnterState(self, state):
pass
def OnLeaveState(self, state):
pass
def OnEvent(self, state, event):
pass
class CFsm(object):
def __init__(self, transitionMap, callbackObj):
self.transitionMap = transitionMap
self.callbackObj = callbackObj
self.curState = None
def Start(self, startState):
self.curState = startState
self.callbackObj.OnEnterState(startState)
def OnEvent(self, event):
key = (self.curState, event)
#print "In FSM.OnEvent:",key
if self.transitionMap.has_key(key):
#print "ok!!"
if self.callbackObj:
self.callbackObj.OnLeaveState(self.curState)
self.curState = self.transitionMap[key]
self.callbackObj.OnEnterState(self.curState)
else:
self.curState = self.transitionMap[key]
else:
if self.callbackObj:
self.callbackObj.OnEvent(self.curState, event)
| [
[
1,
0,
0.0784,
0.0196,
0,
0.66,
0,
432,
0,
1,
0,
0,
432,
0,
0
],
[
3,
0,
0.402,
0.2353,
0,
0.66,
0.5,
381,
0,
4,
0,
0,
186,
0,
0
],
[
2,
1,
0.3235,
0.0392,
1,
0.43... | [
"import log",
"class IFsmCallbackObj(object):\n\tdef __init__(self):\n\t\tpass\n\n\tdef OnEnterState(self, state):\n\t\tpass\n\n\tdef OnLeaveState(self, state):",
"\tdef __init__(self):\n\t\tpass",
"\tdef OnEnterState(self, state):\n\t\tpass",
"\tdef OnLeaveState(self, state):\n\t\tpass",
"\tdef OnEvent(s... |
#! /usr/bin/env python
#coding=utf-8
# 道具类,道具使用,效果,影响
| [] | [] |
#! /usr/bin/env python
#coding=utf-8
# tgame_entity
import tgame_player
import tgame_map
import tgame_mapmgr
g_builds = {}
g_entitys = {}
g_phys = {}
g_items = {}
ET_Player = 0x01
ET_Zombie = 0x02
ET_Barrier = 0x03
ET_Other = 0x04
def init():
pass
def addentity(playerinfo, AItype = None):
import tgame_player_c
global g_entitys
entity = tgame_player.TGame_Player(playerinfo, AItype)
g_entitys[playerinfo.uid] = entity
g_phys[entity.obj.phy.id] = entity
return g_entitys[playerinfo.uid]
def delentity(uid = None,id = None):
if uid:
# 玩家死亡
if uid == tgame_mapmgr.inst.objMe.player.uid:
tgame_mapmgr.inst.playerdead()
return
id = g_entitys[uid].obj.phy.id
g_entitys[uid].destroy()
g_entitys[uid] = None
g_phys[id] = None
del g_entitys[uid]
del g_phys[id]
elif id:
uid = g_phys[id].player.uid
g_phys[id].destroy()
g_entitys[uid] = None
g_phys[id] = None
del g_entitys[uid]
del g_phys[id]
def destroy():
import copy
copyg_e = copy.copy(g_entitys)
for key in copyg_e:
id = g_entitys[key].obj.phy.id
g_entitys[key].destroy()
del g_entitys[key]
del g_phys[id]
pass
def update():
for entity in g_entitys:
g_entitys[entity].update() | [
[
1,
0,
0.0645,
0.0161,
0,
0.66,
0,
17,
0,
1,
0,
0,
17,
0,
0
],
[
1,
0,
0.0806,
0.0161,
0,
0.66,
0.0667,
394,
0,
1,
0,
0,
394,
0,
0
],
[
1,
0,
0.0968,
0.0161,
0,
0.... | [
"import tgame_player",
"import tgame_map",
"import tgame_mapmgr",
"g_builds = {}",
"g_entitys = {}",
"g_phys = {}",
"g_items = {}",
"ET_Player = 0x01",
"ET_Zombie = 0x02",
"ET_Barrier = 0x03",
"ET_Other = 0x04",
"def init():\n\tpass",
"def addentity(playerinfo, AItype = None):\n\timport tgam... |
#! /usr/bin/env python
#coding=utf-8
import tgame_fsm
class PlayerFSMClass(tgame_fsm.IFsmCallbackObj):
TransitionMap = {
('stand', 'onMove'):'move',
('move', 'stopMove'):'stand',
('stand', 'Fire'):'atk',
}
MapState2Look = {
'move' : 'anim_stand_clip1',
'walk' : 'anim_walk_clip1',
'run' : 'anim_run_clip1',
'float' : 'anim_float_clip1',
}
def __init__(self):
self.fsm = tgame_fsm.CFsm(TransitionMap, self)
#self.sprite = # load some super cool model2d
def OnEvent(self, event):
self.fsm.OnEvent(event)
def OnEnterState(self, state):
# 比如进入某状态就切换到对应的动画
self.sprite.change_looks(MapState2Look[state])
def OnLeaveState(self, state):
pass
def OnEvent(self, state, event):
pass
| [
[
1,
0,
0.0938,
0.0312,
0,
0.66,
0,
111,
0,
1,
0,
0,
111,
0,
0
],
[
3,
0,
0.5781,
0.875,
0,
0.66,
1,
535,
0,
5,
0,
0,
717,
0,
3
],
[
14,
1,
0.25,
0.1562,
1,
0.63,
... | [
"import tgame_fsm",
"class PlayerFSMClass(tgame_fsm.IFsmCallbackObj):\n\tTransitionMap = {\n\t\t ('stand', 'onMove'):'move',\n\t\t ('move', 'stopMove'):'stand',\n\t\t ('stand', 'Fire'):'atk',\n\t}\n\tMapState2Look = {\n\t\t 'move' : 'anim_stand_clip1',",
"\tTransitionMap = {\n\t\t ('stand', 'onMove'):'... |
#! /usr/bin/env python
#coding=utf-8
# 道具类,道具使用,效果,影响
| [] | [] |
# 战争迷雾系统
import iworld2d
import math3d
# 小迷雾块大小
fogsize = 30
# 累计器
visionsum = 0
# 迷雾数量
h = 768/fogsize+1
w = 1024/fogsize+1
# 视野
class tgame_vision(object):
def __init__(self, vision = 20, pos = (0,0) , mode = "pos", name = ""):
# 累计器加1
global visionsum
visionsum += 1
# 视野范围
self.vision = vision
# 模式 ui:固定UI上 pos:世界坐标
#self.mode = mode
# 坐标
self.pos = pos
# 如果没有名称,则自动创建
if name == "":
name = "view_"+str(visionsum)
self.name = name
# 不可见空实体
self.obj = None
#return self.name
foglist = {}
fogent = {}
visions = {}
# 摄像机坐标不变则不更新坐标
last_cx = 0
last_cy = 0
# 战争迷雾主要管理类
def init():
# 全屏战争迷雾表
# 数值为1 表示有迷雾,初始化,全屏迷雾
global foglist,fogent
foglist = [[1 for col in range(h)] for row in range(w)]
# 加载所有迷雾
for y in range(0, h):
for x in range(0, w):
# 加载迷雾,迷雾层为4
index = y*w+x
fogent[index] = iworld2d.image2d( texture_file = "tgame/res/world2d/txg/fog.png", layer_id = 4 , name = "_fog_" + str(index))
fogent[index].pos = (x * fogsize + 500, y * fogsize + 500)
def add_vision(vision , ent):
# 视野是是圆形的,用一个圆形的图形来代表,视野值为此圆形的倍数.用图片可直接与场景中的雾作碰撞测试
vision.obj = iworld2d.image2d( texture_file = "tgame/res/world2d/txg/fog_obj.png", layer_id = 4 , name = vision.name)
vision.obj.set_pick()
vision.obj.hide()
vision.ent = ent
global visions
visions[vision.name] = vision
# 显示视野中的迷雾
def show_fog(vision):
#print "showfog"
# 以视野中心为中间,计算所有迷雾到中心的距离,如果在范围内,则隐藏其迷雾
for y in range(0, h):
for x in range(0, w):
fog = fogent[y*w+x]
#print "ddd"
if fog.is_hide() == False:
distance = math3d.vector2(vision.pos[0],vision.pos[1]) - math3d.vector2(fog.pos[0],fog.pos[1])
#hide = False
#print "ddd"
if distance.length < (vision.vision * 30)/2:
fog.hide()
elif distance.length < (vision.vision * 35)/2:
fog.alpha = 90
elif distance.length < (vision.vision * 40)/2:
fog.alpha = 180
# 根据当前屏幕视野,更新迷雾状态,透明度,是否显示
def update_fog():
global fogent
# 显示所有迷雾
for y in range(0, h):
for x in range(0, w):
fogent[y*w+x].show()
fogent[y*w+x].alpha = 255
# 获取当前屏幕范围内的可见视野
camera_x,camera_y = iworld2d.camera_to_worldpos(0,0)
objlist = iworld2d.select_with_rect(False, camera_x, camera_y, camera_x+1024, camera_y+768)
#print objlist
if objlist:
# 获得了所有的视野,再以视野判断
for obj in objlist:
# 名称为view_开关的为视野
if len(obj.name) > 5 and obj.name[0:5] == "view_":
# 得到视野,进行迷雾开启
show_fog(visions[obj.name])
# 更新视野
def update_view():
global visions
for view in visions:
viewobj = visions[view]
#print "objpos:", viewobj.ent.pos
# 坐标
if viewobj.ent.pos != viewobj.pos:
viewobj.pos = viewobj.ent.pos
viewobj.obj.pos = viewobj.ent.pos
# 视野
#if viewobj.obj.scale != (viewobj.vision, viewobj.vision)
viewobj.obj.scale = (viewobj.vision, viewobj.vision)
#print viewobj.obj.scale
pass
# 迷雾坐标更新
def update_pos():
global fogent,last_cx,last_cy
# 更新所有迷雾的坐标
camera_x,camera_y = iworld2d.camera_to_worldpos(0,0)
if camera_x != last_cx or camera_y != last_cy:
last_cx = camera_x
last_cy = camera_y
# 加载所有迷雾
for y in range(0, h):
for x in range(0, w):
# 加载迷雾,迷雾层为4
fogent[y*w+x].pos = (x * fogsize +camera_x, y * fogsize +camera_y)
def update():
update_pos()
update_view()
update_fog()
| [
[
1,
0,
0.021,
0.007,
0,
0.66,
0,
863,
0,
1,
0,
0,
863,
0,
0
],
[
1,
0,
0.028,
0.007,
0,
0.66,
0.0556,
679,
0,
1,
0,
0,
679,
0,
0
],
[
14,
0,
0.049,
0.007,
0,
0.66,... | [
"import iworld2d",
"import math3d",
"fogsize = 30",
"visionsum = 0",
"h = 768/fogsize+1",
"w = 1024/fogsize+1",
"class tgame_vision(object):\n\tdef __init__(self, vision = 20, pos = (0,0) , mode = \"pos\", name = \"\"):\n\t\t# 累计器加1\n\t\tglobal visionsum\n\t\tvisionsum += 1\n\t\t# 视野范围\n\t\tself.vision ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.