|
Lines 168-174
Link Here
|
| 168 |
info.load_categories() |
168 |
info.load_categories() |
| 169 |
for cat in cats.split( ',' ): |
169 |
for cat in cats.split( ',' ): |
| 170 |
cat_info = info.get_category( cat ) |
170 |
cat_info = info.get_category( cat ) |
| 171 |
default.append( ( string.lower( cat ), cat_info[ 'name' ] ) ) |
171 |
if cat_info: |
|
|
172 |
default.append( ( string.lower( cat ), cat_info[ 'name' ] ) ) |
| 173 |
else: |
| 174 |
default.append( ( string.lower( cat ), '' ) ) |
| 172 |
category = umcd.make( self[ 'baseconfig/set' ][ 'categories' ], fields = fields, |
175 |
category = umcd.make( self[ 'baseconfig/set' ][ 'categories' ], fields = fields, |
| 173 |
default = default ) |
176 |
default = default ) |
| 174 |
else: |
177 |
else: |