From 1b80538fea5b42f5b3111066f617d94a4ffc180c Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 22 Mar 2011 04:28:51 +0000 Subject: fix [#25688] undocumted functions in pyapi expose collection function docs. --- release/scripts/modules/rna_info.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'release/scripts/modules') 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 = "" -- cgit v1.2.3