ccnmtl/mediathread — pull request #71 by c0cky (2014-12-29 02:03:48+00:00)
Title: Onomy addition

code to accomplish 3 goals

1. Allow for an arbitrary amount of 'concepts' or 'vocabularies' to be created. Made the maximum 100 instead of the previous maximum which was 3.
2. Alter the UI for an input text box and two buttons, one for submission and one for refreshing. I had to add an image for the refresh. The submit grabs the onomy url from the input box and populates the vocabularies and terms from that particular url with a json extension ex: onomy.org/published/50/json. The refresh button grabs the urls from vocabularies that were previously created or had entries from the onomy submit button and 'refreshes' the vocabulary and terms with new additions from the onomy url. (if any) I had to edit the database model of vocabulary to save the url that a user entered. For now this is just a csv serialization of the urls. From my understanding there should not be but a couple if more than one url for a particulary vocabulary so this should not max out this field.
3. Create an export function in a format suited for the MEP using lxml etree. Exports the annotations and information about collected videos by the particular user calling on the url. The url for this export is 'projecturlhere/asset/MEPdump'