def getExpire(self, sid):
        u"""
        
        The ``getExpire`` method answers amount of seconds before the session ``sid`` will expire.
        Answer ``0`` is the session cannot be found.
        
        """
        if self.has_key(sid):
            return self[sid].expire - time()
        return 0
dataset/ETHPy150Open petrvanblokland/Xierpa3/xierpa3/toolbox/session/sessionmanager.py/SessionManager.getExpire/original