Changeset 989 for dassmodus/trunk


Ignore:
Timestamp:
Apr 6, 2012, 10:59:44 AM (13 years ago)
Author:
pstorz
Message:

generate web2py

Location:
dassmodus/trunk/dassmodus/nosferatu/nosferatu/tools
Files:
1 added
1 edited

Legend:

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

    r988 r989  
    239239            else:
    240240              value = defvalue(type, name, None)
    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)
     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)
    250250        s += "]\n"
    251251        print s
Note: See TracChangeset for help on using the changeset viewer.