[Zope-dev] Zope Tests: 6 OK

2009-03-26 Thread Zope Tests Summarizer
Summary of messages to the zope-tests list.
Period Wed Mar 25 12:00:00 2009 UTC to Thu Mar 26 12:00:00 2009 UTC.
There were 6 messages: 6 from Zope Tests.


Tests passed OK
---

Subject: OK : Zope-2.10 Python-2.4.6 : Linux
From: Zope Tests
Date: Wed Mar 25 21:29:47 EDT 2009
URL: http://mail.zope.org/pipermail/zope-tests/2009-March/011337.html

Subject: OK : Zope-2.11 Python-2.4.6 : Linux
From: Zope Tests
Date: Wed Mar 25 21:31:57 EDT 2009
URL: http://mail.zope.org/pipermail/zope-tests/2009-March/011338.html

Subject: OK : Zope-trunk Python-2.4.6 : Linux
From: Zope Tests
Date: Wed Mar 25 21:33:58 EDT 2009
URL: http://mail.zope.org/pipermail/zope-tests/2009-March/011339.html

Subject: OK : Zope-trunk Python-2.5.4 : Linux
From: Zope Tests
Date: Wed Mar 25 21:35:58 EDT 2009
URL: http://mail.zope.org/pipermail/zope-tests/2009-March/011340.html

Subject: OK : Zope-trunk-alltests Python-2.4.6 : Linux
From: Zope Tests
Date: Wed Mar 25 21:37:59 EDT 2009
URL: http://mail.zope.org/pipermail/zope-tests/2009-March/011341.html

Subject: OK : Zope-trunk-alltests Python-2.5.4 : Linux
From: Zope Tests
Date: Wed Mar 25 21:39:59 EDT 2009
URL: http://mail.zope.org/pipermail/zope-tests/2009-March/011342.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] Zope and Cygwin

2009-03-26 Thread Cesar Canassa
Hi all,

I am trying to run Zope using cygwin and Windows XP. I started by
downloading the Python 2.4.6 sources and compiling it with:

./configure
make  make install

After that I downloaded the Zope-2.11.2-final sources and compiled it with:

./configure --with-python=/usr/local/bin/python
make  make install

The compilation went smoothly so I created a instance and started the server
with the runzope script. The script returned this error:

$ ./runzope
Traceback (most recent call last):
  File /opt/Zope-2.11/lib/python/Zope2/Startup/run.py, line 56, in ?
run()
  File /opt/Zope-2.11/lib/python/Zope2/Startup/run.py, line 21, in run
starter.prepare()
  File /opt/Zope-2.11/lib/python/Zope2/Startup/__init__.py, line 109, in
prepare
self.startZope()
  File /opt/Zope-2.11/lib/python/Zope2/Startup/__init__.py, line 300, in
startZope
Zope2.startup()
  File /opt/Zope-2.11/lib/python/Zope2/__init__.py, line 47, in startup
_startup()
  File /opt/Zope-2.11/lib/python/Zope2/App/startup.py, line 105, in
startup
Globals.VersionNameName)
  File /opt/Zope-2.11/lib/python/App/ZApplication.py, line 32, in __init__
if not root.has_key(name):
  File /opt/Zope-2.11/lib/python/ZODB/Connection.py, line 811, in setstate
self._setstate(obj)
  File /opt/Zope-2.11/lib/python/ZODB/Connection.py, line 870, in
_setstate
self._reader.setGhostState(obj, p)
  File /opt/Zope-2.11/lib/python/ZODB/serialize.py, line 604, in
setGhostState
state = self.getState(pickle)
  File /opt/Zope-2.11/lib/python/ZODB/serialize.py, line 597, in getState
return unpickler.load()
  File /opt/Zope-2.11/lib/python/ZODB/serialize.py, line 471, in
_persistent_load
return self.load_oid(reference)
  File /opt/Zope-2.11/lib/python/ZODB/serialize.py, line 537, in load_oid
return self._conn.get(oid)
  File /opt/Zope-2.11/lib/python/ZODB/Connection.py, line 245, in get
obj = self._reader.getGhost(p)
  File /opt/Zope-2.11/lib/python/ZODB/serialize.py, line 591, in getGhost
return klass.__new__(klass, *args)
TypeError: Acquirer.__new__(Application) is not safe, use
Persistence.Persistent.__new__()

Am I doing something wrong? Does anyone knows if it's possible to compile
Zope with Cygwin?

Thanks,
Cesar Canassa
___
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] Zope and Cygwin

