예제 #1
0
파일: model.py 프로젝트: sxjccxq/keyboard
 def __init__(self, hid):
     ContentHandler.__init__(self)
     self.hid = hid
     self.state = ['Root']
     self.keys = {}
     self.content = None
     self.currentKey = None
예제 #2
0
 def __init__(self):
     ContentHandler.__init__(self)
     self.results = []
     self._ParentDoc = None
     self._NodeStack = []
     self._CharCache = ""
     self._Active = False
예제 #3
0
    def __init__(self):
        ContentHandler.__init__(self)
        # TAGS.TO.USE=400_a###400_b###400_c###400_d###400_x###410_a###410_b###411_a###411_b###430_a###450_a###450_x###451_a###451_x
        self.searchedTagCodes = {
            "400": ["a", "b", "c", "d", "x"],
            "410": ["a", "b"],
            "411": ["a", "b"],
            "430": ["a"],
            "450": ["a", "x"],
            "451": ["a", "x"],
        }
        # self.searchedTagMacCodes = {'750': ['a','b','v','x','y','z','0','2','5']}
        self.searchedTagMacCodes = {"750": ["a"]}
        self.foundTagCodesValues = {}
        self.foundMACSTagCodesValues = {}
        self.lastValidTag = None
        self.lastValidSubFieldCode = None
        self.tagName = ""

        self.procContentSubfield = {}
        self.relevantGNDIDdatafield = "035"
        self.relevantGNDIDsubfield = "a"
        self.inGNDIDField = False
        self.inGNDIDsubfield = False

        self.pGNDIDPattern = re.compile("\(DE-588\)", re.UNICODE | re.DOTALL | re.IGNORECASE)
예제 #4
0
    def __init__(self):
        ContentHandler.__init__(self)

        self.path = ''
        self.previousPath = ''
        self.currentAttributes = set()
        self.structure = XMLStructure()
예제 #5
0
파일: importer.py 프로젝트: jul/KhtNotes
 def __init__(self):
     ContentHandler.__init__(self)
     self._content = u''
     self._title = u''
     self._last_change = u''
     self._selector = None
     self._list_level = 0
예제 #6
0
    def __init__(self, library):
        ContentHandler.__init__(self)

        self._library = library
        self._current = None
        self._tag = None
        self._changed_songs = []
예제 #7
0
파일: webdoc.py 프로젝트: 19test/sandbox
 def __init__(self):
     ContentHandler.__init__(self)
     self.rootNode = None
     self.stack = []
     self.locatorStack = []
     self.filePathStack = []
     self.inDTD = False
예제 #8
0
    def __init__(self, page):
        ContentHandler.__init__(self)

        self._dbms = None
        self._page = page

        self.dbms = None
예제 #9
0
파일: hid.py 프로젝트: Andrew0Hill/keyboard
 def __init__(self, hid):
     ContentHandler.__init__(self)
     self._hid = hid
     self._state = ['Root']
     self._currentUsagePage = None
     self._currentUsage = None
     self._content = None
예제 #10
0
    def __init__(self):
        ContentHandler.__init__(self)
        self._locator = Locator()  # Dummy setDocumentLocator does the same!
        self.setDocumentLocator(self._locator)
        self.m_lcnt = 0  # input line number
        self.m_ppath = [
        ]  # contains the XML path to the current node (names of the ancestors)
        self.m_done = -1  # -1: not started synset yet, 0: inside synset, 1: done with synset
        self.m_syns = Synset()  # points to the output struct
        self.m_syns_list = []  # points to the output struct

        self.m_ilrs0_temp = ''  # Temp vars for Tuples (std::pair in C++)
        self.m_ilrs1_temp = ''

        self.m_sumolinks0_temp = ''
        self.m_sumolinks1_temp = ''

        self.m_elrs0_temp = ''
        self.m_elrs1_temp = ''

        self.m_elrs30_temp = ''
        self.m_elrs31_temp = ''

        self.m_ekszlinks0_temp = ''
        self.m_ekszlinks1_temp = ''

        self.m_vframelinks0_temp = ''
        self.m_vframelinks1_temp = ''

        self.m_startroot = False  # was there a starting root tag?
        self.m_endroot = False  # was there an end root tag?
예제 #11
0
 def __init__(self):
     """XMLReader initializer"""
     ContentHandler.__init__(self)
     self.msg_queue = deque()
     # current packet under construction
     self._draft = None
     self._sections_map = None
    def __init__(self):
        ContentHandler.__init__(self)

        self.path = ""
        self.previousPath = ""
        self.currentAttributes = set()
        self.structure = XMLStructure()
예제 #13
0
    def __init__(self, library):
        ContentHandler.__init__(self)

        self._library = library
        self._current = None
        self._tag = None
        self._changed_songs = []
