Support for plugin.for_gramps = '3.2' in registry
svn: r14121
This commit is contained in:
parent
01f470db16
commit
62a2d1672c
@ -266,6 +266,7 @@ class PluginData(object):
|
|||||||
self._id = None
|
self._id = None
|
||||||
self._name = None
|
self._name = None
|
||||||
self._version = None
|
self._version = None
|
||||||
|
self._for_gramps = None
|
||||||
self._description = None
|
self._description = None
|
||||||
self._status = UNSTABLE
|
self._status = UNSTABLE
|
||||||
self._fname = None
|
self._fname = None
|
||||||
@ -341,6 +342,12 @@ class PluginData(object):
|
|||||||
def _get_version(self):
|
def _get_version(self):
|
||||||
return self._version
|
return self._version
|
||||||
|
|
||||||
|
def _set_for_gramps(self, version):
|
||||||
|
self._for_gramps = version
|
||||||
|
|
||||||
|
def _get_for_gramps(self):
|
||||||
|
return self._for_gramps
|
||||||
|
|
||||||
def _set_status(self, status):
|
def _set_status(self, status):
|
||||||
if status not in STATUS:
|
if status not in STATUS:
|
||||||
raise ValueError, 'plugin status cannot be %s' % str(status)
|
raise ValueError, 'plugin status cannot be %s' % str(status)
|
||||||
@ -417,6 +424,7 @@ class PluginData(object):
|
|||||||
name = property(_get_name, _set_name)
|
name = property(_get_name, _set_name)
|
||||||
description = property(_get_description, _set_description)
|
description = property(_get_description, _set_description)
|
||||||
version = property(_get_version, _set_version)
|
version = property(_get_version, _set_version)
|
||||||
|
for_gramps = property(_get_for_gramps, _set_for_gramps)
|
||||||
status = property(_get_status, _set_status)
|
status = property(_get_status, _set_status)
|
||||||
fname = property(_get_fname, _set_fname)
|
fname = property(_get_fname, _set_fname)
|
||||||
fpath = property(_get_fpath, _set_fpath)
|
fpath = property(_get_fpath, _set_fpath)
|
||||||
|
Loading…
Reference in New Issue
Block a user