@require_context
def attachment_specs_get(context, attachment_id):
 rows = _attachment_specs_query(context, attachment_id).all()
 result = {row['key']: row['value'] for row in rows}
 return result

@ require_context def attachment_specs_get ( context , attachment_id ) : rows = _attachment_specs_query ( context , attachment_id ) . all ( ) result = { row [ 'key' ] : row [ 'value' ] for row in rows } return result
get all specs for an attachment .