[Zope-Checkins] SVN: Zope/branches/2.9/lib/python/ Made sure WebDAV.COPY sends an ObjectClonedEvent.

2006-08-22 Thread Stefan H. Holek
Log message for revision 69723:
  Made sure WebDAV.COPY sends an ObjectClonedEvent.
  Fixes http://www.zope.org/Collectors/Zope/2169
  

Changed:
  U   Zope/branches/2.9/lib/python/OFS/tests/testCopySupportHooks.py
  U   Zope/branches/2.9/lib/python/webdav/Resource.py

-=-
Modified: Zope/branches/2.9/lib/python/OFS/tests/testCopySupportHooks.py
===
--- Zope/branches/2.9/lib/python/OFS/tests/testCopySupportHooks.py  
2006-08-21 21:03:15 UTC (rev 69722)
+++ Zope/branches/2.9/lib/python/OFS/tests/testCopySupportHooks.py  
2006-08-22 10:05:31 UTC (rev 69723)
@@ -159,7 +159,16 @@
 self.assertEqual(old.order(), (0, 0, 1))# del
 self.assertEqual(self.subfolder.mydoc.order(), (1, 0, 0))   # add
 
+def test_7_DELETE(self):
+# Test webdav DELETE
+req = self.app.REQUEST
+req['URL'] = '%s/mydoc' % self.folder.absolute_url()
+old = self.folder.mydoc
+self.folder.mydoc.DELETE(req, req.RESPONSE)
+self.assertEqual(req.RESPONSE.getStatus(), 204)
+self.assertEqual(old.order(), (0, 0, 1))# del
 
+
 class TestCopySupportSublocation(HookTest):
 '''Tests the order in which the add/clone/del hooks are called'''
 
@@ -210,6 +219,9 @@
 
 def test_5_COPY(self):
 # Test webdav COPY
+#
+# See http://www.zope.org/Collectors/Zope/2169
+#
 req = self.app.REQUEST
 req.environ['HTTP_DEPTH'] = 'infinity'
 req.environ['HTTP_DESTINATION'] = '%s/subfolder/yourfolder' % 
self.folder.absolute_url()
@@ -232,7 +244,18 @@
 self.assertEqual(olddoc.order(), (0, 0, 1))
 # del
 self.assertEqual(self.subfolder.yourfolder.mydoc.order(), (1, 0, 0))   
 # add
 
+def test_7_DELETE(self):
+# Test webdav DELETE
+req = self.app.REQUEST
+req['URL'] = '%s/myfolder' % self.folder.absolute_url()
+oldfolder = self.folder.myfolder
+olddoc = self.folder.myfolder.mydoc
+self.folder.myfolder.DELETE(req, req.RESPONSE)
+self.assertEqual(req.RESPONSE.getStatus(), 204)
+self.assertEqual(oldfolder.order(), (0, 0, 1)) 
 # del
+self.assertEqual(olddoc.order(), (0, 0, 1))
 # del
 
+
 def test_suite():
 suite = unittest.TestSuite()
 suite.addTest(unittest.makeSuite(TestCopySupport))

Modified: Zope/branches/2.9/lib/python/webdav/Resource.py
===
--- Zope/branches/2.9/lib/python/webdav/Resource.py 2006-08-21 21:03:15 UTC 
(rev 69722)
+++ Zope/branches/2.9/lib/python/webdav/Resource.py 2006-08-22 10:05:31 UTC 
(rev 69723)
@@ -38,7 +38,11 @@
 from interfaces import IWriteLock
 from WriteLockInterface import WriteLockInterface
 
+from zope.event import notify
+from OFS.event import ObjectClonedEvent
+import OFS.subscribers
 
+
 class Resource(ExtensionClass.Base, Lockable.LockableItem):
 
 The Resource mixin class provides basic WebDAV support for
@@ -396,7 +400,11 @@
 parent._setObject(name, ob)
 ob = parent._getOb(name)
 ob._postCopy(parent, op=0)
-ob.manage_afterClone(ob)
+
+OFS.subscribers.compatibilityCall('manage_afterClone', ob, ob)
+
+notify(ObjectClonedEvent(ob))
+
 # We remove any locks from the copied object because webdav clients
 # don't track the lock status and the lock token for copied resources
 ob.wl_clearLocks()

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


[Zope-Checkins] SVN: Zope/branches/2.10/ Merged r69717:69724 from 2.9 branch.

2006-08-22 Thread Stefan H. Holek
Log message for revision 69725:
  Merged r69717:69724 from 2.9 branch.
  
  webdav.Resource.COPY did not send ObjectClonedEvent.
  Fixes http://www.zope.org/Collectors/Zope/2169
  

Changed:
  U   Zope/branches/2.10/doc/CHANGES.txt
  A   Zope/branches/2.10/lib/python/OFS/tests/testCopySupportHooks.py
  U   Zope/branches/2.10/lib/python/webdav/Resource.py

-=-
Modified: Zope/branches/2.10/doc/CHANGES.txt
===
--- Zope/branches/2.10/doc/CHANGES.txt  2006-08-22 10:34:07 UTC (rev 69724)
+++ Zope/branches/2.10/doc/CHANGES.txt  2006-08-22 10:55:38 UTC (rev 69725)
@@ -8,6 +8,8 @@
 
 Bugs fixed
 
+  - Collector #2169: webdav.Resource.COPY did not send ObjectClonedEvent.
+
   Zope 2.10.0 beta 2 (2006/08/20)
 
 Bugs Fixed

Copied: Zope/branches/2.10/lib/python/OFS/tests/testCopySupportHooks.py (from 
rev 69724, Zope/branches/2.9/lib/python/OFS/tests/testCopySupportHooks.py)

Modified: Zope/branches/2.10/lib/python/webdav/Resource.py
===
--- Zope/branches/2.10/lib/python/webdav/Resource.py2006-08-22 10:34:07 UTC 
(rev 69724)
+++ Zope/branches/2.10/lib/python/webdav/Resource.py2006-08-22 10:55:38 UTC 
(rev 69725)
@@ -45,7 +45,11 @@
 from interfaces import IWriteLock
 from WriteLockInterface import WriteLockInterface
 
+from zope.event import notify
+from OFS.event import ObjectClonedEvent
+import OFS.subscribers
 
+
 class Resource(ExtensionClass.Base, Lockable.LockableItem):
 
 The Resource mixin class provides basic WebDAV support for
@@ -399,7 +403,11 @@
 parent._setObject(name, ob)
 ob = parent._getOb(name)
 ob._postCopy(parent, op=0)
-ob.manage_afterClone(ob)
+
+OFS.subscribers.compatibilityCall('manage_afterClone', ob, ob)
+
+notify(ObjectClonedEvent(ob))
+
 # We remove any locks from the copied object because webdav clients
 # don't track the lock status and the lock token for copied resources
 ob.wl_clearLocks()

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


[Zope-Checkins] SVN: Zope/trunk/lib/python/ Merged r69717:69724 from 2.9 branch.

2006-08-22 Thread Stefan H. Holek
Log message for revision 69726:
  Merged r69717:69724 from 2.9 branch.
  
  webdav.Resource.COPY did not send ObjectClonedEvent.
  Fixes http://www.zope.org/Collectors/Zope/2169
  

Changed:
  A   Zope/trunk/lib/python/OFS/tests/testCopySupportHooks.py
  U   Zope/trunk/lib/python/webdav/Resource.py

-=-
Copied: Zope/trunk/lib/python/OFS/tests/testCopySupportHooks.py (from rev 
69724, Zope/branches/2.9/lib/python/OFS/tests/testCopySupportHooks.py)

Modified: Zope/trunk/lib/python/webdav/Resource.py
===
--- Zope/trunk/lib/python/webdav/Resource.py2006-08-22 10:55:38 UTC (rev 
69725)
+++ Zope/trunk/lib/python/webdav/Resource.py2006-08-22 11:24:57 UTC (rev 
69726)
@@ -45,7 +45,11 @@
 from interfaces import IWriteLock
 from WriteLockInterface import WriteLockInterface
 
+from zope.event import notify
+from OFS.event import ObjectClonedEvent
+import OFS.subscribers
 
+
 class Resource(ExtensionClass.Base, Lockable.LockableItem):
 
 The Resource mixin class provides basic WebDAV support for
@@ -399,7 +403,11 @@
 parent._setObject(name, ob)
 ob = parent._getOb(name)
 ob._postCopy(parent, op=0)
-ob.manage_afterClone(ob)
+
+OFS.subscribers.compatibilityCall('manage_afterClone', ob, ob)
+
+notify(ObjectClonedEvent(ob))
+
 # We remove any locks from the copied object because webdav clients
 # don't track the lock status and the lock token for copied resources
 ob.wl_clearLocks()

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


[Zope-dev] buildbot failure in Zope branches 2.9 2.4 Windows 2000 zc-bbwin2

2006-08-22 Thread buildbot
The Buildbot has detected a failed build of Zope branches 2.9 2.4 Windows 2000 
zc-bbwin2.

Buildbot URL: http://buildbot.zope.org/

Build Reason: changes
Build Source Stamp: 7214
Blamelist: fdrake,rocky,shh

BUILD FAILED: failed compile

sincerely,
 -The Buildbot

___
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] buildbot failure in Zope branches 2.9 2.4 Windows 2000 zc-bbwin2

2006-08-22 Thread buildbot
The Buildbot has detected a failed build of Zope branches 2.9 2.4 Windows 2000 
zc-bbwin2.

Buildbot URL: http://buildbot.zope.org/

Build Reason: changes
Build Source Stamp: 7215
Blamelist: shh

BUILD FAILED: failed compile

sincerely,
 -The Buildbot

___
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 failure in Zope branches 2.9 2.4 Windows 2000 zc-bbwin2

2006-08-22 Thread Stefan H. Holek

The Windows bot is borked, don't blame me ;-)

http://buildbot.zope.org/Zope%20branches%202.9%202.4%20Windows% 
202000%20zc-bbwin2/builds/160/compile/0


