Show
Ignore:
Timestamp:
04/29/08 04:41:36 (7 months ago)
Author:
Ronny Pfannschmidt <Ronny.Pfannschmidt@…>
Message:

removed some kiwi warnings by replacing get_foo + property calls with decorations

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pida/services/filemanager/filemanager.py

    r1140 r1142  
    104104        self.is_dir = os.path.isdir(self.path) 
    105105        self.is_dir_sort = not self.is_dir, self.lower_name 
    106         self.icon_stock_id = self.get_icon_stock_id() 
    107106        self.visible = False 
    108107 
    109     def get_markup(self): 
     108    @property 
     109    def markup(self): 
    110110        return self.format(cgi.escape(self.name)) 
    111111 
    112     markup = property(get_markup) 
    113  
    114     def get_icon_stock_id(self): 
     112    @property 
     113    def icon_stock_id(self): 
    115114        if path.isdir(self.path): 
    116115            return 'stock_folder' 
     
    119118            return 'text-x-generic' 
    120119 
    121     def get_state_markup(self): 
     120    @property 
     121    def state_markup(self): 
    122122        text = state_text.get(self.state, ' ') 
    123123        wrap = '<span weight="ultrabold"><tt>%s</tt></span>' 
    124124        return wrap%self.format(text) 
    125125 
    126     state_markup = property(get_state_markup) 
    127126 
    128127    def format(self, text):