예제 #14
0
		def __init__(self, text):
			ContentHandler.__init__(self)
			self.text = text
			self.data = []
			self.lemma = []
			self.pos = []
			self.word = []
예제 #15
0
		def __init__(self, hypothesis):
			ContentHandler.__init__(self)
			self.hypothesis = hypothesis
			self.data = []
			self.lemma = []
			self.pos = []
			self.word = []
예제 #16
0
파일: soapsucks.py 프로젝트: bmxp/shtoom
 def __init__(self):
     self.tagStack = []
     self.currentData = ''
     self.currentTag = None
     self.pushTag(self)
     ContentHandler.__init__(self)
     Tag.__init__(self, '[document]')
예제 #17
0
 def __init__(self):
     ContentHandler.__init__(self)
     self.type = ""
     self.id = ""
     self.tags = {}
     self.fields = ['full_id', 'osm_id', 'osm_type']
     self.elements = []
예제 #18
0
 def __init__(self):
     ContentHandler.__init__(self)
     self.rootNode = None
     self.stack = []
     self.locatorStack = []
     self.filePathStack = []
     self.inDTD = False
예제 #19
0
 def __init__(self):
     ContentHandler.__init__(self)
     self._data = ''
     self._in_a = 0
     self._a_title = ''
     self._a_href = ''
     self._dict=self.__class__.__dict__;
예제 #20
0
 def __init__(self, hid):
     ContentHandler.__init__(self)
     self._hid = hid
     self._state = ['Root']
     self._currentUsagePage = None
     self._currentUsage = None
     self._content = None
예제 #21
0
 def __init__(self):
     ContentHandler.__init__(self)
     # Simple database to keep track of the different publication types.
     self.db = {
         'article': 0,
         'inproceedings': 0,
         'proceedings': 0,
         'book': 0,
         'incollection': 0,
         'phdthesis': 0,
         'mastersthesis': 0,
     }
     # The number of publications per author
     self.authorsPubdb = dict()
     # Type: (name : list coauthors)
     self.coauthorsDB = dict()
     # Flag if we are inside a publication of the wished type (see types above)
     self.parentFlag = False
     # Flag if we are in a author's tag
     self.authorFlag = False
     # Counter at the beginning of a publication tag
     self.counter = 0
     self.counterA = 0
     self.counterB = 0
     # Counter at the end of a publication tag
     self.endCounter = 0
     # The authors of the current publication
     self.tempAuthors = []
     # timing
     self.startTime = 0
예제 #22
0
 def __init__(self):
     ContentHandler.__init__(self)
     # Simple database to keep track of the different publication types.
     self.db = {'article' : 0,
     'inproceedings' : 0,
     'proceedings' : 0,
     'book' : 0,
     'incollection' : 0,
     'phdthesis' : 0,
     'mastersthesis' : 0,
     }
     # The number of publications per author
     self.authorsPubdb = dict()
     # Type: (name : list coauthors)
     self.coauthorsDB = dict()
     # Flag if we are inside a publication of the wished type (see types above)
     self.parentFlag = False
     # Flag if we are in a author's tag
     self.authorFlag = False
     # Counter at the beginning of a publication tag
     self.counter = 0
     self.counterA = 0
     self.counterB = 0
     # Counter at the end of a publication tag
     self.endCounter = 0
     # The authors of the current publication
     self.tempAuthors = []
     # timing
     self.startTime = 0
예제 #23
0
 def __init__(self,
              fname,
              filehash,
              needports=False,
              needopenports=False,
              **_):
     ContentHandler.__init__(self)
     self._needports = needports
     self._needopenports = needopenports
     self._curscan = None
     self._curscript = None
     self._curhost = None
     self._curextraports = None
     self._curport = None
     self._curtrace = None
     self._curdata = None
     self._curtable = {}
     self._curtablepath = []
     self._curhostnames = None
     self._fname = fname
     self._filehash = filehash
     self.scanner = "nmap"
     self.need_scan_doc = False
     if config.DEBUG:
         sys.stderr.write("READING %r (%r)\n" % (fname, self._filehash))
예제 #24
0
파일: html.py 프로젝트: 193s/sqlmap
    def __init__(self, page):
        ContentHandler.__init__(self)

        self._dbms = None
        self._page = page

        self.dbms = None
예제 #25
0
파일: soap.py 프로젝트: paul-axe/darknet
 def __init__(self):
     self.tagStack = []
     self.currentData = ''
     self.currentTag = None
     self.pushTag(self)
     ContentHandler.__init__(self)
     Tag.__init__(self, '[document]')