Stefan


On 22. Aug 2006, at 12:47, [EMAIL PROTECTED] wrote:

The Buildbot has detected a failed build of Zope branches 2.9 2.4  
Windows 2000 zc-bbwin2.


Buildbot URL: http://buildbot.zope.org/

Build Reason: changes
Build Source Stamp: 7215
Blamelist: shh

BUILD FAILED: failed compile

sincerely,
 -The Buildbot



--
It doesn't necessarily do it in chronological order, though.
  --Douglas Adams


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


[ZWeb] volunteers wanted! zope foundation website as guinea pig

2006-08-22 Thread Martijn Faassen

Hi there,

It's nearing september, and I'd like to start some work on zope.org, in 
particular www.zope.org/foundation. I'm looking for volunteers to help.


As you all probably know, we have a Zope Foundation, of which I'm a 
board member (representative for the committer members). Aroldo 
Souza-Leite is also on the board as chairman.


Aroldo and I are the board members responsible for the zope.org website 
committee. The task of the zope.org committee is to improve the zope.org 
web presence. Aroldo and I won't be doing the work or decision making 
alone, but since we have the backing of the foundation, we can make 
decisions stick. Volunteers are welcome to join this committee!


One of the first tasks at hand is to improve the presence of the Zope 
Foundation on the web. We currently have a section here:


http://www.zope.org/foundation

This website doesn't look very pretty at all. My proposal is to 
reorganize it, have some introductory text, put in links to relevant 
information resources, such as mailing lists (including this one), and 
to stick a nice layout around it.


This project will serve two purposes:

* to create a nice website for the foundation.

* serve as an example and test case for the wider zope.org renewal project.

So, please help us out.

Layout
--

I propose we use Tom Von Lahndorff's design for the foundation website. 
For the purposes of the foundation site we should strip it down:


* no login necessary

* no search (unless we integrate google-based search, perhaps)

* possibly no drop-down menus at the top. We could simply have links 
there, or possibly a standard left-hand side navigation. This design is 
the top page; we need to see a sub-page design as well.


Tom, are you still there? This time we're going to use what you made 
quickly, if you're willing!


Structure and text
--

Aroldo and I (Aroldo, I'm volunteering you :) are willing to work on a 
bunch of restructured text documents that introduce the zope foundation 
and set up the site structure.


Technology
--

I've said this before, and I'll just repeat it again: let's try to avoid 
technology discussions as much as we can. Most of us, including myself, 
are techies, so it's attractive to do this, but we just want to put a 
website up. This doesn't require any new technology, nor does it require 
a heavy-duty CMS.


To break my own rule on no technology discussions right way:

I propose letting www.zope.org/foundation point to a Apache directory, 
where we maintain HTML files. We will then generate such HTML files from 
restructured text we maintain in the zope SVN repository, using a simple 
script that drives docutils.


If you want examples of websites that are managed this way and I have 
personal experience with, check out the following places on codespeak:


http://codespeak.net/z3/

http://codespeak.net/lxml/

Since we're not aiming for a big site, this should be sufficient technology.

For the larger zope.org, we may need something else, or we may not. 
Let's treat the foundation website as a trial case here too, and see how 
we like it.


There's one alternative to this approach that will also work on the 
short term: a volunteer that's willing to work with zope.org and 
integrate the layout and text and structure we want into existing 
zope.org infrastructure. If someone volunteers to work on this, I'd be 
happy to do it that way as well. Does anyone volunteer?


Any other technological approaches require more setup and I'd like to 
defer them for the time being. We can take them up when we tackle 
zope.org proper.


I hope we can all have this together in a couple of weeks, so let's 
start working!


Regards,

Martijn
___
Zope-web maillist  -  Zope-web@zope.org
http://mail.zope.org/mailman/listinfo/zope-web


Re: [ZWeb] volunteers wanted! zope foundation website as guinea pig

2006-08-22 Thread Michael Haubenwallner

Martijn Faassen wrote:
 Hi there,

 It's nearing september, and I'd like to start some work on zope.org, in
 particular www.zope.org/foundation. I'm looking for volunteers to help.


[...]


 I hope we can all have this together in a couple of weeks, so let's
 start working!


I liked what i read, count me in.

Michael

--
http://zope.org/Members/d2m
http://planetzope.org

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


Re: [ZWeb] volunteers wanted! zope foundation website as guinea pig

2006-08-22 Thread Andrew Sawyers
What's up with zopefoundation.org - especially since it's changed since I
looked at it yesterday?  :P)

A


