def commit_when_no_transaction(f):
    def _(self, *args, **kwargs):
        r = f(self, *args, **kwargs)
        return self.session.add(self) if self.session is not None else r
    _.__name__ = f.__name__
    _.__doc__ = f.__doc__
    return _


###########################################################################
##    CACHE CLASSES FOR STRUCTURES
###########################################################################
Retrieve the time stamp for when the certificate starts being valid
dataset/ETHPy150Open lsbardel/python-stdnet/stdnet/odm/struct.py/commit_when_no_transaction--crossover with--dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/pyopenssl/OpenSSL/crypto.py/X509.get_notBefore