[Alba-desarrollo] [Pressenter - SVN Alba] #286: Modulo Docentes

Pressenter - SVN Alba trac-alba en pressenter.com.ar
Mar Oct 21 01:18:51 CEST 2008


#286: Modulo Docentes
--------------------------+-------------------------------------------------
 Reporter:  anonymous     |       Owner:  somebody
     Type:  defecto       |      Status:  new     
 Priority:  muy alta      |   Milestone:          
Component:  alba-docente  |     Version:  1.0rc   
 Severity:  critica       |    Keywords:          
--------------------------+-------------------------------------------------
 Al ingresar a la Opcion Administrar del Modulo Docentes muestra el
 siguiente error:
 [?php /** * autoDocente actions. * * @package ##PROJECT_NAME## *
 @subpackage autoDocente * @author Fabien Potencier * @version SVN: $Id:
 actions.class.php 3501 2007-02-18 10:28:17Z fabien $ */ class
 autoDocenteActions extends sfActions { public function executeIndex() {
 return $this->forward('docente', 'list'); } public function executeList()
 { $this->processSort(); $this->processFilters(); $this->filters =
 $this->getUser()->getAttributeHolder()->getAll('sf_admin/docente/filters');
 // pager $this->pager = new sfPropelPager('Docente', 20); $c = new
 Criteria(); $this->addSortCriteria($c); $this->addFiltersCriteria($c);
 $this->pager->setCriteria($c);
 $this->pager->setPage($this->getRequestParameter('page', 1));
 $this->pager->init(); } public function executeCreate() { return
 $this->forward('docente', 'edit'); } public function executeSave() {
 return $this->forward('docente', 'edit'); } public function executeEdit()
 { $this->docente = $this->getDocenteOrCreate(); if
 ($this->getRequest()->getMethod() == sfRequest::POST) {
 $this->updateDocenteFromRequest(); $this->saveDocente($this->docente);
 $this->setFlash('notice', 'Your modifications have been saved'); if
 ($this->getRequestParameter('save_and_add')) { return
 $this->redirect('docente/create'); } else if
 ($this->getRequestParameter('save_and_list')) { return
 $this->redirect('docente/list'); } else { return
 $this->redirect('docente/edit?id='.$this->docente->getId()); } } else {
 $this->labels = $this->getLabels(); } } public function executeDelete() {
 $this->docente =
 DocentePeer::retrieveByPk($this->getRequestParameter('id'));
 $this->forward404Unless($this->docente); try {
 $this->deleteDocente($this->docente); } catch (PropelException $e) {
 $this->getRequest()->setError('delete', 'Could not delete the selected
 Docente. Make sure it does not have any associated items.'); return
 $this->forward('docente', 'list'); } return
 $this->redirect('docente/list'); } public function handleErrorEdit() {
 $this->preExecute(); $this->docente = $this->getDocenteOrCreate();
 $this->updateDocenteFromRequest(); $this->labels = $this->getLabels();
 return sfView::SUCCESS; } protected function saveDocente($docente) {
 $docente->save();

 A que se debe eso.

 Estoy ejecutando alba version 1 en windows con xammp

-- 
Ticket URL: <http://alba.pressenter.com.ar/cgi-bin/trac.cgi/ticket/286>
Pressenter - SVN Alba <http://wwww.proyectoalba.com.ar/>
Proyecto Alba - Sistema Informático Abierto de Gestión Unificada para Unidades Educacionales


Más información sobre la lista de distribución Alba-desarrollo