Esempio n. 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
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
Esempio n. 3
0
 def activate(self):
     key = self.get_key()
     dictstorage.set(key, str(True))
     self.invalidate_is_active()
Esempio n. 4
0
 def activate(self):
     key = self.get_key()
     dictstorage.set(key, str(True))
     self.invalidate_is_active()