Re: [Zope-CMF] Re: Adding python packages to ProductsPath

2007-01-24 Thread Dieter Maurer
yuppie wrote at 2007-1-23 18:55 +0100:
> ...
>Yes, I object. This is a hack that resolves the issue just for some 
>special use cases. We need a solution that works with python packages 
>anywhere in the python path.

And "packageresources"
(http://www.handshake.de/~dieter/pyprojects/packageresources.tgz";
can show a way to do it. An alternative could be the upcoming egg's
support for egg local resources.

With "packageresources" a python package/module is identified by
an url of the form "pypackage:", e.g.
"pypackage:Products.CMFCore" or "pypackage:Shared.DC.ZRDB.DA".
A resource (e.g. a file or directory) local to a package
is identified by an url

   "pypackage:/",

e.g. "pypackage:Products.CMFCore/skins"


As you can see: this allows to specifiy location independent
skin directories.



-- 
Dieter
___
Zope-CMF maillist  -  Zope-CMF@lists.zope.org
http://mail.zope.org/mailman/listinfo/zope-cmf

See http://collector.zope.org/CMF for bug reports and feature requests


[Zope-CMF] Re: Tools as local utilities

2007-01-24 Thread yuppie

Hi Jens!


Jens Vagelpohl wrote:

On 22 Jan 2007, at 01:43, Philipp von Weitershausen wrote:

Jens Vagelpohl wrote:
Other than that I have one unrelated failure in the GS tests 
themselves and some logger messages coming through, all those smell 
like test cleanup issues to me. If I run the GenericSetup tests by 
themselves I don't get any failure.


Shrug.

Long live layers to push all the Zope 2 crap into that can't be torn 
down.


The logging message happens in a layer, 
Products.CMFCalendar.testing.FunctionalLayer. I have to admit that 
anything having to do with either the CMFCalendar FunctionalLayer or the 
CMFCore FunctionalLayer has been a pain in the ass to fix with this 
utility work.


The logging messages no longer show up and I simplified the 
FunctionalLayer tests. No need to register the tools again - 
setSite(self.app.site) sets up the correct registry.



But the cleanup issues are still not resolved. AFAICS the problem is 
caused by the new registerUtility() calls that pollute the global registry.


Inside layers we can't use cleanUp() because it would destroy the layer 
setup. I'm afraid each test needs an explicit unregisterUtility() for 
each registered tool.


Or maybe we should perform a complete set up / tear down for each unit 
test, not just for the layer. This way we can always use cleanUp(). That 
might not be too expensive for non-functional tests.


Functional tests don't have the same problem because there is no need to 
mess around with the global registry.



Cheers,

Yuppie


___
Zope-CMF maillist  -  Zope-CMF@lists.zope.org
http://mail.zope.org/mailman/listinfo/zope-cmf

See http://collector.zope.org/CMF for bug reports and feature requests


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

2007-01-24 Thread CMF Tests Summarizer
Summary of messages to the cmf-tests list.
Period Tue Jan 23 12:00:00 2007 UTC to Wed Jan 24 12:00:00 2007 UTC.
There were 9 messages: 9 from CMF Unit Tests.


Test failures
-

Subject: FAILED (failures=1) : CMF-2.0 Zope-2.9 Python-2.4.4 : Linux
From: CMF Unit Tests
Date: Tue Jan 23 21:46:23 EST 2007
URL: http://mail.zope.org/pipermail/cmf-tests/2007-January/003889.html


Tests passed OK
---

Subject: OK : CMF-1.5 Zope-2.7 Python-2.3.6 : Linux
From: CMF Unit Tests
Date: Tue Jan 23 21:38:53 EST 2007
URL: http://mail.zope.org/pipermail/cmf-tests/2007-January/003884.html

Subject: OK : CMF-1.5 Zope-2.8 Python-2.3.6 : Linux
From: CMF Unit Tests
Date: Tue Jan 23 21:40:23 EST 2007
URL: http://mail.zope.org/pipermail/cmf-tests/2007-January/003885.html

Subject: OK : CMF-1.5 Zope-2.9 Python-2.4.4 : Linux
From: CMF Unit Tests
Date: Tue Jan 23 21:41:53 EST 2007
URL: http://mail.zope.org/pipermail/cmf-tests/2007-January/003886.html

Subject: OK : CMF-1.6 Zope-2.8 Python-2.3.6 : Linux
From: CMF Unit Tests
Date: Tue Jan 23 21:43:23 EST 2007
URL: http://mail.zope.org/pipermail/cmf-tests/2007-January/003887.html

Subject: OK : CMF-1.6 Zope-2.9 Python-2.4.4 : Linux
From: CMF Unit Tests
Date: Tue Jan 23 21:44:53 EST 2007
URL: http://mail.zope.org/pipermail/cmf-tests/2007-January/003888.html

Subject: OK : CMF-2.0 Zope-2.10 Python-2.4.4 : Linux
From: CMF Unit Tests
Date: Tue Jan 23 21:47:53 EST 2007
URL: http://mail.zope.org/pipermail/cmf-tests/2007-January/003890.html

Subject: OK : CMF-trunk Zope-2.10 Python-2.4.4 : Linux
From: CMF Unit Tests
Date: Tue Jan 23 21:49:24 EST 2007
URL: http://mail.zope.org/pipermail/cmf-tests/2007-January/003891.html

Subject: OK : CMF-trunk Zope-trunk Python-2.4.4 : Linux
From: CMF Unit Tests
Date: Tue Jan 23 21:50:55 EST 2007
URL: http://mail.zope.org/pipermail/cmf-tests/2007-January/003892.html

___
Zope-CMF maillist  -  Zope-CMF@lists.zope.org
http://mail.zope.org/mailman/listinfo/zope-cmf

See http://collector.zope.org/CMF for bug reports and feature requests


[Zope-CMF] CMF Collector: Open Issues

2007-01-24 Thread tseaver
The following supporters have open issues assigned to them in this collector
(http://www.zope.org/Collectors/CMF).

Assigned and Open


  mhammond

- "Windows DevelopmentMode penalty in CMFCore.DirectoryView",
  [Accepted] http://www.zope.org/Collectors/CMF/366


Pending / Deferred Issues

- "FSPropertiesObject.py cannot handle multiline input for lines, text 
attributes",
  [Deferred] http://www.zope.org/Collectors/CMF/271

- "Can't invalidate skin items in a RAMCacheManager",
  [Pending] http://www.zope.org/Collectors/CMF/343

- "workflow notify success should be after reindex",
  [Deferred] http://www.zope.org/Collectors/CMF/389

- "Possible bug when using a BTreeFolder Member folder",
  [Pending] http://www.zope.org/Collectors/CMF/441

- "Proxy Roles not Working/Applied to Worflow Transition Scripts",
  [Pending] http://www.zope.org/Collectors/CMF/449

- "safe_html filters some tags which should probably not be filtered",
  [Pending] http://www.zope.org/Collectors/CMF/452

- "purge_old in runAllImportSteps not working",
  [Pending] http://www.zope.org/Collectors/CMF/455

- "Danger from Caching Policy Manager",
  [Pending] http://www.zope.org/Collectors/CMF/460


Pending / Deferred Features

- "Favorite.py: queries and anchors in remote_url",
  [Pending] http://www.zope.org/Collectors/CMF/26

- "DefaultDublinCore should have Creator property",
  [Pending] http://www.zope.org/Collectors/CMF/61

- "Document.py: universal newlines",
  [Pending] http://www.zope.org/Collectors/CMF/174

- "portal_type is undefined in initialization code",
  [Pending] http://www.zope.org/Collectors/CMF/248

- "CMFTopic Does Not Cache",
  [Deferred] http://www.zope.org/Collectors/CMF/295

- "Wishlist: a flag that tags the selected action.",
  [Pending] http://www.zope.org/Collectors/CMF/301

- "CMFDefault should make use of allowCreate()",
  [Pending] http://www.zope.org/Collectors/CMF/340

- "Nested Skins",
  [Deferred] http://www.zope.org/Collectors/CMF/377

- "CatalogVariableProvider code + tests",
  [Pending] http://www.zope.org/Collectors/CMF/378

- "manage_doCustomize() : minor additions",
  [Pending] http://www.zope.org/Collectors/CMF/382

- "CMF needs View-based TypeInformation",
  [Pending] http://www.zope.org/Collectors/CMF/437

- "Marker attributes should be deprecated",
  [Pending] http://www.zope.org/Collectors/CMF/440

- "New getNextEvent Method",
  [Pending] http://www.zope.org/Collectors/CMF/462

- "Support 'based-on' attribute for  nodes in skins.xml",
  [Pending] http://www.zope.org/Collectors/CMF/464



___
Zope-CMF maillist  -  Zope-CMF@lists.zope.org
http://mail.zope.org/mailman/listinfo/zope-cmf

See http://collector.zope.org/CMF for bug reports and feature requests