[Zope-Checkins] SVN: Products.Five/branches/1.5/ - removed unused imports

2006-11-22 Thread Yvo Schubbe
Log message for revision 71269:
  - removed unused imports

Changed:
  U   Products.Five/branches/1.5/__init__.py
  U   Products.Five/branches/1.5/browser/resource.py
  U   Products.Five/branches/1.5/component/tests.py
  U   Products.Five/branches/1.5/fiveconfigure.py
  U   Products.Five/branches/1.5/form/__init__.py
  U   Products.Five/branches/1.5/form/metaconfigure.py
  U   Products.Five/branches/1.5/form/objectwidget.py
  U   Products.Five/branches/1.5/formlib/tests/view.py
  U   Products.Five/branches/1.5/security.py
  U   Products.Five/branches/1.5/site/localsite.py
  U   Products.Five/branches/1.5/site/metaconfigure.py
  U   Products.Five/branches/1.5/site/tests/test_functional.py
  U   Products.Five/branches/1.5/site/tests/test_localsite.py
  U   Products.Five/branches/1.5/site/tests/test_utility.py
  U   Products.Five/branches/1.5/tests/testing/__init__.py
  U   Products.Five/branches/1.5/viewlet/metaconfigure.py
  U   Products.Five/branches/1.5/viewlet/viewlet.py

-=-
Modified: Products.Five/branches/1.5/__init__.py
===
--- Products.Five/branches/1.5/__init__.py  2006-11-22 12:21:47 UTC (rev 
71268)
+++ Products.Five/branches/1.5/__init__.py  2006-11-22 13:37:06 UTC (rev 
71269)
@@ -15,9 +15,6 @@
 
 $Id$
 
-import Acquisition
-from Globals import INSTANCE_HOME
-
 from Products.Five import zcml
 
 # public API provided by Five

Modified: Products.Five/branches/1.5/browser/resource.py
===
--- Products.Five/branches/1.5/browser/resource.py  2006-11-22 12:21:47 UTC 
(rev 71268)
+++ Products.Five/branches/1.5/browser/resource.py  2006-11-22 13:37:06 UTC 
(rev 71269)
@@ -19,20 +19,16 @@
 import urllib
 
 import Acquisition
-from ComputedAttribute import ComputedAttribute
 from OFS.Traversable import Traversable as OFSTraversable
-
+from zope.app.publisher.browser.resources import empty
+from zope.app.publisher.fileresource import File, Image
+from zope.app.publisher.pagetemplateresource import PageTemplate
 from zope.interface import implements
 from zope.component import getMultiAdapter
 from zope.component.interfaces import IResource
-from zope.publisher.interfaces.browser import IBrowserPublisher
-from zope.traversing.browser.interfaces import IAbsoluteURL
 from zope.datetime import time as timeFromDateTimeString
+from zope.traversing.browser.interfaces import IAbsoluteURL
 
-from zope.app.publisher.fileresource import File, Image
-from zope.app.publisher.pagetemplateresource import PageTemplate
-from zope.app.publisher.browser.resources import empty
-
 from Products.Five.browser import BrowserView
 
 _marker = []

Modified: Products.Five/branches/1.5/component/tests.py
===
--- Products.Five/branches/1.5/component/tests.py   2006-11-22 12:21:47 UTC 
(rev 71268)
+++ Products.Five/branches/1.5/component/tests.py   2006-11-22 13:37:06 UTC 
(rev 71269)
@@ -16,7 +16,7 @@
 $Id$
 
 import unittest
-from zope.testing.doctestunit import DocFileSuite, DocTestSuite
+from zope.testing.doctestunit import DocFileSuite
 from Testing.ZopeTestCase import FunctionalDocFileSuite
 
 __docformat__ = reStructuredText

Modified: Products.Five/branches/1.5/fiveconfigure.py
===
--- Products.Five/branches/1.5/fiveconfigure.py 2006-11-22 12:21:47 UTC (rev 
71268)
+++ Products.Five/branches/1.5/fiveconfigure.py 2006-11-22 13:37:06 UTC (rev 
71269)
@@ -18,7 +18,6 @@
 $Id$
 
 import os
-import sys
 import glob
 import warnings
 import logging
@@ -29,11 +28,9 @@
 import Products
 import Zope2
 
-from zope.interface import classImplements, classImplementsOnly, implementedBy
-from zope.interface.interface import InterfaceClass
+from zope.interface import classImplements, implementedBy
 from zope.component import getUtility
 from zope.component.interface import provideInterface
-from zope.component.zcml import adapter
 from zope.configuration import xmlconfig
 from zope.configuration.exceptions import ConfigurationError
 from zope.publisher.interfaces.browser import IDefaultBrowserLayer

Modified: Products.Five/branches/1.5/form/__init__.py
===
--- Products.Five/branches/1.5/form/__init__.py 2006-11-22 12:21:47 UTC (rev 
71268)
+++ Products.Five/branches/1.5/form/__init__.py 2006-11-22 13:37:06 UTC (rev 
71269)
@@ -18,7 +18,6 @@
 import sys
 from datetime import datetime
 
-import Acquisition
 import transaction
 from zope.event import notify
 from zope.lifecycleevent import ObjectCreatedEvent, ObjectModifiedEvent
@@ -29,11 +28,11 @@
 from zope.i18nmessageid import MessageFactory
 _ = MessageFactory('zope')
 
-from zope.app.form.utility import setUpEditWidgets, applyWidgetsChanges
 from zope.app.form.browser.submit import Update
-from zope.app.form.interfaces import WidgetsError, 

[Zope-Checkins] SVN: Products.Five/trunk/ - removed unused imports

