Rename placeview and placemodel classes for consistency
svn: r14216
This commit is contained in:
@@ -19,9 +19,9 @@ pkgdata_PYTHON = \
|
||||
pedigreeviewext.gpr.py \
|
||||
personlistview.py \
|
||||
persontreeview.py \
|
||||
placetreeview.gpr.py \
|
||||
placelistview.py \
|
||||
placetreeview.py \
|
||||
placeview.py \
|
||||
placetreeview.gpr.py \
|
||||
relview.py \
|
||||
repoview.py \
|
||||
sourceview.py \
|
||||
|
@@ -20,7 +20,7 @@
|
||||
# $Id$
|
||||
|
||||
"""
|
||||
Place View
|
||||
Place List View
|
||||
"""
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
@@ -29,7 +29,7 @@ Place View
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
from libplaceview import PlaceBaseView
|
||||
from gui.views.treemodels import PlaceModel
|
||||
from gui.views.treemodels.placemodel import PlaceListModel
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
@@ -40,14 +40,14 @@ from gen.ggettext import gettext as _
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# PlaceView
|
||||
# PlaceListView
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
class PlaceView(PlaceBaseView):
|
||||
class PlaceListView(PlaceBaseView):
|
||||
"""
|
||||
Flat place view. (Original code in PlaceBaseView).
|
||||
"""
|
||||
def __init__(self, dbstate, uistate):
|
||||
PlaceBaseView.__init__(self, dbstate, uistate,
|
||||
_('Places'), PlaceModel,
|
||||
_('Places'), PlaceListModel,
|
||||
nav_group=0)
|
@@ -30,7 +30,7 @@ Place Tree View
|
||||
#-------------------------------------------------------------------------
|
||||
from gui.views.listview import LISTTREE
|
||||
from libplaceview import PlaceBaseView
|
||||
from gui.views.treemodels.placetreemodel import PlaceTreeModel, COUNTRYLEVELS
|
||||
from gui.views.treemodels.placemodel import PlaceTreeModel, COUNTRYLEVELS
|
||||
import gen.lib
|
||||
import Errors
|
||||
from gui.editors import EditPlace
|
||||
|
@@ -154,16 +154,16 @@ viewclass = 'PersonListView',
|
||||
order = END,
|
||||
)
|
||||
register(VIEW,
|
||||
id = 'placeview',
|
||||
id = 'placelistview',
|
||||
name = _("Place View"),
|
||||
description = _("The view showing all the places of the family tree"),
|
||||
version = '1.0',
|
||||
status = STABLE,
|
||||
fname = 'placeview.py',
|
||||
fname = 'placelistview.py',
|
||||
authors = [u"The Gramps project"],
|
||||
authors_email = ["http://gramps-project.org"],
|
||||
category = ("Places", _("Places")),
|
||||
viewclass = 'PlaceView',
|
||||
viewclass = 'PlaceListView',
|
||||
order = START,
|
||||
)
|
||||
|
||||
|
Reference in New Issue
Block a user