[Zope-dev] looking for zope consultant, DC area

2003-07-28 Thread Craeg K Strong
Greetings, all:

Regular zope-dev poster here with an unusual item...
We are looking for a Zope developer in the Washington D.C. area;
US citizenship required.  Is this the right forum to post such a request?
If not, please advise.  Thanks,
--Craeg



___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] Restart button and Products dir in Zope 2.7 beta 1

2003-07-28 Thread Sidnei da Silva
On Mon, Jul 28, 2003 at 12:13:22AM -0400, Chris McDonough wrote:
| I just fixed the debug-mode switch (it was indeed broken).
| 
| I need to look into the instance home product situation a bit more.

Great! Thanks for looking into it.

-- 
Sidnei da Silva [EMAIL PROTECTED]
dreamcatching :: making your dreams come true
http://dreamcatcher.homeunix.org

Memory fault -- core...uh...um...core... Oh dammit, I forget!

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


[Zope-dev] ZopeCTL from debian sid could it be included?

2003-07-28 Thread kosh
I was chatting on irc with some people on #zope and some where interested in 
it because it does make managing many zope instances easy. You have config 
files for your instances and you can stop and start all instances from a 
single script. You can also create new instances, remove them, reset the 
access password etc. It makes it much easier to manage overall then a regular 
zope install however it still needs a little more work for some of its rough 
spots. 

I would like to see something like this as part of zope since currently zope 
is a bit of a pain to manage many instances on one machine and so lots of 
things have been developed to deal with that and having a system that is just 
part of zope to address that would help a lot from a maintenance standpoint. 
This one has the advantage of being written in python, having a simple config 
file format and it already works however any such system would be an 
improvement and I am sure debian would switch if zope gained a built in way 
to do this.

http://packages.debian.org/unstable/admin/zopectl.html

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


[Zope-dev] Functional testing of export/import?

2003-07-28 Thread Paul Winkler
I'm trying to write a functional test that verifies that an instance
of my Product works correctly after it's been exported and re-imported.
I'm stuck on how to give the test object a valid _p_oid which is needed
to do the export.

Background:
This Product is a dynamic content object for CMF. Its behavior depends on 
another CMF type instances, which it keeps a path to. So I need to ensure
that things work even when one or both objects have moved. I've got
moving  renaming handled well and now I want to test import/export.

So my test suite sets up a dummy CMF instance. I do this by swiping 
stuff from the CMFCore and CMFDefault tests; I subclass SecurityRequestTest
and then do

manage_addCMFSite(self.root, 'cmf_test_site' )
self.site = self.root.cmf_test_site

I've also got a portal folder in the site which I keep a handy 
reference to as self.fol1. 

All tests are passing, now I move on to writing the export / import tests.

Let's say the object I want to export is self.cmf_test_site.fol1.cp1.
I have a shorthand reference to this stored as self.cp1.
So I think the first thing I need to do is get the export data
like this:
data self.fol1.manage_exportObject('cp1', download=1)

... and once that works, I'll use the same data to do an import.

But the export fails. Using pdb and browsing some source I've learned 
that cp1 needs a _p_jar and _p_oid in order to be exported.  
The _p_jar I've already dealt with in my move / rename tests, by swiping
a hack from CMFCore/tests/test_portalFolder.py:

id = self.cp1.getId()

# W! must get _p_jar set
old, self.cp1._p_jar = self.cp1._p_jar, self.root._p_jar
try:
data = self.fol1.manage_exportObject(id, download=1)
finally:
self.cp1._p_jar = old

That seems to work fine. 

But now I'm stuck on _p_oid. How do I give the object a valid one?
I'm sure I can't just use the same trick and swipe the _p_oid of the app 
root :-P

I must say that using pyunit to write functional tests for zope 2 / CMF 
is a royal pain. It requires too much knowledge of implementation.
(why should i need to worry about _p_foo???)
Also I've found that if there's an error in your class' setUp(),
it can cause the test to hang and never show you a traceback.

-- 

Paul Winkler
http://www.slinkp.com


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] ZopeCTL from debian sid could it be included?

2003-07-28 Thread Chris McDonough
Hi kosh,

We discussed this a bit on the zope-dev list
(http://aspn.activestate.com/ASPN/Mail/Message/1677044).  The result was
that Luca will likely update his zope controller for 2.7 and it will be
available for debian, but it will not be included in Zope.  It's a nifty
system, but it is a bit too platform-specific for general use.

- C


On Mon, 2003-07-28 at 12:25, kosh wrote:
 I was chatting on irc with some people on #zope and some where interested in 
 it because it does make managing many zope instances easy. You have config 
 files for your instances and you can stop and start all instances from a 
 single script. You can also create new instances, remove them, reset the 
 access password etc. It makes it much easier to manage overall then a regular 
 zope install however it still needs a little more work for some of its rough 
 spots. 
 
 I would like to see something like this as part of zope since currently zope 
 is a bit of a pain to manage many instances on one machine and so lots of 
 things have been developed to deal with that and having a system that is just 
 part of zope to address that would help a lot from a maintenance standpoint. 
 This one has the advantage of being written in python, having a simple config 
 file format and it already works however any such system would be an 
 improvement and I am sure debian would switch if zope gained a built in way 
 to do this.
 
 http://packages.debian.org/unstable/admin/zopectl.html
 
 ___
 Zope-Dev maillist  -  [EMAIL PROTECTED]
 http://mail.zope.org/mailman/listinfo/zope-dev
 **  No cross posts or HTML encoding!  **
 (Related lists - 
  http://mail.zope.org/mailman/listinfo/zope-announce
  http://mail.zope.org/mailman/listinfo/zope )
-- 
Chris McDonough [EMAIL PROTECTED]


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] Functional testing of export/import?

2003-07-28 Thread Casey Duncan
You can usually commit a subtransaction to get a _p_jar and oid (I think) set. 
You can still abort this at the end of the test to clean up.

hth,

-Casey

On Monday 28 July 2003 12:39 pm, Paul Winkler wrote:
 I'm trying to write a functional test that verifies that an instance
 of my Product works correctly after it's been exported and re-imported.
 I'm stuck on how to give the test object a valid _p_oid which is needed
 to do the export.
 
 Background:
 This Product is a dynamic content object for CMF. Its behavior depends on 
 another CMF type instances, which it keeps a path to. So I need to ensure
 that things work even when one or both objects have moved. I've got
 moving  renaming handled well and now I want to test import/export.
 
 So my test suite sets up a dummy CMF instance. I do this by swiping 
 stuff from the CMFCore and CMFDefault tests; I subclass SecurityRequestTest
 and then do
 
 manage_addCMFSite(self.root, 'cmf_test_site' )
 self.site = self.root.cmf_test_site
 
 I've also got a portal folder in the site which I keep a handy 
 reference to as self.fol1. 
 
 All tests are passing, now I move on to writing the export / import tests.
 
 Let's say the object I want to export is self.cmf_test_site.fol1.cp1.
 I have a shorthand reference to this stored as self.cp1.
 So I think the first thing I need to do is get the export data
 like this:
 data self.fol1.manage_exportObject('cp1', download=1)
 
 ... and once that works, I'll use the same data to do an import.
 
 But the export fails. Using pdb and browsing some source I've learned 
 that cp1 needs a _p_jar and _p_oid in order to be exported.  
 The _p_jar I've already dealt with in my move / rename tests, by swiping
 a hack from CMFCore/tests/test_portalFolder.py:
 
 id = self.cp1.getId()
 
 # W! must get _p_jar set
 old, self.cp1._p_jar = self.cp1._p_jar, self.root._p_jar
 try:
 data = self.fol1.manage_exportObject(id, download=1)
 finally:
 self.cp1._p_jar = old
 
 That seems to work fine. 
 
 But now I'm stuck on _p_oid. How do I give the object a valid one?
 I'm sure I can't just use the same trick and swipe the _p_oid of the app 
 root :-P
 
 I must say that using pyunit to write functional tests for zope 2 / CMF 
 is a royal pain. It requires too much knowledge of implementation.
 (why should i need to worry about _p_foo???)
 Also I've found that if there's an error in your class' setUp(),
 it can cause the test to hang and never show you a traceback.
 
 -- 
 
 Paul Winkler
 http://www.slinkp.com
 
 
 ___
 Zope-Dev maillist  -  [EMAIL PROTECTED]
 http://mail.zope.org/mailman/listinfo/zope-dev
 **  No cross posts or HTML encoding!  **
 (Related lists - 
  http://mail.zope.org/mailman/listinfo/zope-announce
  http://mail.zope.org/mailman/listinfo/zope )
 


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


[Zope-dev] hanging unittests, was: Functional testing of export/import?

2003-07-28 Thread Clemens Robbenhaar

 ... just a random remark:

 [...]
  Also I've found that if there's an error in your class' setUp(),
  it can cause the test to hang and never show you a traceback.

 I have run into a similar problem; this seems to be caused by the 
(usually reasonable) behaviour of the pyunit not to call the tearDown
method of a test faiming in setUp.

 Unfortunately in the context of unittesting Zope this results in a
pending connection if the connection happends after the
get_transaction().begin(). After few tests, all availabe connections
seems to be busy and the test hang.

 I have been able to fix this for my local tests by surrounding
the code in the setUp with an 'try: ... excecpt: block, where the
except: block aborts the transaction before reraising the exception. 

 This fixes the issue with the hang; one gets plain tracebacks telling
what went wrong in the setUp.
 Looking at the more sophisticated structure of the CMF-tests this may
be a bit tricky to apply this patch there.

Cheers,
Clemens


 

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


[Zope-dev] HP-UX 11.11: Python, Zope and ZMySQLDA binaries wanted for PA-RISC-Server

2003-07-28 Thread Marcel Luethi
Hi Zopistas!

I'm developing for a big customer in the airline business a Zope-based web
application. This application needs (customer's wish) to be implemented on a
HP-UX 11.11 PA-RISC server (modell: RP5470 with up to four PA-8600/PA-8700
processors).

Unfortunately we were not able to compile neither Python 2.1 nor Zope 2.6.1
with HP's C-Compiler (ZMySQLDA we didn't try afterwards).

Is there anybody out there which could send me the binaries for HP-UX 11.11
of:
- Python 2.1
- Zope 2.6.1
- MySQLDA (best would be 2.0.8)

Thank you very much in advance!
Best regards,
Marcel

PS
Sorry fort he cross-posting. 
On [EMAIL PROTECTED] I had only one no feedback... :-(




___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )