import os f = open(os.path.join(os.sep.join(__file__.split('/')[:-1]),'version.txt')) VERSION = f.read().strip() f.close() CONF = { 'Choice_type': { 'name': 'Multiple Choice', 'view': 'choice', 'edit': 'choice', 'factor': 'add_new_choice', 'helptext': '', 'pos': 1 }, 'Choice_multiple': { 'name': 'Multiple Response', 'view': 'multiple', 'edit': 'choice', 'factor': 'add_new_multiple', 'helptext': '', 'pos': 2 }, 'order_type': { 'name': 'Order', 'view': 'order', 'edit': 'order', 'factor': 'add_new_order', 'helptext': '', 'pos': 3 }, 'associate_type': { 'name': 'Associate', 'view': 'associate', 'edit': 'associate', 'factor': 'add_new_associate', 'helptext': '', 'pos': 4 }, 'match_type': { 'name': 'Match', 'view': 'match', 'edit': 'match', 'factor': 'add_new_match', 'helptext': '', 'pos': 5 }, 'gap_match_type': { 'name': 'Gap Match', 'view': 'gap_match', 'edit': 'gap_match', 'factor': 'add_new_gap_match', 'helptext': 'Surround words, you want gapped, with square brackets []. Write correct answer inside brackets like this: [answer].', 'pos': 6 }, 'inline_choice_type': { 'name': 'Inline Choice', 'view': 'inline', 'edit': 'inline', 'factor': 'add_new_inline_choice', 'helptext': 'Surround words, which will be replaced with a choice menu, with square brackets []. Write correct answer inside brackets like this: [answer]. The word will be replaced with a choice menu.', 'pos': 7 }, 'text_entry_type': { 'name': 'Text Entry', 'view': 'text_entry', 'edit': 'text_entry', 'factor': 'add_new_text_entry', 'helptext': 'Surround words, which will be replaced with an empty box, with square brackets []. Write correct answer inside brackets like this: [answer]. The word will be replaced with an empty box.', 'pos': 8 }, 'extended_text_type': { 'name': 'Extended Text', 'view': 'extended_text', 'edit': 'extended_text', 'factor': 'add_new_extended_text', 'helptext': '', 'pos': 9 }, 'hottext_type': { 'name': 'Hottext', 'view': 'hottext', 'edit': 'hottext', 'factor': 'add_new_hottext', 'helptext': 'Surround words, what you want to be choices, with square brackets []. Write variant inside brackets like this: [variant].', 'pos': 10 }, 'slider_type': { 'name': 'Slider', 'view': 'slider', 'edit': 'slider', 'factor': 'add_new_slider', 'helptext': '', 'pos': 11 }, 'hotspot_type': { 'name': 'Hotspot', 'view': 'hotspot', 'edit': 'hotspot', 'factor': 'create_new_hotspot_obj', 'helptext': '', 'pos': 12 }, 'choice_multiple_video': { 'name': 'Multiple response (video)', 'view': 'choice_multiple_with_video', 'edit': 'choice', 'factor': 'add_new_multiple', 'helptext': '', 'pos': 13 } } LICENCES = { 'copyleft': { 'name': 'Copyleft', 'description': 'People can do whatever they feel right with this content.', 'url': '' }, 'cc1': { 'name': 'Creative Commons', 'description': 'Standard Creative Commons licence. Allows users to modify, redistribute and sell content.', 'url': 'http://creativecommons.org/licenses/by/3.0/' }, 'cc2': { 'name': 'CC Noncommercial', 'description': 'Standard Creative Commons licence. Allows users to modify and redistribute content for non-commercial purposes.', 'url': 'http://creativecommons.org/licenses/by-nc/3.0/' }, 'cc3': { 'name': 'CC NoDerivate', 'description': 'Standard Creative Commons licence. Allows users to redistribute and sell content, prohibits modifing.', 'url': 'http://creativecommons.org/licenses/by-nd/3.0/' }, 'copyright': { 'name': 'Copyright', 'description': 'You are the author. Users need author\'s agreement to distribute, adapt or translate the resource.', 'url': '' } } LRE_KEYWORDS = { '91' : 'art', '144' : 'biology', '195' : 'chemistry', '256' : 'computer science', '383' : 'business education', '404' : 'educational technologies', '427' : 'English language', '431' : 'environmental education', '440' : 'Estonian language', '493' : 'Finnish language', '520' : 'French language', '540' : 'geography', '548' : 'German language', '576' : 'handicrafts', '590' : 'history', '710' : 'language teaching', '790' : 'mathematics', '856' : 'music education', '974' : 'physical education', '978' : 'physics', '1017' : 'preschool education', '1024' : 'primary education', '1040' : 'psychology', '1115' : 'Russian language', '1209' : 'society', '1227' : 'special education', '1263' : 'Swedish language' }