2006-11-22 Thread Yvo Schubbe
Log message for revision 71270:
  - removed unused imports

Changed:
  U   Products.Five/trunk/__init__.py
  U   Products.Five/trunk/browser/resource.py
  U   Products.Five/trunk/component/tests.py
  U   Products.Five/trunk/fiveconfigure.py
  U   Products.Five/trunk/form/__init__.py
  U   Products.Five/trunk/form/metaconfigure.py
  U   Products.Five/trunk/form/objectwidget.py
  U   Products.Five/trunk/formlib/tests/view.py
  U   Products.Five/trunk/security.py
  U   Products.Five/trunk/site/localsite.py
  U   Products.Five/trunk/site/metaconfigure.py
  U   Products.Five/trunk/site/tests/test_functional.py
  U   Products.Five/trunk/site/tests/test_localsite.py
  U   Products.Five/trunk/site/tests/test_utility.py
  U   Products.Five/trunk/tests/testing/__init__.py
  U   Products.Five/trunk/viewlet/metaconfigure.py
  U   Products.Five/trunk/viewlet/viewlet.py

-=-
Modified: Products.Five/trunk/__init__.py
===
--- Products.Five/trunk/__init__.py 2006-11-22 13:37:06 UTC (rev 71269)
+++ Products.Five/trunk/__init__.py 2006-11-22 13:37:52 UTC (rev 71270)
@@ -15,9 +15,6 @@
 
 $Id$
 
-import Acquisition
-from Globals import INSTANCE_HOME
-
 from Products.Five import zcml
 
 # public API provided by Five

Modified: Products.Five/trunk/browser/resource.py
===
--- Products.Five/trunk/browser/resource.py 2006-11-22 13:37:06 UTC (rev 
71269)
+++ Products.Five/trunk/browser/resource.py 2006-11-22 13:37:52 UTC (rev 
71270)
@@ -19,20 +19,16 @@
 import urllib
 
 import Acquisition
-from ComputedAttribute import ComputedAttribute
 from OFS.Traversable import Traversable as OFSTraversable
-
+from zope.app.publisher.browser.resources import empty
+from zope.app.publisher.fileresource import File, Image
+from zope.app.publisher.pagetemplateresource import PageTemplate
 from zope.interface import implements
 from zope.component import getMultiAdapter
 from zope.component.interfaces import IResource
-from zope.publisher.interfaces.browser import IBrowserPublisher
-from zope.traversing.browser.interfaces import IAbsoluteURL
 from zope.datetime import time as timeFromDateTimeString
+from zope.traversing.browser.interfaces import IAbsoluteURL
 
-from zope.app.publisher.fileresource import File, Image
-from zope.app.publisher.pagetemplateresource import PageTemplate
-from zope.app.publisher.browser.resources import empty
-
 from Products.Five.browser import BrowserView
 
 _marker = []

Modified: Products.Five/trunk/component/tests.py
===
--- Products.Five/trunk/component/tests.py  2006-11-22 13:37:06 UTC (rev 
71269)
+++ Products.Five/trunk/component/tests.py  2006-11-22 13:37:52 UTC (rev 
71270)
@@ -16,7 +16,7 @@
 $Id$
 
 import unittest
-from zope.testing.doctestunit import DocFileSuite, DocTestSuite
+from zope.testing.doctestunit import DocFileSuite
 from Testing.ZopeTestCase import FunctionalDocFileSuite
 
 __docformat__ = reStructuredText

Modified: Products.Five/trunk/fiveconfigure.py
===
--- Products.Five/trunk/fiveconfigure.py2006-11-22 13:37:06 UTC (rev 
71269)
+++ Products.Five/trunk/fiveconfigure.py2006-11-22 13:37:52 UTC (rev 
71270)
@@ -18,7 +18,6 @@
 $Id$
 
 import os
-import sys
 import glob
 import warnings
 import logging
@@ -29,11 +28,9 @@
 import Products
 import Zope2
 
-from zope.interface import classImplements, classImplementsOnly, implementedBy
-from zope.interface.interface import InterfaceClass
+from zope.interface import classImplements, implementedBy
 from zope.component import getUtility
 from zope.component.interface import provideInterface
-from zope.component.zcml import adapter
 from zope.configuration import xmlconfig
 from zope.configuration.exceptions import ConfigurationError
 from zope.publisher.interfaces.browser import IDefaultBrowserLayer

Modified: Products.Five/trunk/form/__init__.py
===
--- Products.Five/trunk/form/__init__.py2006-11-22 13:37:06 UTC (rev 
71269)
+++ Products.Five/trunk/form/__init__.py2006-11-22 13:37:52 UTC (rev 
71270)
@@ -18,7 +18,6 @@
 import sys
 from datetime import datetime
 
-import Acquisition
 import transaction
 from zope.event import notify
 from zope.lifecycleevent import ObjectCreatedEvent, ObjectModifiedEvent
@@ -29,11 +28,11 @@
 from zope.i18nmessageid import MessageFactory
 _ = MessageFactory('zope')
 
-from zope.app.form.utility import setUpEditWidgets, applyWidgetsChanges
 from zope.app.form.browser.submit import Update
-from zope.app.form.interfaces import WidgetsError, MissingInputError
+from zope.app.form.interfaces import IInputWidget
+from zope.app.form.interfaces import WidgetsError
+from zope.app.form.utility import setUpEditWidgets, applyWidgetsChanges
 from 

[Zope-Checkins] SVN: Zope/branches/2.9/inst/Makefile.in make instance now executes also the 'version_txt' target

2006-11-22 Thread Andreas Jung
Log message for revision 71272:
  make instance now executes also the 'version_txt' target
  

Changed:
  U   Zope/branches/2.9/inst/Makefile.in

-=-
Modified: Zope/branches/2.9/inst/Makefile.in
===
--- Zope/branches/2.9/inst/Makefile.in  2006-11-22 15:59:48 UTC (rev 71271)
+++ Zope/branches/2.9/inst/Makefile.in  2006-11-22 16:41:02 UTC (rev 71272)
@@ -81,7 +81,7 @@
 
 # instance:Do an inplace build and create an instance home in the resulting
 #  software home.
-instance: build
+instance: build version_txt
${PYTHON} ${BASE_DIR}/utilities/mkzopeinstance.py ${MKZ_FLAGS}
 
 # testinst:Perform an inplace build and create an instance home in the

___
Zope-Checkins maillist  -  Zope-Checkins@zope.org
http://mail.zope.org/mailman/listinfo/zope-checkins


[Zope-Checkins] SVN: Zope/branches/2.10/inst/Makefile.in make instance also invokes make version_txt

2006-11-22 Thread Andreas Jung
Log message for revision 71273:
  make instance also invokes make version_txt
  

Changed:
  U   Zope/branches/2.10/inst/Makefile.in

-=-
Modified: Zope/branches/2.10/inst/Makefile.in
===
--- Zope/branches/2.10/inst/Makefile.in 2006-11-22 16:41:02 UTC (rev 71272)
+++ Zope/branches/2.10/inst/Makefile.in 2006-11-22 16:41:50 UTC (rev 71273)
@@ -81,7 +81,7 @@
 
 # instance:Do an inplace build and create an instance home in the resulting
 #  software home.
-instance: build
+instance: build version_txt
${PYTHON} ${BASE_DIR}/utilities/mkzopeinstance.py ${MKZ_FLAGS}
 
 # testinst:Perform an inplace build and create an instance home in the

___
Zope-Checkins maillist  -  Zope-Checkins@zope.org
http://mail.zope.org/mailman/listinfo/zope-checkins


[Zope-Checkins] SVN: Zope/branches/2.10/inst/Makefile.in create lib/python/Zope2/version.txt instead of lib/python/version.txcreate lib/python/Zope2/version.txt instead of lib/python/version.txtt

2006-11-22 Thread Andreas Jung
Log message for revision 71276:
  create lib/python/Zope2/version.txt instead of lib/python/version.txcreate 
lib/python/Zope2/version.txt instead of lib/python/version.txtt
  

Changed:
  U   Zope/branches/2.10/inst/Makefile.in

-=-
Modified: Zope/branches/2.10/inst/Makefile.in
===
--- Zope/branches/2.10/inst/Makefile.in 2006-11-22 18:00:34 UTC (rev 71275)
+++ Zope/branches/2.10/inst/Makefile.in 2006-11-22 18:18:27 UTC (rev 71276)
@@ -110,7 +110,7 @@
 # version_txt: create a version file in lib/python/version.txt
 version_txt:
printf Zope ${MAJOR_VERSION}.${MINOR_VERSION}-${RELEASE_TAG} \
-  ${BASE_DIR}/lib/python/version.txt
+  ${BASE_DIR}/lib/python/Zope2/version.txt
 
 sdist: clobber sdist_tgz
 

___
Zope-Checkins maillist  -  Zope-Checkins@zope.org
http://mail.zope.org/mailman/listinfo/zope-checkins


[Zope-dev] Zope Tests: 8 OK, 1 Failed

2006-11-22 Thread Zope Tests Summarizer
Summary of messages to the zope-tests list.
Period Tue Nov 21 12:00:00 2006 UTC to Wed Nov 22 12:00:00 2006 UTC.
There were 9 messages: 9 from Zope Unit Tests.


Test failures
-

Subject: FAILED (failures=2) : Zope-2.8 Python-2.4.4 : Linux
From: Zope Unit Tests
Date: Tue Nov 21 21:33:13 EST 2006
URL: http://mail.zope.org/pipermail/zope-tests/2006-November/006634.html


Tests passed OK
---

Subject: OK : Zope-2.6 Python-2.1.3 : Linux
From: Zope Unit Tests
Date: Tue Nov 21 21:25:42 EST 2006
URL: http://mail.zope.org/pipermail/zope-tests/2006-November/006629.html

Subject: OK : Zope-2.6 Python-2.3.6 : Linux
From: Zope Unit Tests
Date: Tue Nov 21 21:27:12 EST 2006
URL: http://mail.zope.org/pipermail/zope-tests/2006-November/006630.html

Subject: OK : Zope-2.7 Python-2.3.6 : Linux
From: Zope Unit Tests
Date: Tue Nov 21 21:28:42 EST 2006
URL: http://mail.zope.org/pipermail/zope-tests/2006-November/006631.html

Subject: OK : Zope-2.7 Python-2.4.4 : Linux
From: Zope Unit Tests
Date: Tue Nov 21 21:30:12 EST 2006
URL: http://mail.zope.org/pipermail/zope-tests/2006-November/006632.html

Subject: OK : Zope-2.8 Python-2.3.6 : Linux
From: Zope Unit Tests
Date: Tue Nov 21 21:31:43 EST 2006
URL: http://mail.zope.org/pipermail/zope-tests/2006-November/006633.html

Subject: OK : Zope-2.9 Python-2.4.4 : Linux
From: Zope Unit Tests
Date: Tue Nov 21 21:34:43 EST 2006
URL: http://mail.zope.org/pipermail/zope-tests/2006-November/006635.html

Subject: OK : Zope-2.10 Python-2.4.4 : Linux
From: Zope Unit Tests
Date: Tue Nov 21 21:36:13 EST 2006
URL: http://mail.zope.org/pipermail/zope-tests/2006-November/006636.html

