[Zope-Checkins] SVN: Zope/branches/tseaver-2.11-no-z2-interfaces/lib/python/ Add tests that the Z3 IWriteLock interface is present.

2008-04-27 Thread Tres Seaver
Log message for revision 85795:
  Add tests that the Z3 IWriteLock interface is present.

Changed:
  A   
Zope/branches/tseaver-2.11-no-z2-interfaces/lib/python/OFS/tests/test_DTMLDocument.py
  A   
Zope/branches/tseaver-2.11-no-z2-interfaces/lib/python/OFS/tests/test_DTMLMethod.py
  U   
Zope/branches/tseaver-2.11-no-z2-interfaces/lib/python/Products/PageTemplates/tests/testZopePageTemplate.py
  U   
Zope/branches/tseaver-2.11-no-z2-interfaces/lib/python/Products/PythonScripts/tests/testPythonScript.py
  A   
Zope/branches/tseaver-2.11-no-z2-interfaces/lib/python/Products/ZSQLMethods/tests/
  A   
Zope/branches/tseaver-2.11-no-z2-interfaces/lib/python/Products/ZSQLMethods/tests/__init__.py
  A   
Zope/branches/tseaver-2.11-no-z2-interfaces/lib/python/Products/ZSQLMethods/tests/test_SQL.py

-=-
Added: 
Zope/branches/tseaver-2.11-no-z2-interfaces/lib/python/OFS/tests/test_DTMLDocument.py
===
--- 
Zope/branches/tseaver-2.11-no-z2-interfaces/lib/python/OFS/tests/test_DTMLDocument.py
   (rev 0)
+++ 
Zope/branches/tseaver-2.11-no-z2-interfaces/lib/python/OFS/tests/test_DTMLDocument.py
   2008-04-28 02:47:37 UTC (rev 85795)
@@ -0,0 +1,24 @@
+import unittest
+
+class DTMLDocumentTests(unittest.TestCase):
+
+def _getTargetClass(self):
+from OFS.DTMLDocument import DTMLDocument
+return DTMLDocument
+
+def _makeOne(self, *args, **kw):
+return self._getTargetClass()(*args, **kw)
+
+def test_class_conforms_to_IWriteLock(self):
+from zope.interface.verify import verifyClass
+from webdav.interfaces import IWriteLock
+verifyClass(IWriteLock, self._getTargetClass())
+
+
+def test_suite():
+return unittest.TestSuite((
+unittest.makeSuite(DTMLDocumentTests),
+))
+
+if __name__ == '__main__':
+unittest.main(defaultTest='test_suite')

Added: 
Zope/branches/tseaver-2.11-no-z2-interfaces/lib/python/OFS/tests/test_DTMLMethod.py
===
--- 
Zope/branches/tseaver-2.11-no-z2-interfaces/lib/python/OFS/tests/test_DTMLMethod.py
 (rev 0)
+++ 
Zope/branches/tseaver-2.11-no-z2-interfaces/lib/python/OFS/tests/test_DTMLMethod.py
 2008-04-28 02:47:37 UTC (rev 85795)
@@ -0,0 +1,24 @@
+import unittest
+
+class DTMLMethodTests(unittest.TestCase):
+
+def _getTargetClass(self):
+from OFS.DTMLMethod import DTMLMethod
+return DTMLMethod
+
+def _makeOne(self, *args, **kw):
+return self._getTargetClass()(*args, **kw)
+
+def test_class_conforms_to_IWriteLock(self):
+from zope.interface.verify import verifyClass
+from webdav.interfaces import IWriteLock
+verifyClass(IWriteLock, self._getTargetClass())
+
+
+def test_suite():
+return unittest.TestSuite((
+unittest.makeSuite(DTMLMethodTests),
+))
+
+if __name__ == '__main__':
+unittest.main(defaultTest='test_suite')

Modified: 
Zope/branches/tseaver-2.11-no-z2-interfaces/lib/python/Products/PageTemplates/tests/testZopePageTemplate.py
===
--- 
Zope/branches/tseaver-2.11-no-z2-interfaces/lib/python/Products/PageTemplates/tests/testZopePageTemplate.py
 2008-04-28 02:00:40 UTC (rev 85794)
+++ 
Zope/branches/tseaver-2.11-no-z2-interfaces/lib/python/Products/PageTemplates/tests/testZopePageTemplate.py
 2008-04-28 02:47:37 UTC (rev 85795)
@@ -154,6 +154,11 @@
 
 class ZopePageTemplateFileTests(ZopeTestCase):
 
+def test_class_conforms_to_IWriteLock(self):
+from zope.interface.verify import verifyClass
+from webdav.interfaces import IWriteLock
+verifyClass(IWriteLock, ZopePageTemplate)
+
 def testPT_RenderWithAscii(self):
 manage_addPageTemplate(self.app, 'test', text=ascii_str, 
encoding='ascii')
 zpt = self.app['test']

Modified: 
Zope/branches/tseaver-2.11-no-z2-interfaces/lib/python/Products/PythonScripts/tests/testPythonScript.py
===
--- 
Zope/branches/tseaver-2.11-no-z2-interfaces/lib/python/Products/PythonScripts/tests/testPythonScript.py
 2008-04-28 02:00:40 UTC (rev 85794)
+++ 
Zope/branches/tseaver-2.11-no-z2-interfaces/lib/python/Products/PythonScripts/tests/testPythonScript.py
 2008-04-28 02:47:37 UTC (rev 85795)
@@ -296,11 +296,19 @@
 self.assertEqual(f(), [0])
 self._free_warning_output()
 
+class PythonScriptInterfaceConformanceTests(unittest.TestCase):
+
+def test_class_conforms_to_IWriteLock(self):
+from zope.interface.verify import verifyClass
+from webdav.interfaces import IWriteLock
+verifyClass(IWriteLock, PythonScript)
+
 def test_suite():
 suite = unittest.TestSuite()
 suite.addTest(unittest.makeSuite(TestPythonScriptNoAq))
 suite.addTest(unittest.makeSuite(TestPythonScriptErrors))
 

[Zope-dev] Zope Tests: 5 OK

2008-04-27 Thread Zope Tests Summarizer
Summary of messages to the zope-tests list.
Period Sat Apr 26 11:00:00 2008 UTC to Sun Apr 27 11:00:00 2008 UTC.
There were 5 messages: 5 from Zope Tests.


Tests passed OK
---

Subject: OK : Zope-2.8 Python-2.3.6 : Linux
From: Zope Tests
Date: Sat Apr 26 21:09:31 EDT 2008
URL: http://mail.zope.org/pipermail/zope-tests/2008-April/009465.html

Subject: OK : Zope-2.9 Python-2.4.4 : Linux
From: Zope Tests
Date: Sat Apr 26 21:11:02 EDT 2008
URL: http://mail.zope.org/pipermail/zope-tests/2008-April/009466.html

Subject: OK : Zope-2.10 Python-2.4.4 : Linux
From: Zope Tests
Date: Sat Apr 26 21:12:32 EDT 2008
URL: http://mail.zope.org/pipermail/zope-tests/2008-April/009467.html

Subject: OK : Zope-2.11 Python-2.4.4 : Linux
From: Zope Tests
Date: Sat Apr 26 21:14:02 EDT 2008
URL: http://mail.zope.org/pipermail/zope-tests/2008-April/009468.html

Subject: OK : Zope-trunk Python-2.4.4 : Linux
From: Zope Tests
Date: Sat Apr 26 21:15:32 EDT 2008
URL: http://mail.zope.org/pipermail/zope-tests/2008-April/009469.html

___
Zope-Dev maillist  -  Zope-Dev@zope.org
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] buildbot.zope.org?

2008-04-27 Thread Paul Winkler
This one looks great, thanks Christian.

Any idea what's wrong with Zope2.buildout?
Looks like Acquisition is not built properly:
http://zopebuildbot.whq.gocept.com/builders/Zope2.buildout/builds/75/steps/test/logs/stdio

On Sat, Apr 26, 2008 at 08:22:40AM +0200, Christian Theune wrote:
  Hello Paul,
 
  Theuni built a new one:
  http://zopebuildbot.whq.gocept.com/
  But it's down again...
 
 It's still what I call experimental. The availability is pretty good in
 general though, unfortunately it didn't restart when the machine cycled
 (Thursday?) and I was too lazy/busy to fix it yesterday.
 
 The restarts should go normal by now and I don't know any other condition
 that currently would wrack it.
 
 Christian
 

-- 

Paul Winkler
http://www.slinkp.com
___
Zope-Dev maillist  -  Zope-Dev@zope.org
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] Zope2 interfaces delenda est!

2008-04-27 Thread Dieter Maurer
Tres Seaver wrote at 2008-4-25 14:49 -0400:
 ...
I'd like to rip out the old Interface module from the 2.11 branch and
the trunk, along with all the useless decoys which import it.

Is it not a bit late to do this for 2.11?
2.11 is already in the beta phase



-- 
Dieter
___
Zope-Dev maillist  -  Zope-Dev@zope.org
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] buildbot.zope.org?

2008-04-27 Thread Christian Theune
On Sun, Apr 27, 2008 at 11:57:07AM -0400, Paul Winkler wrote:
 This one looks great, thanks Christian.

Thanks.

 Any idea what's wrong with Zope2.buildout?
 Looks like Acquisition is not built properly:
 http://zopebuildbot.whq.gocept.com/builders/Zope2.buildout/builds/75/steps/test/logs/stdio

No idea, the egg it has is 'Acquisition-2.11.0b1'

Christian


-- 
gocept gmbh  co. kg - forsterstrasse 29 - 06112 halle (saale) - germany
www.gocept.com - [EMAIL PROTECTED] - phone +49 345 122 9889 7 -
fax +49 345 122 9889 1 - zope and plone consulting and development
___
Zope-Dev maillist  -  Zope-Dev@zope.org
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] Re: buildbot.zope.org?

2008-04-27 Thread Hanno Schlichting

Christian Theune wrote:

On Sun, Apr 27, 2008 at 11:57:07AM -0400, Paul Winkler wrote:

Any idea what's wrong with Zope2.buildout?
Looks like Acquisition is not built properly:
http://zopebuildbot.whq.gocept.com/builders/Zope2.buildout/builds/75/steps/test/logs/stdio


No idea, the egg it has is 'Acquisition-2.11.0b1'


And that's the problem. Acquisition has changed quite a bit on Zope 
trunk and for example the aq_inContextOf method was added there, but it 
is not yet available in any released version of AQ.



So whoever maintains that particular buildout might need to update it to 
use development eggs for now.


Hanno

___
Zope-Dev maillist  -  Zope-Dev@zope.org
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] ZopeVocabularyRegistry

2008-04-27 Thread yuppie

Hi!


ZopeVocabularyRegistry allows to register vocabularies as utilities.

_clear() in zope.app.schema.vocabulary hooks it up, importing 
zope.app.schema touches zope.app.schema.vocabulary and triggers the 
'_clear' call.


Zope 2.10 did hook up ZopeVocabularyRegistry as a side effect of loading 
the deprecated vocabulary directive. 
http://svn.zope.org/?view=revrev=77097 removed the deprecated 
directive, breaking vocabulary registration.



What is the recommended way to hook up ZopeVocabularyRegistry? Importing 
zope.app.schema.vocabulary in Five's __init__.py?



Cheers,

Yuppie

___
Zope-Dev maillist  -  Zope-Dev@zope.org
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] Re: Zope2 interfaces delenda est!

2008-04-27 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Martijn Faassen wrote:
 Tres Seaver wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Wichert Akkerman wrote:
 Previously Tres Seaver wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 I'd like to rip out the old Interface module from the 2.11 branch and
 the trunk, along with all the useless decoys which import it.  THere is
 no *good* BBB reason to keep them around:  anybody still depending on
 them in A.G. 2008 needs to switch over, anyway.

 Objections?  I'll fix the CMF breakage myself, but the Plone folks are
 going to have to revisit lots of grotty bits.
 Isn't the policy to deprecate in release N and remove in N+2?
 They've been deprecated for five years.
 
 I agree that they've been deprecated for years, so that shouldn't need 
 to hold anything up. That said, the consensus seems to be to only remove 
 them from the trunk, as Zope 2.11 in a stabilization phase. Removing 
 them from the trunk means at least progress.

I have checked in the changes on a new branch, made from the 2.11 branch
as of today:

  http://svn.zope.org/Zope/branches/tseaver-2.11-no-z2-interfaces

The intent is to merge the code only to the trunk (*not* to the 2.11
branch) from here.  However, outside projects (CMF, Plone, Silva, etc.)
could begin testing against that branch to find the breakage they need
to repair.

While excising the cruft, I noted a bunch of other cleanups which would
make the code more habitable:

 - Consolidate interface definitions into the 'interfaces' module
   (or package) from current separate modules in ZCTextIndex, Sessions,
   and Transience products.

 - Clean up a bunch of crufty unit tests, again mostly in the products.

I have the merge to the trunk done in my sandbox, and will likely check
it in tomorrow unless somebody finds a timebomb.  The merge went cleanly
via:

  $ svn co $ZSVN/Zope/trunk Zope-trunk
  $ cd Zope-trunk
  $ svn merge -r 85793:85794 \
$ZSVN/Zope/branches/tseaver-2.11-no-z2-interfaces
  ...
  $ make clobber inplace
  ...
  $ /path/to/python test.py --all
  ...
  Total: 6592 tests, 0 failures, 0 errors in 26.892 seconds.



Tres.
- --
===
Tres Seaver  +1 540-429-0999  [EMAIL PROTECTED]
Palladion Software   Excellence by Designhttp://palladion.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIFTMU+gerLs4ltQ4RAsC4AKC/LxLjAolvvoWAzq8Fm0P0zRqE0gCeKmTv
oxKaezNcBTYEqBGfgPMqWes=
=eXDz
-END PGP SIGNATURE-

___
Zope-Dev maillist  -  Zope-Dev@zope.org
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] zopedown

2008-04-27 Thread Ben
robert wrote:
 I remeber a similar situation some times ago with a customer.
 them one of the apache logs grew to a size of 2gig wich was the maximum
 size apache can handle.
 it just stoped to process any request.
 deleting the log file was enough to have everything working

Thanks - it may be that this is what happened - unfortunately I cannot confirm 
because the problem was solved by someone else
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )