SVN Alba r4242 - in prosistem/alba/trunk/alba: apps/principal/config apps/principal/lib apps/principal/modules/responsable/actions data/sql
Author: ftoledo Date: 2007-02-16 17:00:22 -0300 (Fri, 16 Feb 2007) New Revision: 4242 Added: prosistem/alba/trunk/alba/apps/principal/lib/albaUser.class.php prosistem/alba/trunk/alba/apps/principal/lib/albaUtf8ConnectionFilter.class.php Modified: prosistem/alba/trunk/alba/apps/principal/config/factories.yml prosistem/alba/trunk/alba/apps/principal/config/filters.yml prosistem/alba/trunk/alba/apps/principal/lib/albaUsuarioValidator.class.php prosistem/alba/trunk/alba/apps/principal/modules/responsable/actions/actions.class.php prosistem/alba/trunk/alba/data/sql/actualizacion_1.0b_a_1.0rc.sql Log: mas unicode Modified: prosistem/alba/trunk/alba/apps/principal/config/factories.yml =================================================================== --- prosistem/alba/trunk/alba/apps/principal/config/factories.yml 2007-02-16 18:54:02 UTC (rev 4241) +++ prosistem/alba/trunk/alba/apps/principal/config/factories.yml 2007-02-16 20:00:22 UTC (rev 4242) @@ -16,7 +16,7 @@ # class: myWebRequest # user: - class: myUser + class: albaUser # # storage: # class: sfSessionStorage Modified: prosistem/alba/trunk/alba/apps/principal/config/filters.yml =================================================================== --- prosistem/alba/trunk/alba/apps/principal/config/filters.yml 2007-02-16 18:54:02 UTC (rev 4241) +++ prosistem/alba/trunk/alba/apps/principal/config/filters.yml 2007-02-16 20:00:22 UTC (rev 4242) @@ -0,0 +1,5 @@ +# filtro par conectar en utf8 al servidor de bases de datos(mysql) + +albaUtf8ConnectionFilter: + class: albaUtf8ConnectionFilter + activate: on \ No newline at end of file Copied: prosistem/alba/trunk/alba/apps/principal/lib/albaUser.class.php (from rev 4184, prosistem/alba/trunk/alba/apps/principal/lib/myUser.class.php) =================================================================== --- prosistem/alba/trunk/alba/apps/principal/lib/myUser.class.php 2007-02-12 21:00:45 UTC (rev 4184) +++ prosistem/alba/trunk/alba/apps/principal/lib/albaUser.class.php 2007-02-16 20:00:22 UTC (rev 4242) @@ -0,0 +1,31 @@ +<?php + +class albaUser extends sfBasicSecurityUser +{ + public function getEstablecimientos() { + + $establecimientos = array(); + $e = EstablecimientoPeer::retrieveByPk($this->getAttribute('fk_establecimiento_id')); + array_push($establecimientos,$e); + return $establecimientos; + + + + } + + /** + * obtiene el tema del la interfaz del usuario + */ + public function getTheme() { + return $this->getAttribute('theme'); + } + + /** + * Asigna un tema al usuario + */ + public function setTheme($theme) { + $this->setAttribute('theme',$theme); + } +} + +?> \ No newline at end of file Modified: prosistem/alba/trunk/alba/apps/principal/lib/albaUsuarioValidator.class.php =================================================================== --- prosistem/alba/trunk/alba/apps/principal/lib/albaUsuarioValidator.class.php 2007-02-16 18:54:02 UTC (rev 4241) +++ prosistem/alba/trunk/alba/apps/principal/lib/albaUsuarioValidator.class.php 2007-02-16 20:00:22 UTC (rev 4242) @@ -24,8 +24,8 @@ * albaUsuarioValidator valida el usuario. * * @package alba - * @author Jos� Luis Di Biase <[email protected]> - * @author H�ctor Sanchez <[email protected]> + * @author José Luis Di Biase <[email protected]> + * @author Héctor Sanchez <[email protected]> * @author Fernando Toledo <[email protected]> * @version SVN: $Id$ * @filesource Added: prosistem/alba/trunk/alba/apps/principal/lib/albaUtf8ConnectionFilter.class.php =================================================================== --- prosistem/alba/trunk/alba/apps/principal/lib/albaUtf8ConnectionFilter.class.php 2007-02-16 18:54:02 UTC (rev 4241) +++ prosistem/alba/trunk/alba/apps/principal/lib/albaUtf8ConnectionFilter.class.php 2007-02-16 20:00:22 UTC (rev 4242) @@ -0,0 +1,50 @@ +<?php + +/** + * This file is part of Alba. + * + * Alba is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * Alba is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Alba; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ + + + +/** + * Fix para tener soporte de utf8 en symfony 0.6.3 + * + * @package alba + * @author José Luis Di Biase <[email protected]> + * @author Héctor Sanchez <[email protected]> + * @author Fernando Toledo <[email protected]> + * @version SVN: $Id$ + * @filesource + * @license GPL + */ + + + +class albaUtf8ConnectionFilter extends sfFilter +{ + public function execute($filterChain) + { + $con = Propel::getConnection(); + if ($con){ + $con->executeQuery("set names utf8"); + } else { + throw new Exception($e); + } + $filterChain->execute(); + } +} +?> Property changes on: prosistem/alba/trunk/alba/apps/principal/lib/albaUtf8ConnectionFilter.class.php ___________________________________________________________________ Name: svn:keywords + Id Date Author Rev URL Modified: prosistem/alba/trunk/alba/apps/principal/modules/responsable/actions/actions.class.php =================================================================== --- prosistem/alba/trunk/alba/apps/principal/modules/responsable/actions/actions.class.php 2007-02-16 18:54:02 UTC (rev 4241) +++ prosistem/alba/trunk/alba/apps/principal/modules/responsable/actions/actions.class.php 2007-02-16 20:00:22 UTC (rev 4242) @@ -146,7 +146,15 @@ $this->responsable->setAutorizacionRetiro(isset($responsable['autorizacion_retiro']) ? $responsable['autorizacion_retiro'] : 0); } - + + function executeIrCuenta() { + //Obtener el id de cuenta. + + $c = new Criteria(); + $c->add(ResponsablePeer::ID, $this->getRequestParameter('id')); + $Resp = ResponsablePeer::doSelectOne($c); + return $this->redirect('cuenta/verCompleta?id='.$Resp->getFkCuentaId()); + } } ?> Modified: prosistem/alba/trunk/alba/data/sql/actualizacion_1.0b_a_1.0rc.sql =================================================================== --- prosistem/alba/trunk/alba/data/sql/actualizacion_1.0b_a_1.0rc.sql 2007-02-16 18:54:02 UTC (rev 4241) +++ prosistem/alba/trunk/alba/data/sql/actualizacion_1.0b_a_1.0rc.sql 2007-02-16 20:00:22 UTC (rev 4242) @@ -46,7 +46,7 @@ (29, '-', '#', '', 10, 50, ''), (30, 'Salir', 'seguridad/logout', '', 1, 90, ''), (31, 'Definir Escala de notas', 'escalanota', 'escalanota', 84, 30, ''), -(32, 'Definir Categorías del Bolet�iacute;n de Concepto', 'concepto', 'concepto', 84, 50, ''), +(32, 'Definir Categorías del Boletín de Concepto', 'concepto', 'concepto', 84, 50, ''), (33, 'Buscar Alumno para...', 'legajopedagogico', 'legajopedagogico', 4, 20, ''), (34, 'Tipos de entrada al legajo pedagógico', 'legajocategoria', 'legajocategoria', 84, 40, ''), (35, 'Ingresar Nuevo', 'alumno/create', 'alumno', 4, 0, ''),
participants (1)
-
commits@pressenter.com.ar