[Checkins] SVN: cxoracleda/trunk/ move to src directory

Bernd Dorn bernd.dorn at fhv.at
Wed Oct 11 03:28:15 EDT 2006


Log message for revision 70599:
  move to src directory

Changed:
  D   cxoracleda/trunk/COPYING
  D   cxoracleda/trunk/COPYRIGHT.txt
  D   cxoracleda/trunk/DEPENDENCIES.cfg
  D   cxoracleda/trunk/Makefile
  D   cxoracleda/trunk/README.txt
  D   cxoracleda/trunk/SETUP.cfg
  D   cxoracleda/trunk/ZopePublicLicense.txt
  D   cxoracleda/trunk/__init__.py
  D   cxoracleda/trunk/adapter.py
  D   cxoracleda/trunk/configure.zcml
  D   cxoracleda/trunk/cxoracleda-configure.zcml
  A   cxoracleda/trunk/src/
  A   cxoracleda/trunk/src/cxoracleda/
  A   cxoracleda/trunk/src/cxoracleda/COPYING
  A   cxoracleda/trunk/src/cxoracleda/COPYRIGHT.txt
  A   cxoracleda/trunk/src/cxoracleda/DEPENDENCIES.cfg
  A   cxoracleda/trunk/src/cxoracleda/Makefile
  A   cxoracleda/trunk/src/cxoracleda/README.txt
  A   cxoracleda/trunk/src/cxoracleda/SETUP.cfg
  A   cxoracleda/trunk/src/cxoracleda/ZopePublicLicense.txt
  A   cxoracleda/trunk/src/cxoracleda/__init__.py
  A   cxoracleda/trunk/src/cxoracleda/adapter.py
  A   cxoracleda/trunk/src/cxoracleda/configure.zcml
  A   cxoracleda/trunk/src/cxoracleda/cxoracleda-configure.zcml
  A   cxoracleda/trunk/src/cxoracleda/tests/
  A   cxoracleda/trunk/src/cxoracleda/version.txt
  D   cxoracleda/trunk/tests/
  D   cxoracleda/trunk/version.txt

-=-
Deleted: cxoracleda/trunk/COPYING
===================================================================
--- cxoracleda/trunk/COPYING	2006-10-11 06:15:28 UTC (rev 70598)
+++ cxoracleda/trunk/COPYING	2006-10-11 07:28:15 UTC (rev 70599)
@@ -1,5 +0,0 @@
-See:
-
- - the copyright notice in: COPYRIGHT.txt
-
- - The Zope Public License in ZopePublicLicense.txt

Deleted: cxoracleda/trunk/COPYRIGHT.txt
===================================================================
--- cxoracleda/trunk/COPYRIGHT.txt	2006-10-11 06:15:28 UTC (rev 70598)
+++ cxoracleda/trunk/COPYRIGHT.txt	2006-10-11 07:28:15 UTC (rev 70599)
@@ -1,9 +0,0 @@
-Copyright (c) 2005 Fachhochschule Vorarlberg.
-All Rights Reserved.
-
-This software is subject to the provisions of the Zope Public License,
-Version 2.1 (ZPL).  A copy of the ZPL should accompany this distribution.
-THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
-WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
-FOR A PARTICULAR PURPOSE.

Deleted: cxoracleda/trunk/DEPENDENCIES.cfg
===================================================================
--- cxoracleda/trunk/DEPENDENCIES.cfg	2006-10-11 06:15:28 UTC (rev 70598)
+++ cxoracleda/trunk/DEPENDENCIES.cfg	2006-10-11 07:28:15 UTC (rev 70599)
@@ -1,2 +0,0 @@
-cx_Oracle
-zope.app
\ No newline at end of file

Deleted: cxoracleda/trunk/Makefile
===================================================================
--- cxoracleda/trunk/Makefile	2006-10-11 06:15:28 UTC (rev 70598)
+++ cxoracleda/trunk/Makefile	2006-10-11 07:28:15 UTC (rev 70599)
@@ -1,9 +0,0 @@
-VERSION=`sed 's/\./_/g' version.txt`
-
-clean:
-	-rm `find . -type f -name "*.pyc"`
-	-rm `find . -type f -name "*.~"`
-	-rm `find . -type f -name semantic.cache`
-
-cvstag:
-	cvs rtag -RF v${VERSION} cxoracleda

