configurationengine/source/plugins/symbian/ConeGenconfmlPlugin/genconfmlplugin/confflattener.py
changeset 4 0951727b8815
parent 3 e7e0ae78773e
equal deleted inserted replaced
3:e7e0ae78773e 4:0951727b8815
    83         for fea in toview.get_features('**'):
    83         for fea in toview.get_features('**'):
    84             fromfea = dview_from.get_feature(fea.fqr)
    84             fromfea = dview_from.get_feature(fea.fqr)
    85             # If the value is an empty list, don't add it.
    85             # If the value is an empty list, don't add it.
    86             # This is because an empty list means that we have
    86             # This is because an empty list means that we have
    87             # a sequence setting or sequence sub-setting that doesn't have
    87             # a sequence setting or sequence sub-setting that doesn't have
    88             # any contents, and calling set_value() would create a data
    88             # any contents, and calling set_value() would create an empty
    89             # element for it with the attribute empty="true".
    89             # data element to mark the sequence as empty, as the
       
    90             # ConfML specification says
    90             val = fromfea.get_value()
    91             val = fromfea.get_value()
    91             if val not in (None, []):
    92             if val not in (None, []):
    92                 fea.set_value(val)
    93                 fea.set_value(val)
    93         return to_config
    94         return to_config
    94 
    95