Re: [Zope3-dev] initial checkin of cxoracleda

2005-11-12 Thread Stephan Richter
On Thursday 20 October 2005 11:19, Bernd Dorn wrote:
 in my testcase http://svn.zope.org/cxoracleda/trunk/tests/
 test_adapter.py?rev=39515view=auto

You need to bug Jim, so that this directory is part of the Zope3-Checkins 
mailing list. ;-)

 i  need to somehow get the connection information from a property  
 file, is this the right way to do this

 i do this like this::

 import os
 propFile = os.path.join(os.environ.get('HOME'),etc/zope/cxoracleda/
 testproperties.py)

 try:
      execfile(propFile)
 except:
      raise Local property file not found,propFile

 this is a problem i think for automated tests etc.

 any sugestions ?

This is a problem. It would be easier if you add a sample configuration file 
in your test directory, e.g. cxoracle/tests/configfile.py and then reference 
it as follows in your test:

  import os
  dir = os.path.dirname(__file__)
  config = os.path.join(dir, 'configfile.py')

Regards,
Stephan
-- 
Stephan Richter
CBU Physics  Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



Re: [Zope3-dev] initial checkin of cxoracleda

2005-10-20 Thread Stephan Richter
On Wednesday 19 October 2005 16:26, Bernd Dorn wrote:
 For anyone who is interested in connecting zope3 to oracle

 I checked in an Oracle DB Adapter to the zope repository which is  
 using the cx_oracle library http://www.computronix.com/
 utilities.shtml#Oracle

Cool, thanks.

 it is tested against 3.0 and 3.1 versions of zope

 see: http://svn.zope.org/cxoracleda/

Could someone with the correct permissions add this project to the 
zope3-checkins mailing list?

Regards,
Stephan
-- 
Stephan Richter
CBU Physics  Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



Re: [Zope3-dev] initial checkin of cxoracleda

2005-10-20 Thread Stephan Richter
On Wednesday 19 October 2005 16:26, Bernd Dorn wrote:
 it is tested against 3.0 and 3.1 versions of zope

 see: http://svn.zope.org/cxoracleda/

Note that if you create a SETUP.cfg file, the ZCML slug, i.e. 
cxoracleda-configure.zcml, is automatically installed in the package-includes 
directory. This is the recommended way of doing things these days.

Eventually, you should also use zpkgtools to create your package, of 
course. ;-)

Regards,
Stephan 
-- 
Stephan Richter
CBU Physics  Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



Re: [Zope3-dev] initial checkin of cxoracleda

2005-10-20 Thread Bernd Dorn


On 20.10.2005, at 14:13, Stephan Richter wrote:


On Wednesday 19 October 2005 16:26, Bernd Dorn wrote:


it is tested against 3.0 and 3.1 versions of zope

see: http://svn.zope.org/cxoracleda/



Note that if you create a SETUP.cfg file, the ZCML slug, i.e.
cxoracleda-configure.zcml, is automatically installed in the  
package-includes

directory. This is the recommended way of doing things these days.

Eventually, you should also use zpkgtools to create your package, of
course. ;-)


hi stphan,

 that's actually the next step i wanted to do, but i have to look at  
the zpgk stuff before


another question:

in my testcase http://svn.zope.org/cxoracleda/trunk/tests/ 
test_adapter.py?rev=39515view=auto


i  need to somehow get the connection information from a property  
file, is this the right way to do this


i do this like this::

import os
propFile = os.path.join(os.environ.get('HOME'),etc/zope/cxoracleda/ 
testproperties.py)


try:
execfile(propFile)
except:
raise Local property file not found,propFile

this is a problem i think for automated tests etc.

any sugestions ?

thx, bernd


Regards,
Stephan
--
Stephan Richter
CBU Physics  Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training



___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



[Zope3-dev] initial checkin of cxoracleda

2005-10-19 Thread Bernd Dorn

For anyone who is interested in connecting zope3 to oracle

I checked in an Oracle DB Adapter to the zope repository which is  
using the cx_oracle library http://www.computronix.com/ 
utilities.shtml#Oracle


it is tested against 3.0 and 3.1 versions of zope

see: http://svn.zope.org/cxoracleda/

Any feedback is welcome ...

Best Regards, Bernd



___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com