Add additional info for DEPRECATED objects
Add previous_status supporting in docs. bp deprecating-improvements Change-Id: I9cc33613d59b275a287630a5908cdf549dd061ca
This commit is contained in:
parent
5684f47af0
commit
8935ae46be
|
@ -26,7 +26,9 @@ from heat.engine import plugin_manager
|
||||||
from heat.engine import properties
|
from heat.engine import properties
|
||||||
from heat.engine import support
|
from heat.engine import support
|
||||||
|
|
||||||
_CODE_NAMES = {'2014.1': 'Icehouse',
|
_CODE_NAMES = {'2013.1': 'Grizzly',
|
||||||
|
'2013.2': 'Havana',
|
||||||
|
'2014.1': 'Icehouse',
|
||||||
'2014.2': 'Juno',
|
'2014.2': 'Juno',
|
||||||
'2015.1': 'Kilo',
|
'2015.1': 'Kilo',
|
||||||
'2015.2': 'Liberty'}
|
'2015.2': 'Liberty'}
|
||||||
|
@ -99,21 +101,24 @@ class ResourcePages(compat.Directive):
|
||||||
return version
|
return version
|
||||||
|
|
||||||
def _status_str(self, support_status, section):
|
def _status_str(self, support_status, section):
|
||||||
sstatus = support_status.to_dict()
|
while support_status is not None:
|
||||||
if sstatus['status'] is support.SUPPORTED:
|
sstatus = support_status.to_dict()
|
||||||
msg = _('Available')
|
if sstatus['status'] is support.SUPPORTED:
|
||||||
else:
|
msg = _('Available')
|
||||||
msg = sstatus['status']
|
else:
|
||||||
if sstatus['version'] is not None:
|
msg = sstatus['status']
|
||||||
msg = _('%s since %s') % (msg,
|
if sstatus['version'] is not None:
|
||||||
self._version_str(sstatus['version']))
|
msg = _('%s since %s') % (msg,
|
||||||
if sstatus['message'] is not None:
|
self._version_str(
|
||||||
msg = _('%s - %s') % (msg, sstatus['message'])
|
sstatus['version']))
|
||||||
if not (sstatus['status'] is support.SUPPORTED and
|
if sstatus['message'] is not None:
|
||||||
sstatus['version'] is None):
|
msg = _('%s - %s') % (msg, sstatus['message'])
|
||||||
para = nodes.paragraph(_(''), msg)
|
if not (sstatus['status'] == support.SUPPORTED and
|
||||||
note = nodes.note(_(''), para)
|
sstatus['version'] is None):
|
||||||
section.append(note)
|
para = nodes.paragraph(_(''), msg)
|
||||||
|
note = nodes.note(_(''), para)
|
||||||
|
section.append(note)
|
||||||
|
support_status = support_status.previous_status
|
||||||
|
|
||||||
def _section(self, parent, title, id_pattern):
|
def _section(self, parent, title, id_pattern):
|
||||||
id = id_pattern % self.resource_type
|
id = id_pattern % self.resource_type
|
||||||
|
|
Loading…
Reference in New Issue