# -*- coding: utf-8 # -*- Mode: Python; py-indent-offset: 4 -*- # $Id$ # # Copyright (c) 2006, Vahur Rebas, HTK, TLU # # Permission to use, copy, modify, and distribute this software for any # purpose with or without fee is hereby granted, provided that the above # copyright notice and this permission notice appear in all copies. # # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. """ Question and Test online authoring tool """ __version__ = "$Revision: 44$"[11:-2] import QTAuthor import UnicodeSplitter def initialize(context): """ initialize product """ context.registerClass( QTAuthor.QTAuthor, constructors = (QTAuthor.manage_addQTAuthorForm, QTAuthor.manage_addQTAuthor), icon='' ) # module aliases. No need to change anything here! from types import Choice from types import Choice_multiple from types import Order from types import associate from types import Match from types import Gap_match from types import Text_entry from types import Inline_choice from types import Extended_text from types import Hottext from types import Slider from types import Hotspot import sys sys.modules['Products.QTAuthor.Choice'] = Choice sys.modules['Products.QTAuthor.Choice_multiple'] = Choice_multiple sys.modules['Products.QTAuthor.Order'] = Order sys.modules['Products.QTAuthor.associate'] = associate sys.modules['Products.QTAuthor.Match'] = Match sys.modules['Products.QTAuthor.Gap_match'] = Gap_match sys.modules['Products.QTAuthor.Text_entry'] = Text_entry sys.modules['Products.QTAuthor.Inline_choice'] = Inline_choice sys.modules['Products.QTAuthor.Extended_text'] = Extended_text sys.modules['Products.QTAuthor.Hottext'] = Hottext sys.modules['Products.QTAuthor.Slider'] = Slider sys.modules['Products.QTAuthor.Hotspot'] = Hotspot # EOF