On 8/22/06 1:43 PM, Martijn Faassen [EMAIL PROTECTED] wrote:

 Hi there,
 
 It's nearing september, and I'd like to start some work on zope.org, in
 particular www.zope.org/foundation. I'm looking for volunteers to help.
 
 As you all probably know, we have a Zope Foundation, of which I'm a
 board member (representative for the committer members). Aroldo
 Souza-Leite is also on the board as chairman.
 
 Aroldo and I are the board members responsible for the zope.org website
 committee. The task of the zope.org committee is to improve the zope.org
 web presence. Aroldo and I won't be doing the work or decision making
 alone, but since we have the backing of the foundation, we can make
 decisions stick. Volunteers are welcome to join this committee!
 
 One of the first tasks at hand is to improve the presence of the Zope
 Foundation on the web. We currently have a section here:
 
 http://www.zope.org/foundation
 
 This website doesn't look very pretty at all. My proposal is to
 reorganize it, have some introductory text, put in links to relevant
 information resources, such as mailing lists (including this one), and
 to stick a nice layout around it.
 
 This project will serve two purposes:
 
 * to create a nice website for the foundation.
 
 * serve as an example and test case for the wider zope.org renewal project.
 
 So, please help us out.
 
 Layout
 --
 
 I propose we use Tom Von Lahndorff's design for the foundation website.
 For the purposes of the foundation site we should strip it down:
 
 * no login necessary
 
 * no search (unless we integrate google-based search, perhaps)
 
 * possibly no drop-down menus at the top. We could simply have links
 there, or possibly a standard left-hand side navigation. This design is
 the top page; we need to see a sub-page design as well.
 
 Tom, are you still there? This time we're going to use what you made
 quickly, if you're willing!
 
 Structure and text
 --
 
 Aroldo and I (Aroldo, I'm volunteering you :) are willing to work on a
 bunch of restructured text documents that introduce the zope foundation
 and set up the site structure.
 
 Technology
 --
 
 I've said this before, and I'll just repeat it again: let's try to avoid
 technology discussions as much as we can. Most of us, including myself,
 are techies, so it's attractive to do this, but we just want to put a
 website up. This doesn't require any new technology, nor does it require
 a heavy-duty CMS.
 
 To break my own rule on no technology discussions right way:
 
 I propose letting www.zope.org/foundation point to a Apache directory,
 where we maintain HTML files. We will then generate such HTML files from
 restructured text we maintain in the zope SVN repository, using a simple
 script that drives docutils.
 
 If you want examples of websites that are managed this way and I have
 personal experience with, check out the following places on codespeak:
 
 http://codespeak.net/z3/
 
 http://codespeak.net/lxml/
 
 Since we're not aiming for a big site, this should be sufficient technology.
 
 For the larger zope.org, we may need something else, or we may not.
 Let's treat the foundation website as a trial case here too, and see how
 we like it.
 
 There's one alternative to this approach that will also work on the
 short term: a volunteer that's willing to work with zope.org and
 integrate the layout and text and structure we want into existing
 zope.org infrastructure. If someone volunteers to work on this, I'd be
 happy to do it that way as well. Does anyone volunteer?
 
 Any other technological approaches require more setup and I'd like to
 defer them for the time being. We can take them up when we tackle
 zope.org proper.
 
 I hope we can all have this together in a couple of weeks, so let's
 start working!
 
 Regards,
 
 Martijn
 ___
 Zope-web maillist  -  Zope-web@zope.org
 http://mail.zope.org/mailman/listinfo/zope-web


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


[ZWeb] Re: volunteers wanted! zope foundation website as guinea pig

2006-08-22 Thread Tom Von Lahndorff


I'm here. I'll tweak the design per the suggestions below and send it  
out. I actually worked on another one since then. Ill send that out  
as well.



On Aug 22, 2006, at 1:43 PM, Martijn Faassen wrote:


Hi there,

It's nearing september, and I'd like to start some work on  
zope.org, in particular www.zope.org/foundation. I'm looking for  
volunteers to help.


As you all probably know, we have a Zope Foundation, of which I'm a  
board member (representative for the committer members). Aroldo  
Souza-Leite is also on the board as chairman.


Aroldo and I are the board members responsible for the zope.org  
website committee. The task of the zope.org committee is to improve  
the zope.org web presence. Aroldo and I won't be doing the work or  
decision making alone, but since we have the backing of the  
foundation, we can make decisions stick. Volunteers are welcome to  
join this committee!


One of the first tasks at hand is to improve the presence of the  
Zope Foundation on the web. We currently have a section here:


http://www.zope.org/foundation

This website doesn't look very pretty at all. My proposal is to  
reorganize it, have some introductory text, put in links to  
relevant information resources, such as mailing lists (including  
this one), and to stick a nice layout around it.


This project will serve two purposes:

* to create a nice website for the foundation.

* serve as an example and test case for the wider zope.org renewal  
project.


So, please help us out.

Layout
--

I propose we use Tom Von Lahndorff's design for the foundation  
website. For the purposes of the foundation site we should strip it  
down:


* no login necessary

* no search (unless we integrate google-based search, perhaps)

* possibly no drop-down menus at the top. We could simply have  
links there, or possibly a standard left-hand side navigation. This  
design is the top page; we need to see a sub-page design as well.


Tom, are you still there? This time we're going to use what you  
made quickly, if you're willing!


Structure and text
--

Aroldo and I (Aroldo, I'm volunteering you :) are willing to work  
on a bunch of restructured text documents that introduce the zope  
foundation and set up the site structure.


Technology
--

I've said this before, and I'll just repeat it again: let's try to  
avoid technology discussions as much as we can. Most of us,  
including myself, are techies, so it's attractive to do this, but  
we just want to put a website up. This doesn't require any new  
technology, nor does it require a heavy-duty CMS.


To break my own rule on no technology discussions right way:

I propose letting www.zope.org/foundation point to a Apache  
directory, where we maintain HTML files. We will then generate such  
HTML files from restructured text we maintain in the zope SVN  
repository, using a simple script that drives docutils.


If you want examples of websites that are managed this way and I  
have personal experience with, check out the following places on  
codespeak:


http://codespeak.net/z3/

http://codespeak.net/lxml/

Since we're not aiming for a big site, this should be sufficient  
technology.


For the larger zope.org, we may need something else, or we may not.  
Let's treat the foundation website as a trial case here too, and  
see how we like it.


There's one alternative to this approach that will also work on the  
short term: a volunteer that's willing to work with zope.org and  
integrate the layout and text and structure we want into existing  
zope.org infrastructure. If someone volunteers to work on this, I'd  
be happy to do it that way as well. Does anyone volunteer?


Any other technological approaches require more setup and I'd like  
to defer them for the time being. We can take them up when we  
tackle zope.org proper.


I hope we can all have this together in a couple of weeks, so let's  
start working!


Regards,

Martijn


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


[Zope] nested metal macros

2006-08-22 Thread Antonio Beamud Montero
Hi all:
I'm trying to nest several macros but only the last is showed.
I define for example macroA with a slot named slotA for example.
macroB uses macroA and fills slotA, but also defines a slot.. something
 like this:
- MacroA 

html xmlns=http://www.w3.org/1999/xhtml;
  xmlns:tal=http://xml.zope.org/namespaces/tal;
  xmlns:metal=http://xml.zope.org/namespaces/metal;
  metal:define-macro=macroA
head
span metal:define-slot=slotA
/span

- MacroB
div xmlns:metal=http://xml.zope.org/namespaces/metal;
 metal:use-macro=container/macroA/macros/macroA
span metal:fill-slot=slotA
   div align=center metal:define-macro=macroB
  span metal:define-slot=slotB/span
   /div
/span
/div
-Page

And last I use the macroB with:
div xmlns:metal=http://xml.zope.org/namespaces/metal;
 metal:use-macro=container/macroB/macros/macroB
 
 span metal:fill-slot=slotB
 brHello!
 /span
/div

I think all the process is as follows:
Page calls macroB, macroB calls macroA, and all the code is rendered,
the problem is only the code inside macroB is rendered... 
It's posible to nest macros this way?

Greetings.

___
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] Re: [Setup] Re: Can't Get Products To Show Up!

2006-08-22 Thread Chris Withers

beno wrote:
/usr/local/zope/instance2/Products/ATContentTypes/configuration/datatype.py, 
line 25, in ?

   from Products.CMFCore import permissions as CMFCorePermissions
ImportError: cannot import name permissions


That just looks like your versions of CMFCore and ATContentTypes aren't 
compatible...


Chris

--
Simplistix - Content Management, Zope  Python Consulting
   - http://www.simplistix.co.uk

___
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] Limiting access

