Re: [Zope-dev] zope.site.hooks

2009-10-12 Thread Wichert Akkerman
On 10/12/09 01:22 , Fabio Tranchitella wrote:
 Hello,

 * 2009-10-09 15:37, Martijn Faassen wrote:
 I'm okay with *not* doing the split up and going with your idea, but I
 think eventually such a split up would simplify things. One advantage
 would be that someone could examine repoze.zcml and not see distracting
 ZCML implementations in zope.component *too*.

 I may be wrong, but I suppose the dependency on zope.security in
 zope.component is the only reason why repoze.zcml is around.

Perhaps it is an idea to make zope.component an extension for 
repoze.zcml? repoze.zcml already exists and works well, and people who 
want the extra zope magic can keep using zope.component. I suspect that 
is less work than trying to split up zope.component.

Wichert.

___
Zope-Dev maillist  -  Zope-Dev@zope.org
https://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] zope.site.hooks

2009-10-12 Thread Fabio Tranchitella
* 2009-10-12 08:55, Wichert Akkerman wrote:
 Perhaps it is an idea to make zope.component an extension for
 repoze.zcml? repoze.zcml already exists and works well, and people who
 want the extra zope magic can keep using zope.component. I suspect that
 is less work than trying to split up zope.component.

repoze.zcml uses a different ZCML namespace (bfg), so you cannot replace
zope.component.zcml with repoze.zcml without changing your code.

Fabio
___
Zope-Dev maillist  -  Zope-Dev@zope.org
https://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] five.localsitemanager and unregisterUtility

2009-10-12 Thread Michael Howitz
Am 09.10.2009 um 14:41 schrieb Hanno Schlichting:

 Hi Sylvain.

 I'm including Michael here, who's added the mentioned feature in the
 first place.

 On Fri, Oct 9, 2009 at 2:22 PM, Sylvain Viollon sylv...@infrae.com  
 wrote:
   I used to use those features in Silva. It work well with 0.4, but
   it's broken in 1.x. (I have tests in Silva testing that).

   This have to do with the wrapping (to remember the acquisition  
 path)
   of an utility which is done inside the registry by registerUtility,
   which breaks the unregisterUtility.

   unregisterUtility is checking that the component you want to
   unregister is the same than the one which is in the registry, for
   the same specification, which is not true, because the one in the
   registry in wrapped with a ComponentPathWrapper (in register).

It seems that I overlooked the unregisterUtility functionality when  
implementing that registerUtility stores the acquisition path.

   If you do grep unregisterUtility in five.localsitemanager, you have
   no match, but the site API defines both, so they should both
   works (and so be tested).

   I volunteer myself to add test (and fix it) in the SVN, as I need
   that fix.

   Does anyone have an objection with that ?

 No objection, please go ahead.

+ 1

   Does any official maintainer will do a release (1.1.1, as it will  
 be
   a bug fix) afterwards ?

 Sure, ping me once you are done and I'll cut a new release. Michael,
 do you want to test anything, before I do a new release?

For me it's enough that the tests inside five.localsitemanager succeed.


Yours sincerely,
-- 
Michael Howitz · m...@gocept.com · software developer
gocept gmbh  co. kg · forsterstraße 29 · 06112 halle (saale) · germany
http://gocept.com · tel +49 345 1229889 8 · fax +49 345 1229889 1
Zope and Plone consulting and development

___
Zope-Dev maillist  -  Zope-Dev@zope.org
https://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] ZODB Competing read/writes: How to find out which attribute?

2009-10-12 Thread Jim Fulton
On Sun, Oct 11, 2009 at 3:27 PM, Marius Gedminas mar...@gedmin.as wrote:
...
 Sadly, the ZODB doesn't track backreferences, so there only way to find
 out for sure what points to your object is to do a full graph traversal.

The zc.zodbdgc package has a database verification scripts that
optionally creates a backreference database.

Jim

-- 
Jim Fulton
___
Zope-Dev maillist  -  Zope-Dev@zope.org
https://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope )


[Zope-dev] Zope Tests: 8 OK

2009-10-12 Thread Zope Tests Summarizer
Summary of messages to the zope-tests list.
Period Sun Oct 11 12:00:00 2009 UTC to Mon Oct 12 12:00:00 2009 UTC.
There were 8 messages: 8 from Zope Tests.


Tests passed OK
---

Subject: OK : Zope-2.10 Python-2.4.6 : Linux
From: Zope Tests
Date: Sun Oct 11 20:47:51 EDT 2009
URL: http://mail.zope.org/pipermail/zope-tests/2009-October/012760.html

Subject: OK : Zope-2.11 Python-2.4.6 : Linux
From: Zope Tests
Date: Sun Oct 11 20:49:51 EDT 2009
URL: http://mail.zope.org/pipermail/zope-tests/2009-October/012761.html

Subject: OK : Zope-2.12 Python-2.4.6 : Linux
From: Zope Tests
Date: Sun Oct 11 20:51:51 EDT 2009
URL: http://mail.zope.org/pipermail/zope-tests/2009-October/012762.html

Subject: OK : Zope-2.12-alltests Python-2.4.6 : Linux
From: Zope Tests
Date: Sun Oct 11 20:53:51 EDT 2009
URL: http://mail.zope.org/pipermail/zope-tests/2009-October/012763.html

Subject: OK : Zope-2.12 Python-2.6.2 : Linux
From: Zope Tests
Date: Sun Oct 11 20:55:51 EDT 2009
URL: http://mail.zope.org/pipermail/zope-tests/2009-October/012764.html

