Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(137)  |  Call(137)  |  Derive(0)  |  Import(0)

src/u/l/ulipad-HEAD/UliPad.py   ulipad(Download)
def myexcepthook(type, value, tb):
    Debug.error.traceback((type, value, tb))
sys.excepthook = myexcepthook
 
#install i18n package
    import mixins
except:
    Debug.error.traceback()
    print "There are some errors as importing mimxins, Please see the error.txt."
    sys.exit(0)
            import plugins
        except:
            Debug.error.traceback()
            common.showerror(None, tr('There was something wrong with importing plugins.'))
 

src/u/l/ulipad-HEAD/mixins/InputAssistant.py   ulipad(Download)
            return True
        except:
            error.traceback()
            return False
 
            self.lasteditor
        except:
            error.traceback()
            self.lasteditor = None
            self.lastlanguage = None
                        pass
                    except:
                        error.traceback()
            return False
 
                        win.calltip_line = win.GetCurrentLine()
        except:
            error.traceback()
        return False
 
                except:
                    error.error('Execute %s.%s failed!' % (func.module_name, func.function_name))
                    error.traceback()
                    return False
                if flag == 'replace':

src/u/l/ulipad-HEAD/mixins/Import.py   ulipad(Download)
            return True
        except:
            error.traceback()
 
def main_init(win):
                win.locale = encoding
            except:
                error.traceback()
                raise MyUnicodeException(win, tr("Can't convert file encoding [%s] to unicode!\nThe file can't be opened!") % encoding, tr("Unicode Error"))
        else:
            error.traceback()
            win.locale = encoding
        except:
            error.traceback()
            try:
                s = text.encode(encoding, 'replace')
                    wx.CallAfter(win.editctrl.switch, document, delay=False)
        except:
            error.traceback()
            common.warn(tr('There was something wrong with loading the session file.'))
Mixin.setMixin('mainframe', 'OnFileSessionOpen', OnFileSessionOpen)

src/u/l/ulipad-HEAD/mixins/FtpClass.py   ulipad(Download)
                self.ftp.login(user, password)
            except socket.error, msg:
                error.traceback()
                common.showerror(self, msg[1])
                self.ftp = None
                self.running = False
                return
            except Exception, msg:
                error.traceback()
                self.ftp.set_pasv(site['pasv'])
            except Exception, msg:
                error.traceback()
                common.showerror(self, msg)
 
                    self.ftp.quit()
            except Exception, msg:
                error.traceback()
                common.showerror(self, msg)
 
        except Exception, msg:
            common.showerror(self, msg)
            error.traceback()
            return
 

src/u/l/ulipad-HEAD/mixins/EditorFactory.py   ulipad(Download)
                            wx.CallAfter(setStatus, document, state, bookmarks)
                except MyUnicodeException, e:
                    error.traceback()
                    e.ShowMessage()
                    wx.CallAfter(self.closefile, document)
                    return
                except:
                    error.traceback()
                        self.document.openfile(filename, encoding, delay, defaulttext)
                    except MyUnicodeException, e:
                        error.traceback()
                        e.ShowMessage()
                        doc = self.document
                    except:
                        error.traceback()
    def newPage(self, filename, encoding=None, documenttype='texteditor', delay=False, defaulttext='', language='', **kwargs):
        try:
            panelclass = self.panellist[documenttype]
        except:
            error.traceback()

src/u/l/ulipad-HEAD/mixins/TodoWindow.py   ulipad(Download)
                    pl.append(re.compile(i))
                except:
                    error.traceback()
                    error.info('pattern=' + i)
        else:
            pl = []
            try:
                pl.append(re.compile(pattern))
            except:
                error.traceback()

src/u/l/ulipad-HEAD/mixins/DirBrowser.py   ulipad(Download)
    def get_files(self, path):
        try:
            files = os.listdir(path)
        except:
            error.traceback()
                except:
                    event.Veto()
                    error.traceback()
                    if is_file:
                        common.showerror(self, tr('Cannot change the filename %s to %s!') % (name, text))
            os.mkdir(os.path.join(filename, foldername))
        except:
            error.traceback()
            common.showerror(self, tr('Create directory %s error!') % os.path.join(filename, foldername))
            return
            file(filename, 'w')
        except:
            error.traceback()
            common.showerror(self, tr("Can't open the file %(filename)s") % {'filename':filename})
            return
                        shutil.rmtree(filename)
                    except:
                        error.traceback()
                        common.showerror(self, tr('Cannot delete directory %s!') % filename)
                        return

src/u/l/ulipad-HEAD/mixins/mColumnMode.py   ulipad(Download)
                    except:
                        error.error("Conver %d to unichar failed" % char)
                        error.traceback()
                        break
            if begin + i == lastline:
def OnEditColumnMode(win, event):
    try:
        win.document.OnColumnMode(event)
    except:
        error.traceback()

src/u/l/ulipad-HEAD/mixins/Editor.py   ulipad(Download)
                        f.close()
                    except:
                        error.traceback()
                        raise
                else:
                    self.callplugin('openfiletext', self, stext)
                except:
                    error.traceback()
                    self.filename = oldfilename
                    raise
                self.callplugin('savefiletext', self, stext)
            except:
                error.traceback()
                self.filename = oldfilename
                raise

src/u/l/ulipad-HEAD/mixins/PrefDialog.py   ulipad(Download)
                value = int(value)
            except:
                error.traceback()
                error.info((name, kind, value))
                return getattr(self.default_pref, name)

  1 | 2 | 3 | 4 | 5  Next