• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/timemachine/libxml2-2.7.2/python/

Lines Matching refs:self

40         def __init__(self, target):
43 self.finish_starttag = target.start
44 self.finish_endtag = target.end
45 self.handle_data = target.data
48 self.parser = sgmlop.XMLParser()
49 self.parser.register(self)
50 self.feed = self.parser.feed
51 self.entity = {
56 def close(self):
58 self.parser.close()
60 self.parser = self.feed = None # nuke circular reference
62 def handle_entityref(self, entity):
65 self.handle_data(self.entity[entity])
67 self.handle_data("&%s;" % entity)
77 def __init__(self, target):
78 self.unknown_starttag = target.start
79 self.handle_data = target.data
80 self.unknown_endtag = target.end
81 xmllib.XMLParser.__init__(self)
93 def __init__(self):
94 self._methodname = None
95 self._data = []
96 self.in_function = 0
98 def close(self):
102 def getmethodname(self):
103 return self._methodname
105 def data(self, text):
108 self._data.append(text)
110 def start(self, tag, attrs):
114 self._data = []
115 self.in_function = 1
116 self.function = None
117 self.function_cond = None
118 self.function_args = []
119 self.function_descr = None
120 self.function_return = None
121 self.function_file = None
123 self.function = attrs['name']
125 self.function_file = attrs['file']
127 self._data = []
129 self._data = []
131 if self.in_function == 1:
132 self.function_arg_name = None
133 self.function_arg_type = None
134 self.function_arg_info = None
136 self.function_arg_name = attrs['name']
138 self.function_arg_type = attrs['type']
140 self.function_arg_info = attrs['info']
142 if self.in_function == 1:
143 self.function_return_type = None
144 self.function_return_info = None
145 self.function_return_field = None
147 self.function_return_type = attrs['type']
149 self.function_return_info = attrs['info']
151 self.function_return_field = attrs['field']
155 def end(self, tag):
159 if self.function != None:
160 function(self.function, self.function_descr,
161 self.function_return, self.function_args,
162 self.function_file, self.function_cond)
163 self.in_function = 0
165 if self.in_function == 1:
166 self.function_args.append([self.function_arg_name,
167 self.function_arg_type,
168 self.function_arg_info])
170 if self.in_function == 1:
171 self.function_return = [self.function_return_type,
172 self.function_return_info,
173 self.function_return_field]
176 for c in self._data:
178 if self.in_function == 1:
179 self.function_descr = str
182 for c in self._data:
184 if self.in_function == 1:
185 self.function_cond = str
504 include.write("libxml_%s(PyObject *self, PyObject *args);\n" % (name))
525 output.write("libxml_%s(PyObject *self ATTRIBUTE_UNUSED," % (name))
1042 classes.write(" def __init__(self, _obj=None):\n")
1053 classes.write(" self.%s = None\n" % ref[1])
1054 classes.write(" self._o = _obj\n")
1055 classes.write(" %s.__init__(self, _obj=_obj)\n\n" % (
1059 classes.write(" def __repr__(self):\n")
1061 classes.write(" return \"%s\" %% (self.name, long(pos_id (self)))\n\n" % (
1066 classes.write(" def __init__(self, _obj=None):\n")
1070 classes.write(" self.%s = None\n" % ref[1])
1071 classes.write(" if _obj != None:self._o = _obj;return\n")
1072 classes.write(" self._o = None\n\n")
1075 classes.write(" def __del__(self):\n")
1076 classes.write(" if self._o != None:\n")
1077 classes.write(" libxml2mod.%s(self._o)\n" %
1079 classes.write(" self._o = None\n\n")
1103 classes.write(" def %s(self" % func)
1135 classes.write("self")
1182 classes.write(" __tmp.%s = self\n" %