[Alba-desarrollo] SVN Alba r5414 - in prosistem/alba/trunk/alba:
apps/principal/config apps/principal/lib config
commits en pressenter.com.ar
commits en pressenter.com.ar
Jue Ene 17 04:38:36 CET 2008
Author: josx
Date: 2008-01-17 01:38:36 -0200 (Thu, 17 Jan 2008)
New Revision: 5414
Removed:
prosistem/alba/trunk/alba/apps/principal/lib/albaUtf8ConnectionFilter.class.php
Modified:
prosistem/alba/trunk/alba/apps/principal/config/filters.yml
prosistem/alba/trunk/alba/config/databases.yml.dist
Log:
Se saca un arreglo mediante un filtro para soportar utf8 en symfony 0.6.3 que es obsoleto. Ademas esto sirve para poder usar postgres.
Modified: prosistem/alba/trunk/alba/apps/principal/config/filters.yml
===================================================================
--- prosistem/alba/trunk/alba/apps/principal/config/filters.yml 2008-01-17 03:07:17 UTC (rev 5413)
+++ prosistem/alba/trunk/alba/apps/principal/config/filters.yml 2008-01-17 03:38:36 UTC (rev 5414)
@@ -1,14 +1,6 @@
rendering: ~
web_debug: ~
security: ~
-
-# generally, you will want to insert your own filters here
-# filtro par conectar en utf8 al servidor de bases de datos(mysql)
-
-albaUtf8ConnectionFilter:
- class: albaUtf8ConnectionFilter
- activate: on
-
cache: ~
common: ~
flash: ~
Deleted: prosistem/alba/trunk/alba/apps/principal/lib/albaUtf8ConnectionFilter.class.php
===================================================================
--- prosistem/alba/trunk/alba/apps/principal/lib/albaUtf8ConnectionFilter.class.php 2008-01-17 03:07:17 UTC (rev 5413)
+++ prosistem/alba/trunk/alba/apps/principal/lib/albaUtf8ConnectionFilter.class.php 2008-01-17 03:38:36 UTC (rev 5414)
@@ -1,50 +0,0 @@
-<?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 <josx en interorganic.com.ar>
- * @author Héctor 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 = Propel::getConnection();
- if ($con){
- $con->executeQuery("set names utf8");
- } else {
- throw new Exception($e);
- }
- $filterChain->execute();
- }
-}
-?>
Modified: prosistem/alba/trunk/alba/config/databases.yml.dist
===================================================================
--- prosistem/alba/trunk/alba/config/databases.yml.dist 2008-01-17 03:07:17 UTC (rev 5413)
+++ prosistem/alba/trunk/alba/config/databases.yml.dist 2008-01-17 03:38:36 UTC (rev 5414)
@@ -4,3 +4,4 @@
param:
dsn: mysql://USERDB:PASSDB@SERVER/DBNAME
datasource: alba
+ enconding: utf8
\ No newline at end of file
Más información sobre la lista de distribución Alba-desarrollo