Changeset 1679:b24dbcc340fd for pida-plugins
- Timestamp:
- 11/21/08 20:50:59 (7 weeks ago)
- Files:
-
- 1 modified
-
pida-plugins/python/python.py (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
pida-plugins/python/python.py
r1636 r1679 54 54 from ropebrowser import ModuleParser 55 55 56 RE_MATCHES = ( 57 # traceback match 58 (r'''File\s*"([^"]+)",\s*line\s*[0-9]+''', 59 # internal 60 re.compile(r'\s*File\s*\"(?P<file>[^"]+)\",\s*line\s*(?P<line>\d+).*')) 61 , 62 #FIXME: how to handle localisation of this ??? 63 ) 64 65 56 66 class PythonEventsConfig(EventsConfig): 57 67 … … 70 80 self.subscribe_foreign('filemanager', 'file_hidden_check', 71 81 self.python) 82 for match in RE_MATCHES: 83 self.subscribe_foreign('commander', 'matches', 84 (match[0], self.svc.match_call)) 72 85 73 86 @filehiddencheck.fhc(filehiddencheck.SCOPE_PROJECT, … … 355 368 356 369 357 RE_MATCHES = (358 # traceback match359 (r'''File\s*"([^"]+)",\s*line\s*[0-9]+''',360 # internal361 re.compile(r'\s*File\s*\"(?P<file>[^"]+)\",\s*line\s*(?P<line>\d+).*'))362 ,363 #FIXME: how to handle localisation of this ???364 )365 366 370 class Python(LanguageService): 367 371 … … 383 387 self.execute_action.set_sensitive(False) 384 388 385 def start(self):386 for match in RE_MATCHES:387 self.boss.get_service('commander').register_matcher(388 match[0], self.match_call)389 390 def stop(self):391 for match in RE_MATCHES:392 self.boss.get_service('commander').unregister_matcher(393 match[0], self.match_call)389 # def start(self): 390 # for match in RE_MATCHES: 391 # self.boss.get_service('commander').register_matcher( 392 # match[0], self.match_call) 393 # 394 # def stop(self): 395 # for match in RE_MATCHES: 396 # self.boss.get_service('commander').unregister_matcher( 397 # match[0], self.match_call) 394 398 395 399 def match_call(self, term, event, match):