2006-08-22 Thread Chris Withers

David wrote:
Is there some mechanism in Zope or can be added to a Zope instance  
that would limit the number of requests that are served per IP  
address within a certain period of time? We are aware that this would  
also affect Google and other search engine spiders, but as they  
usually come from a known IP range, it would be nice if we could  
exempt these from the throttling.


Sorry, only just saw this. Not in Zope, but you may look at newer 
versions of the fail2ban package...


cheers,

Chris

--
Simplistix - Content Management, Zope  Python Consulting
   - http://www.simplistix.co.uk

___
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] Multiple conditions inside tales

2006-08-22 Thread Jonathan Bowlas
Title: Multiple conditions inside tales






Hi All, 

Just a quickie to see if I can do this:

tal:condition=python:context.REQUEST.model.meta_type=='Silva Publication' or context.REQUEST.model.is_default()

When I test it seems to ignore the 2nd condition, so could anyone suggest the correct syntax.

Cheers

Jon


___
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] Zope behind iis

2006-08-22 Thread Siddharth Sethi



Hi, i have a simple 
question... should i be able to see zope when iis is running? I am asking this 
because i am trying to setup Enfold Proxy and it is not able to reach http://localhost:8080. What happens is that 
when iis is stopped my plone and zope both run fine but when i start iis, plone 
does not display anything as iis uses port 80 but zope stops working too. It 
gives me ap age can not be displayed error in my ie. So if any one can tell me 
how to get zope running when iis is running, it would help me get Enfold Proxy 
started too.

Thanks in 
advance.
___
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 behind iis

2006-08-22 Thread Siddharth Sethi



And i currently have no firewall running 
too.


From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf Of Siddharth 
SethiSent: August 22, 2006 10:46 AMTo: 
zope@zope.orgSubject: [Zope] Zope behind iis

