Пример #1
0
    def __init__(self,id=-1):

        """Constructor for HorarioModel initialises the model with its parent
        class, then sets credits to the contents of a file.
        """
        Model.__init__(self)
        self.clear()
 def __init__(self):
     Model.__init__(self)
     self.preferences = PreferencesModel()
     ##Cargamos los datos de las preferencias
     self.nombre = self.normalizar(self.preferences.razon,40)
     for variable in ['banco','oficina','dc','cuenta']:
         setattr(self,variable,getattr(self.preferences,variable))
Пример #3
0
    def __init__(self, *args, **kwargs):
        Model.__init__(self, *args, **kwargs)

        # Load the playlist
        self.load_playlist()

        self.initialize_player()
Пример #4
0
    def __init__(self):

        """Constructor for HorarioModel initialises the model with its parent
        class, then sets credits to the contents of a file.
        """
        Model.__init__(self)
        self.rellenar_lista()
 def __init__(self,id=-1):
     Model.__init__(self)
     self.alumnoModel = AlumnoModel()
     self.grupoModel = GrupoModel()
     self.lista_grupos = self.grupoModel.lista
     ##FIXME hay que cambiar la lista de alumnos, por otra con nombre
     self.lista_alumnos = self.alumnoModel.combo_alumnos
     self.cargar(id)
Пример #6
0
    def __init__(self):

        """Constructor for AlumnoModel initialises the model with its parent
        class, then fills up the alumn list.

        """
        Model.__init__(self)
        self.rellenar_lista()
Пример #7
0
	def __init__(self):
		Model.__init__(self)

		self.settings=SettingsModel()
		self.pos=PosModel()
		self.observe_model(self.connection)
		self.observe_model(self.archive)
		return
Пример #8
0
    def __init__(self):
        Model.__init__(self)

        self.__own_copyright = True
        self.__itsme = False
        self.templ = templates.DEFAULT_MAP.copy()

        self.register_observer(self)
        return
Пример #9
0
    def __init__(self):
        Model.__init__(self)

        self.__own_copyright = True
        self.__itsme = False
        self.templ = templates.DEFAULT_MAP.copy()

        self.register_observer(self)
        return
Пример #10
0
    def __init__(self):

        """Constructor for AboutModel initialises the model with its parent
        class, then sets credits to the contents of a file.

        """
        Model.__init__(self)
        #self.rellenar_ocupacion()
        self.rellenar_lista()
Пример #11
0
    def __init__(self):

        """Constructor for GrupoModel initialises the model with its parent
        class, then sets credits to the contents of a file.

        """
        Model.__init__(self)
        self.lista_alumnos.clear()
        self.rellenar_lista()
Пример #12
0
    def __init__(self):
        Model.__init__(self)
        self.proc_list_store.set_sort_func(3, self.compare, 3)

        self.get_system_info()
        self.get_cpu_info()
        self.get_mem_info()
        self.proc_init()
        self.get_proc_info()
        return
Пример #13
0
    def __init__(self):
        Model.__init__(self)
        self.proc_list_store.set_sort_func(3, self.compare, 3)

        self.get_system_info()
        self.get_cpu_info()
        self.get_mem_info()
        self.proc_init()
        self.get_proc_info()
        return
Пример #14
0
    def __init__(self):

        """Constructor for AboutModel initialises the model with its parent
        class, then sets credits to the contents of a file.

        """
        Model.__init__(self)

        self.credits = open(self.credits_file, "r").read()
        alumnos = Alumno.select(Alumno.q.activo==True)
        self.num_alumnos_alta = alumnos.count()
        alumnos = Alumno.select()
        self.num_alumnos_total = alumnos.count()
        return
 def __init__(self):
     Model.__init__(self)
     self.about = AboutModel()
     self.alumno = AlumnoModel()
     self.asistencia = AsistenciaModel()
     self.profesor = ProfesorModel()
     self.aula = AulaModel()
     self.clase = ClaseModel()
     self.grupo = GrupoModel()
     self.banco = BancoModel()
     self.curso = CursoModel()
     self.libro = LibroModel()
     self.festivo = FestivoModel()
     self.nota = NotaModel()
     self.falta = FaltaModel()
     self.facturacion = FacturacionModel()
     self.preferences = PreferencesModel()
     self.init_trimestres()
Пример #16
0
 def __init__(self):
     Model.__init__(self)
     self.rellenar_lista()
Пример #17
0
 def __init__(self):
     Model.__init__(self)
     self.db_conn = Database()
Пример #18
0
 def __init__(self, parent):
     Model.__init__(self)
     self.parent = parent
     self.factory = self.parent.factory
Пример #19
0
 def __init__(self):
     Model.__init__(self)
 def __init__(self):
     
     Model.__init__(self)
     self.config = ConfigParser.RawConfigParser()
     self.cargar()
Пример #21
0
 def __init__(self):
     Model.__init__(self)
     self.factory = ControlFactory(self)
     self.driveModel = DriveModel(self)
Пример #22
0
    def __init__(self):
        Model.__init__(self)

        self.out_model = self.create_select_model()
        self.in_model = self.create_select_model()
Пример #23
0
	def __init__(self,):
		Model.__init__(self)
		self.tryfiles()