Changeset 6466 for trunk


Ignore:
Timestamp:
Dec 16, 2008, 2:37:51 PM (16 years ago)
Author:
andrea
Message:

cleanings:

  • removed an useless and harmful line of code (forgot there doing tests)
  • return None instead of 0 when no entity has been obtained/created in all the import_* routines
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/exodus/scripts/genesis_to_exodus.py

    r6464 r6466  
    1616        if not location.is_valid():
    1717            print location._errors
    18             return 0
     18            return None
    1919    return locmodel.id
    2020
     
    3131        else:
    3232            print form._errors
    33             return 0
     33            return None
    3434    return nodemodel.id
    3535
     
    4747        print 'Can\'t import interface '+interface['iface']
    4848        print form._errors
    49         return 0
     49        return None
    5050    return intfmodel.id
    5151
     
    6363    sections.sort()
    6464    for s in sections:
    65         list = s.split('/')
    6665        if s.find('/') == -1: # get only main node blocks (interface-specific blocks will be accessed later)
    6766            node = { }
Note: See TracChangeset for help on using the changeset viewer.