예제 #26
0
파일: frostwarn.py 프로젝트: ywwg/frostwarn
 def __init__(self):
     ContentHandler.__init__(self)
     self._in_temperature = False
     self._in_name = False
     self._in_mintemp_value = False
     self._current_name = ""
     self._temperatures = []
예제 #27
0
 def __init__(self, agreement):
     ContentHandler.__init__(self)
     self.agreement = agreement
     self.ann = None
     self.mistake = None
     self.currentTag = None
     pass
예제 #28
0
 def __init__(self):
     """XMLReader initializer"""
     ContentHandler.__init__(self)
     self.msg_queue = deque()
     # current packet under construction
     self._draft = None
     self._sections_map = None
예제 #29
0
 def __init__(self):
     ContentHandler.__init__(self)
     self.type = ""
     self.id = ""
     self.tags = {}
     self.fields = ['full_id', 'osm_id', 'osm_type']
     self.elements = []
예제 #30
0
 def __init__(self):
     ContentHandler.__init__(self)
     self.sins = {}
     self.currentTag = None
     self.pagecount = 0
     self.stop = False
     pass
예제 #31
0
 def __init__(self, hid):
     ContentHandler.__init__(self)
     self.hid = hid
     self.state = ['Root']
     self.keys = {}
     self.content = None
     self.currentKey = None
예제 #32
0
 def __init__(self):
     ContentHandler.__init__(self)
     self._data = ''
     self._in_a = 0
     self._a_title = ''
     self._a_href = ''
     self._dict = self.__class__.__dict__
예제 #33
0
파일: html.py 프로젝트: ZhangTongLe/sqlmap
    def __init__(self, page):
        ContentHandler.__init__(self)

        self._dbms = None
        self._page = (page or "")
        self._lower_page = self._page.lower()

        self.dbms = None
예제 #34
0
파일: conv.py 프로젝트: bartosh/pomni
    def __init__(self, output):

        ContentHandler.__init__(self)

        self.tagnames = ("front", "back", "card")
        self.state = dict(zip(self.tagnames, [False] * len(self.tagnames)))
        self.key = self.translation = ""
        self.output = output
예제 #35
0
 def __init__(self, session):
     ContentHandler.__init__(self)
     self._currenttag = None
     self._ignoretag = None
     self._defaulttags = []
     self._session = session
     self._validate_reply_and_sax_tag = False
     self._lock = Lock()
예제 #36
0
파일: xml_tag.py 프로젝트: niterain/digsby
 def __init__(self):
     ContentHandler.__init__(self)
     # DTDHandler.__init__(self) # DTDHandler has no __init__ (?)
     # EntityResolver.__init__(self) # neither does EntityResolver
     self.data = ""
     self.stack = []
     self.root = None
     self.ns_dict = {}
예제 #37
0
 def __init__(self, processes, algorithms):
     ContentHandler.__init__(self)
     self.tag = ''
     self.attrs = []  # Used as temp var to hold attributes
     # Processes will be returned as a list of dicts
     self.proc = processes
     self.algs = algorithms
     self.totalMem = 0
예제 #38
0
파일: readInput.py 프로젝트: sucse/OS
 def __init__(self, processes, algorithms):
     ContentHandler.__init__(self)
     self.tag = ''
     self.attrs = []  # Used as temp var to hold attributes
     # Processes will be returned as a list of dicts
     self.proc = processes
     self.algs = algorithms
     self.totalMem = 0
예제 #39
0
 def __init__(self):
     """
     В text_fragment должны попасть то что попадает в body и длинне 50 слов
     В plain_text должно попасть то что короче 50 слов
     """
     ContentHandler.__init__(self)
     self.tags = defaultdict(lambda: {'texts': [], 'word_count': 0})
     self.path = []
예제 #40
0
 def __init__(self):
   ContentHandler.__init__(self)
   self.value = ""
   self.attrs = None
   self.children = []
   self.isValid = 1
   self.name = None
   self.itunes = False
예제 #41
0
    def __init__(self, page):
        ContentHandler.__init__(self)

        self._dbms = None
        self._page = (page or "")
        self._lower_page = self._page.lower()

        self.dbms = None
예제 #42
0
    def __init__(self):
        ContentHandler.__init__(self)

        tags = ['title', 'h1', 'a', 'h2h6', 'beis', 'body', 'metadescription', 'text']
        self.result = {tag: {'texts': [], 'word_count': 0} for tag in tags}
        self.stopwords = get_stop_words()
        self.current_element = None
        self.path = []
예제 #43
0
 def __init__(self, methodname):
     ContentHandler.__init__(self)
     self.methodname = methodname
     self.ip = None
     self.errorset = False
     self.errorcode = 0
     self.errordesc = 'No error'
     self.content = None
	def __init__( self ):
		"""
		"""
		ContentHandler.__init__( self )
		
		self._t_nodes = []
		self._t_parent_node = None
		self.rootNode = None