Subject: OK : Zope-2.12-alltests Python-2.6.2 : Linux
From: Zope Tests
Date: Sun Oct 11 20:57:51 EDT 2009
URL: http://mail.zope.org/pipermail/zope-tests/2009-October/012765.html

Subject: OK : Zope-trunk Python-2.6.2 : Linux
From: Zope Tests
Date: Sun Oct 11 20:59:52 EDT 2009
URL: http://mail.zope.org/pipermail/zope-tests/2009-October/012766.html

Subject: OK : Zope-trunk-alltests Python-2.6.2 : Linux
From: Zope Tests
Date: Sun Oct 11 21:01:52 EDT 2009
URL: http://mail.zope.org/pipermail/zope-tests/2009-October/012767.html

___
Zope-Dev maillist  -  Zope-Dev@zope.org
https://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope )


[Zope-dev] Is it all right to merge for unicodeSpliting at ZCTextIndex?

2009-10-12 Thread Takeshi Yamamoto
I would like to merge the following change to the trunk.

svn diff -r 104723:104761 
svn://svn.zope.org/repos/main/Zope/branches/tyam-unicodeSplitterPatch

This change is to add a hook for proper text indexing for Ease Asian  
Languages(CJK).

Is it all right to merge this?

Thank you in advance.
Takeshi Yamamoto
___
Zope-Dev maillist  -  Zope-Dev@zope.org
https://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] Is it all right to merge for unicodeSpliting at ZCTextIndex?

2009-10-12 Thread David Glick
Takeshi Yamamoto wrote:
 I would like to merge the following change to the trunk.

 svn diff -r 104723:104761 
 svn://svn.zope.org/repos/main/Zope/branches/tyam-unicodeSplitterPatch

 This change is to add a hook for proper text indexing for Ease Asian  
 Languages(CJK).

 Is it all right to merge this?
   
Don't you actually want to merge it to the 2.12 branch?
David
___
Zope-Dev maillist  -  Zope-Dev@zope.org
https://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] Is it all right to merge for unicodeSpliting at ZCTextIndex?

2009-10-12 Thread Takeshi Yamamoto
I would like to make this change effective as soon as possible.
So, hopefully to the 2.12.1.

I thought applying to the trunk is the fastest way to do so.

Takeshi

On Oct 13, 2009, at 1:19 AM, David Glick wrote:

 Takeshi Yamamoto wrote:
 I would like to merge the following change to the trunk.

 svn diff -r 104723:104761 
 svn://svn.zope.org/repos/main/Zope/branches/tyam-unicodeSplitterPatch

 This change is to add a hook for proper text indexing for Ease  
 Asian  Languages(CJK).

 Is it all right to merge this?

 Don't you actually want to merge it to the 2.12 branch?
 David

___
Zope-Dev maillist  -  Zope-Dev@zope.org
https://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] Is it all right to merge for unicodeSpliting at ZCTextIndex?

2009-10-12 Thread Hanno Schlichting
On Mon, Oct 12, 2009 at 6:23 PM, Takeshi Yamamoto t...@mac.com wrote:
 I would like to make this change effective as soon as possible.
 So, hopefully to the 2.12.1.

There's both a maintenance branch for 2.12 and trunk (which will become 2.13).

I'm +1 on merging. It looks simple enough and I know it makes proper
east-asian indexing support possible in Plone.

Hanno
___
Zope-Dev maillist  -  Zope-Dev@zope.org
https://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] zope.site.hooks

2009-10-12 Thread Chris McDonough
Fabio Tranchitella wrote:
 * 2009-10-12 08:55, Wichert Akkerman wrote:
 Perhaps it is an idea to make zope.component an extension for
 repoze.zcml? repoze.zcml already exists and works well, and people who
 want the extra zope magic can keep using zope.component. I suspect that
 is less work than trying to split up zope.component.
 
 repoze.zcml uses a different ZCML namespace (bfg), so you cannot replace
 zope.component.zcml with repoze.zcml without changing your code.

repoze.zcml is stupid simple; its only actual value is 100% test coverage, so 
cutting and pasting its code will always make sense as necessary.

But FTR, using a different ZCML namespace would be fixed by having a 
different meta-ZCML file for meta configuration in any other package.  That 
meta-ZCML file would just copy the meta.zcml from repoze.zcml and change:

   meta:directives namespace=http://namespaces.repoze.org/bfg;

to:

   meta:directives namespace=http://namespaces.zope.org/zope;

... leaving everything else exactly as-is.

OTOH, I don't know how to both give 100% BW compat and have the zope 
namespace be the default for the adapter/utility/subscriber directives.

- C

___
Zope-Dev maillist  -  Zope-Dev@zope.org
https://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] Is it all right to merge for unicodeSpliting at ZCTextIndex?

2009-10-12 Thread Andreas Jung
Am 12.10.09 18:11, schrieb Takeshi Yamamoto:
 I would like to merge the following change to the trunk.

 svn diff -r 104723:104761 
 svn://svn.zope.org/repos/main/Zope/branches/tyam-unicodeSplitterPatch

 This change is to add a hook for proper text indexing for Ease Asian  
 Languages(CJK).

 Is it all right to merge this?
go ahead.

Andreas
attachment: lists.vcf___
Zope-Dev maillist  -  Zope-Dev@zope.org
https://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope )