Bring srcattrtype in line with GEP 18:

1. less types
  2. no template data
  3. an ignore list


svn: r22604
This commit is contained in:
Benny Malengier 2013-06-25 10:55:12 +00:00
parent 6e22f80784
commit e9629f77e0
3 changed files with 501 additions and 5603 deletions

View File

@ -81,3 +81,19 @@ class AttributeType(GrampsType):
def __init__(self, value=None):
GrampsType.__init__(self, value)
def get_ignore_list(self, exception=None):
"""
Return a list of the types to ignore and not include in default lists.
Exception is a sublist of types that may not be ignored
:param exception: list of integer values corresponding with types that
have to be excluded from the ignore list
:type exception: list
:returns: list of integers corresponding with the types to ignore when
showing a list of different NoteType's
:rtype: list
"""
return []

File diff suppressed because it is too large Load Diff

View File

@ -107,7 +107,8 @@ class EditAttributeRoot(EditSecondary):
self.obj.set_type,
self.obj.get_type,
self.db.readonly,
custom_values=self.alist
custom_values=self.alist,
ignore_values=self.obj.get_type().get_ignore_list()
)
def _create_tabbed_pages(self):