Hi, i have a simple 
question... should i be able to see zope when iis is running? I am asking this 
because i am trying to setup Enfold Proxy and it is not able to reach http://localhost:8080. What happens is that 
when iis is stopped my plone and zope both run fine but when i start iis, plone 
does not display anything as iis uses port 80 but zope stops working too. It 
gives me ap age can not be displayed error in my ie. So if any one can tell me 
how to get zope running when iis is running, it would help me get Enfold Proxy 
started too.

Thanks in 
advance.
___
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] MailBoxer Question

2006-08-22 Thread beno

Hi;
The creator of this Product hasn't returned my email, so I am asking the 
list for help. I have done the following:


* OS is FreeBSD 6.1, Zope is 2.7.8
* Installed with MaildropHost (also have SecureMailHost). Followed all 
instructions in MaildropHost.
* Installed smtp2zope.py in /var/qmail/bin (I use qmail, so I presume 
this is correct??).

* Added a new alias in /etc/aliases as per instructions.
* I have an already existing MailHost (although this appears to not be 
an issue, because of MaildropHost).

* Successfully created and populated a MailBoxer folder.

Now...how does it work?? Surfing to the index page shows an empty 
archive! How does one subscribe to and email and administer the list?

TIA,
beno
___
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] MailBoxer Question

2006-08-22 Thread Joerg Baach
Hi beno,

 Now...how does it work?? Surfing to the index page shows an empty
 archive! How does one subscribe to and email and administer the list?

I can't tell about the qmail side of things, as I am pulling the email
from a pop3 box. But on the administration side: have a look at the
properties panel of the Mail Boxer in the ZMI. The variable 'maillist'
contains the subscribed emails.

Subscribing / unsubscribing via email is explained on:

http://iungo.org/products/MailBoxer/


Cheers,

  Joerg
___
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] MailBoxer Question

2006-08-22 Thread beno

Joerg Baach wrote:

I can't tell about the qmail side of things, as I am pulling the email
from a pop3 box. But on the administration side: have a look at the
properties panel of the Mail Boxer in the ZMI. 

I think I've got a handle on that...

The variable 'maillist'
contains the subscribed emails.

Subscribing / unsubscribing via email is explained on:

http://iungo.org/products/MailBoxer/
  
Well, one thing I noticed I did wrong off the bat was in /etc/aliases I 
had a line .../manage_main where it should have been 
../manage_mailboxer. That's changed. However, that page you reference 
says: People can subscribe/unsubscribe your list by sending an 'signed' 
email with a specified email-subject (not body!!!) to the same address 
where the postings will go. What is the signature? How do I edit that?

TIA,
beno
___
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] MailBoxer Question

2006-08-22 Thread Andreas Jung



--On 22. August 2006 12:15:09 -0400 beno [EMAIL PROTECTED] wrote:


Joerg Baach wrote:



Well, one thing I noticed I did wrong off the bat was in /etc/aliases I
had a line .../manage_main where it should have been ../manage_mailboxer.
That's changed. However, that page you reference says: People can
subscribe/unsubscribe your list by sending an 'signed' email with a
specified email-subject (not body!!!) to the same address where the
postings will go.


You might try it out yourself (before asking) by opening your mail client 
and sending an email with the subject subscribe to your new list address.


-aj

pgpuaWMlNAeRt.pgp
Description: 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] MailBoxer Question

2006-08-22 Thread beno

Andreas Jung wrote:
You might try it out yourself (before asking) by opening your mail 
client and sending an email with the subject subscribe to your new 
list address.
That did not work. It came to the mailbox directly. Here is my line from 
/etc/aliases:


rejoice:| smtp2zope.py 
http://202.71.106.119:7080/rejoice.2012.vi/rejoice/manage_mailboxer


where rejoice is the name of the list and the name of the mailboxer 
instance within folder rejoice.2012.vi.

TIA,
beno
___
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] MailBoxer Question

2006-08-22 Thread Joerg Baach
Hi beno,
 Subscribing / unsubscribing via email is explained on:

 http://iungo.org/products/MailBoxer/


 email with a specified email-subject (not body!!!) to the same address
 where the postings will go. What is the signature? How do I edit that?
 TIA,

In the above mentioned page:

For example: To subscribe to the list send a mail with the subject (not
the body) subscribe (without quotes!) to [EMAIL PROTECTED]

Reading the page helps a lot, and tiny bit of poking around in the ZMI
should get your started.

Cheers,

  Joerg
___
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] Multiple conditions inside tales

2006-08-22 Thread Jonathan Bowlas
So what if the first part evaluates to false? Which is what would happen in
my case, it doesn't then test for the 2nd condition?

J

-Original Message-
From: Andreas Jung [mailto:[EMAIL PROTECTED] 
Sent: 22 August 2006 15:43
To: [EMAIL PROTECTED]; zope@zope.org
Subject: Re: [Zope] Multiple conditions inside tales



--On 22. August 2006 15:36:20 +0100 Jonathan Bowlas [EMAIL PROTECTED] 
wrote:

 Hi All,

 Just a quickie to see if I can do this:

 tal:condition=python:context.REQUEST.model.meta_type=='Silva Publication'
 or context.REQUEST.model.is_default()



If the first part of the OR clause evaluates to True then there is no need
to evaluate the second part (optimization).

-aj


___
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] MailBoxer Question

