Changeset 3775:df88115c66d5 in orange


Ignore:
Timestamp:
07/13/07 01:37:28 (7 years ago)
Author:
janezd <janez.demsar@…>
Branch:
default
Convert:
bed825161dbf90a020b6588314fd9b67ea0c0e31
Message:
  • fixed getdeepattr - used to return None, when the attribute did not exist
File:
1 edited

Legend:

Unmodified
Added
Removed
  • orange/OrangeWidgets/OWBaseWidget.py

    r3661 r3775  
    284284    def getdeepattr(self, attr, **argkw): 
    285285        try: 
    286             return reduce(lambda o, n: getattr(o, n, None),  attr.split("."), self) 
     286            return reduce(lambda o, n: getattr(o, n),  attr.split("."), self) 
    287287        except: 
    288288            if argkw.has_key("default"): 
Note: See TracChangeset for help on using the changeset viewer.