Ignore:
Timestamp:
17 May 2011, 23:41:45 (13 years ago)
Author:
uli
Message:

Remove trailing whitespaces.

File:
1 edited

Legend:

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

    r5467 r6124  
    124124        for x in self._entries:
    125125            yield x
    126            
     126
    127127    def getAccessCode(self, ac_id):
    128128        """Get the AccessCode with ID ``ac_id`` or ``KeyError``.
     
    173173        ac._invalidation_date = datetime.now()
    174174        self.disabled_num += 1
    175        
     175
    176176    def enable(self, ac_id):
    177177        """(Re-)enable the AC with ID ``ac_id``.
     
    296296        self.addBatch(batch)
    297297        return batch
    298        
     298
    299299    def getNum(self, prefix):
    300300        """Get next unused num for given prefix.
     
    311311        for filename in sorted(os.listdir(path)):
    312312            yield filename
    313    
     313
    314314    def reimport(self, filename, creator=u'UNKNOWN'):
    315315        """Reimport a batch given in CSV file.
     
    364364                continue
    365365        return None
    366    
     366
    367367    def disable(self, ac_id, user_id):
    368368        """Disable the AC with ID ``ac_id``.
     
    389389        return
    390390
    391    
     391
    392392class AccessCodePlugin(grok.GlobalUtility):
    393393    grok.name('accesscodes')
     
    414414
    415415    An access code here is a string like ``PUDE-1-1234567890``.
    416    
     416
    417417    Returns ``None`` if the given code cannot be found.
    418418
     
    430430    if batch is None:
    431431        return None
    432    
     432
    433433    try:
    434434        code = batch.getAccessCode(access_code)
Note: See TracChangeset for help on using the changeset viewer.