2006-08-22 Thread Andreas Jung



--On 22. August 2006 12:35:40 -0400 beno [EMAIL PROTECTED] wrote:


Andreas Jung wrote:

You might try it out yourself (before asking) by opening your mail
client and sending an email with the subject subscribe to your new
list address.

That did not work. It came to the mailbox directly. Here is my line from
/etc/aliases:

rejoice:| smtp2zope.py
http://202.71.106.119:7080/rejoice.2012.vi/rejoice/manage_mailboxer

where rejoice is the name of the list and the name of the mailboxer



Nothing against Maik's famous Mailboxer...perhaps Mailman might be
the better choice.

-aj

pgpUF1gPDEILC.pgp
Description: 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] Multiple conditions inside tales

2006-08-22 Thread Andreas Jung



--On 22. August 2006 17:37:40 +0100 Jonathan Bowlas [EMAIL PROTECTED] 
wrote:



So what if the first part evaluates to false? Which is what would happen
in my case, it doesn't then test for the 2nd condition?

J


Did I say said? No, I didn't. And of course the second part will be 
evaluated if the first one evals to False. If you can provide a 
reproducable testcase that provides evidence, I'll believe in your original 
statement. Currently I don't :-)


-aj

pgpwBz8AHX6or.pgp
Description: 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] MailBoxer Question

2006-08-22 Thread beno

Joerg Baach wrote:

For example: To subscribe to the list send a mail with the subject (not
the body) subscribe (without quotes!) to [EMAIL PROTECTED]
  
Yes, I did read that. I must misunderstand it. This is what I think it 
means, and I'm wrong, because my email client won't let me send it:


[EMAIL PROTECTED]://202.71.106.119:7080/MailHost/manage_main.rejoice.2012.vi

Can you provide me with a correct example of it? I did read the 
instructions. What they lack is examples for those of us less 
technically inclined than the author :)


As far as Andreas' comment of switching to Mailman, dunno why, but 
Mailman requires cgi scripts, and I use Pound as reverse proxy directly 
to Zope, so I don't even know how to run cgi scripts, since Zope doesn't 
support them. That's why I googled up MailBoxer, and it looks like a 
good product.

TIA,
beno
___
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] nested metal macros

2006-08-22 Thread Dieter Maurer
Antonio Beamud Montero wrote at 2006-8-22 08:46 +0200:
 ...
- MacroB
div xmlns:metal=http://xml.zope.org/namespaces/metal;
 metal:use-macro=container/macroA/macros/macroA
span metal:fill-slot=slotA
   div align=center metal:define-macro=macroB
  span metal:define-slot=slotB/span
   /div
/span
/div

macroB is only the inner div not the complete content of
your page template.

 ...
I think all the process is as follows:
Page calls macroB, macroB calls macroA, and all the code is rendered,
the problem is only the code inside macroB is rendered... 

macroB does not call macroA because macroB does not
contain a use-macro for macroA.

It's posible to nest macros this way?

Not the way you try 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] Multiple conditions inside tales

2006-08-22 Thread Dieter Maurer
Jonathan Bowlas wrote at 2006-8-22 15:36 +0100:
Just a quickie to see if I can do this:

tal:condition=python:context.REQUEST.model.meta_type=='Silva Publication'
or context.REQUEST.model.is_default()

When I test it seems to ignore the 2nd condition, so could anyone suggest
the correct syntax.

The syntax is correct (at least, if you mean or and not and).
And it should work...



-- 
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] nested metal macros

2006-08-22 Thread Antonio Beamud Montero
El mar, 22-08-2006 a las 19:13 +0200, Dieter Maurer escribió:
 Antonio Beamud Montero wrote at 2006-8-22 08:46 +0200:
  ...
 - MacroB
 div xmlns:metal=http://xml.zope.org/namespaces/metal;
  metal:use-macro=container/macroA/macros/macroA
 span metal:fill-slot=slotA
div align=center metal:define-macro=macroB
   span metal:define-slot=slotB/span
/div
 /span
 /div
 
 macroB is only the inner div not the complete content of
 your page template.
 
  ...
 I think all the process is as follows:
 Page calls macroB, macroB calls macroA, and all the code is rendered,
 the problem is only the code inside macroB is rendered... 
 
 macroB does not call macroA because macroB does not
 contain a use-macro for macroA.
 
 It's posible to nest macros this way?
 
 Not the way you try it...

Ok... I want to define a template (like a skeleton), other template
(like the body of the skeleton) and lot of templates in sections of the
body of the skeleton and reuse the skeleton and the body across all my
web... How I can do that? It's posible or only one level of macro
definitions is posible? Where I can find examples or resources about
that...?

A lot of thanks.

 
 

___
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: nested metal macros

2006-08-22 Thread Tonico Strasser

Antonio Beamud Montero schrieb:

Ok... I want to define a template (like a skeleton), other template
(like the body of the skeleton) and lot of templates in sections of the
body of the skeleton and reuse the skeleton and the body across all my
web... How I can do that? It's posible or only one level of macro
definitions is posible? Where I can find examples or resources about
that...?


