def incr_push_version(self): """Called by /_bump to increment the push_version number""" # should probably apply locking here new_version = cherrypy.config['_push_version'] = util.push_version() + 1 f = open(util.make_absolute('var/run/splunk/push-version.txt'), 'w') f.write(str(new_version)) f.close() return new_version
def push_version(self, *a, **kw): return util.push_version(*a, **kw)