Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update RPC input output documentation (#435) #458

Merged
2 commits merged into from
May 24, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion ydkgen/printer/doc/doc_printer.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,13 @@ def _print_class_rst(self, clazz):
self._print_class_hierarchy(clazz)
if clazz.stmt.search_one('presence') is not None:
self._append('This class is a :ref:`presence class<presence-class>`\n')
if clazz.stmt.arg != 'rpc':
if clazz.stmt.keyword != 'rpc':
if is_config_stmt(clazz.stmt):
self._append('This class represents configuration data.\n')
else:
self._append('This class represents state data.\n')
else:
self._append('This class defines parameters to the RPC operation\n')
self._print_docstring(clazz, get_class_docstring(
clazz, self.lang, identity_subclasses=self.identity_subclasses))
self.ctx.lvl_dec()
Expand Down