enable quick report on repository
svn: r10914
This commit is contained in:
parent
92729c3f83
commit
6f41c7d374
@ -44,9 +44,9 @@ import Errors
|
|||||||
import Config
|
import Config
|
||||||
from Editors import EditRepository, DelRepositoryQuery
|
from Editors import EditRepository, DelRepositoryQuery
|
||||||
from DdTargets import DdTargets
|
from DdTargets import DdTargets
|
||||||
|
|
||||||
from QuestionDialog import QuestionDialog
|
from QuestionDialog import QuestionDialog
|
||||||
from Filters.SideBar import RepoSidebarFilter
|
from Filters.SideBar import RepoSidebarFilter
|
||||||
|
from ReportBase import CATEGORY_QR_REPOSITORY
|
||||||
|
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
@ -83,6 +83,7 @@ class RepositoryView(PageView.ListView):
|
|||||||
EDIT_MSG = _("Edit the selected repository")
|
EDIT_MSG = _("Edit the selected repository")
|
||||||
DEL_MSG = _("Delete the selected repository")
|
DEL_MSG = _("Delete the selected repository")
|
||||||
FILTER_TYPE = "Repository"
|
FILTER_TYPE = "Repository"
|
||||||
|
QR_CATEGORY = CATEGORY_QR_REPOSITORY
|
||||||
|
|
||||||
def __init__(self, dbstate, uistate):
|
def __init__(self, dbstate, uistate):
|
||||||
|
|
||||||
@ -120,6 +121,10 @@ class RepositoryView(PageView.ListView):
|
|||||||
_('_Column Editor'), callback=self._column_editor)
|
_('_Column Editor'), callback=self._column_editor)
|
||||||
self._add_action('FilterEdit', None, _('Repository Filter Editor'),
|
self._add_action('FilterEdit', None, _('Repository Filter Editor'),
|
||||||
callback=self.filter_editor,)
|
callback=self.filter_editor,)
|
||||||
|
self._add_action('QuickReport', None,
|
||||||
|
_("Quick Report"), None, None, None)
|
||||||
|
self._add_action('Dummy', None,
|
||||||
|
' ', None, None, self.dummy_report)
|
||||||
|
|
||||||
def _column_editor(self, obj):
|
def _column_editor(self, obj):
|
||||||
import ColumnOrder
|
import ColumnOrder
|
||||||
@ -176,6 +181,10 @@ class RepositoryView(PageView.ListView):
|
|||||||
<menuitem action="Add"/>
|
<menuitem action="Add"/>
|
||||||
<menuitem action="Edit"/>
|
<menuitem action="Edit"/>
|
||||||
<menuitem action="Remove"/>
|
<menuitem action="Remove"/>
|
||||||
|
<separator/>
|
||||||
|
<menu name="QuickReport" action="QuickReport">
|
||||||
|
<menuitem action="Dummy"/>
|
||||||
|
</menu>
|
||||||
</popup>
|
</popup>
|
||||||
</ui>'''
|
</ui>'''
|
||||||
|
|
||||||
@ -228,3 +237,10 @@ class RepositoryView(PageView.ListView):
|
|||||||
return obj.get_handle()
|
return obj.get_handle()
|
||||||
else:
|
else:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
def dummy_report(self, obj):
|
||||||
|
""" For the xml UI definition of popup to work, the submenu
|
||||||
|
Quick Report must have an entry in the xml
|
||||||
|
As this submenu will be dynamically built, we offer a dummy action
|
||||||
|
"""
|
||||||
|
pass
|
||||||
|
Loading…
Reference in New Issue
Block a user