Subject: OK : Zope-trunk Python-2.4.4 : Linux
From: Zope Unit Tests
Date: Tue Nov 21 21:37:43 EST 2006
URL: http://mail.zope.org/pipermail/zope-tests/2006-November/006637.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 )


[Zope-dev] version.txt magic

2006-11-22 Thread Andreas Jung
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi,

Zope 2.9 and Zope 2.10 currently show up with unreleased version inside 
the  control panel. App/version_txt.py tries to read the file
lib/python/Zope2/version_txt. This file is usually created by
the 'makefile'. The makefile of Zope 2.9 create the file in the proper 
location however in Zope 2.10 the makefile creates lib/python/version.txt.
Is there a particular reason for this? I currently have now clue what  is 
bug and what is intended behavior. Any insights? *sigh* :-)

Andreas
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (Darwin)

iD8DBQFFZIAvCJIWIbr9KYwRAvKWAJ0edO7o2+KzOhSdt3wtBg8oj+i/vwCcCAj4
HVmshQsChiG3AjP2MHlMwyY=
=OyGd
-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 )


[Zope] Apache2 Rewrite: Too much traffic OR nothing

2006-11-22 Thread Flemming Bjerke
Does anyone know what to do???

The following rewrite rule works fine:

VirtualHost 85.235.249.119:80
  ServerName www.it-pol.dk
  UseCanonicalName Off
  ServerSignature On
  RewriteEngine On
  ProxyVia On
  RewriteLog /var/log/apache2/rewrite_log
  RewriteLogLevel 9
  RewriteRule ^/(.*)$ 
http://localhost:8080/VirtualHostBase/http/itpol.dk:80/vh/itpol/VirtualHostRoot/$1
 
[L,P]
/VirtualHost

The rule works fine when proxy.conf is like this:

Proxy *
Allow from localhost
/Proxy

But, this opens for a LOT of traffic. 

The problem is that I cannot get the rewrite rule to work without allowing the 
all this unwanted traffic. For instance, the following directives give a 403 
forbidden.

Proxy *
Order Deny,Allow
Allow from localhost
Deny from all
/Proxy

or 

Proxy *
Allow from localhost
Deny from all
/Proxy

Instead of localhost, I have tried IP-address and domain-name. The same 
problem!

I run Apache2.0.54 on a Debian Sarge server.

Flemming

From apache error.log:

What I don't like:
[Wed Nov 22 13:33:01 2006] [error] [client me] client denied by server 
configuration: 
proxy:http://localhost:8080/VirtualHostBase/http/www.itpol.dk:80/vh/itpol/VirtualHostRoot/

What I like:[Wed Nov 22 13:40:26 2006] [error] [client 222.82.159.40] client 
denied by server configuration: proxy:http://log.cpc.sohu.com:90/?pv.png, 
referer: 
http://adsence.sogou.com/index.html?pid=jinwutuanww=145dc=1dir=0num=5color=4charset=gb


___
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 )


Re: [Zope] Apache2 Rewrite: Too much traffic OR nothing

2006-11-22 Thread Jürgen Herrmann

you should set ProxyRequests Off...

regards, jürgen herrmann

On Wed, November 22, 2006 13:42, Flemming Bjerke wrote:
 Does anyone know what to do???

 The following rewrite rule works fine:

 VirtualHost 85.235.249.119:80
   ServerName www.it-pol.dk
   UseCanonicalName Off
   ServerSignature On
   RewriteEngine On
   ProxyVia On
   RewriteLog /var/log/apache2/rewrite_log
   RewriteLogLevel 9
   RewriteRule ^/(.*)$
 http://localhost:8080/VirtualHostBase/http/itpol.dk:80/vh/itpol/VirtualHostRoot/$1
  [L,P]
 /VirtualHost

 The rule works fine when proxy.conf is like this:

 Proxy *
 Allow from localhost
 /Proxy

 But, this opens for a LOT of traffic.

 The problem is that I cannot get the rewrite rule to work without allowing 
 the all this unwanted
traffic. For instance, the following directives give a 403 forbidden.

 Proxy *
 Order Deny,Allow
 Allow from localhost
 Deny from all
 /Proxy

 or

 Proxy *
 Allow from localhost
 Deny from all
 /Proxy

 Instead of localhost, I have tried IP-address and domain-name. The same 
 problem!

 I run Apache2.0.54 on a Debian Sarge server.

 Flemming

 From apache error.log:

 What I don't like:
 [Wed Nov 22 13:33:01 2006] [error] [client me] client denied by server 
 configuration:
 proxy:http://localhost:8080/VirtualHostBase/http/www.itpol.dk:80/vh/itpol/VirtualHostRoot/

 What I like:[Wed Nov 22 13:40:26 2006] [error] [client 222.82.159.40] client 
 denied by server
configuration: proxy:http://log.cpc.sohu.com:90/?pv.png, referer:
 http://adsence.sogou.com/index.html?pid=jinwutuanww=145dc=1dir=0num=5color=4charset=gb


 ___
 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 )



___

 XLhost.de - eXperts in Linux hosting 

Jürgen Herrmann
Konrad Adenauer Allee 43, DE-93051 Regensburg

Fon:  +49 (0)700 XLHOSTDE [0700 95467833]
Fax:  +49 (0)721 151 463027
WEB:  http://www.XLhost.de



___

 XLhost.de - eXperts in Linux hosting 

Jürgen Herrmann
Konrad Adenauer Allee 43, DE-93051 Regensburg

Fon:  +49 (0)700 XLHOSTDE [0700 95467833]
Fax:  +49 (0)721 151 463027
WEB:  http://www.XLhost.de
___
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 )


Re: [Zope] Apache2 Rewrite: Too much traffic OR nothing

2006-11-22 Thread Flemming Bjerke
onsdag 22 november 2006 14:28 skrev Jürgen Herrmann:
 Re: [Zope] Apache2 Rewrite: Too much traffic OR nothing
  Fra: Jürgen Herrmann [EMAIL PROTECTED]
  Til: zope@zope.org

 you should set ProxyRequests Off...

This helps, though, seemingly, it does not completely remove the problem:

from rewrite.log
===
[domain.siteparker.com/sid#8176be8][rid#8245430/initial] (1) go-ahead with 
proxy request 
proxy:http://localhost:8080/VirtualHostBase/http/itpol.dk:80/vh/itpol/VirtualHostRoot/index.php
 
[OK]

(There is no index.php in my zope!)

from access.log

58.49.118.186 - - [22/Nov/2006:15:34:26 +0100] GET 
http://domain.siteparker.com/index.php?dom=healthinesslive.com HTTP/1.0 404 
348 - Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)

Flemming
___
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 )


Re: [Zope] Apache2 Rewrite: Too much traffic OR nothing

2006-11-22 Thread Martijn Pieters

On 11/22/06, Flemming Bjerke [EMAIL PROTECTED] wrote:

This helps, though, seemingly, it does not completely remove the problem:

from rewrite.log
===
[domain.siteparker.com/sid#8176be8][rid#8245430/initial] (1) go-ahead with
proxy request
proxy:http://localhost:8080/VirtualHostBase/http/itpol.dk:80/vh/itpol/VirtualHostRoot/index.php
[OK]

(There is no index.php in my zope!)

from access.log

58.49.118.186 - - [22/Nov/2006:15:34:26 +0100] GET
http://domain.siteparker.com/index.php?dom=healthinesslive.com HTTP/1.0 404
348 - Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)


That's just someone poking for holes, the server returend a 404 (not
found) so no harm done. Any server on the internet get's such junk
requests.

--
Martijn Pieters
___
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 )


Re: [Zope] Zope PAS for pubcookie authentication

2006-11-22 Thread cristopher pierson ewing
Nah, grep is good.  I just hadn't thought of it.  Thanks for the 
information and the help.


Cris


Cris Ewing
CME and Telehealth Web Services
Department of Radiology Web Services
University of Washington
School of Medicine
Work Phone: (206) 685-9116
Home Phone: (206) 365-3413
E-mail: [EMAIL PROTECTED]
***


On Wed, 22 Nov 2006, Jens Vagelpohl wrote:


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


On 22 Nov 2006, at 00:06, cristopher pierson ewing wrote:
As the mapping tells you, the plugin responsible for getting these 
credentials is credentials_basic_auth, which is most likely a 
HTTPBasicAuthHelper plugin, and you will see it right in your 
PluggableAuthService object.
Again, you are right.  The only question I have remaining is how the 
'extractor' key in the credentials gets set.  I've looked up the interface 
for this method, and looked up the method being used in the 
HTTPBasicAuthHelper.py file, and the tuple that method returns, called 
'cred' doesn't contain such a key.  I'm just curious here, trying to get a 
handle on the logical flow of the authentication process.  My PAS plugin 
works well with only an authenticateCredentials method.


The place where the extractor key is set is not within the plugin itself, 
it's not very obvious. If you take a look at the _extractUserIds method on 
the PluggableAuthService object itself you'll see how the 
PluggableAuthService iterates over the available credentials extraction 
modules and then adds the key to the credentials mapping for any extraction 
attempt that does return credentials.


This might seem crude to most people, but for questions like this I always 
use grep to find out where the keyword is referenced.


jens


-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (Darwin)

iD8DBQFFY5eqRAx5nvEhZLIRAjbEAJ9ydYWuXIAWe6X2fgD534GHLy+HkQCglizN
oU7FwADmsmvjdVg4h7O9JKs=
=bQ3W
-END PGP SIGNATURE-
___
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 )

___
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 )


[Zope] New HD, Moving ZODB

2006-11-22 Thread Nancy Donnelly
Hi;
I've added a new HD to my server. I have 2 instances of Zope 2.7.8. I need to 
move at least one instance of ZODB to the new HD (I can easily move them both 
if necessary). Is there a how-to on how to do this, or, if not, how do I do it?
TIA,
Nancy



___
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 )


Re: [Zope] New HD, Moving ZODB

2006-11-22 Thread robert rottermann
Nancy Donnelly schrieb:
 Hi;
 I've added a new HD to my server. I have 2 instances of Zope 2.7.8. I
 need to move at least one instance of ZODB to the new HD (I can easily
 move them both if necessary). Is there a how-to on how to do this, or,
 if not, how do I do it?
 TIA,
 Nancy
 
 
 
 
 ___
 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 )

just copy the instances directories.
in the bin and the etc directory of the respective instances are some files
notably bin/zopectr, bin/runzope and etc/zope.conf
that contain some hardcoded path to python and where zope is to be found.
you have to adapt them to the new settings.

robert
begin:vcard
fn:robert  rottermann
n:rottermann;robert 
email;internet:[EMAIL PROTECTED]
tel;work:031 333 10 20
tel;fax:031 333 10 23
tel;home:031 333 36 03
x-mozilla-html:FALSE
version:2.1
end:vcard

___
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 )


Re: [Zope] New HD, Moving ZODB

2006-11-22 Thread Jonathan
You can easily install Zope 2.7.8 on the new hardware and then just copy the 
Data.fs file from the old hardware to the new.

