Ignore:
Timestamp:
12/04/12 15:50:40 (17 months ago)
Author:
Ales Erjavec <ales.erjavec@…>
Branch:
default
Message:

Removed 'path' property from 'Scheme' class and added it to SchemeEditWidget.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/OrangeCanvas/scheme/scheme.py

    r11204 r11219  
    5454    title_changed = Signal(unicode) 
    5555    description_changed = Signal(unicode) 
    56     path_changed = Signal(unicode) 
    5756 
    5857    def __init__(self, parent=None, title=None, description=None): 
    5958        QObject.__init__(self, parent) 
    60  
    61         self.__path = "" 
    62         "Filename path associated with this schema (empty string by default)" 
    6359 
    6460        self.__title = title or "" 
     
    10399 
    104100    description = Property(unicode, fget=description, fset=set_description) 
    105  
    106     def set_path(self, path): 
    107         if self.__path != path: 
    108             self.__path = path 
    109             self.path_changed.emit(path) 
    110  
    111     def path(self): 
    112         return self.__path 
    113  
    114     path = Property(unicode, fget=path, fset=set_path) 
    115101 
    116102    def add_node(self, node): 
     
    418404        if isinstance(stream, basestring): 
    419405            stream = open(stream, "rb") 
    420         elif isinstance(stream, file): 
    421             self.path = stream.name 
    422406 
    423407        parse_scheme(self, stream) 
Note: See TracChangeset for help on using the changeset viewer.