{"issue":{"title":"fixed priority sorting","created_at":"2011-12-23T04:22:51Z","user":{"login":"bennomadic","id":1267868,"url":"https://api.github.com/users/bennomadic","avatar_url":"https://secure.gravatar.com/avatar/2a1dcc59419be9a2726ce1bbfce85c40?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"2a1dcc59419be9a2726ce1bbfce85c40"},"milestone":null,"labels":[],"updated_at":"2011-12-23T15:53:03Z","state":"open","id":2644488,"closed_at":null,"html_url":"https://github.com/oucs/django-conneg/issues/2","pull_request":{"patch_url":"https://github.com/oucs/django-conneg/pull/2.patch","html_url":"https://github.com/oucs/django-conneg/pull/2","diff_url":"https://github.com/oucs/django-conneg/pull/2.diff"},"body":"there was an attempt of sorting by group, but afaik that wasn't being used...\r\nin any case, sorting in as_view wasn't working because get_renderers was getting them alphabetically sorted again.\r\nshould be working now, methinks...","number":2,"url":"https://api.github.com/repos/oucs/django-conneg/issues/2","comments":4,"assignee":null},"comment":{"created_at":"2011-12-23T15:53:03Z","user":{"login":"bennomadic","id":1267868,"url":"https://api.github.com/users/bennomadic","avatar_url":"https://secure.gravatar.com/avatar/2a1dcc59419be9a2726ce1bbfce85c40?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"2a1dcc59419be9a2726ce1bbfce85c40"},"updated_at":"2011-12-23T15:53:03Z","id":3261994,"body":"> better/useful if priorities could be specified project-wide (e.g. in some settings variable)?\r\nRe. this... it could be neat having a project setting for that, as long as one is sure that all the cases must follow the same priority rank.\r\n\r\nMaybe it could be practical also passing a tuple to the ContentNegView ?\r\n\r\ni.e, somehing along the lines:\r\n\r\nclass FooView(HTMLView, RDFaView, RDFXMLView, TurtleView):\r\n  _override_priority = ((html, 10), (rdfa, 5), (rdf, 5), (turtle, 1))\r\n\r\nmy 2 cts.\r\n\r\nps: and what about a line in docs noting that higher priority gets chosen first? one can doubt about priorities being cardinals...","url":"https://api.github.com/repos/oucs/django-conneg/issues/comments/3261994"},"action":"created"}