Пример #1
0
    def __init__(self, tag, attributes, children=None, data=None):

        Debugger.attach(self)

        self.tag = tag
        self.attributes = attributes
        self.children = children
        self.data = data
Пример #2
0
	def __init__(self,tag,attributes,children=None,data=None):

		Debugger.attach(self)
		
		self.tag = tag;
		self.attributes = attributes;
		self.children = children;
		self.data = data
Пример #3
0
    def __init__(self,inputstream):
        
        Debugger.attach(self)

        self.inputKey = None
        
        self._d('Reader init');
        self.tokenMap = Constants.dictionary;
        self.rawIn = inputstream;
        self.inn = ByteArray();
        self.buf = []#bytearray(1024);
        self.bufSize = 0;
        self.readSize = 1;
Пример #4
0
    def __init__(self, inputstream):

        Debugger.attach(self)

        self.inputKey = None

        self._d('Reader init')
        self.tokenMap = Constants.dictionary
        self.rawIn = inputstream
        self.inn = ByteArray()
        self.buf = []  #bytearray(1024);
        self.bufSize = 0
        self.readSize = 1
Пример #5
0
	def __init__(self):
		Debugger.attach(self)

		self.reader = BinTreeNodeReader(self)
		self.writer = BinTreeNodeWriter(self)
		
		self.readSize = 1;
		self.buf = [];
		self.maxBufRead = 0;
		self.connected = 0
		
		self.jid = ""
		
		super(ConnectionEngine,self).__init__(socket.AF_INET, socket.SOCK_STREAM);
Пример #6
0
    def __init__(self):
        Debugger.attach(self)

        self.reader = BinTreeNodeReader(self)
        self.writer = BinTreeNodeWriter(self)

        self.readSize = 1
        self.buf = []
        self.maxBufRead = 0
        self.connected = 0

        self.jid = ""

        super(ConnectionEngine, self).__init__(socket.AF_INET,
                                               socket.SOCK_STREAM)
Пример #7
0
    def __init__(self,o):
        Debugger.attach(self)

        self.outputKey = None

        dictionary = Constants.dictionary
        self.realOut = o;
        #self.out = o;
        self.tokenMap = {}
        self.out = ByteArray();
        #this.tokenMap = new Hashtable(dictionary.length);
        for i in range(0,len(dictionary)):
            if dictionary[i] is not None:
                self.tokenMap[dictionary[i]]=i
        
        #Utilities.debug(self.tokenMap);
        '''
Пример #8
0
    def __init__(self, o):
        Debugger.attach(self)

        self.outputKey = None

        dictionary = Constants.dictionary
        self.realOut = o
        #self.out = o;
        self.tokenMap = {}
        self.out = ByteArray()
        #this.tokenMap = new Hashtable(dictionary.length);
        for i in range(0, len(dictionary)):
            if dictionary[i] is not None:
                self.tokenMap[dictionary[i]] = i

        #Utilities.debug(self.tokenMap);
        '''
Пример #9
0
	def __init__(self,conn):
		Debugger.attach(self);

		self.conn = conn
		self._d("Yowsup WAUTH-1 INIT");
Пример #10
0
	def __init__(self):
		WADebug.attach(self)
Пример #11
0
    def __init__(self, conn):
        Debugger.attach(self)

        self.conn = conn
        self._d("Yowsup WAUTH-1 INIT")
Пример #12
0
 def __init__(self):
     WADebug.attach(self)