2008-01-29 Raphael Ackermann <raphael.ackermann@gmail.com>
* src/ViewManager.py: 0001641: add ... ellipsis to menu items. * src/plugins/Calendar.py: 0001641: add ... ellipsis to menu items. * src/PluginUtils/__init__.py: pep8 fixes * src/PluginUtils/_PluginMgr.py: pylint and doc fixes svn: r9960
This commit is contained in:
parent
cb4230a0fc
commit
3bd5ea1f35
@ -1,7 +1,14 @@
|
|||||||
|
2008-01-29 Raphael Ackermann <raphael.ackermann@gmail.com>
|
||||||
|
* src/ViewManager.py: 0001641: add ... ellipsis to menu items.
|
||||||
|
* src/plugins/Calendar.py: 0001641: add ... ellipsis to menu items.
|
||||||
|
* src/PluginUtils/__init__.py: pep8 fixes
|
||||||
|
* src/PluginUtils/_PluginMgr.py: pylint and doc fixes
|
||||||
|
|
||||||
2008-01-29 Peter Landgren <peter.talken@telia.com>
|
2008-01-29 Peter Landgren <peter.talken@telia.com>
|
||||||
* src/plugins/ExportVCalendar.py:
|
* src/plugins/ExportVCalendar.py:
|
||||||
* src/plugins/ExportVCard.py:
|
* src/plugins/ExportVCard.py:
|
||||||
Encoding according to sys.getfilesystemencoding() in stead of hardcoded iso-8859-1
|
Encoding according to sys.getfilesystemencoding() in stead of hardcoded
|
||||||
|
iso-8859-1
|
||||||
|
|
||||||
2008-01-29 Raphael Ackermann <raphael.ackermann@gmail.com>
|
2008-01-29 Raphael Ackermann <raphael.ackermann@gmail.com>
|
||||||
* src/plugins/EventNames.py: doc fixes and removal of self.label
|
* src/plugins/EventNames.py: doc fixes and removal of self.label
|
||||||
|
@ -287,19 +287,12 @@ def register_report(
|
|||||||
_register_cl_report(name,category,report_class,options_class,
|
_register_cl_report(name,category,report_class,options_class,
|
||||||
translated_name,unsupported, require_active)
|
translated_name,unsupported, require_active)
|
||||||
|
|
||||||
def _register_standalone(report_class,
|
def _register_standalone(report_class, options_class, translated_name, name,
|
||||||
options_class,
|
category, description=_unavailable,
|
||||||
translated_name,
|
status=_("Unknown"), author_name=_("Unknown"),
|
||||||
name,
|
author_email=_("Unknown"), unsupported=False,
|
||||||
category,
|
require_active=True):
|
||||||
description=_unavailable,
|
"""Register a report with the plugin system."""
|
||||||
status=_("Unknown"),
|
|
||||||
author_name=_("Unknown"),
|
|
||||||
author_email=_("Unknown"),
|
|
||||||
unsupported=False,
|
|
||||||
require_active=True,
|
|
||||||
):
|
|
||||||
"""Register a report with the plugin system"""
|
|
||||||
|
|
||||||
del_index = -1
|
del_index = -1
|
||||||
for i in range(0,len(report_list)):
|
for i in range(0,len(report_list)):
|
||||||
@ -310,14 +303,13 @@ def _register_standalone(report_class,
|
|||||||
del report_list[del_index]
|
del report_list[del_index]
|
||||||
|
|
||||||
report_list.append((report_class, options_class, translated_name,
|
report_list.append((report_class, options_class, translated_name,
|
||||||
category, name, description, status,
|
category, name, description, status, author_name,
|
||||||
author_name, author_email, unsupported,
|
author_email, unsupported, require_active))
|
||||||
require_active))
|
|
||||||
mod2text[report_class.__module__] = description
|
mod2text[report_class.__module__] = description
|
||||||
|
|
||||||
def register_book_item(translated_name, category, report_class,
|
def register_book_item(translated_name, category, report_class,
|
||||||
option_class, name, unsupported, require_active):
|
option_class, name, unsupported, require_active):
|
||||||
"""Register a book item"""
|
"""Register a book item."""
|
||||||
|
|
||||||
del_index = -1
|
del_index = -1
|
||||||
for i in range(0,len(bkitems_list)):
|
for i in range(0,len(bkitems_list)):
|
||||||
@ -349,7 +341,7 @@ def _register_cl_report(name,category,report_class,options_class,
|
|||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
def register_text_doc(name,classref, table, paper, style, ext,
|
def register_text_doc(name,classref, table, paper, style, ext,
|
||||||
print_report_label=None, clname=''):
|
print_report_label=None, clname=''):
|
||||||
"""Register a text document generator"""
|
"""Register a text document generator."""
|
||||||
del_index = -1
|
del_index = -1
|
||||||
for i in range(0,len(textdoc_list)):
|
for i in range(0,len(textdoc_list)):
|
||||||
val = textdoc_list[i]
|
val = textdoc_list[i]
|
||||||
|
@ -28,21 +28,19 @@
|
|||||||
#Better would be to do: import _PluginMgr as PluginMgr and then access
|
#Better would be to do: import _PluginMgr as PluginMgr and then access
|
||||||
# the list as PluginUtils.PluginMgr, or use a function that returns the pointer
|
# the list as PluginUtils.PluginMgr, or use a function that returns the pointer
|
||||||
# of the list.
|
# of the list.
|
||||||
from _MenuOptions import \
|
from _MenuOptions import (NumberOption, BooleanOption, TextOption,
|
||||||
NumberOption, BooleanOption, TextOption, \
|
EnumeratedListOption, FilterOption, StringOption,
|
||||||
EnumeratedListOption, FilterOption, StringOption, ColourOption, \
|
ColourOption, PersonOption, PersonListOption,
|
||||||
PersonOption, PersonListOption, SurnameColourOption, FamilyOption
|
SurnameColourOption, FamilyOption)
|
||||||
from _GuiOptions import GuiMenuOptions
|
from _GuiOptions import GuiMenuOptions
|
||||||
from _PluginMgr import \
|
from _PluginMgr import (register_export, register_import, register_tool,
|
||||||
register_export, register_import, \
|
register_report, register_relcalc, relationship_class,
|
||||||
register_tool, register_report, \
|
textdoc_list, drawdoc_list, bookdoc_list,
|
||||||
register_relcalc, relationship_class, \
|
bkitems_list, cl_list, cli_tool_list, load_plugins,
|
||||||
textdoc_list, drawdoc_list, bookdoc_list, \
|
import_list, export_list, report_list,
|
||||||
bkitems_list, cl_list, cli_tool_list, \
|
quick_report_list, tool_list, register_text_doc,
|
||||||
load_plugins, import_list, export_list,\
|
register_draw_doc, register_book_doc,
|
||||||
report_list, quick_report_list, tool_list, \
|
register_quick_report)
|
||||||
register_text_doc, register_draw_doc, register_book_doc,\
|
|
||||||
register_quick_report
|
|
||||||
|
|
||||||
import _Tool as Tool
|
import _Tool as Tool
|
||||||
import _Plugins as Plugins
|
import _Plugins as Plugins
|
||||||
|
@ -394,7 +394,7 @@ class ViewManager:
|
|||||||
self.quit),
|
self.quit),
|
||||||
('ViewMenu', None, _('_View')),
|
('ViewMenu', None, _('_View')),
|
||||||
('EditMenu', None, _('_Edit')),
|
('EditMenu', None, _('_Edit')),
|
||||||
('Preferences', gtk.STOCK_PREFERENCES, _('_Preferences'), None,
|
('Preferences', gtk.STOCK_PREFERENCES, _('_Preferences...'), None,
|
||||||
None, self.preferences_activate),
|
None, self.preferences_activate),
|
||||||
('HelpMenu', None, _('_Help')),
|
('HelpMenu', None, _('_Help')),
|
||||||
('HomePage', None, _('GRAMPS _Home Page'), None, None,
|
('HomePage', None, _('GRAMPS _Home Page'), None, None,
|
||||||
|
@ -935,7 +935,7 @@ register_report(
|
|||||||
report_class = Calendar,
|
report_class = Calendar,
|
||||||
options_class = CalendarOptions,
|
options_class = CalendarOptions,
|
||||||
modes = MODE_GUI | MODE_BKI | MODE_CLI,
|
modes = MODE_GUI | MODE_BKI | MODE_CLI,
|
||||||
translated_name = _("Calendar"),
|
translated_name = _("Calendar..."),
|
||||||
status = _("Stable"),
|
status = _("Stable"),
|
||||||
author_name = "Douglas S. Blank",
|
author_name = "Douglas S. Blank",
|
||||||
author_email = "dblank@cs.brynmawr.edu",
|
author_email = "dblank@cs.brynmawr.edu",
|
||||||
@ -948,7 +948,7 @@ register_report(
|
|||||||
report_class = CalendarReport,
|
report_class = CalendarReport,
|
||||||
options_class = CalendarReportOptions,
|
options_class = CalendarReportOptions,
|
||||||
modes = MODE_GUI | MODE_BKI | MODE_CLI,
|
modes = MODE_GUI | MODE_BKI | MODE_CLI,
|
||||||
translated_name = _("Birthday and Anniversary Report"),
|
translated_name = _("Birthday and Anniversary Report..."),
|
||||||
status = _("Stable"),
|
status = _("Stable"),
|
||||||
author_name = "Douglas S. Blank",
|
author_name = "Douglas S. Blank",
|
||||||
author_email = "dblank@cs.brynmawr.edu",
|
author_email = "dblank@cs.brynmawr.edu",
|
||||||
|
Loading…
Reference in New Issue
Block a user