rem stringlengths 1 322k | add stringlengths 0 2.05M | context stringlengths 4 228k | meta stringlengths 156 215 |
|---|---|---|---|
absPath = appProt+'://'+self.convertToUnixPath(os.path.normpath(os.path.join(\ os.path.dirname(appFilename), modFilename))) else: absPath = name + ModuleModel.ext | absPath = appProt+'://'+self.convertToUnixPath(os.path.normpath( os.path.join(os.path.dirname(appFilename), modFilename))) else: absPath = self.modules[name][2] | def moduleFilename(self, name): """ Return absolute filename of the given module """ if not self.modules.has_key(name): raise 'No such module in application: '+name | c274a0d248176849f9cee500eb808dacee91824d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/c274a0d248176849f9cee500eb808dacee91824d/PythonEditorModels.py |
return self.editor.openOrGotoModule(self.moduleFilename(name), self) | from Explorers.Explorer import TransportError try: return self.editor.openOrGotoModule(self.moduleFilename(name), self) except TransportError, err: if str(err) == 'Unhandled transport' and err[1][0] == 'none': if wx.wxMessageBox('Unsaved file no longer open in the Editor.\n' 'Remove it from application modules ?', 'Mis... | def openModule(self, name): return self.editor.openOrGotoModule(self.moduleFilename(name), self) | c274a0d248176849f9cee500eb808dacee91824d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/c274a0d248176849f9cee500eb808dacee91824d/PythonEditorModels.py |
if not self.savedAs: | if not self.savedAs or relFilename.startswith('none://'): | def normaliseModuleRelativeToApp(self, relFilename): """ Normalise relative paths to absolute paths """ if not self.savedAs: return relFilename else: protsplit = self.filename.split('://') if len(protsplit) == 1: prot, appFilename = 'file', self.filename elif len(protsplit) == 2: prot, appFilename = protsplit elif len(... | c274a0d248176849f9cee500eb808dacee91824d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/c274a0d248176849f9cee500eb808dacee91824d/PythonEditorModels.py |
def normaliseModuleRelativeToApp(self, relFilename): """ Normalise relative paths to absolute paths """ if not self.savedAs: return relFilename else: protsplit = self.filename.split('://') if len(protsplit) == 1: prot, appFilename = 'file', self.filename elif len(protsplit) == 2: prot, appFilename = protsplit elif len(... | c274a0d248176849f9cee500eb808dacee91824d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/c274a0d248176849f9cee500eb808dacee91824d/PythonEditorModels.py | ||
palettePage.addButton('Package', None, None, self.OnNewPackage, self.OnHint, self.OnHintLeave, wxGenBitmapButton) | palettePage.addButton('Package', None, None, self.OnNewPackagePost, self.OnHint, self.OnHintLeave, wxGenBitmapButton) | def __init__(self, parent, id, app): | 980917b72282b51a1a1e93ed33ab12576612e321 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/980917b72282b51a1a1e93ed33ab12576612e321/Palette.py |
def OnClick(self, event): self.componentSB.SetStatusText('Palette Click'+`event.GetId()`) | def OnClick(self, event): self.componentSB.SetStatusText('Palette Click'+`event.GetId()`) | 980917b72282b51a1a1e93ed33ab12576612e321 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/980917b72282b51a1a1e93ed33ab12576612e321/Palette.py | |
def OnNewClick(self, event): pass | 980917b72282b51a1a1e93ed33ab12576612e321 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/980917b72282b51a1a1e93ed33ab12576612e321/Palette.py | ||
def OnNewWidget(self, event): pass | def OnNewPackagePost(self, event): wxPostEvent(self, NewPackageEvent()) | def OnNewWidget(self, event): pass | 980917b72282b51a1a1e93ed33ab12576612e321 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/980917b72282b51a1a1e93ed33ab12576612e321/Palette.py |
pass | def OnNewPackage(self, event): self.editor.addNewPackage() pass | 980917b72282b51a1a1e93ed33ab12576612e321 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/980917b72282b51a1a1e93ed33ab12576612e321/Palette.py | |
startupfile = os.environ.get('PYTHONSTARTUP') try: execfile(startupfile) except Exception, error: print 'Unable to load startup script', startupfile, ':', str(error) else: print 'Executed PYTHONSTARTUP' | pass | def get_current_frame(): try: 1 + '' # raise an exception except: return sys.exc_info()[2].tb_frame | f8d6cb665977ad414440e821f8e4f1b8480740d9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/f8d6cb665977ad414440e821f8e4f1b8480740d9/Boa.py |
startupErrors = [] | if ('-s', '') in optlist: startupfile = os.environ.get('BOASTARTUP') or \ os.environ.get('PYTHONSTARTUP') | def get_current_frame(): try: 1 + '' # raise an exception except: return sys.exc_info()[2].tb_frame | f8d6cb665977ad414440e821f8e4f1b8480740d9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/f8d6cb665977ad414440e821f8e4f1b8480740d9/Boa.py |
sys.boa_ide = self.main.editor | self.main.editor.shell.execStartupScript(startupfile) | def OnInit(self): wxInitAllImageHandlers() | f8d6cb665977ad414440e821f8e4f1b8480740d9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/f8d6cb665977ad414440e821f8e4f1b8480740d9/Boa.py |
wxPostEvent(self.tabsSplitter, wx.SizeEvent(self.tabsSplitter.GetSize())) | wx.PostEvent(self.tabsSplitter, wx.SizeEvent(self.tabsSplitter.GetSize())) | def __init__(self, parent, id, inspector, newMenu, componentPalette, app, palette): self._created = False self._init_ctrls(parent) | febd08eee6400c9990f6822e78a49585fe6598f2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/febd08eee6400c9990f6822e78a49585fe6598f2/Editor.py |
self.data = self.setDataFromLines(lines) | self.setDataFromLines(lines) | def applyChangeBlock(self, conflict, blockIdx): rev, start, size = conflict lines = self.getDataAsLines() | 19de2b8ef5a3e5d2b78534a72720daeb42110adb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/19de2b8ef5a3e5d2b78534a72720daeb42110adb/EditorModels.py |
def debug(self, params = None): | def debug(self, params=None, cont_if_running=0, cont_always=0, temp_breakpoint=None): | def debug(self, params = None): if self.savedAs: if self.editor.debugger: self.editor.debugger.Show(true) else: self.editor.debugger = Debugger.DebuggerFrame(self) self.editor.debugger.Show(true) if params is None: params = [] self.editor.debugger.debug_file(self.editor.debugger.filename, params) | 19de2b8ef5a3e5d2b78534a72720daeb42110adb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/19de2b8ef5a3e5d2b78534a72720daeb42110adb/EditorModels.py |
if self.editor.debugger: self.editor.debugger.Show(true) else: self.editor.debugger = Debugger.DebuggerFrame(self) self.editor.debugger.Show(true) if params is None: params = [] self.editor.debugger.debug_file(self.editor.debugger.filename, params) | debugger = self.editor.debugger if Preferences.useDebugger == 'old': if debugger: debugger.Show(true) else: self.editor.debugger = Debugger.DebuggerFrame(self) debugger = self.editor.debugger debugger.Show(true) if params is None: params = [] debugger.debug_file(debugger.filename, params) elif Preferences.useDebugger =... | def debug(self, params = None): if self.savedAs: if self.editor.debugger: self.editor.debugger.Show(true) else: self.editor.debugger = Debugger.DebuggerFrame(self) self.editor.debugger.Show(true) if params is None: params = [] self.editor.debugger.debug_file(self.editor.debugger.filename, params) | 19de2b8ef5a3e5d2b78534a72720daeb42110adb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/19de2b8ef5a3e5d2b78534a72720daeb42110adb/EditorModels.py |
def readCustomClasses(self, mod, cls): """ Read definition for Custom Classes Custom Classes can be defined as a class attribute named _custom_classes containing a dictionary defining wxPython classes and their custom equivalents, e.g. _custom_classes = {'wxTreeCtrl': ['MyTreeCtrl', 'AdvancedTreeCtrl']} These custom ... | 19de2b8ef5a3e5d2b78534a72720daeb42110adb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/19de2b8ef5a3e5d2b78534a72720daeb42110adb/EditorModels.py | ||
will generate the creation code for the object the constructor | will generate the creation code for the object, the constructor | def readCustomClasses(self, mod, cls): """ Read definition for Custom Classes Custom Classes can be defined as a class attribute named _custom_classes containing a dictionary defining wxPython classes and their custom equivalents, e.g. _custom_classes = {'wxTreeCtrl': ['MyTreeCtrl', 'AdvancedTreeCtrl']} These custom ... | 19de2b8ef5a3e5d2b78534a72720daeb42110adb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/19de2b8ef5a3e5d2b78534a72720daeb42110adb/EditorModels.py |
else: print 'could not find unsaved module', absPath, self.editor.modules | def idModel(self, name): absPath = self.normaliseModuleRelativeToApp(self.modules[name][2]) if os.path.exists(absPath): self.moduleModels[name], main = identifyFile(absPath) else: if self.editor.modules.has_key(absPath): self.moduleModels[name], main = identifySource( self.editor.modules[absPath].model.getModule().sour... | 19de2b8ef5a3e5d2b78534a72720daeb42110adb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/19de2b8ef5a3e5d2b78534a72720daeb42110adb/EditorModels.py | |
id = NewId() | id = wxNewId() | def __init__(self, parent, model): id = NewId() wxTreeCtrl.__init__(self, parent, id)#, style = wxTR_HAS_BUTTONS | wxSUNKEN_BORDER) EditorView.__init__(self, model, (('Goto line', self.OnGoto, self.gotoLineBmp, ''),), 0) | 27be5de646bc06542b3054dc23f98aab9c2a51c2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/27be5de646bc06542b3054dc23f98aab9c2a51c2/XMLView.py |
parent.AddPage(bSelect=false, imageId=-1, pPage=self.panel1, strText='Pages0') parent.AddPage(bSelect=false, imageId=-1, pPage=self.panel2, strText='Pages1') parent.AddPage(bSelect=true, imageId=-1, pPage=self.panel3, strText='Pages2') | parent.AddPage(select=false, imageId=-1, page=self.panel1, text='Pages0') parent.AddPage(select=false, imageId=-1, page=self.panel2, text='Pages1') parent.AddPage(select=true, imageId=-1, page=self.panel3, text='Pages2') | def _init_coll_notebook1_Pages(self, parent): # generated method, don't edit | 13dff8215be546542d87416df48a40ee3c782596 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/13dff8215be546542d87416df48a40ee3c782596/wxFrame1.py |
self.killDebugger() | if not self._destroyed: self.killDebugger() | def OnDebuggerStopped(self, event): """Called when a debugger process stops.""" show_dialog = 0 if self.running: show_dialog = 1 self.killDebugger() if show_dialog: wxMessageDialog( self, 'The debugger process stopped prematurely.', 'Debugger stopped', wxOK | wxICON_EXCLAMATION | wxCENTRE).ShowModal() | 0b35158d749d31bdd17d8ee7ad8672d66fdcbcc4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/0b35158d749d31bdd17d8ee7ad8672d66fdcbcc4/Debugger.py |
wxMessageDialog( self, 'The debugger process stopped prematurely.', 'Debugger stopped', wxOK | wxICON_EXCLAMATION | wxCENTRE).ShowModal() | wxMessageBox('The debugger process stopped prematurely.', 'Debugger stopped', wxOK | wxICON_EXCLAMATION | wxCENTRE) self.Destroy() | def OnDebuggerStopped(self, event): """Called when a debugger process stops.""" show_dialog = 0 if self.running: show_dialog = 1 self.killDebugger() if show_dialog: wxMessageDialog( self, 'The debugger process stopped prematurely.', 'Debugger stopped', wxOK | wxICON_EXCLAMATION | wxCENTRE).ShowModal() | 0b35158d749d31bdd17d8ee7ad8672d66fdcbcc4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/0b35158d749d31bdd17d8ee7ad8672d66fdcbcc4/Debugger.py |
if not self.stream_timer.IsRunning(): self.stream_timer.Start(100, 1) | def OnStreamTimer(self, event=None, force_timer=0): if self.stream_timer: self.updateOutputWindow() # A non polling stream can block a process ## The user is looking at the output page. ## if (force_timer or self.nbTop.GetSelection() == 2) \ if not self.stream_timer.IsRunning(): self.stream_timer.Start(100, 1) # One-s... | 0b35158d749d31bdd17d8ee7ad8672d66fdcbcc4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/0b35158d749d31bdd17d8ee7ad8672d66fdcbcc4/Debugger.py | |
self._destroyed = 1 | def OnCloseWindow(self, event): try: self.killDebugger() finally: self.debug_client = None self.destroy() self._destroyed = 1 try: self.editor.debugger = None except: pass self.editor = None #event.Skip() self.Destroy() | 0b35158d749d31bdd17d8ee7ad8672d66fdcbcc4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/0b35158d749d31bdd17d8ee7ad8672d66fdcbcc4/Debugger.py | |
self.Destroy() | self.Hide() | def OnCloseWindow(self, event): try: self.killDebugger() finally: self.debug_client = None self.destroy() self._destroyed = 1 try: self.editor.debugger = None except: pass self.editor = None #event.Skip() self.Destroy() | 0b35158d749d31bdd17d8ee7ad8672d66fdcbcc4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/0b35158d749d31bdd17d8ee7ad8672d66fdcbcc4/Debugger.py |
getattr(self, command)(*args) | apply(getattr(self, command), args) | def proceedAndRequestStatus(self, command, temp_breakpoint=0, args=()): """Executes one non-blocking command then returns getStatusSummary(). Blocking.""" if temp_breakpoint: self.addBreakpoint(temp_breakpoint[0], temp_breakpoint[1], 1) if command: allowed = ('set_continue', 'set_step', 'set_step_over', 'set_step_out'... | f1d9ca21d5f44024d01d6b85d4037ece1673d138 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/f1d9ca21d5f44024d01d6b85d4037ece1673d138/IsolatedDebugger.py |
except Exception, e: | except: | def run(self, cmd, globals=None, locals=None): try: self._running = 1 try: Bdb.run(self, cmd, globals, locals) except (BdbQuit, SystemExit): pass except Exception, e: # Provide post-mortem analysis. import traceback traceback.print_exc() self.exc_info = sys.exc_info() self.frame = self.exc_info[2].tb_frame self.quittin... | f1d9ca21d5f44024d01d6b85d4037ece1673d138 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/f1d9ca21d5f44024d01d6b85d4037ece1673d138/IsolatedDebugger.py |
self.entries[-Preferences.exRecentFilesListSize:] = [] | self.entries[Preferences.exRecentFilesListSize:] = [] | def add(self, respath): if respath in self.entries: self.entries.remove(respath) | 087f879280f493babf396fe359aa6a2e14dfa0e1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/087f879280f493babf396fe359aa6a2e14dfa0e1/ExplorerNodes.py |
self.data = self.data[:start]+pprint.pformat(dct).replace('\r', eol)+\ | self.data = self.data[:start]+pprint.pformat(dct).replace('\n', eol)+\ | def writeGlobalDict(self, name, dct): start, end = self.findGlobalDict(name) eol = Utils.getEOLMode(self.data) self.data = self.data[:start]+pprint.pformat(dct).replace('\r', eol)+\ self.data[end:] | 6bc2a25b5b895188ac70ae8f47859b498bb0295e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/6bc2a25b5b895188ac70ae8f47859b498bb0295e/PythonEditorModels.py |
kk = event.KeyCode() | kk = event.GetKeyCode() | def OnKeyDown(self, event): if Preferences.handleSpecialEuropeanKeys: self.handleSpecialEuropeanKeys(event, Preferences.euroKeysCountry) | 978cbce139364fd15a848dd49936586cbf07d74d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/978cbce139364fd15a848dd49936586cbf07d74d/ShellEditor.py |
if line is None: raise 'Terminate' | if line is None: raise Exception, 'Terminate' | def readline(self): self._reading = True self._output.AddText('\n'+Preferences.ps4) self._output.EnsureCaretVisible() try: while not self._buffer: # XXX with safe yield once the STC loses focus there is no way # XXX to give it back the focus # wxSafeYield() time.sleep(0.001) wx.Yield() line = self._buffer.pop() if line... | 978cbce139364fd15a848dd49936586cbf07d74d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/978cbce139364fd15a848dd49936586cbf07d74d/ShellEditor.py |
prog = 0 totLOC = 0 classCnt = 0 for module in modules: self.editor.statusBar.progress.SetValue(prog) prog = prog + 1 self.editor.statusBar.setHint('Parsing '+module+'...') if module[:7] != 'file://': print '%s skipped, only local files supported for Imports View' else: module = module[7:] try: f = open(module) exce... | try: prog = 0 totLOC = 0 classCnt = 0 for module in modules: self.editor.statusBar.progress.SetValue(prog) prog = prog + 1 self.editor.setStatus('Parsing '+module+'...') if module[:7] != 'file://': print '%s skipped, only local files supported for Imports View' else: module = module[7:] try: f = open(module) except ... | def buildImportRelationshipDict(self, modules): relationships = {} | 613f5e6731aa745aa436bc6c5ca54006fbca433c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/613f5e6731aa745aa436bc6c5ca54006fbca433c/PythonEditorModels.py |
addTool(self.editor, toolbar, self.debugBmp, 'Debug module', self.OnDebug) | addTool(self.editor, toolbar, self.debugBmp, 'Debug application', self.OnDebugApp) | def addTools(self, toolbar, model): SourceController.addTools(self, toolbar, model) toolbar.AddSeparator() addTool(self.editor, toolbar, self.profileBmp, 'Profile', self.OnProfile) addTool(self.editor, toolbar, self.compileBmp, 'Check source', self.OnCheckSource) if hasattr(model, 'app') and model.app: addTool(self.edi... | afa522661a447442b3c289ff5d5c5109872d86de /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/afa522661a447442b3c289ff5d5c5109872d86de/PythonControllers.py |
def OnSaveAll(self, event): for modulePage in self.model.editor.modules.values(): mod = modulePage.model if mod != self.model: if hasattr(mod, 'app') and mod.app == self.model and \ (mod.modified or len(mod.viewsModified)): print 'saving', mod.filename if len(mod.viewsModified): mod.refreshFromViews() modulePage.saveOr... | 0b9f0f668c3c411994b55f02b24cee9d20e5ee48 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/0b9f0f668c3c411994b55f02b24cee9d20e5ee48/AppViews.py | ||
newMod.views['Documentation'].focus() | view = newMod.editor.addNewView(ModuleDocView.viewName, ModuleDocView) view.refreshCtrl() view.focus() | def OnLinkClicked(self, linkinfo): url = linkinfo.GetHref() | 0b9f0f668c3c411994b55f02b24cee9d20e5ee48 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/0b9f0f668c3c411994b55f02b24cee9d20e5ee48/AppViews.py |
} return self.genClassesSect(page + modBody, classNames) | 'FunctionList': funcList, } return self.genFunctionsSect(\ self.genClassesSect(page + modBody, classNames), funcNames) | def genModuleSect(self, page): classList, classNames = self.genClassListSect() module = self.model.getModule() modBody = wxwAppModuleTemplate % { \ 'ModuleSynopsis': module.getModuleDoc(), 'Module': self.model.moduleName, 'ModuleList': self.genModuleListSect()[0], 'ClassList': classList, } | 0b9f0f668c3c411994b55f02b24cee9d20e5ee48 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/0b9f0f668c3c411994b55f02b24cee9d20e5ee48/AppViews.py |
host, filepath, meta = segs[0], segs[1:-1], segs[-1] | host, filepaths, meta = segs[0], segs[1:-1], segs[-1] | def uriSplitZopeDebug(filename, filepath): # zopedebug://[host[:port]]/[path]/[meta type] # magically maps zopedebug urls to Boa zope uris segs = string.split(filepath, '/') if len(segs) < 3: raise ExplorerNodes.TransportCategoryError( 'Zope debug path invalid', filepath) host, filepath, meta = segs[0], segs[1:-1], seg... | 1d7998f94fcc58c2046dbe3e57f7b53ca99944ad /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/1d7998f94fcc58c2046dbe3e57f7b53ca99944ad/ZopeExplorer.py |
filepath = string.join(filepath, '/') | path = string.join(filepaths, '/') | def uriSplitZopeDebug(filename, filepath): # zopedebug://[host[:port]]/[path]/[meta type] # magically maps zopedebug urls to Boa zope uris segs = string.split(filepath, '/') if len(segs) < 3: raise ExplorerNodes.TransportCategoryError( 'Zope debug path invalid', filepath) host, filepath, meta = segs[0], segs[1:-1], seg... | 1d7998f94fcc58c2046dbe3e57f7b53ca99944ad /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/1d7998f94fcc58c2046dbe3e57f7b53ca99944ad/ZopeExplorer.py |
return 'zope', '%s|%s' %(name, meta), filepath, \ 'zope://%s/<%s>/%s'%(name, meta, filepath) | return 'zope', '%s|%s' %(name, meta), path, \ 'zope://%s/<%s>/%s'%(name, meta, path) | def uriSplitZopeDebug(filename, filepath): # zopedebug://[host[:port]]/[path]/[meta type] # magically maps zopedebug urls to Boa zope uris segs = string.split(filepath, '/') if len(segs) < 3: raise ExplorerNodes.TransportCategoryError( 'Zope debug path invalid', filepath) host, filepath, meta = segs[0], segs[1:-1], seg... | 1d7998f94fcc58c2046dbe3e57f7b53ca99944ad /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/1d7998f94fcc58c2046dbe3e57f7b53ca99944ad/ZopeExplorer.py |
def write(s): | def write(self, s): | def write(s): pass | f25386ba8df1750e2b1a62d8ee8d933cd0930202 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/f25386ba8df1750e2b1a62d8ee8d933cd0930202/ShellEditor.py |
self.printData = pdd.GetPrintData() | self.printData = wxPrintData(pdd.GetPrintData()) | def OnPrintSetup(self, event): printerDlg = wxPrintDialog(self) pdd = printerDlg.GetPrintDialogData() pdd.SetPrintData(self.printData) pdd.SetSetupDialog(true) printerDlg.ShowModal() self.printData = pdd.GetPrintData() printerDlg.Destroy() | 4ed6e0860e117e4512658f8c97d2447b540ea147 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/4ed6e0860e117e4512658f8c97d2447b540ea147/STCPrinting.py |
self.printData = printer.GetPrintDialogData().GetPrintData() | self.printData = wxPrintData(printer.GetPrintDialogData().GetPrintData()) | def OnDoPrint(self, event): pdd = wxPrintDialogData() pdd.SetPrintData(self.printData) printer = wxPrinter(pdd) printout = self.createSTCPrintout() if not printer.Print(self.parentFrame, printout): wxLogError('An error occured while printing.') else: self.printData = printer.GetPrintDialogData().GetPrintData() printou... | 4ed6e0860e117e4512658f8c97d2447b540ea147 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/4ed6e0860e117e4512658f8c97d2447b540ea147/STCPrinting.py |
style = wxLC_REPORT | wxLC_SINGLE_SEL ) | style = wxLC_REPORT|wxLC_SINGLE_SEL|wxLC_VRULES|wxCLIP_CHILDREN) | def __init__(self, parent, flist, debugger): wxListCtrl.__init__(self, parent, wxID_STACKVIEW, style = wxLC_REPORT | wxLC_SINGLE_SEL ) self.InsertColumn(0, 'Frame', wxLIST_FORMAT_LEFT, 150) self.InsertColumn(1, 'Line', wxLIST_FORMAT_LEFT, 35) self.InsertColumn(2, 'Code', wxLIST_FORMAT_LEFT, 300) EVT_LIST_ITEM_SELECTED(... | 5970d581342ec17c39816f0b132ba3234ca9600f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/5970d581342ec17c39816f0b132ba3234ca9600f/Debugger.py |
style = wxLC_REPORT | wxLC_SINGLE_SEL ) | style = wxLC_REPORT|wxLC_SINGLE_SEL|wxLC_VRULES|wxCLIP_CHILDREN) | def __init__(self, parent, debugger):#, flist, browser): wxListCtrl.__init__(self, parent, wxID_BREAKVIEW, style = wxLC_REPORT | wxLC_SINGLE_SEL ) self.InsertColumn(0, 'Module', wxLIST_FORMAT_LEFT, 90) self.InsertColumn(1, 'Line', wxLIST_FORMAT_CENTER, 40) self.InsertColumn(2, 'Ignore', wxLIST_FORMAT_CENTER, 45) self.I... | 5970d581342ec17c39816f0b132ba3234ca9600f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/5970d581342ec17c39816f0b132ba3234ca9600f/Debugger.py |
self.menu.Append(wxID_BREAKENABLED, 'Enabled', checkable = true) | self.menu.Append(wxID_BREAKENABLED, 'Enabled', '', true) | def __init__(self, parent, debugger):#, flist, browser): wxListCtrl.__init__(self, parent, wxID_BREAKVIEW, style = wxLC_REPORT | wxLC_SINGLE_SEL ) self.InsertColumn(0, 'Module', wxLIST_FORMAT_LEFT, 90) self.InsertColumn(1, 'Line', wxLIST_FORMAT_CENTER, 40) self.InsertColumn(2, 'Ignore', wxLIST_FORMAT_CENTER, 45) self.I... | 5970d581342ec17c39816f0b132ba3234ca9600f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/5970d581342ec17c39816f0b132ba3234ca9600f/Debugger.py |
style = wxLC_REPORT | wxLC_SINGLE_SEL ) | style=wxLC_REPORT|wxLC_SINGLE_SEL|wxLC_VRULES|wxCLIP_CHILDREN) | def __init__(self, parent, add_watch, is_local, name): # , dict=None): wxListCtrl.__init__(self, parent, wxID_NSVIEW, style = wxLC_REPORT | wxLC_SINGLE_SEL ) self.InsertColumn(0, 'Attribute', wxLIST_FORMAT_LEFT, 125) self.InsertColumn(1, 'Value', wxLIST_FORMAT_LEFT, 200) | 5970d581342ec17c39816f0b132ba3234ca9600f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/5970d581342ec17c39816f0b132ba3234ca9600f/Debugger.py |
if self.rightsel != -1: name = self.names[self.rightsel] | if self.selected != -1: name = self.names[self.selected] | def OnAddAsWatch(self, event): if self.rightsel != -1: name = self.names[self.rightsel] self.add_watch(name, self.is_local) | 5970d581342ec17c39816f0b132ba3234ca9600f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/5970d581342ec17c39816f0b132ba3234ca9600f/Debugger.py |
sel = self.HitTest(self.pos)[0] if sel != -1: self.rightsel = sel | if self.selected != -1: | def OnRightClick(self, event): if not self.pos: return sel = self.HitTest(self.pos)[0] if sel != -1: self.rightsel = sel self.PopupMenu(self.menu, self.pos) | 5970d581342ec17c39816f0b132ba3234ca9600f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/5970d581342ec17c39816f0b132ba3234ca9600f/Debugger.py |
style = wxLC_REPORT | wxLC_SINGLE_SEL ) | style=wxLC_REPORT|wxLC_SINGLE_SEL|wxLC_VRULES|wxCLIP_CHILDREN) | def __init__(self, parent, images, debugger): wxListCtrl.__init__(self, parent, wxID_WATCHVIEW, style = wxLC_REPORT | wxLC_SINGLE_SEL ) self.InsertColumn(0, 'Attribute', wxLIST_FORMAT_LEFT, 125) self.InsertColumn(1, 'Value', wxLIST_FORMAT_LEFT, 200) | 5970d581342ec17c39816f0b132ba3234ca9600f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/5970d581342ec17c39816f0b132ba3234ca9600f/Debugger.py |
EVT_COMMAND_RIGHT_CLICK(self, -1, self.OnRightClick) | def __init__(self, parent, images, debugger): wxListCtrl.__init__(self, parent, wxID_WATCHVIEW, style = wxLC_REPORT | wxLC_SINGLE_SEL ) self.InsertColumn(0, 'Attribute', wxLIST_FORMAT_LEFT, 125) self.InsertColumn(1, 'Value', wxLIST_FORMAT_LEFT, 200) | 5970d581342ec17c39816f0b132ba3234ca9600f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/5970d581342ec17c39816f0b132ba3234ca9600f/Debugger.py | |
def OnRightClick(self, event): if not self.pos: return | 5970d581342ec17c39816f0b132ba3234ca9600f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/5970d581342ec17c39816f0b132ba3234ca9600f/Debugger.py | ||
self.stateCols = {'except': wxNamedColour('yellow'), | self.stateCols = {'except': wxColour(0xFF, 0xFF, 0x44), | def __init__(self, parent): wxStatusBar.__init__(self, parent, -1, style=0) self.SetFieldsCount(2) self.SetMinHeight(30) #self.SetStatusWidths([-1, -1, 16]) | 5970d581342ec17c39816f0b132ba3234ca9600f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/5970d581342ec17c39816f0b132ba3234ca9600f/Debugger.py |
'break': wxNamedColour('red'), | 'break': wxColour(0xFF, 0x44, 0x44), | def __init__(self, parent): wxStatusBar.__init__(self, parent, -1, style=0) self.SetFieldsCount(2) self.SetMinHeight(30) #self.SetStatusWidths([-1, -1, 16]) | 5970d581342ec17c39816f0b132ba3234ca9600f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/5970d581342ec17c39816f0b132ba3234ca9600f/Debugger.py |
wxFrame.__init__(self, editor, -1, 'Debugger') | wxFrame.__init__(self, editor, -1, 'Debugger', style=wxDEFAULT_FRAME_STYLE|wxCLIP_CHILDREN) | def __init__(self, editor, filename=None, slave_mode=1): wxFrame.__init__(self, editor, -1, 'Debugger') | 5970d581342ec17c39816f0b132ba3234ca9600f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/5970d581342ec17c39816f0b132ba3234ca9600f/Debugger.py |
style=wxSP_NOBORDER | wxSP_3DSASH | wxSP_FULLSASH) | style=wxSP_NOBORDER|wxSP_3DSASH|wxSP_FULLSASH|\ wxSP_LIVE_UPDATE|wxCLIP_CHILDREN) | def __init__(self, editor, filename=None, slave_mode=1): wxFrame.__init__(self, editor, -1, 'Debugger') | 5970d581342ec17c39816f0b132ba3234ca9600f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/5970d581342ec17c39816f0b132ba3234ca9600f/Debugger.py |
def __init__(self, editor, filename=None, slave_mode=1): wxFrame.__init__(self, editor, -1, 'Debugger') | 5970d581342ec17c39816f0b132ba3234ca9600f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/5970d581342ec17c39816f0b132ba3234ca9600f/Debugger.py | ||
self.nbBottom = wxNotebook(self.splitter, wxID_PAGECHANGED) | self.nbBottom = wxNotebook(self.splitter, wxID_PAGECHANGED, style=wxCLIP_CHILDREN) | def __init__(self, editor, filename=None, slave_mode=1): wxFrame.__init__(self, editor, -1, 'Debugger') | 5970d581342ec17c39816f0b132ba3234ca9600f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/5970d581342ec17c39816f0b132ba3234ca9600f/Debugger.py |
def clientFNToServerFN(self, filename): """Converts a filename on the client to a filename on the server. | 5970d581342ec17c39816f0b132ba3234ca9600f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/5970d581342ec17c39816f0b132ba3234ca9600f/Debugger.py | ||
def serverFNToClientFN(self, filename): """Converts a filename on the server to a filename on the client. | 5970d581342ec17c39816f0b132ba3234ca9600f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/5970d581342ec17c39816f0b132ba3234ca9600f/Debugger.py | ||
self.breakpts.refreshList() | self.breakpts.selectBreakpoint(filename, lineno) | def receiveDebuggerStatus(self, info): # Get stdout and stderr if available. errout = self.editor.erroutFrm data = info.get('stdout', None) if data: errout.appendToOutput(data) #self.appendToOutputWindow(data) data = info.get('stderr', None) if data: errout.appendToErrors(data) #self.appendToOutputWindow(data) | 5970d581342ec17c39816f0b132ba3234ca9600f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/5970d581342ec17c39816f0b132ba3234ca9600f/Debugger.py |
if self.editor.palette.IsShown(): if self.editor.palette.IsIconized(): self.editor.palette.restore() | if self.editor: if self.editor.palette.IsShown(): if self.editor.palette.IsIconized(): self.editor.palette.restore() self.editor.restore() elif self.editor.IsIconized(): | def restoreDebugger(self): if self.editor.palette.IsShown(): if self.editor.palette.IsIconized(): self.editor.palette.restore() self.editor.restore() elif self.editor.IsIconized(): self.editor.restore() | 5970d581342ec17c39816f0b132ba3234ca9600f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/5970d581342ec17c39816f0b132ba3234ca9600f/Debugger.py |
elif self.editor.IsIconized(): self.editor.restore() | def restoreDebugger(self): if self.editor.palette.IsShown(): if self.editor.palette.IsIconized(): self.editor.palette.restore() self.editor.restore() elif self.editor.IsIconized(): self.editor.restore() | 5970d581342ec17c39816f0b132ba3234ca9600f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/5970d581342ec17c39816f0b132ba3234ca9600f/Debugger.py | |
wxDialog.__init__(self, id = wxID_FINDREPLACEDLG, name = 'FindReplaceDlg', parent = prnt, pos = wxPoint(394, 361), size = wxSize(372, 234), style = wxDEFAULT_DIALOG_STYLE, title = 'Find/Replace Dialog') | wxDialog.__init__(self, id = wxID_FINDREPLACEDLG, name = 'FindReplaceDlg', parent = prnt, pos = wxPoint(394, 361), size = wxSize(372, 234), style = wxDEFAULT_DIALOG_STYLE, title = 'Find/Replace') | def _init_ctrls(self, prnt): wxDialog.__init__(self, id = wxID_FINDREPLACEDLG, name = 'FindReplaceDlg', parent = prnt, pos = wxPoint(394, 361), size = wxSize(372, 234), style = wxDEFAULT_DIALOG_STYLE, title = 'Find/Replace Dialog') self._init_utils() self.SetAutoLayout(true) self.SetClientSize(wxSize(364, 207)) | e76fd4c996e51a890840126d1d450e73c94d37b9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/e76fd4c996e51a890840126d1d450e73c94d37b9/FindReplaceDlg.py |
self.addMenu(menu, EditorHelper.wxID_SETUPBUILD, 'build', accls, ()) self.addMenu(menu, EditorHelper.wxID_SETUPCLEAN, 'clean', accls, ()) self.addMenu(menu, EditorHelper.wxID_SETUPINSTALL, 'install', accls, ()) self.addMenu(menu, EditorHelper.wxID_SETUPSDIST, 'sdist', accls, ()) self.addMenu(menu, EditorHelper.wxID_SET... | self.addMenu(menu, EditorHelper.wxID_SETUPBUILD, 'setup.py build', accls, ()) self.addMenu(menu, EditorHelper.wxID_SETUPCLEAN, 'setup.py clean', accls, ()) self.addMenu(menu, EditorHelper.wxID_SETUPINSTALL, 'setup.py install', accls, ()) self.addMenu(menu, EditorHelper.wxID_SETUPSDIST, 'setup.py sdist', accls, ()) self... | def addMenus(self, menu, model): accls = ModuleController.addMenus(self, menu, model) menu.AppendSeparator() self.addMenu(menu, EditorHelper.wxID_SETUPBUILD, 'build', accls, ()) self.addMenu(menu, EditorHelper.wxID_SETUPCLEAN, 'clean', accls, ()) self.addMenu(menu, EditorHelper.wxID_SETUPINSTALL, 'install', accls, ()) ... | d53505cef4f317f95650eaeb8dce590f1e2b505c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/d53505cef4f317f95650eaeb8dce590f1e2b505c/Controllers.py |
self.addMenu(menu, EditorHelper.wxID_SETUPPY2EXE, 'py2exe', accls, ()) | self.addMenu(menu, EditorHelper.wxID_SETUPPY2EXE, 'setup.py py2exe', accls, ()) | def addMenus(self, menu, model): accls = ModuleController.addMenus(self, menu, model) menu.AppendSeparator() self.addMenu(menu, EditorHelper.wxID_SETUPBUILD, 'build', accls, ()) self.addMenu(menu, EditorHelper.wxID_SETUPCLEAN, 'clean', accls, ()) self.addMenu(menu, EditorHelper.wxID_SETUPINSTALL, 'install', accls, ()) ... | d53505cef4f317f95650eaeb8dce590f1e2b505c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/d53505cef4f317f95650eaeb8dce590f1e2b505c/Controllers.py |
def copyFileFrom(self, node): """ Copy node into self (only called for folders)""" import shutil if not node.isDir(): if node.resourcepath == os.path.join(self.resourcepath, node.name): newNameBase = os.path.join(self.resourcepath, 'copy%s_of_'+node.name) num = '' while 1: newName = newNameBase%num if os.path.exists(n... | 7010debf1a832d95d7cf579b0a948ed7e1019a57 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/7010debf1a832d95d7cf579b0a948ed7e1019a57/FileExplorer.py | ||
def copyFileFrom(self, node): """ Copy node into self (only called for folders)""" import shutil if not node.isDir(): if node.resourcepath == os.path.join(self.resourcepath, node.name): newNameBase = os.path.join(self.resourcepath, 'copy%s_of_'+node.name) num = '' while 1: newName = newNameBase%num if os.path.exists(n... | 7010debf1a832d95d7cf579b0a948ed7e1019a57 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/7010debf1a832d95d7cf579b0a948ed7e1019a57/FileExplorer.py | ||
shutil.copy(node.resourcepath, self.resourcepath) | def copyFileFrom(self, node): """ Copy node into self (only called for folders)""" import shutil if not node.isDir(): if node.resourcepath == os.path.join(self.resourcepath, node.name): newNameBase = os.path.join(self.resourcepath, 'copy%s_of_'+node.name) num = '' while 1: newName = newNameBase%num if os.path.exists(n... | 7010debf1a832d95d7cf579b0a948ed7e1019a57 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/7010debf1a832d95d7cf579b0a948ed7e1019a57/FileExplorer.py | |
def load(self): return open(self.resourcepath, 'rb').read() def save(self, filename, data): | def load(self, mode='rb'): return open(self.resourcepath, mode).read() def save(self, filename, data, mode='wb'): | def load(self): return open(self.resourcepath, 'rb').read() | 7010debf1a832d95d7cf579b0a948ed7e1019a57 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/7010debf1a832d95d7cf579b0a948ed7e1019a57/FileExplorer.py |
f = open(self.resourcepath, 'wb') | f = open(self.resourcepath, mode) | def save(self, filename, data): # XXX move dialog to gui layer if self.resourcepath != filename: self.resourcepath = filename self.name = os.path.basename(self.resourcepath) try: f = open(self.resourcepath, 'wb') except IOError, message: dlg = wx.wxMessageDialog(self.editor, 'Could not save\n'+message.strerror, 'Error'... | 7010debf1a832d95d7cf579b0a948ed7e1019a57 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/7010debf1a832d95d7cf579b0a948ed7e1019a57/FileExplorer.py |
sys.boa_debugger = self | def __init__(self): Bdb.__init__(self) self.fncache = {} | afdd8943322aff0810c0bc7313207940ce85c161 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/afdd8943322aff0810c0bc7313207940ce85c161/IsolatedDebugger.py | |
if filename[:1] == '<' and filename[-1:] == '>': | if ((filename[:1] == '<' and filename[-1:] == '>') or filename.find('://') >= 0): | def canonic(self, filename): canonic = self.fncache.get(filename, None) if not canonic: if filename[:1] == '<' and filename[-1:] == '>': canonic = filename else: # Should we deal with URL's here? (we are...) if filename[:12] == 'zopedebug://': canonic = filename else: canonic = path.abspath(filename) self.fncache[file... | afdd8943322aff0810c0bc7313207940ce85c161 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/afdd8943322aff0810c0bc7313207940ce85c161/IsolatedDebugger.py |
if filename[:12] == 'zopedebug://': canonic = filename else: canonic = path.abspath(filename) | canonic = path.abspath(filename) | def canonic(self, filename): canonic = self.fncache.get(filename, None) if not canonic: if filename[:1] == '<' and filename[-1:] == '>': canonic = filename else: # Should we deal with URL's here? (we are...) if filename[:12] == 'zopedebug://': canonic = filename else: canonic = path.abspath(filename) self.fncache[file... | afdd8943322aff0810c0bc7313207940ce85c161 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/afdd8943322aff0810c0bc7313207940ce85c161/IsolatedDebugger.py |
filename = frame.f_code.co_filename if filename == 'Script (Python)': filename, lineno = self.adjustedFrameInfo(frame)[-2:] else: filename = self.canonic(filename) lineno = frame.f_lineno | filename, lineno = self.getFilenameAndLine(frame) | def break_here(self, frame): # Redefine breaking :( filename = frame.f_code.co_filename if filename == 'Script (Python)': # XXX filename, lineno = self.adjustedFrameInfo(frame)[-2:] else: filename = self.canonic(filename) lineno = frame.f_lineno if not self.breaks.has_key(filename): return 0 if not lineno in self.bre... | afdd8943322aff0810c0bc7313207940ce85c161 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/afdd8943322aff0810c0bc7313207940ce85c161/IsolatedDebugger.py |
def break_here(self, frame): # Redefine breaking :( filename = frame.f_code.co_filename if filename == 'Script (Python)': # XXX filename, lineno = self.adjustedFrameInfo(frame)[-2:] else: filename = self.canonic(filename) lineno = frame.f_lineno if not self.breaks.has_key(filename): return 0 if not lineno in self.bre... | afdd8943322aff0810c0bc7313207940ce85c161 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/afdd8943322aff0810c0bc7313207940ce85c161/IsolatedDebugger.py | ||
filename = frame.f_code.co_filename if filename == 'Script (Python)': filename = self.adjustedFrameInfo(frame)[2] else: filename = self.canonic(filename) | filename, lineno = self.getFilenameAndLine(frame) | def break_anywhere(self, frame): # Redefine breaking :( filename = frame.f_code.co_filename if filename == 'Script (Python)': # XXX filename = self.adjustedFrameInfo(frame)[2] else: filename = self.canonic(filename) return self.breaks.has_key(filename) | afdd8943322aff0810c0bc7313207940ce85c161 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/afdd8943322aff0810c0bc7313207940ce85c161/IsolatedDebugger.py |
## def break_anywhere(self, frame): | afdd8943322aff0810c0bc7313207940ce85c161 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/afdd8943322aff0810c0bc7313207940ce85c161/IsolatedDebugger.py | ||
modname, funcname, filename, lineno = self.adjustedFrameInfo(frame) | filename, lineno = self.getFilenameAndLine(frame) | def hard_break_here(self, frame): """Indicates whether the debugger should stop at a hard breakpoint. | afdd8943322aff0810c0bc7313207940ce85c161 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/afdd8943322aff0810c0bc7313207940ce85c161/IsolatedDebugger.py |
def hard_break_here(self, frame): """Indicates whether the debugger should stop at a hard breakpoint. | afdd8943322aff0810c0bc7313207940ce85c161 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/afdd8943322aff0810c0bc7313207940ce85c161/IsolatedDebugger.py | ||
def set_internal_breakpoint(self, filename, lineno, temporary=0, cond=None): if not self.breaks.has_key(filename): self.breaks[filename] = [] list = self.breaks[filename] if not lineno in list: list.append(lineno) | afdd8943322aff0810c0bc7313207940ce85c161 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/afdd8943322aff0810c0bc7313207940ce85c161/IsolatedDebugger.py | ||
def set_break(self, filename, lineno, temporary=0, cond=None): #orig_filename = filename filename = self.canonic(filename) # XXX zopedebug uris are now stored in bdb ##import linecache # Import as late as possible ##line = linecache.getline(filename, lineno) ##if not line: ## # XXX maybe should call linecache.checkc... | afdd8943322aff0810c0bc7313207940ce85c161 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/afdd8943322aff0810c0bc7313207940ce85c161/IsolatedDebugger.py | ||
def set_break(self, filename, lineno, temporary=0, cond=None): #orig_filename = filename filename = self.canonic(filename) # XXX zopedebug uris are now stored in bdb ##import linecache # Import as late as possible ##line = linecache.getline(filename, lineno) ##if not line: ## # XXX maybe should call linecache.checkc... | afdd8943322aff0810c0bc7313207940ce85c161 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/afdd8943322aff0810c0bc7313207940ce85c161/IsolatedDebugger.py | ||
bp = bdb.Breakpoint(filename, lineno, temporary, cond) return bp | return bdb.Breakpoint(filename, lineno, temporary, cond) | def set_break(self, filename, lineno, temporary=0, cond=None): #orig_filename = filename filename = self.canonic(filename) # XXX zopedebug uris are now stored in bdb ##import linecache # Import as late as possible ##line = linecache.getline(filename, lineno) ##if not line: ## # XXX maybe should call linecache.checkc... | afdd8943322aff0810c0bc7313207940ce85c161 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/afdd8943322aff0810c0bc7313207940ce85c161/IsolatedDebugger.py |
modname, funcname, filename, lineno = self.adjustedFrameInfo(frame) | filename, lineno = self.getFilenameAndLine(frame) | def user_line(self, frame): # This method is called when we stop or break at a line if not self._lock.acquire(0): # Already working in another thread. return if self.autocont: self.autocont = 0 self.set_continue() return self.stopframe = () # Don't stop. self.ignore_stopline = -1 self.frame = frame self.exc_info = Non... | afdd8943322aff0810c0bc7313207940ce85c161 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/afdd8943322aff0810c0bc7313207940ce85c161/IsolatedDebugger.py |
def adjustBreakpoints(self, filename, lineno, delta): """Moves all applicable breakpoints when delta lines are added or deleted. Non-blocking. """ ## This can be more efficient, but for now sticking to the bdb interface # Unfortunately this must be done on a low level filename = self.canonic(filename) breaklines = self... | afdd8943322aff0810c0bc7313207940ce85c161 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/afdd8943322aff0810c0bc7313207940ce85c161/IsolatedDebugger.py | ||
def adjustedFrameInfo(self, frame): code = frame.f_code filename = code.co_filename funcname = code.co_name lineno = frame.f_lineno try: modname = frame.f_globals['__name__'] except: modname = '' if filename == 'Script (Python)': try: lineno = lineno+1 return (modname, funcname, 'zopedebug://'+\ frame.f_globals['s... | def adjustedFrameInfo(self, frame): code = frame.f_code filename = code.co_filename funcname = code.co_name lineno = frame.f_lineno try: modname = frame.f_globals['__name__'] except: modname = '' # Special case to package Python Scripts if filename == 'Script (Python)': try: # adjust for Boa's added def <name>(): line ... | afdd8943322aff0810c0bc7313207940ce85c161 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/afdd8943322aff0810c0bc7313207940ce85c161/IsolatedDebugger.py | |
modname, funcname, filename, lineno = \ self.adjustedFrameInfo(frame) | filename, lineno = self.getFilenameAndLine(frame) modname, funcname = self.getFrameNames(frame) | def getExtendedFrameInfo(self): try: (exc_type, exc_value, stack, frame_stack_len) = self.getStackInfo() stack_summary = [] for frame, lineno in stack: modname, funcname, filename, lineno = \ self.adjustedFrameInfo(frame) stack_summary.append( {'filename':filename, 'lineno':lineno, 'funcname':funcname, 'modname':modna... | afdd8943322aff0810c0bc7313207940ce85c161 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/afdd8943322aff0810c0bc7313207940ce85c161/IsolatedDebugger.py |
view.model.editor.setStatus(_('Search wrapped'), _('Warning'), ringBell=1) | view.model.editor.setStatus(_('Search wrapped'), 'Warning', ringBell=1) | def findInSource(self, view, pattern): region = self.getRegion(view) self.addFind(pattern) start = view.GetSelection()[not self.reverse] if self.selection: result = self._find(view.GetTextRange(*region), pattern, start, region[0]) else: result = self._find(view.GetText(), pattern, start, 0) if result is None: raise Fin... | be4f346367ce54d7228bfc31e140931eed425a5d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/be4f346367ce54d7228bfc31e140931eed425a5d/FindReplaceEngine.py |
tmp = data[data.find(':')+2:], '\n'.split() | tmp = data[data.find(':')+2:].split('\n') | def getBody(self, data): tmp = data[data.find(':')+2:], '\n'.split() tmp2 = [] for l in tmp: # Handle comments which may be indented less if l[:4].strip(): l = l.lstrip() else: l = l[4:] tmp2.append(l) return '\n'.join(tmp2) | ae26cb1af3c8a99a59693ac52e5b40399f889f77 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/ae26cb1af3c8a99a59693ac52e5b40399f889f77/ZopeExplorer.py |
for l in tmp: | for l in tmp: | def getBody(self, data): tmp = data[data.find(':')+2:], '\n'.split() tmp2 = [] for l in tmp: # Handle comments which may be indented less if l[:4].strip(): l = l.lstrip() else: l = l[4:] tmp2.append(l) return '\n'.join(tmp2) | ae26cb1af3c8a99a59693ac52e5b40399f889f77 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/ae26cb1af3c8a99a59693ac52e5b40399f889f77/ZopeExplorer.py |
self._lock = threading.RLock() | self._lock = ThreadChoiceLock() | def __init__(self): Bdb.__init__(self) self.fncache = {} | 012f113a464af15e6ce8b226da475a23a61f446a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/012f113a464af15e6ce8b226da475a23a61f446a/IsolatedDebugger.py |
def break_anywhere(self, frame): return 1 | def break_anywhere(self, frame): # Allow a stop anywhere, anytime. # todo: Optimize by stopping only when in one of the # files being debugged? Problem: callbacks don't get debugged. return 1 | 012f113a464af15e6ce8b226da475a23a61f446a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/012f113a464af15e6ce8b226da475a23a61f446a/IsolatedDebugger.py | |
import bcdb bcdb.waiting_debug_server = self | def set_continue(self, full_speed=0): # Only stop at breakpoints, exceptions or when finished self.stopframe = () self.returnframe = None self.quitting = 0 | 012f113a464af15e6ce8b226da475a23a61f446a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/012f113a464af15e6ce8b226da475a23a61f446a/IsolatedDebugger.py | |
while frame and frame is not self.botframe: | while frame: | def set_continue(self, full_speed=0): # Only stop at breakpoints, exceptions or when finished self.stopframe = () self.returnframe = None self.quitting = 0 | 012f113a464af15e6ce8b226da475a23a61f446a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/012f113a464af15e6ce8b226da475a23a61f446a/IsolatedDebugger.py |
frame.f_trace = None | del frame.f_trace if frame is self.botframe: break | def set_continue(self, full_speed=0): # Only stop at breakpoints, exceptions or when finished self.stopframe = () self.returnframe = None self.quitting = 0 | 012f113a464af15e6ce8b226da475a23a61f446a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/012f113a464af15e6ce8b226da475a23a61f446a/IsolatedDebugger.py |
if self._lock.acquire(0): self._lock.release() def runcall(self, func, *args, **kw): self.reset() sys.settrace(self.trace_dispatch) res = None try: try: res = apply(func, args, kw) except BdbQuit: pass finally: self.quitting = 1 sys.settrace(None) return res def set_trace(self, call_depth=1): """Start debugging from... | self._lock.releaseIfOwned() def set_trace(self): """Start debugging from the caller's frame. | def set_continue(self, full_speed=0): # Only stop at breakpoints, exceptions or when finished self.stopframe = () self.returnframe = None self.quitting = 0 | 012f113a464af15e6ce8b226da475a23a61f446a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/012f113a464af15e6ce8b226da475a23a61f446a/IsolatedDebugger.py |
root_frame = None | def set_trace(self, call_depth=1): """Start debugging from the caller frame. | 012f113a464af15e6ce8b226da475a23a61f446a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/012f113a464af15e6ce8b226da475a23a61f446a/IsolatedDebugger.py | |
frame = sys.exc_info()[2].tb_frame while call_depth: frame = frame.f_back call_depth = call_depth - 1 break_frame = frame | frame = sys.exc_info()[2].tb_frame.f_back | def set_trace(self, call_depth=1): """Start debugging from the caller frame. | 012f113a464af15e6ce8b226da475a23a61f446a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/012f113a464af15e6ce8b226da475a23a61f446a/IsolatedDebugger.py |
root_frame = frame | def set_trace(self, call_depth=1): """Start debugging from the caller frame. | 012f113a464af15e6ce8b226da475a23a61f446a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/012f113a464af15e6ce8b226da475a23a61f446a/IsolatedDebugger.py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.