Beispiel #1
0
    def post_init(self):
        oprules = organism_api.get_item_rules(self.filename, self.id_)

        for rule in oprules:
            insert_rule_event.signal(filename=self.filename, id_=self.id_,
                                                                    rule=rule)

        self.refresh_mod_state()

        init_rules_list_event.signal(filename=self.filename, id_=self.id_)
Beispiel #2
0
    def post_init(self):
        oprules = organism_api.get_item_rules(self.filename, self.id_)

        for rule in oprules:
            insert_rule_event.signal(filename=self.filename, id_=self.id_,
                                                                    rule=rule)

        self.refresh_mod_state()

        init_rules_list_event.signal(filename=self.filename, id_=self.id_)
Beispiel #3
0
 def _handle_paste(self, kwargs):
     if kwargs['filename'] == self.filename:
         for id_ in kwargs['ids']:
             rules = organism_api.get_item_rules(self.filename, id_)
             self._update_item(id_, rules)
Beispiel #4
0
 def _handle_paste(self, kwargs):
     if kwargs['filename'] == self.filename:
         for id_ in kwargs['ids']:
             rules = organism_api.get_item_rules(self.filename, id_)
             self._update_item(id_, rules)