Changeset 6458


Ignore:
Timestamp:
23 Jun 2011, 06:23:25 (13 years ago)
Author:
Henrik Bettermann
Message:

Make comment optional. The comment is not necessarily the user_id.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/accesscodes/accesscodes.py

    r6453 r6458  
    293293        return None
    294294
    295     def disable(self, ac_id, user_id):
     295    def disable(self, ac_id, comment=None):
    296296        """Disable the AC with ID ``ac_id``.
    297297
     
    302302        if ac is None:
    303303            return
    304         disable_accesscode(ac_id, user_id)
    305         return
    306 
    307     def enable(self, ac_id, user_id):
     304        disable_accesscode(ac_id, comment)
     305        return
     306
     307    def enable(self, ac_id, comment=None):
    308308        """(Re-)enable the AC with ID ``ac_id``.
    309309
     
    314314        if ac is None:
    315315            return
    316         reenable_accesscode(ac_id, user_id)
     316        reenable_accesscode(ac_id, comment)
    317317        return
    318318
Note: See TracChangeset for help on using the changeset viewer.