If you want to upgrade to a newer version of zope on the new hardware, you can 
follow the above procedure, but you should review the CHANGES.txt file for the 
new version of zope to see what the impact may be (i seem to remember that 
ZCatalog/indexes changed in Zope 2.8.x, and there may be other items to be 
aware of as well)


Jonathan
  - Original Message - 
  From: Nancy Donnelly 
  To: zope@zope.org 
  Sent: Wednesday, November 22, 2006 11:19 AM
  Subject: [Zope] New HD, Moving ZODB


  Hi;
  I've added a new HD to my server. I have 2 instances of Zope 2.7.8. I need to 
move at least one instance of ZODB to the new HD (I can easily move them both 
if necessary). Is there a how-to on how to do this, or, if not, how do I do it?
  TIA,
  Nancy





--


  ___
  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 )
___
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 )


Re: [Zope] New HD, Moving ZODB

2006-11-22 Thread Andreas Jung
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1



- --On 22. November 2006 08:19:23 -0800 Nancy Donnelly 
[EMAIL PROTECTED] wrote:

 Hi;
 I've added a new HD to my server. I have 2 instances of Zope 2.7.8. I
 need to move at least one instance of ZODB to the new HD (I can easily
 move them both if necessary). Is there a how-to on how to do this, or, if
 not, how do I do it? TIA,

Do you know the concept of a symlink?

- -aj

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (Darwin)

iD8DBQFFZHwgCJIWIbr9KYwRAhvgAJ9t70HdyKOIEuOi7BNVivsC8WugqACcCB/K
b7VdWa2nTyzO7OdVEMsn/jg=
=bTly
-END PGP SIGNATURE-

___
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 )


Re: [Zope] New HD, Moving ZODB

2006-11-22 Thread Jonathan
My mistake, i misread and thought you were installing on a new server, not new 
harddrive! (so its not necessary to re-install zope)

Jonathan

  - Original Message - 
  From: Jonathan 
  To: Nancy Donnelly ; zope@zope.org 
  Sent: Wednesday, November 22, 2006 11:34 AM
  Subject: Re: [Zope] New HD, Moving ZODB


  You can easily install Zope 2.7.8 on the new hardware and then just copy the 
Data.fs file from the old hardware to the new.

  If you want to upgrade to a newer version of zope on the new hardware, you 
can follow the above procedure, but you should review the CHANGES.txt file for 
the new version of zope to see what the impact may be (i seem to remember that 
ZCatalog/indexes changed in Zope 2.8.x, and there may be other items to be 
aware of as well)


  Jonathan
- Original Message - 
From: Nancy Donnelly 
To: zope@zope.org 
Sent: Wednesday, November 22, 2006 11:19 AM
Subject: [Zope] New HD, Moving ZODB


Hi;
I've added a new HD to my server. I have 2 instances of Zope 2.7.8. I need 
to move at least one instance of ZODB to the new HD (I can easily move them 
both if necessary). Is there a how-to on how to do this, or, if not, how do I 
do it?
TIA,
Nancy








___
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 )



--


  ___
  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 )
___
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 )


Re: [Zope] Conflict error

2006-11-22 Thread Brian Sullivan

