예제 #1
0
def update_sync_stamp(context):
    """update the SYNC key with the actual timestamp in the dictstorage"""

    timestamp = datetime.now().isoformat()
    dictstorage.set(DICTSTORAGE_SYNC_KEY, timestamp)
    logger.info("Updated sync_stamp in dictstorage"
                " to current timestamp (%s)" % timestamp)
    return timestamp
예제 #2
0
def update_sync_stamp(context):
    """Update the sync stamp with the current timestamp in the dictstorage.
    """
    timestamp = datetime.now().isoformat()
    dictstorage.set(DICTSTORAGE_SYNC_KEY, timestamp)
    logger.info("Updated sync_stamp in dictstorage"
                " to current timestamp (%s)" % timestamp)
    return timestamp
예제 #3
0
 def activate(self):
     key = self.get_key()
     dictstorage.set(key, str(True))
     self.invalidate_is_active()
예제 #4
0
 def activate(self):
     key = self.get_key()
     dictstorage.set(key, str(True))
     self.invalidate_is_active()