)]}'
{"mistral/api/access_control.py":[{"author":{"_account_id":8731,"name":"Renat Akhmerov","email":"renat.akhmerov@gmail.com","username":"rakhmerov"},"change_message_id":"792eb0c4054baf83029c1f201b5f1c45c90f6626","unresolved":false,"context_lines":[{"line_number":41,"context_line":""},{"line_number":42,"context_line":"def enforce(action, context, target\u003dNone, do_raise\u003dTrue,"},{"line_number":43,"context_line":"            exc\u003dexc.NotAllowedException):"},{"line_number":44,"context_line":"    \"\"\"Verifies that the action is valid on the target in this context."},{"line_number":45,"context_line":""},{"line_number":46,"context_line":"    :param action: string representing the action to be checked"},{"line_number":47,"context_line":"                   this should be colon separated for clarity."},{"line_number":48,"context_line":"                   i.e. ``workflows:create``"},{"line_number":49,"context_line":"    :param context: mistral context."},{"line_number":50,"context_line":"    :param target: dictionary representing the object of the action"},{"line_number":51,"context_line":"                   for object creation this should be a dictionary"},{"line_number":52,"context_line":"                   representing the location of the object."},{"line_number":53,"context_line":"                   e.g. ``{\u0027project_id\u0027: context.project_id}``"},{"line_number":54,"context_line":"    :param do_raise: if True (the default), raises specified excepion."},{"line_number":55,"context_line":"    :param exc: Exception to be raised if not authorized. Default is"},{"line_number":56,"context_line":"                mistral.exceptions.NotAllowedException."},{"line_number":57,"context_line":""},{"line_number":58,"context_line":"    :return: returns True if authorized and False if not authorized and"},{"line_number":59,"context_line":"             do_raise is False."},{"line_number":60,"context_line":"    \"\"\""},{"line_number":61,"context_line":"    target_obj \u003d {"},{"line_number":62,"context_line":"        \u0027project_id\u0027: context.project_id,"},{"line_number":63,"context_line":"        \u0027user_id\u0027: context.user_id,"}],"source_content_type":"text/x-python","patch_set":1,"id":"7aa08908_4e9a1370","line":60,"range":{"start_line":44,"start_character":5,"end_line":60,"end_character":7},"updated":"2016-06-15 06:57:49.000000000","message":"Content is fine but could you please fix a format a little bit? Particularly, every sentence should start with a capital and end with a period. It\u0027s sometimes hard to read it otherwise. Like \"this should be colon separated...\" doesn\u0027t look like a new sentence at all because there was no period before it and it doesn\u0027t start with a capital letter\".","commit_id":"442618e86afbe49b5fa6eb707334c67094623250"}]}
