Lines Matching refs:self

30     def __init__ (self, filename=""):  argument
31 self._filename = filename
33 def __getitem__(self, key): argument
34 if key in self._dict:
35 return self._dict[key]
39 def has_key(self, key): argument
40 return key in self._dict
42 def __setitem__(self, key, value): argument
43 self._dict[key] = value
45 def get_languages_found_in_sdf(self): argument
46 return PseudoSet(self._languages_found)
48 def read(self): argument
50 f = open(self._filename, "r")
53 print("ERROR: Trying to read "+ self._filename)
60 self._dict[entity.get_id()] = entity
61 self._languages_found.append(entity.langid)
63 def write(self, filename): argument
66 for value in self._dict.values():
111 …def __init__(self, project="", source_file="", dummy1="0", resource_type="", gid="", lid="", helpi… argument
113 self.project = project;
114 self.source_file = source_file;
115 self.dummy1 = dummy1;
116 self.resource_type = resource_type;
117 self.gid = gid;
118 self.lid = lid;
119 self.helpid = helpid;
120 self.platform = platform;
121 self.dummy2 = dummy2;
122 self.langid = langid;
123 self.text = text;
124 self.helptext = helptext;
125 self.quickhelptext = quickhelptext;
126 self.title = title;
128 self.date = date;
130 self.date = strftime("%Y-%m-%d %H:%M:%S",gmtime())
133 def set_properties(self, line): argument
136 self.project = splitted[ self.const._PROJECT_POS ]
137 self.source_file = splitted[ self.const._SOURCE_FILE_POS ]
138 self.dummy1 = splitted[ self.const._DUMMY1_POS ]
139 self.resource_type = splitted[ self.const._RESOURCE_TYPE_POS ]
140 self.gid = splitted[ self.const._GID_POS ]
141 self.lid = splitted[ self.const._LID_POS ]
142 self.helpid = splitted[ self.const._HELPID_POS ]
143 self.platform = splitted[ self.const._PLATFORM_POS ]
144 self.dummy2 = splitted[ self.const._DUMMY2_POS ]
145 self.langid = splitted[ self.const._LANGID_POS ]
146 self.text = splitted[ self.const._TEXT_POS ]
147 self.helptext = splitted[ self.const._HELPTEXT_POS ]
148 self.quickhelptext = splitted[ self.const._QUICKHELPTEXT_POS ]
149 self.title = splitted[ self.const._TITLE_POS ]
150 self.date = splitted[ self.const._DATE_POS ]
152 def get_file_id(self): argument
153 return self.project + "\\" + self.source_file
155 def get_resource_path(self): argument
156 return self.source_file[0:self.source_file.rfind( "\\" )-1]
158 def __str__(self): argument
159 …return ''.join([self.project, "\t", self.source_file, "\t", self.dummy1, "\t", self.resource_type,…
160self.gid, "\t", self.lid, "\t", self.helpid, "\t", self.platform, "\t", self.dummy2, "\t" , self.l…
161 …"\t", self.text, "\t", self.helptext, "\t", self.quickhelptext, "\t" , self.title, "\t", self.date…
163 def get_id(self): argument
164 …return ''.join([self.project, self.gid, self.lid, self.source_file, self.resource_type, self.platf…