[Alba-desarrollo] SVN Alba r4242 - in prosistem/alba/trunk/alba: apps/principal/config apps/principal/lib apps/principal/modules/responsable/actions data/sql

commits en pressenter.com.ar commits en pressenter.com.ar
Vie Feb 16 21:00:26 CET 2007


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.clas=
s.php
   prosistem/alba/trunk/alba/apps/principal/modules/responsable/actions/a=
ctions.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
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- 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
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- prosistem/alba/trunk/alba/apps/principal/config/filters.yml	2007-02-1=
6 18:54:02 UTC (rev 4241)
+++ prosistem/alba/trunk/alba/apps/principal/config/filters.yml	2007-02-1=
6 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 =20
\ 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)
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- 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() {
+       =20
+        $establecimientos =3D array();
+        $e =3D EstablecimientoPeer::retrieveByPk($this->getAttribute('fk=
_establecimiento_id'));
+        array_push($establecimientos,$e);   =20
+        return  $establecimientos;
+       =20
+   =20
+   =20
+    }
+
+    /**
+    * 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/albaUsuarioValidat=
or.class.php
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- prosistem/alba/trunk/alba/apps/principal/lib/albaUsuarioValidator.cla=
ss.php	2007-02-16 18:54:02 UTC (rev 4241)
+++ prosistem/alba/trunk/alba/apps/principal/lib/albaUsuarioValidator.cla=
ss.php	2007-02-16 20:00:22 UTC (rev 4242)
@@ -24,8 +24,8 @@
  * albaUsuarioValidator valida el usuario.
  *
  * @package    alba
- * @author     Jos=E9 Luis Di Biase <josx en interorganic.com.ar>
- * @author     H=E9ctor Sanchez <hsanchez en pressenter.com.ar>
+ * @author     Jos=C3=A9 Luis Di Biase <josx en interorganic.com.ar>
+ * @author     H=C3=A9ctor Sanchez <hsanchez en pressenter.com.ar>
  * @author     Fernando Toledo <ftoledo en pressenter.com.ar>
  * @version    SVN: $Id$
  * @filesource

Added: prosistem/alba/trunk/alba/apps/principal/lib/albaUtf8ConnectionFil=
ter.class.php
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- 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-1=
301  USA
+ */
+
+
+
+/**
+ * Fix para tener soporte de utf8 en symfony 0.6.3=20
+ *
+ * @package    alba
+ * @author     Jos=C3=A9 Luis Di Biase <josx en interorganic.com.ar>
+ * @author     H=C3=A9ctor Sanchez <hsanchez en pressenter.com.ar>
+ * @author     Fernando Toledo <ftoledo en pressenter.com.ar>
+ * @version    SVN: $Id$
+ * @filesource
+ * @license GPL
+ */
+
+
+
+class albaUtf8ConnectionFilter extends sfFilter
+{
+  public function execute($filterChain)
+  {
+    $con =3D 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/albaUtf=
8ConnectionFilter.class.php
___________________________________________________________________
Name: svn:keywords
   + Id Date Author Rev URL

Modified: prosistem/alba/trunk/alba/apps/principal/modules/responsable/ac=
tions/actions.class.php
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- 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 @@
        =20
     $this->responsable->setAutorizacionRetiro(isset($responsable['autori=
zacion_retiro']) ? $responsable['autorizacion_retiro'] : 0);
   }
-
+ =20
+    function executeIrCuenta() {
+        //Obtener el id de cuenta.
+ =20
+        $c =3D new Criteria();
+        $c->add(ResponsablePeer::ID, $this->getRequestParameter('id'));
+        $Resp =3D ResponsablePeer::doSelectOne($c);
+        return $this->redirect('cuenta/verCompleta?id=3D'.$Resp->getFkCu=
entaId());
+    }  =20
 } =20
=20
 ?>

Modified: prosistem/alba/trunk/alba/data/sql/actualizacion_1.0b_a_1.0rc.s=
ql
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- prosistem/alba/trunk/alba/data/sql/actualizacion_1.0b_a_1.0rc.sql	200=
7-02-16 18:54:02 UTC (rev 4241)
+++ prosistem/alba/trunk/alba/data/sql/actualizacion_1.0b_a_1.0rc.sql	200=
7-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&iacute;as del Bolet=EF=BF=BDiacute;n de Concepto',=
 'concepto', 'concepto', 84, 50, ''),
+(32, 'Definir Categor&iacute;as del Bolet&iacute;n de Concepto', 'concep=
to', 'concepto', 84, 50, ''),
 (33, 'Buscar Alumno para...', 'legajopedagogico', 'legajopedagogico', 4,=
 20, ''),
 (34, 'Tipos de entrada al legajo pedag&oacute;gico', 'legajocategoria', =
'legajocategoria', 84, 40, ''),
 (35, 'Ingresar Nuevo', 'alumno/create', 'alumno', 4, 0, ''),




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