示例#1
0
    def __getIdevicesFPD(self):
        """
        JRJ: Esta función devuelve los iDevices de FPD
        (this function returns the FPD iDevices)
        """
        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.orientacionesalumnadofpdidevice import OrientacionesalumnadofpdIdevice
        from exe.engine.orientacionestutoriafpdidevice import OrientacionestutoriafpdIdevice
        from exe.engine.freetextfpdidevice import FreeTextfpdIdevice
		
        
        idevices_FPD = []
        idevices_FPD.append(ReflectionfpdIdevice())
        idevices_FPD.append(ReflectionfpdmodifIdevice())
        idevices_FPD.append(ClozefpdIdevice())
        idevices_FPD.append(ClozelangfpdIdevice())
        idevices_FPD.append(ParasabermasfpdIdevice())
        idevices_FPD.append(DebesconocerfpdIdevice())
        idevices_FPD.append(CitasparapensarfpdIdevice())
        idevices_FPD.append(RecomendacionfpdIdevice())
        idevices_FPD.append(VerdaderofalsofpdIdevice())
        idevices_FPD.append(SeleccionmultiplefpdIdevice())
        idevices_FPD.append(EleccionmultiplefpdIdevice())
        idevices_FPD.append(CasopracticofpdIdevice())
        idevices_FPD.append(EjercicioresueltofpdIdevice())
        idevices_FPD.append(DestacadofpdIdevice()) 
        #idevices_FPD.append(CorreccionfpdIdevice())
        idevices_FPD.append(OrientacionesalumnadofpdIdevice())
        idevices_FPD.append(OrientacionestutoriafpdIdevice())
        idevices_FPD.append(FreeTextfpdIdevice())
        
        return idevices_FPD
示例#2
0
    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
示例#3
0
    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()
示例#4
0
    def __getFactoryExtendediDevices(self):
        """
        JR: Carga los iDevices de fabrica
        """
        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
        
        # eXelearningPlus iDevices
        from exe.engine.scormclozeidevice import ScormClozeIdevice
        from exe.engine.scormmultiselectidevice import ScormMultiSelectIdevice
        from exe.engine.scormdropdownidevice import ScormDropDownIdevice
        from exe.engine.scormmulticlozeidevice import ScormMultiClozeIdevice
        from exe.engine.opinionidevice        import OpinionIdevice
        from exe.engine.dropdownidevice import DropDownIdevice
        from exe.engine.scormmultiselectindfeedbackidevice import ScormMultiSelectIndFeedbackIdevice

        factoryExtendedIdevices = []
        
        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))
        #JR: Eliminamos este iDevices de los extendidos
        #factoryExtendedIdevices.append(AttachmentIdevice())
        factoryExtendedIdevices.append(GalleryIdevice())
        factoryExtendedIdevices.append(ClozeIdevice())
        #factoryExtendedIdevices.append(ClozelangIdevice())
        #JR: Eliminamos este iDevices de los extendidos
        #factoryExtendedIdevices.append(FlashWithTextIdevice())
        factoryExtendedIdevices.append(ExternalUrlIdevice()) 
        # converting Maths Idevice -> FreeTextIdevice:
        #factoryExtendedIdevices.append(MathIdevice())
        #JR: Eliminamos este iDevices de los extendidos
        #factoryExtendedIdevices.append(MultimediaIdevice())
        #factoryExtendedIdevices.append(RssIdevice())
        factoryExtendedIdevices.append(MultiSelectIdevice())
        #factoryExtendedIdevices.append(AppletIdevice())
        #JR: Eliminamos este iDevices de los extendidos
        #factoryExtendedIdevices.append(FlashMovieIdevice())
        #modification lernmodule.net
        #factoryExtendedIdevices.append(QuizTestIdevice())
        #end modification lernmodule.net
        # JR
        # iDevices para la 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())

        # eXelearningPlus
        factoryExtendedIdevices.append(ScormClozeIdevice())
        factoryExtendedIdevices.append(ScormMultiSelectIdevice())
        factoryExtendedIdevices.append(ScormDropDownIdevice())
        factoryExtendedIdevices.append(ScormMultiClozeIdevice())
        factoryExtendedIdevices.append(OpinionIdevice())
        factoryExtendedIdevices.append(DropDownIdevice())
        factoryExtendedIdevices.append(ScormMultiSelectIndFeedbackIdevice())
        
        return factoryExtendedIdevices