On 11/20/06, Maciej Wisniowski [EMAIL PROTECTED] wrote:

 Often I see messages like the following in the event log:

 2006-11-20T11:57:33 INFO ZPublisher.Conflict ConflictError at
 /***some location*** : database conflict error (oid 0x03a7, class
 BTrees._OOBTree.OOBTree, serial this txn started with
 0x0369ab934257a788 2006-11-20 16:51:15.549000, serial currently
 committed 0x0369ab9975fb5b99 2006-11-20 16:57:27.652000) (122
 conflicts (2 unresolved) since startup at Fri Nov 17 16:01:43 2006)
This specific message is just INFO, so it isn't visible to user, but
there is a statement abotut (2 unresolved) conflicts, and this is
worse because somebody has seen message about ConflicError.

Errors with OOBTree may be connected with session machinery. We had such
problems under high load and ZEO. Changing session_resolution_seconds
value in zope.conf to 300 solved the problem. You may try this but, if I
remember correctly, it will cause that your sessions timeout may be 300
secs longer and/or shorter. You may try other values.
It may be interesting what is ***some location*** too.



It seems always to be the same location (but that is the page that is
always displayed for non adminstrative users so that is no suprise)






 I am also seeing the server go into some sort hard crash (actually it
 doesn't crash just seems to peg the cpu doing something) ...that seems
 related. (but I am not totally sure). Sometimes it magically
 recovers but more often than not I have to restart the service to get
 some sense of normality.
So what is a 'crash' for you?


In this case it just pegs the cpu running the python zope process at near 100%.


Any errors in event
log or Zope just doesn't answer for a long time? If the latter thing
then there is a DeadlockDebugger that shows what is Zope doing, even
when it is not responsible, but I'm afraid that it won't work under
Windows, but I've never tried.




I will have a look to see if it provides any information.




 What does this message mean -- should I be worried about it?
As far as you see only INFO it is nothing bad, but ERROR that
means conflict error was unresolved is visible to the user, although
hitting 'Refresh' usually is enough.


It seems that just having the error in info is not a problem but what
I am seeing is that often after an unresolved instance my problem
happens.




There you may find some informations (but this is based on zope 2.7):
http://www.plope.com/Members/dunny/conflicts/view



I will look there to see if there is anything that seems relavent.
___
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 )


Re: [Zope] New HD, Moving ZODB

2006-11-22 Thread Nancy Donnelly
- Original Message 
From: Jonathan [EMAIL PROTECTED]


 My mistake, i misread and thought you were installing on a new server, not 
 new harddrive! (so its not 
 necessary to re-install zope)
 
Okay, but do you know what I need to do to move the ZODB to the new HD?
TIA,
Nancy

___
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 )


Re: [Zope] New HD, Moving ZODB

2006-11-22 Thread Jonathan
As someone else suggested, the easiest thing to do is create new 'instance' 
directories (eg. .../var, .../log, etc) on the new HD; move the files from the 
old HD to the new HD, then create a symlink for the directories on the old HD 
to the new HD.

If you are getting rid of the old HD, then you need to run zope from the new HD 
instead of the old HD and forget about the symlinks.


Jonathan
  - Original Message - 
  From: Nancy Donnelly 
  To: Jonathan 
  Cc: zope@zope.org 
  Sent: Wednesday, November 22, 2006 11:48 AM
  Subject: Re: [Zope] New HD, Moving ZODB


  - Original Message 
  From: Jonathan [EMAIL PROTECTED]


   My mistake, i misread and thought you were installing on a new server, not 
new harddrive! (so its not 
   necessary to re-install zope)

  Okay, but do you know what I need to do to move the ZODB to the new HD?
  TIA,
  Nancy
___
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 )


Re: [Zope] New HD, Moving ZODB

2006-11-22 Thread Jaroslav Lukesh
make new_instance

copy old_instance/var to new_instance/var
copy old_instance/Extensions to new_instance/Extensions

products, language and other config in etc ...


  - Original Message - 
  From: Nancy Donnelly
  To: zope@zope.org
  Sent: Wednesday, November 22, 2006 5:19 PM
  Subject: [Zope] New HD, Moving ZODB


  Hi;
  I've added a new HD to my server. I have 2 instances of Zope 2.7.8. I need 
to move at least one instance of ZODB to the new HD (I can easily move them 
both if necessary). Is there a how-to on how to do this, or, if not, how do 
I do it?
___
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 )


Re: [Zope] New HD, Moving ZODB

2006-11-22 Thread robert rottermann
Andreas Jung wrote:
 
 
 --On 22. November 2006 08:19:23 -0800 Nancy Donnelly 
 [EMAIL PROTECTED] wrote:
 
 Hi;
 I've added a new HD to my server. I have 2 instances of Zope 2.7.8. I
 need to move at least one instance of ZODB to the new HD (I can easily
 move them both if necessary). Is there a how-to on how to do this, or, if
 not, how do I do it? TIA,
 
 Do you know the concept of a symlink?
 
 -aj
 
i believe, nancy is using a windows box.

___
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 )


begin:vcard
fn:robert  rottermann
n:rottermann;robert 
email;internet:[EMAIL PROTECTED]
tel;work:031 333 10 20
tel;fax:031 333 10 23
tel;home:031 333 36 03
x-mozilla-html:FALSE
version:2.1
end:vcard

___
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 )


[Zope] cheio de spam

2006-11-22 Thread madwal
tentei instalar esse zope e não sei por que cargas dágua meu email foi parar 
com esses spam malucos vindo de alguns como [EMAIL PROTECTED] ... 
por favor queria tomar providencias 

walnir maduro da silva 


___
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 )


Re: [Zope] New HD, Moving ZODB

2006-11-22 Thread Nancy Donnelly
- Original Message 
From: robert rottermann [EMAIL PROTECTED]


 i believe, nancy is using a windows box.

Wash your mouth out with soap! I use FreeBSD and I'm proud of it :)
Nancy

___
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 )


Re: [Zope] New HD, Moving ZODB

2006-11-22 Thread Jonathan
Oh!... ok, you just sounded like a windoze user...  just kidding... really just 
kidding... put down that axe!;-)

Jonathan
  - Original Message - 
  From: Nancy Donnelly 
  To: robert rottermann 
  Cc: zope@zope.org 
  Sent: Wednesday, November 22, 2006 12:21 PM
  Subject: Re: [Zope] New HD, Moving ZODB


  - Original Message 
  From: robert rottermann [EMAIL PROTECTED]


   i believe, nancy is using a windows box.

  Wash your mouth out with soap! I use FreeBSD and I'm proud of it :)
  Nancy




--


  ___
  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 )
___
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 )


Re: [Zope] New HD, Moving ZODB

2006-11-22 Thread Nancy Donnelly
7171- Original Message 
From: Jonathan [EMAIL PROTECTED]



 
DIV {
MARGIN:0px;}



 As someone else suggested, the easiest thing to do 
is create new 'instance' directories 
 (eg. .../var, .../log, etc) on the new 
HD; move the files from the old HD to the new HD, 
 then create a symlink for the 
directories on the old HD to the new HD.

 
Oh, that does sound easy indeed! :)
Thanks, all
Nancy




___
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 )


Re: [Zope] New HD, Moving ZODB

2006-11-22 Thread Andreas Jung
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1



- --On 22. November 2006 18:16:27 +0100 robert rottermann [EMAIL PROTECTED] 
wrote:

 i believe, nancy is using a windows box.


Nancy (or whatever her real name is) did not ask a but a particular OS.

- -aj
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (Darwin)

iD8DBQFFZIfOCJIWIbr9KYwRAtoyAJ9WF2W/K580MngBl7+eIcH4WPGLjgCgqT8c
KZeHP0NtxzzPhr7AYyVezcc=
=3Y9Y
-END PGP SIGNATURE-

___
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 )


Re: [Zope] TimeError in Zope 2.8.5

2006-11-22 Thread Dieter Maurer
Paul Winkler wrote at 2006-11-21 16:27 -0500:
 ...
- I have been told 106900545747.045975 converts to: Tue May 22 1973 01:35:45
That's wrong by several millenia, and the Python standard library
agrees with (zope 2.9.1) DateTime.DateTime on this:

 import time
 time.localtime(106900545747.045975).tm_year
5357

Now, we understand: it's the Python time implementation that has
changed.

With Python 2.3.3 (under Debian Sarge), we get:

 from time import localtime
 localtime(106900545747.045975)
(1901, 12, 13, 21, 45, 52, 4, 347, 0)
 localtime(106900545747.045975).tm_year
1901

-- 
Dieter
___
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 )


Re: [Zope] CopyError NoData

2006-11-22 Thread Dieter Maurer
Sale, Robin wrote at 2006-11-21 12:39 -0500:
Anyone ever had or heard of this problem??

Trying to copy and then paste any object using the ZMI results in a
CopyError where the message is that there was no data (CopyError,
eNoData). This is on a server that was working fine yesterday. There are
no error message logs except the standard traceback for the CopyError
when performing the paste (in other words, the copy did not raise any
flags)

The objects to be copied are maintained in a cookie.

If cookies are disabled or discarded, the behaviour is exactly
as you descibe it.



-- 
Dieter
___
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 )


RE: [Zope] CopyError NoData

2006-11-22 Thread Sale, Robin
Dieter,

Ah HAH!... Blowing out cookies and temporary internet files on the
affected browsers and restarting the Apache server that we use to
front-end our Zope instances seems to have fixed it.

Thank you for your response, as you have surely saved me a trip to the
loony bin.

Cheers,
Robin


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
Dieter Maurer
Sent: Wednesday, November 22, 2006 2:08 PM
To: Sale, Robin
Cc: zope@zope.org
Subject: Re: [Zope] CopyError NoData

Sale, Robin wrote at 2006-11-21 12:39 -0500:
Anyone ever had or heard of this problem??

Trying to copy and then paste any object using the ZMI results in a
CopyError where the message is that there was no data (CopyError,
eNoData). This is on a server that was working fine yesterday. There
are
no error message logs except the standard traceback for the CopyError
when performing the paste (in other words, the copy did not raise any
flags)

The objects to be copied are maintained in a cookie.

If cookies are disabled or discarded, the behaviour is exactly
as you descibe it.



-- 
Dieter
___
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 )
___
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 )


[Zope] Re: TimeError in Zope 2.8.5

2006-11-22 Thread Josef Meile

import time
time.localtime(106900545747.045975).tm_year

5357


Now, we understand: it's the Python time implementation that has
changed.

With Python 2.3.3 (under Debian Sarge), we get:


from time import localtime
localtime(106900545747.045975)

(1901, 12, 13, 21, 45, 52, 4, 347, 0)

localtime(106900545747.045975).tm_year

1901

In my python 2.4.3 (compiled from source) and the one installed with the 
OS, which is also 2.4.3, it doesn't work. I get:


Traceback (most recent call last):
  File stdin, line 1, in ?
ValueError: timestamp out of range for platform time_t

So, I guess there should be something that you can configurate when 
building python, or it is perhaps a linux kernel paramater. With python 
2.3.5 it works however, so, it is a change in python as Dieter mentioned.


By running the zopectl in debug mode for zope 2.9.4, the resulting 
traceback is the same as the one posted by the OP. With zope 2.8.8 it 
runs without any problem. So, it could be that the provider is running 
zope 2.8.5 with python 2.4.


Regards
Josef
___
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 )


Re: [Zope-DB] [ANN] Modified version of DCOracle2 is available

2006-11-22 Thread Maciej Wisniowski

 Eek! ZpsycopgDA is GPL'd! Does that mean you've put your version of
 DCOracle under GPL?

 But that aside I am not sure it is the best implementation of
 connection pooling out there.
I don't want to reinvent the whell and create own
pool management so I searched a bit and found
something interesting.
What do you think about SQLAlchemy? It has is nice (I think)
pool implementation, which may be used separately. See:
http://www.sqlalchemy.org/docs/pooling.myt

I'm especially interested in licensing.
SQLAlchemy is on MIT license, so I think if it will be
possible to use SQLAlchemy pool implementation then
then this DCOracle2 version may be ZPL. Am I right?


I did very first attempt to use this with my version of DCOracle2
and so far I am able to connect to Oracle from Zope and do
some queries with SQLAlchemy QueuePool in use.

If somebody wants to take a look then SQLAlchemized
version, with some code from ChrisW branch
(reconnect after connection is broken) is now at:
https://dcoracle2da.googlecode.com/svn/branches/sqlalchemypool

In general all this code is considered 'under developement'. There
is nothing in tags/ yet.

-- 
Maciej Wisniowski

___
Zope-DB mailing list
Zope-DB@zope.org
http://mail.zope.org/mailman/listinfo/zope-db


Re: [Zope-DB] [ANN] Modified version of DCOracle2 is available

2006-11-22 Thread Maciej Wisniowski

 I fear that there is a rule that everything in the Zope repositories
 should be ZPL -- to have a uniform license for all components from
 these repositories.

 Of course, if your DCO2 is not in the Zope repositories,
 you should be able to include MIT licensed code in a ZPL licensed
 version of DCO2.
You are right but now I hope it is not necessary to put any
MIT licensed code from SQLAlchemy into DCOracle2. Simple
statement like:

from SQLAlchemy.pool import QueuePool

is enough. That just means that it is necessary to install
SQLAlchemy to use this version of DCOracle2, but there
are no parts of it's code here. Seems this is same as
need to have Oracle Client installed in system in order to
use DCOracle2.

-- 
Maciej Wisniowski

___
Zope-DB mailing list
Zope-DB@zope.org
http://mail.zope.org/mailman/listinfo/zope-db