Deleted: cxoracleda/trunk/README.txt
===================================================================
--- cxoracleda/trunk/README.txt	2006-10-11 06:15:28 UTC (rev 70598)
+++ cxoracleda/trunk/README.txt	2006-10-11 07:28:15 UTC (rev 70599)
@@ -1,30 +0,0 @@
-============================================
-A cx_Oracle based Database Adapter for Zope3
-============================================
-
-:Source Repository: http://svn.zope.org/cxoracleda/trunk/
-
-Note that this package does not work with Zope 2. If you are looking
-for a Zope 2 cx_Oracle based DA, you can find it at
-http://www.zope.org/Members/evrimozcelik/zxoracleda.
-
-Installation
-============
-
-1. Install the cx_Oracle python package from
-   http://sourceforge.net/projects/cx-oracle/
-
-2. Place this directory somewhere in your PYTHONPATH
-
-3. Place the file 'cxoracleda-configure.zcml' into your
-   package-includes directory of your zope instance.
-
-DSN Usage
-=========
-
-If a DSN specifies a host then it is assumed that the dbname is an
-Oracle SID and an Oracle DSN is created with this SID. (see
-cx_Oracle.makedsn)
-
-If no host is defined in the DSN, then it is assumed, that dbname is
-the name of a local TNS Entry.

Deleted: cxoracleda/trunk/SETUP.cfg
===================================================================
--- cxoracleda/trunk/SETUP.cfg	2006-10-11 06:15:28 UTC (rev 70598)
+++ cxoracleda/trunk/SETUP.cfg	2006-10-11 07:28:15 UTC (rev 70599)
@@ -1,5 +0,0 @@
-# Tell zpkg how to install the ZCML slugs.
-
-<data-files zopeskel/etc/package-includes>
-  cxoracleda-*.zcml
-</data-files>

Deleted: cxoracleda/trunk/ZopePublicLicense.txt
===================================================================
--- cxoracleda/trunk/ZopePublicLicense.txt	2006-10-11 06:15:28 UTC (rev 70598)
+++ cxoracleda/trunk/ZopePublicLicense.txt	2006-10-11 07:28:15 UTC (rev 70599)
@@ -1,54 +0,0 @@
-Zope Public License (ZPL) Version 2.1
--------------------------------------
-
-A copyright notice accompanies this license document that
-identifies the copyright holders.
-
-This license has been certified as open source. It has also
-been designated as GPL compatible by the Free Software
-Foundation (FSF).
-
-Redistribution and use in source and binary forms, with or
-without modification, are permitted provided that the
-following conditions are met:
-
-1. Redistributions in source code must retain the
-   accompanying copyright notice, this list of conditions,
-   and the following disclaimer.
-
-2. Redistributions in binary form must reproduce the accompanying
-   copyright notice, this list of conditions, and the
-   following disclaimer in the documentation and/or other
-   materials provided with the distribution.
-
-3. Names of the copyright holders must not be used to
-   endorse or promote products derived from this software
-   without prior written permission from the copyright
-   holders.
-
-4. The right to distribute this software or to use it for
-   any purpose does not give you the right to use
-   Servicemarks (sm) or Trademarks (tm) of the copyright
-   holders. Use of them is covered by separate agreement
-   with the copyright holders.
-
-5. If any files are modified, you must cause the modified
-   files to carry prominent notices stating that you changed
-   the files and the date of any change.
-
-Disclaimer
-
-  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS''
-  AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT
-  NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
-  AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN
-  NO EVENT SHALL THE COPYRIGHT HOLDERS BE
-  LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
-  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
-  LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
-  HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-  CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
-  OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
-  DAMAGE.

Deleted: cxoracleda/trunk/__init__.py
===================================================================
--- cxoracleda/trunk/__init__.py	2006-10-11 06:15:28 UTC (rev 70598)
+++ cxoracleda/trunk/__init__.py	2006-10-11 07:28:15 UTC (rev 70599)
@@ -1 +0,0 @@
-# Make directory a package

Deleted: cxoracleda/trunk/adapter.py
===================================================================
--- cxoracleda/trunk/adapter.py	2006-10-11 06:15:28 UTC (rev 70598)
+++ cxoracleda/trunk/adapter.py	2006-10-11 07:28:15 UTC (rev 70599)
@@ -1,55 +0,0 @@
-"""cx_Oracle database adapter.
-"""
-import cx_Oracle            
-from zope.app.rdb import ZopeDatabaseAdapter, parseDSN
-from datetime import datetime
-
-class UnicodeConverter(object):
-    
-    def __init__(self,encoding):
-        self.encoding=encoding
-    def __call__(self,s):
-        if s==None: return s
-        return s.decode(self.encoding)
-
-def convertDate(d):
-    if d==None: return d
-    return datetime(d.year,d.month,d.day,d.hour,d.minute,d.second,d.fsecond)
-
-class DatabaseAdapter(ZopeDatabaseAdapter):
-    """A cx_Oracle adapter for Zope3"""
-
-    threadsafety = 2
-    
-    def _connection_factory(self):
-        """Create a cx_Oracle DBI connection based on the DSN"""
-
-        conn_info = parseDSN(self.dsn)
-        
-        if conn_info['host']:
-            port = int(conn_info['port'] or 1521)
-            dsn = cx_Oracle.makedsn(conn_info['host'],
-                                    port,
-                                    conn_info['dbname'])
-        else:
-            dsn = conn_info['dbname']
-                                    
-        connection = cx_Oracle.connect(
-            conn_info['username'],
-            conn_info['password'],
-            dsn,
-            threaded=True)
- 
-        return connection
-        
-    def getConverter(self,t):
-
-        if t==cx_Oracle.STRING:
-            # TODO: check the encoding from the db
-            return UnicodeConverter('latin1')
-        elif t==cx_Oracle.Timestamp and t != datetime:
-            return convertDate
-        return super(DatabaseAdapter,self).getConverter(t)
-    
-    
-    

