Esempio n. 1
0
File: tags.py Progetto: che2/exaile
 def __init__(self, name, type, **kwargs):
     self.name = name
     self.translated_name = gettext(name)
     self.type = type
     
     # these are overridable by keyword arg
     self.editable = True
     self.use_disk = False 
     
     for k,v in kwargs.iteritems():
         setattr(self, k, v)    
Esempio n. 2
0
File: tags.py Progetto: 0mark/exaile
    def __init__(self, name, type, **kwargs):
        self.name = name
        self.translated_name = gettext(name)
        self.type = type

        # these are overridable by keyword arg
        self.editable = True
        self.use_disk = False

        for k, v in kwargs.iteritems():
            setattr(self, k, v)