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