Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def update_params(self, d):
super(RetentionTagWidget, self).update_params(d)
d['attrs']['id'] = 'job_retentiontag'
d['attrs']['onchange'] = "RetentionTagChange('%s',%s, %s)" % (
d.get('action'),
jsonify.encode({'id': d.get('job_id')}),
jsonify.encode(self.get_options(d)),
)
def add_custom_stdvars(vars):
return vars.update({
"beaker_version": beaker_version,
"identity": identity.current, # well that's just confusing
"to_json": jsonify.encode,
})