def add_content(self, more_content, no_docstring=False): col = self.parent.__dict__.get(self.object_name) if col is not None: if isinstance(col, Reference): remote_key = col._remote_key if isinstance(remote_key, tuple): remote_key = remote_key[0] if isinstance(remote_key, PropertyColumn): name = remote_key.cls.__name__ else: name = remote_key.split('.')[0] value = u'**reference to:** *%s*' % (name, ) else: name = col.__class__.__name__ if name == 'AutoUnicode': name = 'Unicode' value = u'**column:** *%s*' % (name, ) self.add_line(value, '<autodoc>') self.add_line(u'', '<autodoc>') AttributeDocumenter.add_content(self, more_content, no_docstring=no_docstring)
def add_content(self, more_content, no_docstring=False): AttributeDocumenter.add_content(self, more_content, no_docstring) type_ = self.object.type_ if type_: self.add_line("| Type: %s\n" % make_class_ref(type_), "<autoentity>") self.add_line("| XML Binding class name: ``%s``\n" % self.object.name, "<autoentity>") self.add_line("| Dictionary key name: ``%s``\n" % self.object.key_name, "<autoentity>")
def add_content(self, more_content, no_docstring=False): AttributeDocumenter.add_content(self, more_content, no_docstring) if self.object.multiple: self.add_line("| (List of values permitted)", "<autoentity>") type_ = self.object.type_ if type_: self.add_line("| Type: %s\n" % make_class_ref(type_), "<autoentity>") self.add_line("| XML Binding class name: ``%s``\n" % self.object.name, "<autoentity>") self.add_line("| Dictionary key name: ``%s``\n" % self.object.key_name, "<autoentity>")
def add_content(self, more_content, no_docstring=False): col = self.parent.__dict__.get(self.object_name) if col is not None: if isinstance(col, Reference): name = col._remote_key.split('.')[0] value = u'**reference to:** *%s*' % (name, ) else: name = col.__class__.__name__ if name == 'AutoUnicode': name = 'Unicode' value = u'**column:** *%s*' % (name, ) self.add_line(value, '<autodoc>') self.add_line(u'', '<autodoc>') AttributeDocumenter.add_content(self, more_content, no_docstring=no_docstring)