2007-06-25 Don Allingham <don@gramps-project.org>

* src/DisplayTabs/_AddrEmbedList.py: pylint
	* src/DisplayTabs/_AddressModel.py: pylint
	* src/DisplayTabs/_WebModel.py: pylint



svn: r8670
This commit is contained in:
Don Allingham
2007-06-26 03:43:01 +00:00
parent 88f21179fe
commit ef7a215d1b
4 changed files with 63 additions and 13 deletions

View File

@@ -20,6 +20,10 @@
# $Id$
"""
The TreeModel for the URL list in the Url Tab.
"""
#-------------------------------------------------------------------------
#
# GTK libraries
@@ -27,22 +31,18 @@
#-------------------------------------------------------------------------
import gtk
#-------------------------------------------------------------------------
#
# GRAMPS classes
#
#-------------------------------------------------------------------------
#-------------------------------------------------------------------------
#
# WebModel
#
#-------------------------------------------------------------------------
class WebModel(gtk.ListStore):
"""
WebModel derives from the ListStore, defining te items in the list
"""
def __init__(self, obj_list, dbase):
def __init__(self, obj_list, db):
gtk.ListStore.__init__(self, str, str, str, object)
self.db = db
self.db = dbase
for obj in obj_list:
self.append(row=[str(obj.type), obj.path, obj.desc, obj])