fix [#25688] undocumted functions in pyapi

expose collection function docs.
This commit is contained in:
Campbell Barton
2011-03-22 04:28:51 +00:00
parent 3384679aec
commit 1b80538fea
4 changed files with 94 additions and 38 deletions

View File

@@ -253,7 +253,7 @@ class InfoPropertyRNA:
return "%s=%s" % (self.identifier, default)
return self.identifier
def get_type_description(self, as_ret=False, as_arg=False, class_fmt="%s"):
def get_type_description(self, as_ret=False, as_arg=False, class_fmt="%s", collection_id="Collection"):
type_str = ""
if self.fixed_type is None:
type_str += self.type
@@ -277,9 +277,9 @@ class InfoPropertyRNA:
else:
if self.type == "collection":
if self.collection_type:
collection_str = (class_fmt % self.collection_type.identifier) + " collection of "
collection_str = (class_fmt % self.collection_type.identifier) + (" %s of " % collection_id)
else:
collection_str = "Collection of "
collection_str = "%s of " % collection_id
else:
collection_str = ""