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

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

src/u/l/ulipad-HEAD/mixins/FtpClass.py   ulipad(Download)
            except socket.error, msg:
                error.traceback()
                common.showerror(self, msg[1])
                self.ftp = None
                self.running = False
                return
            except Exception, msg:
                error.traceback()
                common.showerror(self, msg)
            except Exception, msg:
                error.traceback()
                common.showerror(self, msg)
 
            self.getcurrentpath()
            except Exception, msg:
                error.traceback()
                common.showerror(self, msg)
 
            self.alive = False
            self.loadFile(self.data)
        except Exception, msg:
            common.showerror(self, msg)
            error.traceback()
            return

src/u/l/ulipad-HEAD/mixins/Import.py   ulipad(Download)
        f.close()
    except:
        common.showerror(win, tr("Can't open the file %s.") % filename)
        del win.pref.recent_files[index]
        win.pref.save()
        f.close()
    except:
        common.showerror(win, tr("Can't open the file %s.") % filename)
        del win.pref.recent_sessions[index]
        win.pref.save()
        scripttext = open(common.encode_path(filename), 'rU').read()
    except:
        common.showerror(win, tr("Can't open the file %s.") % filename)
        return
 
            shutil.copyfile(filename, bakfile)
        except Exception, mesg:
            common.showerror(win, mesg)
Mixin.setPlugin('editor', 'openfile', openfile, Mixin.HIGH, 0)
 
 
        if not value:
            common.showerror(win, tr("You didn't set the Python interpreter.\nPlease set it up first in the preferences."))
 
        interpreter = dict(s).get(value, '')

src/u/l/ulipad-HEAD/mixins/DirBrowser.py   ulipad(Download)
            if os.path.exists(os.path.join(path, text)):
                if is_file:
                    common.showerror(self, tr('Filename %s has existed!') % os.path.join(path, text))
                else:
                    common.showerror(self, tr('Directory %s has existed!') % os.path.join(path, text))
                    error.traceback()
                    if is_file:
                        common.showerror(self, tr('Cannot change the filename %s to %s!') % (name, text))
                    else:
                        common.showerror(self, tr('Cannot change the directory %s to %s!') % (name, text))
            filename = self.get_node_filename(item)
        if os.path.exists(os.path.join(filename, foldername)):
            common.showerror(self, tr('Directory %s has existed!') % os.path.join(filename, foldername))
            return
 

src/u/l/ulipad-HEAD/plugins/blogedit/BlogManageWindow.py   ulipad(Download)
        except Exception, msg:
            error.traceback()
            common.showerror(self.mainframe, msg)
        common.setmessage(self.mainframe, tr('Done'))
 
                self.list.DeleteItem(index)
            else:
                common.showerror(self.mainframe, tr('Delete error!'))
 
        except Exception, msg:
            error.traceback()
            common.showerror(self.mainframe, msg)
            else:
                self.categories = {}
                common.showerror(self.maiframe, tr('Login is faild!'))
            return True
        except Exception, msg:
            error.traceback()
            common.showerror(self.mainframe, msg)

src/u/l/ulipad-HEAD/plugins/web2py_plugin/editor_ext.py   ulipad(Download)
def other_popup_menu(editor, projectname, menus):
    if 'web2py' in common.getProjectName(editor.filename):
        path = common.getProjectHome(editor.filename)
        if not os.path.exists(os.path.join(path, "web2py.py")):
            common.showerror(win, tr("setting web2py project is not correctly, you must setting project on web2py folder"))
            return
        if  editor.filename.count(root)>1:
            common.showerror(win, tr(" '%s' occur twice, we can't handle this situation" % root))
    except:
        error.traceback()
        common.showerror(win, tr("There is some wrong as executing the menu."))
Mixin.setMixin('editor', 'OnWeb2pyProjectFunc', OnWeb2pyProjectFunc)
 

src/u/l/ulipad-HEAD/plugins/pairprog/Concurrent.py   ulipad(Download)
    def OnStart(self, event=None):
        if not self.status:
            if not self.me or self.me == '*':
                common.showerror(self, tr("Username should not be empty or '*'"))
                self.txtName.SetFocus()
                return
 
            ip = self.txtIP.GetValue()
            if not ip:
                common.showerror(self, tr("Host address cannot be empty!"))
    def OnConnect(self, event=None):
        if not self.status:
            if not self.me or self.me == '*':
                common.showerror(self, tr("Username should not be empty or '*'"))
                self.txtName.SetFocus()
                return
 
            ip = self.txtIP.GetValue()
            if not ip:
                common.showerror(self, tr("Host address cannot be empty!"))
        else:
            if self.filelist.GetItemCount() > 0:
                common.showerror(self, tr("You should select one item first"))
            else:
                common.showerror(self, tr("No item exists"))

src/u/l/ulipad-HEAD/plugins/djangoproj/dirbrowser_ext.py   ulipad(Download)
    except:
        error.traceback()
        common.showerror(win, tr("There is some wrong as executing the menu."))
Mixin.setMixin('dirbrowser', 'OnDjangoFunc', OnDjangoFunc)
 
        create_dot_and_show(Globals.mainframe, imagefile, dotfile)
    else:
        common.showerror(win, tr("Current directory seems not a real Django app"))
 
def create_dot_and_show(win, imagefile, dotfile):
    except:
        error.traceback()
        common.showerror(win, tr("Can't execute [%s]") % cmd)
        return
    if os.path.exists(imagefile):
            win.Show()
        except:
            common.showerror(win, tr("Can't open image file %s") % imagefile)
 
def get_django_name(win):
        appname = values['appname']
        if not appname:
            common.showerror(win, tr("Django application name cannot be empty."))
    easy.Destroy()
    return values

src/u/l/ulipad-HEAD/plugins/wizard/WizardPanel.py   ulipad(Download)
            except:
                error.traceback()
                common.showerror(self, tr("There is something wrong, see the error.log!"))
        finally:
            os.chdir(old_path)

src/u/l/ulipad-HEAD/plugins/docbook/editor_ext.py   ulipad(Download)
    except:
        error.traceback()
        common.showerror(win, tr("There is some wrong as executing the menu."))
Mixin.setMixin('editor', 'OnDocbookProjectFunc', OnDocbookProjectFunc)
 
            editor.EndUndoAction()
    else:
        common.showerror(editor, tr("There are not tags defined in conf/docbook_xml.ini."))
 
def settext(win, text):

src/u/l/ulipad-HEAD/mixins/EditorFactory.py   ulipad(Download)
                    error.traceback()
                    filename = document.filename
                    common.showerror(self, tr("Can't open the file %s.") % common.uni_file(filename))
                    wx.CallAfter(self.closefile, document)
                    return
                    except:
                        error.traceback()
                        common.showerror(self, tr("Can't open the file %s.") % filename)
                        doc = self.document
                    else:
            if panel:
                panel.Destroy()
            common.showerror(self, tr("Can't open the file %s.") % filename)
            return None
 

  1 | 2 | 3 | 4  Next