Skip to content
This repository has been archived by the owner on Aug 21, 2020. It is now read-only.

Commit

Permalink
use option name if displayname is missing, hopefully fixes issue #27
Browse files Browse the repository at this point in the history
  • Loading branch information
simoncadman committed Jun 2, 2013
1 parent 0697192 commit 5994f4b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion dynamicppd.py
Expand Up @@ -113,7 +113,12 @@ def showUsage():
for option in capability['options']:
if 'default' in option and option['default'] == True:
ppddetails += '*DefaultGCP_' + capability['name'].replace(':','_') + ': ' + option['name'] + "\n"
ppddetails += '*GCP_' + capability['name'].replace(':','_') + ' ' + option['displayName'].replace(':','_') + ':' + option['name'].replace(':','_') + '' + "\n"
optionName = None
if 'displayName' in option:
optionName = option['displayName']
else:
optionName = option['name']
ppddetails += '*GCP_' + capability['name'].replace(':','_') + ' ' + optionName.replace(':','_') + ':' + option['name'].replace(':','_') + "\n"
ppddetails += '*CloseUI: *GCP_' + capabilityName.replace(':','_') + "\n"
elif capability['type'] == 'ParameterDef':
pass
Expand Down

0 comments on commit 5994f4b

Please sign in to comment.