예제 #45
0
 def __init__(self):
     ContentHandler.__init__(self)
     self.nodes = {}
     self.ways = []
     self._way_id = None
     self._way_name = None
     self._way_highway = None
     self._way_nodes = []
예제 #46
0
파일: xml_tag.py 프로젝트: sgricci/digsby
 def __init__(self):
     ContentHandler.__init__(self)
     #DTDHandler.__init__(self) # DTDHandler has no __init__ (?)
     #EntityResolver.__init__(self) # neither does EntityResolver
     self.data = ''
     self.stack = []
     self.root = None
     self.ns_dict = {}
예제 #47
0
 def __init__(self):
     ContentHandler.__init__(self)
     self.value = ""
     self.attrs = None
     self.children = []
     self.isValid = 1
     self.name = None
     self.itunes = False
예제 #48
0
파일: upnp.py 프로젝트: Swizec/IJS-stuff
 def __init__(self,methodname):
     ContentHandler.__init__(self)
     self.methodname = methodname
     self.ip = None  
     self.errorset = False
     self.errorcode = 0
     self.errordesc = 'No error'
     self.content = None
예제 #49
0
 def __init__(self):
     """
     """
     ContentHandler.__init__(self)
     self._content = []
     self.report = None
     self._result = None
     self._hit = None
     self._hsp = None
예제 #50
0
 def __init__(self, parser=None):
     if parser:
         self.getLineNumber = lambda: parser.getLineNumber ()
     else:
         self.getLineNumber = lambda: None
     self.stack = []
     self.ch = ''
     self.prefixes = {}
     ContentHandler.__init__(self)
예제 #51
0
파일: xmlrpc.py 프로젝트: z0r1nga/w3af
    def __init__(self):
        ContentHandler.__init__(self)

        # The result
        self.fuzzable_parameters = []
        self.all_parameters = []

        # Internal variables
        self._inside_fuzzable = False
예제 #52
0
파일: xmlrpc.py 프로젝트: Daisymei/w3af
    def __init__(self):
        ContentHandler.__init__(self)

        # The result
        self.fuzzable_parameters = []
        self.all_parameters = []

        # Internal variables
        self._inside_fuzzable = False
예제 #53
0
	def __init__(self, parser=None):
		if parser:
			self.getLineNumber = lambda: parser.getLineNumber ()
		else:
			self.getLineNumber = lambda: None
		self.stack = []
		self.ch = ''
		self.prefixes = {}
		ContentHandler.__init__(self)
예제 #54
0
	def __init__(self, config, logger, parent):
		ContentHandler.__init__(self)
		self.config = config
		self.logger = logger
		self.parent = parent
		self.validator = etree.DTD(self.config.events_dtd)
		self.event_started = False
		self.events = []
		self.event_handler = None
예제 #55
0
 def __init__(self):
     ContentHandler.__init__(self)
     self.dataMatrixList = []
     self.basketDataMatrixList = [("", 4)] * 5
     self.dataMatrix = ""
     self.basketLocation = -1
     self.sampleLocation = -1
     self.flag = 0
     self.holder_length = 22.0
예제 #56
0
파일: SC3.py 프로젝트: alexgobbo/mxcube
 def __init__(self):
     ContentHandler.__init__(self)
     self.dataMatrixList = []
     self.basketDataMatrixList = [('',4)] *5
     self.dataMatrix = ''
     self.basketLocation = -1
     self.sampleLocation = -1
     self.flag = 0
     self.holder_length=22.0
예제 #57
0
 def __init__(self, xmlTagsToIgnore, xmlAttrsToIgnore):
     ContentHandler.__init__(self)
     self.res = unicode(xmlPrologue)
     self.namespaces = {}  # ~{s_namespaceUri:s_namespaceName}~
     self.indentLevel = -1
     self.tabWidth = 3
     self.tagsToIgnore = xmlTagsToIgnore
     self.attrsToIgnore = xmlAttrsToIgnore
     self.ignoring = False  # Some content must be ignored, and not dumped
예제 #58
0
파일: xdxfconv.py 프로젝트: bartosh/pomni
    def __init__(self, output):

        ContentHandler.__init__(self)

        self.tagnames = ("k", "tr", "ar")
        self.state = dict(zip(self.tagnames, [False] * len(self.tagnames)))
        self.key = self.transcription = ""
        self.translation = []
        self.output = output
예제 #59
0
    def __init__(self, banner, info):
        ContentHandler.__init__(self)

        self.__banner = sanitizeStr(banner)
        self.__regexp = None
        self.__match = None
        self.__dbmsVersion = None
        self.__techVersion = None
        self.__info = info