[Erp5-report] r34471 luke - /erp5/trunk/utils/erp5.recipe.mysqldatabase/src/erp5/recipe/mys...
nobody at svn.erp5.org
nobody at svn.erp5.org
Mon Apr 12 16:32:31 CEST 2010
Author: luke
Date: Mon Apr 12 16:32:30 2010
New Revision: 34471
URL: http://svn.erp5.org?rev=34471&view=rev
Log:
- MySQLdb is hard dependency
Modified:
erp5/trunk/utils/erp5.recipe.mysqldatabase/src/erp5/recipe/mysqldatabase/__init__.py
Modified: erp5/trunk/utils/erp5.recipe.mysqldatabase/src/erp5/recipe/mysqldatabase/__init__.py
URL: http://svn.erp5.org/erp5/trunk/utils/erp5.recipe.mysqldatabase/src/erp5/recipe/mysqldatabase/__init__.py?rev=34471&r1=34470&r2=34471&view=diff
==============================================================================
--- erp5/trunk/utils/erp5.recipe.mysqldatabase/src/erp5/recipe/mysqldatabase/__init__.py [utf8] (original)
+++ erp5/trunk/utils/erp5.recipe.mysqldatabase/src/erp5/recipe/mysqldatabase/__init__.py [utf8] Mon Apr 12 16:32:30 2010
@@ -15,6 +15,7 @@
import os
import logging
+import MySQLdb
import zc.buildout
@@ -38,11 +39,6 @@
options = self.options
location = options['location']
- try:
- import MySQLdb
- except ImportError:
- raise ImportError('To be able to create database MySQLdb is required'
- ' Install system wide or use software generated python')
database_name, user, password, port, host\
= \
options.get('mysql_database_name'), \
More information about the Erp5-report
mailing list