Pychecker cleanup
svn: r1430
This commit is contained in:
		@@ -44,8 +44,6 @@ import gtk.glade
 | 
			
		||||
#
 | 
			
		||||
#-------------------------------------------------------------------------
 | 
			
		||||
import const
 | 
			
		||||
import GrampsCfg
 | 
			
		||||
import AutoComp
 | 
			
		||||
import Utils
 | 
			
		||||
from intl import gettext as _
 | 
			
		||||
 | 
			
		||||
@@ -76,7 +74,7 @@ class FindBase:
 | 
			
		||||
        self.forward_button = self.glade.get_widget('forward')
 | 
			
		||||
        self.back_button = self.glade.get_widget('back')
 | 
			
		||||
        Utils.set_titles(self.top, self.glade.get_widget('title'), name)
 | 
			
		||||
 | 
			
		||||
        self.list = None
 | 
			
		||||
        self.index = 0
 | 
			
		||||
 | 
			
		||||
    def get_value(self,id):
 | 
			
		||||
 
 | 
			
		||||
@@ -40,6 +40,7 @@ import gconf
 | 
			
		||||
import gtk
 | 
			
		||||
import gtk.glade
 | 
			
		||||
import gnome
 | 
			
		||||
import gnome.ui
 | 
			
		||||
 | 
			
		||||
#-------------------------------------------------------------------------
 | 
			
		||||
#
 | 
			
		||||
 
 | 
			
		||||
@@ -77,7 +77,8 @@ class ImageSelect:
 | 
			
		||||
        self.parent      = parent
 | 
			
		||||
        self.canvas_list = {}
 | 
			
		||||
        self.p_map       = {}
 | 
			
		||||
 | 
			
		||||
        self.canvas      = None
 | 
			
		||||
        
 | 
			
		||||
    def add_thumbnail(self, photo):
 | 
			
		||||
        "should be overrridden"
 | 
			
		||||
        pass
 | 
			
		||||
 
 | 
			
		||||
@@ -37,6 +37,7 @@ import string
 | 
			
		||||
#
 | 
			
		||||
#-------------------------------------------------------------------------
 | 
			
		||||
import gtk
 | 
			
		||||
import gnome
 | 
			
		||||
import gnome.ui
 | 
			
		||||
 | 
			
		||||
#-------------------------------------------------------------------------
 | 
			
		||||
@@ -52,7 +53,6 @@ import TextDoc
 | 
			
		||||
import StyleEditor
 | 
			
		||||
import GrampsCfg
 | 
			
		||||
import PaperMenu
 | 
			
		||||
import Errors
 | 
			
		||||
 | 
			
		||||
from intl import gettext as _
 | 
			
		||||
from QuestionDialog import  ErrorDialog
 | 
			
		||||
@@ -534,7 +534,6 @@ class ReportDialog:
 | 
			
		||||
        label = gtk.Label("%s:" % _("Styles"))
 | 
			
		||||
        label.set_alignment(0.0,0.5)
 | 
			
		||||
 | 
			
		||||
        hbox = gtk.HBox()
 | 
			
		||||
        self.style_menu = gtk.OptionMenu()
 | 
			
		||||
        self.style_button = gtk.Button("%s..." % _("Style Editor"))
 | 
			
		||||
        self.style_button.connect('clicked',self.on_style_edit_clicked)
 | 
			
		||||
@@ -832,7 +831,6 @@ class ReportDialog:
 | 
			
		||||
            row += 1
 | 
			
		||||
 | 
			
		||||
    def setup_other_frames(self):
 | 
			
		||||
        pad = ReportDialog.border_pad
 | 
			
		||||
        for key in self.frame_names:
 | 
			
		||||
            list = self.frames[key]
 | 
			
		||||
            table = gtk.Table(3,len(list))
 | 
			
		||||
 
 | 
			
		||||
@@ -20,7 +20,6 @@
 | 
			
		||||
import gzip
 | 
			
		||||
import cStringIO
 | 
			
		||||
import string
 | 
			
		||||
import os
 | 
			
		||||
 | 
			
		||||
_BLKSIZE=512
 | 
			
		||||
nul = '\0'
 | 
			
		||||
 
 | 
			
		||||
@@ -26,7 +26,6 @@
 | 
			
		||||
#-------------------------------------------------------------------------
 | 
			
		||||
import string
 | 
			
		||||
import os
 | 
			
		||||
import sys
 | 
			
		||||
 | 
			
		||||
#-------------------------------------------------------------------------
 | 
			
		||||
#
 | 
			
		||||
@@ -855,10 +854,9 @@ class Gramps:
 | 
			
		||||
        if not path:
 | 
			
		||||
            return 1
 | 
			
		||||
        
 | 
			
		||||
        filename = os.path.normpath(os.path.abspath(filename))
 | 
			
		||||
        Utils.clear_timer()
 | 
			
		||||
 | 
			
		||||
        filename = "%s/autosave.gramps" % (self.db.getSavePath())
 | 
			
		||||
        filename = "%s/autosave.gramps" % (path)
 | 
			
		||||
    
 | 
			
		||||
        self.status_text(_("autosaving..."));
 | 
			
		||||
        try:
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user