Changeset 11027:ad2ae0d2af82 in orange


Ignore:
Timestamp:
11/14/12 13:37:59 (17 months ago)
Author:
Matija Polajnar <matija.polajnar@…>
Branch:
default
Message:

Add-ons: if an add-on exists only on disk, fill its description with some non-None values, so that GUI doesn't crash.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/utils/addons.py

    r11025 r11027  
    142142 
    143143def load_installed_addons(): 
    144     #TODO Unload existing or what? 
    145  
    146144    found = set() 
    147145    for entry_point in pkg_resources.iter_entry_points(ADDONS_ENTRY_POINT): 
     
    154152                available_version = None, 
    155153                installed_version = version, 
    156                 summary = None, 
    157                 description = None, 
    158                 author = None, 
    159                 docs_url = None, 
    160                 keywords = None, 
    161                 homepage = None, 
    162                 package_url = None, 
    163                 release_url = None, 
     154                summary = "", 
     155                description = "", 
     156                author = "", 
     157                docs_url = "", 
     158                keywords = "", 
     159                homepage = "", 
     160                package_url = "", 
     161                release_url = "", 
    164162                release_size = None, 
    165                 python_version = None)  # We should find all those values out from the setup.py or somewhere ... 
     163                python_version = None) 
    166164        found.add(name) 
    167165    for name in set(addons).difference(found): 
Note: See TracChangeset for help on using the changeset viewer.