Add doc support for update_allowed

Add a section that says if the property can be updated
non destructively.

Change-Id: I204c42075a4454c45066e2c68c4793dc3c77f9e9
Closes-bug: #1240583
This commit is contained in:
Angus Salkeld 2013-10-25 11:40:42 -10:00
parent 3e6933ce3f
commit 803c42ce29
1 changed files with 8 additions and 0 deletions

View File

@ -170,6 +170,14 @@ Resources:
para = nodes.paragraph('', prop.description)
definition.append(para)
if prop.update_allowed:
para = nodes.paragraph('',
_('Can be updated without replacement.'))
definition.append(para)
else:
para = nodes.paragraph('', _('Updates cause replacement.'))
definition.append(para)
if prop.required:
para = nodes.paragraph('', _('Required property.'))
elif prop.default is not None: