Changeset 988 for dassmodus


Ignore:
Timestamp:
04/06/12 07:56:31 (9 years ago)
Author:
pstorz
Message:

fixed wrong default values

File:
1 edited

Legend:

Unmodified
Added
Removed
  • dassmodus/trunk/dassmodus/nosferatu/nosferatu/tools/bacsource2configrules.py

    r985 r988  
    239239            else:
    240240              value = defvalue(type, name, None)
    241             s += "  %s,\n" % repr(Item(name, value, defaultvalue, default, type, required))
     241            #s += "  %s,\n" % repr(Item(name, value, defaultvalue, default, type, required))
     242            if defaultvalue == None:
     243               defaultvalue = ''
     244            if required == True:
     245               required = 'Ja'
     246            else:
     247               required = 'Nein'
     248            type = type.replace('store_','').replace('_','\_')
     249            s += "%s & %s & %s & %s \\\\ \n" % (PrettyNames[name], defaultvalue ,type, required)
    242250        s += "]\n"
    243251        print s
Note: See TracChangeset for help on using the changeset viewer.