• Georgios Dagkakis's avatar
    BusinessTemplate: don't export in a different file for missing attribute case. · 94508ae2
    Georgios Dagkakis authored
    Only xml metadata should be exported in this case.
    In the previous version the check of hasattr could pass
    if attribute is defined as an attribute of the class and not of the instance,
    causing also AttributeError later when the code tries to invoke delattr.
    
    Also, restructure export. First try to delete property and then
    export as separate file.
    
    Test also added.
    94508ae2
testBusinessTemplateTwoFileExport.py 45.1 KB