Esempio n. 1
0
 def __init__(self, library, create_text, modify_text, delete_text):
     LibraryMenu.__init__(self, library, create_text, modify_text, delete_text)
     self.templatize_action = self.add(None,
         tr("Convert to generic user group"),
         library.templatizeEvent)
Esempio n. 2
0
 def display(self, event, actions):
     self.templatize_action.setEnabled(actions.template)
     LibraryMenu.display(self, event, actions)
Esempio n. 3
0
 def __init__(self, library, config, create_text, modify_text, delete_text):
     LibraryMenu.__init__(self, library, create_text, modify_text, delete_text)
     self.config = config
     self.templatize_action = self.add(None,
         tr("Convert to generic network"),
         library.templatizeEvent)