Deleted: cxoracleda/trunk/configure.zcml
===================================================================
--- cxoracleda/trunk/configure.zcml	2006-10-11 06:15:28 UTC (rev 70598)
+++ cxoracleda/trunk/configure.zcml	2006-10-11 07:28:15 UTC (rev 70599)
@@ -1,38 +0,0 @@
-<configure
-    xmlns="http://namespaces.zope.org/zope"
-    xmlns:browser="http://namespaces.zope.org/browser"
-    i18n_domain="cxoracleda">
-
-  <content class=".adapter.DatabaseAdapter">
-    <factory id="zope.da.cxOracleDA" />
-    <require
-        permission="zope.app.rdb.Use"
-        interface="zope.app.rdb.interfaces.IZopeDatabaseAdapter"
-        />
-    <require
-        permission="zope.ManageServices"
-        interface="zope.app.rdb.interfaces.IZopeDatabaseAdapterManagement"
-        />
-  </content>
-  
-  <browser:addform
-      name="AddcxOracleDA"
-      schema="zope.app.rdb.interfaces.IManageableZopeDatabaseAdapter"
-      label="Add cx_Oracle Database Adapter"
-      content_factory=".adapter.DatabaseAdapter"
-      arguments="dsn"
-      fields="dsn"
-      permission="zope.ManageContent"
-      />
-
-  <!-- Menu entry for "add utility" menu -->
-  <browser:addMenuItem
-      class=".adapter.DatabaseAdapter"
-      title="cx_Oracle DA"
-      description="A cx_Oracle Database Adapter"
-      permission="zope.ManageApplication"
-      view="AddcxOracleDA"
-      />
-
-</configure>
-

Deleted: cxoracleda/trunk/cxoracleda-configure.zcml
===================================================================
--- cxoracleda/trunk/cxoracleda-configure.zcml	2006-10-11 06:15:28 UTC (rev 70598)
+++ cxoracleda/trunk/cxoracleda-configure.zcml	2006-10-11 07:28:15 UTC (rev 70599)
@@ -1 +0,0 @@
-<include package="cxoracleda" />
\ No newline at end of file

Copied: cxoracleda/trunk/src/cxoracleda/COPYING (from rev 67755, cxoracleda/trunk/COPYING)

Copied: cxoracleda/trunk/src/cxoracleda/COPYRIGHT.txt (from rev 67755, cxoracleda/trunk/COPYRIGHT.txt)

Copied: cxoracleda/trunk/src/cxoracleda/DEPENDENCIES.cfg (from rev 67755, cxoracleda/trunk/DEPENDENCIES.cfg)

Copied: cxoracleda/trunk/src/cxoracleda/Makefile (from rev 67755, cxoracleda/trunk/Makefile)

Copied: cxoracleda/trunk/src/cxoracleda/README.txt (from rev 67757, cxoracleda/trunk/README.txt)

Copied: cxoracleda/trunk/src/cxoracleda/SETUP.cfg (from rev 67755, cxoracleda/trunk/SETUP.cfg)

Copied: cxoracleda/trunk/src/cxoracleda/ZopePublicLicense.txt (from rev 67755, cxoracleda/trunk/ZopePublicLicense.txt)

Copied: cxoracleda/trunk/src/cxoracleda/__init__.py (from rev 67755, cxoracleda/trunk/__init__.py)

Copied: cxoracleda/trunk/src/cxoracleda/adapter.py (from rev 67755, cxoracleda/trunk/adapter.py)

Copied: cxoracleda/trunk/src/cxoracleda/configure.zcml (from rev 67755, cxoracleda/trunk/configure.zcml)

Copied: cxoracleda/trunk/src/cxoracleda/cxoracleda-configure.zcml (from rev 67755, cxoracleda/trunk/cxoracleda-configure.zcml)

Copied: cxoracleda/trunk/src/cxoracleda/tests (from rev 67755, cxoracleda/trunk/tests)

Copied: cxoracleda/trunk/src/cxoracleda/version.txt (from rev 67755, cxoracleda/trunk/version.txt)

Deleted: cxoracleda/trunk/version.txt
===================================================================
--- cxoracleda/trunk/version.txt	2006-10-11 06:15:28 UTC (rev 70598)
+++ cxoracleda/trunk/version.txt	2006-10-11 07:28:15 UTC (rev 70599)
@@ -1 +0,0 @@
-0.1



More information about the Checkins mailing list