Maybe the new MacroExtension feature is what you need:
http://www.zope.org/Wikis/DevSite/Projects/ZPT/MacroExtension

I'm not sure if it's possible with Zope 2.x Page Templates though.

HTH,
Tonico

___
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] nested metal macros

2006-08-22 Thread Dieter Maurer
Antonio Beamud Montero wrote at 2006-8-22 19:21 +0200:
 ...
Ok... I want to define a template (like a skeleton), other template
(like the body of the skeleton) and lot of templates in sections of the
body of the skeleton and reuse the skeleton and the body across all my
web... How I can do that?

I do not understand what you precisely want to achieve.

However, you could get something like the example in your
original post by:

   *  define macroB at the page level (it uses macroA)

   *  make your former macroB a macroC and define it inside a slot.

   *  then you can use macroB (which will use macroA in turn)
  and fill the slot with a use of macroC (or something else).



-- 
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] Re: nested metal macros

2006-08-22 Thread Andreas Jung



--On 22. August 2006 19:31:44 +0200 Tonico Strasser 
[EMAIL PROTECTED] wrote:



Antonio Beamud Montero schrieb:

Ok... I want to define a template (like a skeleton), other template
(like the body of the skeleton) and lot of templates in sections of the
body of the skeleton and reuse the skeleton and the body across all my
web... How I can do that? It's posible or only one level of macro
definitions is posible? Where I can find examples or resources about
that...?


Maybe the new MacroExtension feature is what you need:
http://www.zope.org/Wikis/DevSite/Projects/ZPT/MacroExtension

I'm not sure if it's possible with Zope 2.x Page Templates though.



Likely with the Zope 3 ZPT implementation within Zope 2.10.

-aj

pgpg4rGHaZoTb.pgp
Description: 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] nested metal macros

2006-08-22 Thread Antonio Beamud Montero
El mar, 22-08-2006 a las 19:34 +0200, Dieter Maurer escribió:
 Antonio Beamud Montero wrote at 2006-8-22 19:21 +0200:
  ...
 Ok... I want to define a template (like a skeleton), other template
 (like the body of the skeleton) and lot of templates in sections of the
 body of the skeleton and reuse the skeleton and the body across all my
 web... How I can do that?
 
 I do not understand what you precisely want to achieve.
 
 However, you could get something like the example in your
 original post by:
 
*  define macroB at the page level (it uses macroA)

*  make your former macroB a macroC and define it inside a slot.

Sorry, but I don't understand this... can you give me a simple example
(I think is the same I have tried before..)

A lot of thanks


*  then you can use macroB (which will use macroA in turn)
   and fill the slot with a use of macroC (or something 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 )


[Zope] Zope.conf File and Pound

2006-08-22 Thread beno

Hi;
I need to implement SSL. So I nosed around /etc/zope.conf and found 
several containers for ports, but no ssl-server container. Why? How 
do I get Zope to listen, for example, on port 8443?


For those who use Pound (and perhaps this is better addressed to the 
Pound ML), it is written one should add this:

python -X -w 8080 -y 8443
to the start file, but doesn't specify which file that is. It clearly 
isn't zope.conf, it doesn't look like zopectl or zopectl.py, either.

TIA,
beno
___
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.conf File and Pound

2006-08-22 Thread Jens Vagelpohl

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


On 22 Aug 2006, at 23:01, beno wrote:


Hi;
I need to implement SSL. So I nosed around /etc/zope.conf and found  
several containers for ports, but no ssl-server container. Why?  
How do I get Zope to listen, for example, on port 8443?


Zope does not do SSL. Unless you patch it up horribly. I still don't  
understand your refusal to use Apache in front of Zope, it would  
immediately solve a whole bunch of things that you seem to be  
grappling with (and no one else is).


jens


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

iD8DBQFE66KwRAx5nvEhZLIRAilWAKCBBhozKBbkRBr1u8LAnydf/gZ6JACgnw6w
uZ24lLsn4s9gHznjl4mdIAI=
=f2sT
-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] Zope.conf File and Pound

2006-08-22 Thread Gabriel Genellina

At Tuesday 22/8/2006 21:34, Jens Vagelpohl wrote:


I need to implement SSL. So I nosed around /etc/zope.conf and found
several containers for ports, but no ssl-server container. Why?
How do I get Zope to listen, for example, on port 8443?


Zope does not do SSL. Unless you patch it up horribly. I still don't
understand your refusal to use Apache in front of Zope, it would
immediately solve a whole bunch of things that you seem to be
grappling with (and no one else is).


I strongly suggest doing that too. My life is a lot easier now - I 
dont care about horrible hacks, unsupported libraries, recompiling C 
modules... just Apache+Zope.




Gabriel Genellina
Softlab SRL 






__
Preguntá. Respondé. Descubrí.
Todo lo que querías saber, y lo que ni imaginabas,
está en Yahoo! Respuestas (Beta).
¡Probalo ya! 
http://www.yahoo.com.ar/respuestas


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