2009-03-26 Thread Ross Patterson
Cesar Canassa cesar.cana...@gmail.com writes:

 I am trying to run Zope using cygwin and Windows XP. I started by downloading 
 the
 Python 2.4.6 sources and compiling it with:

 ./configure
 make  make install

 After that I downloaded the Zope-2.11.2-final sources and compiled it with:

 ./configure --with-python=/usr/local/bin/python
 make  make install

 The compilation went smoothly so I created a instance and started the server 
 with
 the runzope script. The script returned this error:

 $ ./runzope
 Traceback (most recent call last):
   File /opt/Zope-2.11/lib/python/Zope2/Startup/run.py, line 56, in ?
     run()
   File /opt/Zope-2.11/lib/python/Zope2/Startup/run.py, line 21, in run
     starter.prepare()
   File /opt/Zope-2.11/lib/python/Zope2/Startup/__init__.py, line 109, in 
 prepare
     self.startZope()
   File /opt/Zope-2.11/lib/python/Zope2/Startup/__init__.py, line 300, in
 startZope
     Zope2.startup()
   File /opt/Zope-2.11/lib/python/Zope2/__init__.py, line 47, in startup
     _startup()
   File /opt/Zope-2.11/lib/python/Zope2/App/startup.py, line 105, in startup
     Globals.VersionNameName)
   File /opt/Zope-2.11/lib/python/App/ZApplication.py, line 32, in __init__
     if not root.has_key(name):
   File /opt/Zope-2.11/lib/python/ZODB/Connection.py, line 811, in setstate
     self._setstate(obj)
   File /opt/Zope-2.11/lib/python/ZODB/Connection.py, line 870, in _setstate
     self._reader.setGhostState(obj, p)
   File /opt/Zope-2.11/lib/python/ZODB/serialize.py, line 604, in 
 setGhostState
     state = self.getState(pickle)
   File /opt/Zope-2.11/lib/python/ZODB/serialize.py, line 597, in getState
     return unpickler.load()
   File /opt/Zope-2.11/lib/python/ZODB/serialize.py, line 471, in
 _persistent_load
     return self.load_oid(reference)
   File /opt/Zope-2.11/lib/python/ZODB/serialize.py, line 537, in load_oid
     return self._conn.get(oid)
   File /opt/Zope-2.11/lib/python/ZODB/Connection.py, line 245, in get
     obj = self._reader.getGhost(p)
   File /opt/Zope-2.11/lib/python/ZODB/serialize.py, line 591, in getGhost
     return klass.__new__(klass, *args)
 TypeError: Acquirer.__new__(Application) is not safe, use
 Persistence.Persistent.__new__()

 Am I doing something wrong? Does anyone knows if it's possible to compile Zope
 with Cygwin?

Maybe the following can help:

http://rpatterson.net/software/products.cygwinpatch
http://dev.plone.org/collective/browser/cygwinpatch/trunk/__init__.py
http://mail.zope.org/pipermail/zope/2005-December/163636.html

Ross

___
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] help with running a dtml method

2009-03-26 Thread Dvir Bar-lev
Hi 

 

I have a site with the following  folder structure in zope:

 

Dvir

WebSite

  contentPages

 

I have and index_html in the WebSite folder, in it I call a dtml method
that's in the contentPages folder named overview_html,

in the same folder (content Pages) I have another dtml_method named
time_combo.

 

In the overview_html I try to call the time combo method - I tried:

 

dtml-var  time_combo

 

But it keeps saying it has an error :

Error Type: NameError
Error Value: name 'time_combo' is not defined

 

I tried putting the full path like this:

 

dtml-var  expr=Dvir http://10.101.1.106:8080/Dvir/manage_workspace
.WebSite http://10.101.1.106:8080/Dvir/WebSite/manage_workspace
.contentPages
http://10.101.1.106:8080/Dvir/WebSite/contentPages/manage_workspace
.time_combo()

 

But it still won't work.

 

Any idea what I did wrong? And what do I need to do to be able to call
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 )


[Zope] Different file storage in Zope

2009-03-26 Thread Olivier Nicole
Hi,

I am pretty new to Zope. We need to install a site for our University
department. On this site, we plan to store number of big files, like
posters, student thesis, research papers, etc.

I understand that ZODB is not the best storage for this sort of
documents, but that we should rather use something like File System
Storage for example.

I just build a new Zope instance (buildout) and have Zope 2.10.6-final
running along with Plone 3.2.1.

