예제 #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
파일: model.py 프로젝트: egrinstein/parking
 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
파일: model.py 프로젝트: uncia/tools-1
    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()