- Timestamp:
- 20 Jun 2011, 16:04:14 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/accesscodes/accesscodes.py
r6424 r6425 81 81 self.num = num 82 82 self.invalidated_num = 0 83 self.used_num = 0 83 84 self.disabled_num = 0 84 85 … … 134 135 return 135 136 136 def invalidate(self, ac_id, student_id=None):137 """Invalidate the AC with ID ``ac_id``.138 """139 self.invalidated_num += 1140 141 def disable(self, ac_id, user_id=None):142 """Disable the AC with ID ``ac_id``.143 144 ``user_id`` is the user ID of the user triggering the145 process. Already disabled ACs are left untouched.146 """147 num = self._acids[ac_id]148 ac = self.getAccessCode(ac_id)149 if ac._disabled == True:150 return151 self.disabled_num += 1152 153 def enable(self, ac_id):154 """(Re-)enable the AC with ID ``ac_id``.155 156 This leaves the given AC in state ``unused``. Already enabled157 ACs are left untouched.158 """137 #def invalidate(self, ac_id, student_id=None): 138 # """Invalidate the AC with ID ``ac_id``. 139 # """ 140 # self.invalidated_num += 1 141 142 #def disable(self, ac_id, user_id=None): 143 # """Disable the AC with ID ``ac_id``. 144 # 145 # ``user_id`` is the user ID of the user triggering the 146 # process. Already disabled ACs are left untouched. 147 # """ 148 # num = self._acids[ac_id] 149 # ac = self.getAccessCode(ac_id) 150 # if ac._disabled == True: 151 # return 152 # self.disabled_num += 1 153 154 #def enable(self, ac_id): 155 # """(Re-)enable the AC with ID ``ac_id``. 156 # 157 # This leaves the given AC in state ``unused``. Already enabled 158 # ACs are left untouched. 159 # """ 159 160 160 161 def createCSVLogFile(self):
Note: See TracChangeset for help on using the changeset viewer.