Changeset 5974


Ignore:
Timestamp:
Oct 3, 2017, 8:53:37 AM (2 years ago)
Author:
hectorgh
Message:

updated lock trigger function

Location:
n4d-cdlocker-client/trunk/fuentes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • n4d-cdlocker-client/trunk/fuentes/debian/changelog

    r5966 r5974  
     1n4d-cdlocker-client (0.1.2) xenial; urgency=high
     2
     3  * Updated trigger function
     4
     5 -- Hector Garcia Huerta <hectorgh@gmail.com>  Tue, 03 Oct 2017 08:53:01 +0200
     6
    17n4d-cdlocker-client (0.1.1) xenial; urgency=high
    28
  • n4d-cdlocker-client/trunk/fuentes/lliurex-cdlocker.install/usr/share/n4d/python-plugins/CDLockerClient.py

    r5925 r5974  
    3030                       
    3131                        if objects.has_key("VariablesManager"):
    32                                 objects["VariablesManager"].register_trigger("CDLOCKER","CDLocker",self.lock_trigger)
     32                                objects["VariablesManager"].register_trigger("CDLOCKER","CDLockerClient",self.lock_trigger)
    3333                        self.get_value()
    3434                        self.lock_trigger()
     
    7070       
    7171
    72         def lock_trigger(self,*args,**kwargs):
     72        def lock_trigger(self,lock_state=None):
     73               
     74                if lock_state!=None:
     75                        self.var=lock_state
    7376               
    7477                if self.is_enabled():
Note: See TracChangeset for help on using the changeset viewer.