Author: reinhard Date: 2010-07-05 04:41:40 -0500 (Mon, 05 Jul 2010) New Revision: 10191
Modified: trunk/gnue-forms/ trunk/gnue-forms/src/GFObjects/GFField.py Log: Avoid displaying the text "None" in lookups. Property changes on: trunk/gnue-forms ___________________________________________________________________ Name: bzr:revision-info - timestamp: 2010-05-12 17:17:44.903000116 +0200 committer: Reinhard Müller <reinhard.muel...@bytewise.at> properties: branch-nick: forms + timestamp: 2010-07-05 11:40:14.581000090 +0200 committer: Reinhard Müller <reinhard.muel...@bytewise.at> properties: branch-nick: forms Name: bzr:file-ids - src/GFObjects/GFField.py 1...@3a364389-8fce-0310-8f11-cc363fde16c7:trunk%2Fgnue-forms:src%2FGFObjects%2FGFField.py src/GFParser.py 1...@3a364389-8fce-0310-8f11-cc363fde16c7:trunk%2Fgnue-forms:src%2FGFParser.py + src/GFObjects/GFField.py 1...@3a364389-8fce-0310-8f11-cc363fde16c7:trunk%2Fgnue-forms:src%2FGFObjects%2FGFField.py Name: bzr:revision-id:v4 - 3116 reinhard.muel...@bytewise.at-20100426083500-vtmq0qvd7htz02zx 3117 reinhard.muel...@bytewise.at-20100512151744-2jx8tmtop30kl5n0 + 3116 reinhard.muel...@bytewise.at-20100426083500-vtmq0qvd7htz02zx 3117 reinhard.muel...@bytewise.at-20100512151744-2jx8tmtop30kl5n0 3118 reinhard.muel...@bytewise.at-20100705094014-ks9yv7b8gs6ychrb Name: bzr:text-parents - src/GFObjects/GFField.py svn-v3-single1-dHJ1bmsvZ251ZS1mb3Jtcw..:3a364389-8fce-0310-8f11-cc363fde16c7:trunk%2Fgnue-forms:10149 src/GFParser.py svn-v3-single1-dHJ1bmsvZ251ZS1mb3Jtcw..:3a364389-8fce-0310-8f11-cc363fde16c7:trunk%2Fgnue-forms:10013 + Modified: trunk/gnue-forms/src/GFObjects/GFField.py =================================================================== --- trunk/gnue-forms/src/GFObjects/GFField.py 2010-06-12 12:15:19 UTC (rev 10190) +++ trunk/gnue-forms/src/GFObjects/GFField.py 2010-07-05 09:41:40 UTC (rev 10191) @@ -666,7 +666,13 @@ for line in array: key = line[0] - descr = dpSep.join(["%s" % i for i in line[1:]]) + descr_parts = [] + for item in line[1:]: + if item is None: + descr_parts.append(u"") + else: + descr_parts.append(u"%s" % item) + descr = dpSep.join(descr_parts) self.__lookup_list.append(descr) self.__lookup_dict[key] = descr _______________________________________________ commit-gnue mailing list commit-gnue@gnu.org http://lists.gnu.org/mailman/listinfo/commit-gnue