def __getFactoryExtendediDevices(self): """ JRJ: Carga los iDevices de fábrica (loads the factory iDevices) """ from exe.engine.freetextidevice import FreeTextIdevice from exe.engine.multimediaidevice import MultimediaIdevice from exe.engine.reflectionidevice import ReflectionIdevice from exe.engine.casestudyidevice import CasestudyIdevice from exe.engine.truefalseidevice import TrueFalseIdevice # converting ImageWithTextIdevice -> FreeTextIdevice: #from exe.engine.imagewithtextidevice import ImageWithTextIdevice from exe.engine.wikipediaidevice import WikipediaIdevice from exe.engine.attachmentidevice import AttachmentIdevice from exe.engine.titleidevice import TitleIdevice from exe.engine.galleryidevice import GalleryIdevice from exe.engine.clozeidevice import ClozeIdevice #from exe.engine.clozelangidevice import ClozelangIdevice from exe.engine.flashwithtextidevice import FlashWithTextIdevice from exe.engine.externalurlidevice import ExternalUrlIdevice from exe.engine.imagemagnifieridevice import ImageMagnifierIdevice # converting Maths Idevice -> FreeTextIdevice: #from exe.engine.mathidevice import MathIdevice from exe.engine.multichoiceidevice import MultichoiceIdevice from exe.engine.rssidevice import RssIdevice from exe.engine.multiselectidevice import MultiSelectIdevice from exe.engine.appletidevice import AppletIdevice from exe.engine.flashmovieidevice import FlashMovieIdevice from exe.engine.quiztestidevice import QuizTestIdevice from exe.engine.listaidevice import ListaIdevice from exe.engine.notaidevice import NotaIdevice from exe.engine.sortidevice import SortIdeviceInc from exe.engine.hangmanidevice import HangmanIdeviceInc from exe.engine.clickinorderidevice import ClickInOrderIdeviceInc from exe.engine.memorymatchidevice import MemoryMatchIdeviceInc from exe.engine.placetheobjectsidevice import PlaceTheObjectsIdeviceInc from exe.engine.fileattachidevice import FileAttachIdeviceInc # JRJ # Necesarios para la FPD # (Necessary for FPD) from exe.engine.reflectionfpdidevice import ReflectionfpdIdevice from exe.engine.reflectionfpdmodifidevice import ReflectionfpdmodifIdevice from exe.engine.clozefpdidevice import ClozefpdIdevice from exe.engine.clozelangfpdidevice import ClozelangfpdIdevice from exe.engine.parasabermasfpdidevice import ParasabermasfpdIdevice from exe.engine.debesconocerfpdidevice import DebesconocerfpdIdevice from exe.engine.citasparapensarfpdidevice import CitasparapensarfpdIdevice from exe.engine.recomendacionfpdidevice import RecomendacionfpdIdevice from exe.engine.verdaderofalsofpdidevice import VerdaderofalsofpdIdevice from exe.engine.seleccionmultiplefpdidevice import SeleccionmultiplefpdIdevice from exe.engine.eleccionmultiplefpdidevice import EleccionmultiplefpdIdevice from exe.engine.casopracticofpdidevice import CasopracticofpdIdevice from exe.engine.ejercicioresueltofpdidevice import EjercicioresueltofpdIdevice from exe.engine.destacadofpdidevice import DestacadofpdIdevice #from exe.engine.correccionfpdidevice import CorreccionfpdIdevice from exe.engine.orientacionesalumnadofpdidevice import OrientacionesalumnadofpdIdevice from exe.engine.orientacionestutoriafpdidevice import OrientacionestutoriafpdIdevice from exe.engine.freetextfpdidevice import FreeTextfpdIdevice factoryExtendedIdevices = [] factoryExtendedIdevices.append(SortIdeviceInc()) factoryExtendedIdevices.append(HangmanIdeviceInc()) factoryExtendedIdevices.append(ClickInOrderIdeviceInc()) factoryExtendedIdevices.append(MemoryMatchIdeviceInc()) #factoryExtendedIdevices.append(PlaceTheObjectsIdeviceInc()) factoryExtendedIdevices.append(FileAttachIdeviceInc()) factoryExtendedIdevices.append(FreeTextIdevice()) factoryExtendedIdevices.append(MultichoiceIdevice()) factoryExtendedIdevices.append(ReflectionIdevice()) factoryExtendedIdevices.append(CasestudyIdevice()) factoryExtendedIdevices.append(TrueFalseIdevice()) defaultImage = unicode(self.config.webDir / "images" / "sunflowers.jpg") # converting ImageWithTextIdevice -> FreeTextIdevice: #factoryExtendedIdevices.append(ImageWithTextIdevice(defaultImage)) factoryExtendedIdevices.append(ImageMagnifierIdevice(defaultImage)) defaultImage = unicode(self.config.webDir / "images" / "sunflowers.jpg") defaultSite = 'http://%s.wikipedia.org/' % self.config.locale factoryExtendedIdevices.append(WikipediaIdevice(defaultSite)) #JRJ: Eliminamos este iDevice de los extendidos # (we eliminate this iDevice from the extended ones) #factoryExtendedIdevices.append(AttachmentIdevice()) factoryExtendedIdevices.append(GalleryIdevice()) factoryExtendedIdevices.append(ClozeIdevice()) #factoryExtendedIdevices.append(ClozelangIdevice()) #JRJ: Eliminamos este iDevices de los extendidos # (we eliminate this iDevice from the extended ones) #factoryExtendedIdevices.append(FlashWithTextIdevice()) factoryExtendedIdevices.append(ExternalUrlIdevice()) # converting Maths Idevice -> FreeTextIdevice: #factoryExtendedIdevices.append(MathIdevice()) #JRJ: Eliminamos este iDevices de los extendidos # (we eliminate this iDevice from the extended ones) #factoryExtendedIdevices.append(MultimediaIdevice()) factoryExtendedIdevices.append(RssIdevice()) factoryExtendedIdevices.append(MultiSelectIdevice()) factoryExtendedIdevices.append(AppletIdevice()) #JRJ: Eliminamos este iDevices de los extendidos # (we eliminate this iDevice from the extended ones) #factoryExtendedIdevices.append(FlashMovieIdevice()) factoryExtendedIdevices.append(QuizTestIdevice()) factoryExtendedIdevices.append(ListaIdevice()) factoryExtendedIdevices.append(NotaIdevice()) # JRJ # iDevices para la FPD # (iDevices for FPD) factoryExtendedIdevices.append(ReflectionfpdIdevice()) factoryExtendedIdevices.append(ReflectionfpdmodifIdevice()) factoryExtendedIdevices.append(ClozefpdIdevice()) factoryExtendedIdevices.append(ClozelangfpdIdevice()) factoryExtendedIdevices.append(ParasabermasfpdIdevice()) factoryExtendedIdevices.append(DebesconocerfpdIdevice()) factoryExtendedIdevices.append(CitasparapensarfpdIdevice()) factoryExtendedIdevices.append(RecomendacionfpdIdevice()) factoryExtendedIdevices.append(VerdaderofalsofpdIdevice()) factoryExtendedIdevices.append(SeleccionmultiplefpdIdevice()) factoryExtendedIdevices.append(EleccionmultiplefpdIdevice()) factoryExtendedIdevices.append(CasopracticofpdIdevice()) factoryExtendedIdevices.append(EjercicioresueltofpdIdevice()) factoryExtendedIdevices.append(DestacadofpdIdevice()) #factoryExtendedIdevices.append(CorreccionfpdIdevice()) factoryExtendedIdevices.append(OrientacionesalumnadofpdIdevice()) factoryExtendedIdevices.append(OrientacionestutoriafpdIdevice()) factoryExtendedIdevices.append(FreeTextfpdIdevice()) return factoryExtendedIdevices
def __loadExtended(self): """ Load the Extended iDevices (iDevices coded in Python) """ self.__loadUserExtended() from exe.engine.freetextidevice import FreeTextIdevice from exe.engine.multimediaidevice import MultimediaIdevice from exe.engine.reflectionidevice import ReflectionIdevice from exe.engine.casestudyidevice import CasestudyIdevice from exe.engine.truefalseidevice import TrueFalseIdevice # converting ImageWithTextIdevice -> FreeTextIdevice: #from exe.engine.imagewithtextidevice import ImageWithTextIdevice from exe.engine.wikipediaidevice import WikipediaIdevice from exe.engine.attachmentidevice import AttachmentIdevice from exe.engine.titleidevice import TitleIdevice from exe.engine.galleryidevice import GalleryIdevice from exe.engine.clozeidevice import ClozeIdevice #from exe.engine.clozelangidevice import ClozelangIdevice from exe.engine.flashwithtextidevice import FlashWithTextIdevice from exe.engine.externalurlidevice import ExternalUrlIdevice from exe.engine.imagemagnifieridevice import ImageMagnifierIdevice # converting Maths Idevice -> FreeTextIdevice: #from exe.engine.mathidevice import MathIdevice from exe.engine.multichoiceidevice import MultichoiceIdevice from exe.engine.rssidevice import RssIdevice from exe.engine.multiselectidevice import MultiSelectIdevice from exe.engine.appletidevice import AppletIdevice from exe.engine.flashmovieidevice import FlashMovieIdevice from exe.engine.quiztestidevice import QuizTestIdevice # JR # Necesarios para la FPD from exe.engine.reflectionfpdidevice import ReflectionfpdIdevice from exe.engine.reflectionfpdmodifidevice import ReflectionfpdmodifIdevice from exe.engine.clozefpdidevice import ClozefpdIdevice from exe.engine.clozelangfpdidevice import ClozelangfpdIdevice from exe.engine.parasabermasfpdidevice import ParasabermasfpdIdevice from exe.engine.debesconocerfpdidevice import DebesconocerfpdIdevice from exe.engine.citasparapensarfpdidevice import CitasparapensarfpdIdevice from exe.engine.recomendacionfpdidevice import RecomendacionfpdIdevice from exe.engine.verdaderofalsofpdidevice import VerdaderofalsofpdIdevice from exe.engine.seleccionmultiplefpdidevice import SeleccionmultiplefpdIdevice from exe.engine.eleccionmultiplefpdidevice import EleccionmultiplefpdIdevice from exe.engine.casopracticofpdidevice import CasopracticofpdIdevice from exe.engine.ejercicioresueltofpdidevice import EjercicioresueltofpdIdevice from exe.engine.destacadofpdidevice import DestacadofpdIdevice #from exe.engine.correccionfpdidevice import CorreccionfpdIdevice from exe.engine.orientacionesalumnadofpdidevice import OrientacionesalumnadofpdIdevice from exe.engine.orientacionestutoriafpdidevice import OrientacionestutoriafpdIdevice from exe.engine.freetextfpdidevice import FreeTextfpdIdevice self.extended.append(FreeTextIdevice()) self.extended.append(MultichoiceIdevice()) self.extended.append(ReflectionIdevice()) self.extended.append(CasestudyIdevice()) self.extended.append(TrueFalseIdevice()) defaultImage = unicode(self.config.webDir / "images" / "sunflowers.jpg") # converting ImageWithTextIdevice -> FreeTextIdevice: #self.extended.append(ImageWithTextIdevice(defaultImage)) self.extended.append(ImageMagnifierIdevice(defaultImage)) defaultImage = unicode(self.config.webDir / "images" / "sunflowers.jpg") defaultSite = 'http://%s.wikipedia.org/' % self.config.locale self.extended.append(WikipediaIdevice(defaultSite)) self.extended.append(AttachmentIdevice()) self.extended.append(GalleryIdevice()) self.extended.append(ClozeIdevice()) #self.extended.append(ClozelangIdevice()) self.extended.append(FlashWithTextIdevice()) self.extended.append(ExternalUrlIdevice()) # converting Maths Idevice -> FreeTextIdevice: #self.extended.append(MathIdevice()) self.extended.append(MultimediaIdevice()) self.extended.append(RssIdevice()) self.extended.append(MultiSelectIdevice()) self.extended.append(AppletIdevice()) self.extended.append(FlashMovieIdevice()) self.extended.append(QuizTestIdevice()) # JR # iDevices para la FPD self.extended.append(ReflectionfpdIdevice()) self.extended.append(ReflectionfpdmodifIdevice()) self.extended.append(ClozefpdIdevice()) self.extended.append(ClozelangfpdIdevice()) self.extended.append(ParasabermasfpdIdevice()) self.extended.append(DebesconocerfpdIdevice()) self.extended.append(CitasparapensarfpdIdevice()) self.extended.append(RecomendacionfpdIdevice()) self.extended.append(VerdaderofalsofpdIdevice()) self.extended.append(SeleccionmultiplefpdIdevice()) self.extended.append(EleccionmultiplefpdIdevice()) self.extended.append(CasopracticofpdIdevice()) self.extended.append(EjercicioresueltofpdIdevice()) self.extended.append(DestacadofpdIdevice()) #self.extended.append(CorreccionfpdIdevice()) self.extended.append(OrientacionesalumnadofpdIdevice()) self.extended.append(OrientacionestutoriafpdIdevice()) self.extended.append(FreeTextfpdIdevice()) # generate new ids for these iDevices, to avoid any clashes for idevice in self.extended: idevice.id = self.getNewIdeviceId()
def __loadExtended(self): """ Load the Extended iDevices (iDevices coded in Python) """ self.__loadUserExtended() from exe.engine.freetextidevice import FreeTextIdevice from exe.engine.multimediaidevice import MultimediaIdevice from exe.engine.reflectionidevice import ReflectionIdevice from exe.engine.casestudyidevice import CasestudyIdevice from exe.engine.truefalseidevice import TrueFalseIdevice # converting ImageWithTextIdevice -> FreeTextIdevice: #from exe.engine.imagewithtextidevice import ImageWithTextIdevice from exe.engine.wikipediaidevice import WikipediaIdevice from exe.engine.attachmentidevice import AttachmentIdevice from exe.engine.titleidevice import TitleIdevice from exe.engine.galleryidevice import GalleryIdevice from exe.engine.clozeidevice import ClozeIdevice from exe.engine.flashwithtextidevice import FlashWithTextIdevice from exe.engine.externalurlidevice import ExternalUrlIdevice from exe.engine.imagemagnifieridevice import ImageMagnifierIdevice # converting Maths Idevice -> FreeTextIdevice: #from exe.engine.mathidevice import MathIdevice from exe.engine.multichoiceidevice import MultichoiceIdevice from exe.engine.rssidevice import RssIdevice from exe.engine.multiselectidevice import MultiSelectIdevice from exe.engine.appletidevice import AppletIdevice from exe.engine.flashmovieidevice import FlashMovieIdevice from exe.engine.quiztestidevice import QuizTestIdevice from exe.engine.pdfidevice import PdfIdevice from exe.engine.feedbackidevice import FeedbackIdevice from exe.engine.hintidevice import HintIdevice from exe.engine.glossaryidevice import GlossaryIdevice from exe.engine.latexidevice import LatexIdevice from exe.engine.tocidevice import TOCIdevice self.extended.append(FreeTextIdevice()) self.extended.append(TOCIdevice()) self.extended.append(LatexIdevice()) self.extended.append(GlossaryIdevice()) self.extended.append(FeedbackIdevice()) self.extended.append(HintIdevice()) self.extended.append(PdfIdevice()) self.extended.append(MultichoiceIdevice()) self.extended.append(ReflectionIdevice()) self.extended.append(CasestudyIdevice()) self.extended.append(TrueFalseIdevice()) defaultImage = unicode(self.config.webDir / "images" / "sunflowers.jpg") # converting ImageWithTextIdevice -> FreeTextIdevice: #self.extended.append(ImageWithTextIdevice(defaultImage)) self.extended.append(ImageMagnifierIdevice(defaultImage)) defaultImage = unicode(self.config.webDir / "images" / "sunflowers.jpg") defaultSite = 'http://%s.wikipedia.org/' % self.config.locale self.extended.append(WikipediaIdevice(defaultSite)) self.extended.append(AttachmentIdevice()) self.extended.append(GalleryIdevice()) self.extended.append(ClozeIdevice()) self.extended.append(FlashWithTextIdevice()) self.extended.append(ExternalUrlIdevice()) # converting Maths Idevice -> FreeTextIdevice: #self.extended.append(MathIdevice()) self.extended.append(MultimediaIdevice()) self.extended.append(RssIdevice()) self.extended.append(MultiSelectIdevice()) self.extended.append(AppletIdevice()) self.extended.append(FlashMovieIdevice()) self.extended.append(QuizTestIdevice()) # generate new ids for these iDevices, to avoid any clashes for idevice in self.extended: idevice.id = self.getNewIdeviceId()
def __loadExtended(self): """ Load the Extended iDevices (iDevices coded in Python) """ self.__loadUserExtended() from exe.engine.freetextidevice import FreeTextIdevice from exe.engine.multimediaidevice import MultimediaIdevice from exe.engine.reflectionidevice import ReflectionIdevice from exe.engine.casestudyidevice import CasestudyIdevice from exe.engine.truefalseidevice import TrueFalseIdevice # converting ImageWithTextIdevice -> FreeTextIdevice: #from exe.engine.imagewithtextidevice import ImageWithTextIdevice from exe.engine.wikipediaidevice import WikipediaIdevice from exe.engine.attachmentidevice import AttachmentIdevice from exe.engine.titleidevice import TitleIdevice from exe.engine.galleryidevice import GalleryIdevice from exe.engine.clozeidevice import ClozeIdevice from exe.engine.flashwithtextidevice import FlashWithTextIdevice from exe.engine.externalurlidevice import ExternalUrlIdevice from exe.engine.imagemagnifieridevice import ImageMagnifierIdevice # converting Maths Idevice -> FreeTextIdevice: #from exe.engine.mathidevice import MathIdevice from exe.engine.multichoiceidevice import MultichoiceIdevice from exe.engine.rssidevice import RssIdevice from exe.engine.multiselectidevice import MultiSelectIdevice from exe.engine.appletidevice import AppletIdevice from exe.engine.flashmovieidevice import FlashMovieIdevice from exe.engine.quiztestidevice import QuizTestIdevice #modifications by lernmodule.net #changed: clozeidevice #next 3 idevices inserted from exe.engine.scormdropdownidevice import ScormDropDownIdevice from exe.engine.scormclozeidevice import ScormClozeIdevice from exe.engine.scormmultiselectidevice import ScormMultiSelectIdevice #end modifications self.extended.append(FreeTextIdevice()) self.extended.append(MultichoiceIdevice()) self.extended.append(ReflectionIdevice()) self.extended.append(CasestudyIdevice()) self.extended.append(TrueFalseIdevice()) defaultImage = unicode(self.config.webDir/"images"/"sunflowers.jpg") # converting ImageWithTextIdevice -> FreeTextIdevice: #self.extended.append(ImageWithTextIdevice(defaultImage)) self.extended.append(ImageMagnifierIdevice(defaultImage)) defaultImage = unicode(self.config.webDir/"images"/"sunflowers.jpg") defaultSite = 'http://%s.wikipedia.org/' % self.config.locale self.extended.append(WikipediaIdevice(defaultSite)) self.extended.append(AttachmentIdevice()) self.extended.append(GalleryIdevice()) self.extended.append(ClozeIdevice()) self.extended.append(FlashWithTextIdevice()) self.extended.append(ExternalUrlIdevice()) # converting Maths Idevice -> FreeTextIdevice: #self.extended.append(MathIdevice()) self.extended.append(MultimediaIdevice()) self.extended.append(RssIdevice()) self.extended.append(MultiSelectIdevice()) self.extended.append(AppletIdevice()) self.extended.append(FlashMovieIdevice()) #modifications by lernmodule.net #self.extended.append(QuizTestIdevice()) self.extended.append(ScormDropDownIdevice()) self.extended.append(ScormClozeIdevice()) self.extended.append(ScormMultiSelectIdevice()) #end modifications # generate new ids for these iDevices, to avoid any clashes for idevice in self.extended: idevice.id = self.getNewIdeviceId()