diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-03-22 07:28:51 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-03-22 07:28:51 +0300 |
commit | 1b80538fea5b42f5b3111066f617d94a4ffc180c (patch) | |
tree | 68cbdb095a32dc28b0c76341132946f6e768690a /release | |
parent | 3384679aecfe93ae72bd34eb9b17095db2603eb2 (diff) |
fix [#25688] undocumted functions in pyapi
expose collection function docs.
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/modules/rna_info.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/release/scripts/modules/rna_info.py b/release/scripts/modules/rna_info.py index ac6043da340..74df544b679 100644 --- a/release/scripts/modules/rna_info.py +++ b/release/scripts/modules/rna_info.py @@ -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 = "" |