What would the best external storage recommended? Looking at the
Storage Products available for Zope
(http://wiki.zope.org/zope2/StorageProducts) all products look pretty
old to me, so I wonder if any is still supported, will continue to be
supported in the future.

Anyway, I tried to install File System Storage through buildout:

buildout.cfg
[buildout]
parts =
zope2
productdistros
instance
zopepy
fss
...
zope-instances =
${instance:location}

storages =
   CSIM / directory /web/Plone3.2.1/FSS/storage /web/Plone3.2.1/FSS/backup

This build OK, but I don't see where/how I can use FSS inside a test
Plone site. It's like FSS is there, and built, but pretty inactive.

So, how can I configure FSS, use it?



A side question, when I try to add most of the ATContentTypes objects
in my test Plone site, ZMI always come to Add ATContentTypes: Portal
Types Criterion. Is that a normal behaviour?

TIA,

Olivier
___
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] Different file storage in Zope

2009-03-26 Thread Andreas Jung
On Thu, Mar 26, 2009 at 03:49, Olivier Nicole o...@cs.ait.ac.th wrote:

 Hi,

 I am pretty new to Zope. We need to install a site for our University
 department. On this site, we plan to store number of big files, like
 posters, student thesis, research papers, etc.

 I understand that ZODB is not the best storage for this sort of
 documents, but that we should rather use something like File System
 Storage for example.

 I just build a new Zope instance (buildout) and have Zope 2.10.6-final
 running along with Plone 3.2.1.


Very, very often discussed on the plone-users lists: use iw.fss or
plone.app.blob
(check the plone-users list archives).

Andreas
___
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] Overriding DateTime

2009-03-26 Thread Maurits van Rees
Tim Knapp, on 2009-03-26:
 On Wed, 2009-03-25 at 21:20 +0100, Dieter Maurer wrote:
 Tim Knapp wrote at 2009-3-23 18:21 +1300:
 I would like to override the DateTime.DateTime class within my
 functional tests. I have tried mocking (via mocker) and injecting the
 subclassed DateTime class into sys.modules (results in a
 TraversalError). The fartherest I've gotten is to set DateTime.DateTime
 = MySubclassedDateTime in my tests.py, which does work for the code
 'within' the package(s) I'm testing but all the Zope core code (i.e. the
 instance created within PloneTestCase) is still referencing the global
 DateTime module. Has anyone successfully done this?
 
 import DateTime; DateTime=myDateTimeClass should be able
 to replace the DateTime class -- sometimes.
 
 
 Be aware, however, that this replacing takes effect only after
 your assignment. Modules that already have imported the DateTime
 class will not be affected.

 Thanks, yeah that was what I thought. I tried to do it in the _setup
 method of PloneTestCase, which theoretically gets called before the
 instance is runup but maybe not. Didn't seem to affect the Zope instance
 itself anyway.

A few years ago at Zest Software we needed a patch (for Archetypes I
think) and hit the same problem that our product was too late in the
startup process to have enough influence.  So we put the patch in a
product called (Products.)AAAPatch; affectionately called triple A
patch. :-) Due to the three A-s at the beginning it was virtually
guaranteed to be the first product to load.

-- 
Maurits van Rees | http://maurits.vanrees.org/
Work | http://zestsoftware.nl/
This is your day, don't let them take it away. [Barlow Girl]

___
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] Overriding DateTime

2009-03-26 Thread Tim Knapp
On Thu, 2009-03-26 at 09:16 +, Maurits van Rees wrote:
 Tim Knapp, on 2009-03-26:
  On Wed, 2009-03-25 at 21:20 +0100, Dieter Maurer wrote:
  Tim Knapp wrote at 2009-3-23 18:21 +1300:
  I would like to override the DateTime.DateTime class within my
  functional tests. I have tried mocking (via mocker) and injecting the
  subclassed DateTime class into sys.modules (results in a
  TraversalError). The fartherest I've gotten is to set DateTime.DateTime
  = MySubclassedDateTime in my tests.py, which does work for the code
  'within' the package(s) I'm testing but all the Zope core code (i.e. the
  instance created within PloneTestCase) is still referencing the global
  DateTime module. Has anyone successfully done this?
  
  import DateTime; DateTime=myDateTimeClass should be able
  to replace the DateTime class -- sometimes.
  
  
  Be aware, however, that this replacing takes effect only after
  your assignment. Modules that already have imported the DateTime
  class will not be affected.
 
  Thanks, yeah that was what I thought. I tried to do it in the _setup
  method of PloneTestCase, which theoretically gets called before the
  instance is runup but maybe not. Didn't seem to affect the Zope instance
  itself anyway.
 
 A few years ago at Zest Software we needed a patch (for Archetypes I
 think) and hit the same problem that our product was too late in the
 startup process to have enough influence.  So we put the patch in a
 product called (Products.)AAAPatch; affectionately called triple A
 patch. :-) Due to the three A-s at the beginning it was virtually
 guaranteed to be the first product to load.

Awesome, I'll give it a go and report back.

Thanks,
Tim

 

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