[Zope-CMF] Required argument for registerDirectory ZCML directive

2008-01-19 Thread Dorneles Treméa
Hey folks,

I'm wondering if is there any reason for registerDirectory (from
CMFCore.zcml.py) also requiring the 'name' argument when you inform
a value for the 'directory' argument:

"""
def registerDirectory(_context, name, directory=None, recursive=False,
  ignore=ignore):
""" Add a new directory to the registry.
"""
if directory is None:
subdir = 'skins/%s' % str(name)
filepath = path.join(_context.package.__path__[0], 'skins',
 str(name))
else:
subdir = str(directory[len(_context.package.__path__[0])+1:])
filepath = str(directory)
"""

>From this point and on, only the 'filepath' value is used.

I would say that you only need to specify one of them, but not both,
which seems to be easy to do with invariants.

Am I on the right track? :-)

-- 

Dorneles Treméa
X3ng Web Technology
http://nosleepforyou.blogspot.com

___
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: 11 OK

2008-01-19 Thread CMF Tests Summarizer
Summary of messages to the cmf-tests list.
Period Fri Jan 18 12:00:00 2008 UTC to Sat Jan 19 12:00:00 2008 UTC.
There were 11 messages: 11 from CMF Unit Tests.


Tests passed OK
---

Subject: OK : CMF-1.5 Zope-2.7 Python-2.3.6 : Linux
From: CMF Unit Tests
Date: Fri Jan 18 21:48:33 EST 2008
URL: http://mail.zope.org/pipermail/cmf-tests/2008-January/007685.html

Subject: OK : CMF-1.5 Zope-2.8 Python-2.3.6 : Linux
From: CMF Unit Tests
Date: Fri Jan 18 21:50:03 EST 2008
URL: http://mail.zope.org/pipermail/cmf-tests/2008-January/007686.html

Subject: OK : CMF-1.5 Zope-2.9 Python-2.4.4 : Linux
From: CMF Unit Tests
Date: Fri Jan 18 21:51:33 EST 2008
URL: http://mail.zope.org/pipermail/cmf-tests/2008-January/007687.html

Subject: OK : CMF-1.6 Zope-2.8 Python-2.3.6 : Linux
From: CMF Unit Tests
Date: Fri Jan 18 21:53:04 EST 2008
URL: http://mail.zope.org/pipermail/cmf-tests/2008-January/007688.html

Subject: OK : CMF-1.6 Zope-2.9 Python-2.4.4 : Linux
From: CMF Unit Tests
Date: Fri Jan 18 21:54:34 EST 2008
URL: http://mail.zope.org/pipermail/cmf-tests/2008-January/007689.html

Subject: OK : CMF-2.0 Zope-2.9 Python-2.4.4 : Linux
From: CMF Unit Tests
Date: Fri Jan 18 21:56:04 EST 2008
URL: http://mail.zope.org/pipermail/cmf-tests/2008-January/007690.html

Subject: OK : CMF-2.0 Zope-2.10 Python-2.4.4 : Linux
From: CMF Unit Tests
Date: Fri Jan 18 21:57:34 EST 2008
URL: http://mail.zope.org/pipermail/cmf-tests/2008-January/007691.html

Subject: OK : CMF-2.1 Zope-2.10 Python-2.4.4 : Linux
From: CMF Unit Tests
Date: Fri Jan 18 21:59:04 EST 2008
URL: http://mail.zope.org/pipermail/cmf-tests/2008-January/007692.html

Subject: OK : CMF-2.1 Zope-trunk Python-2.4.4 : Linux
From: CMF Unit Tests
Date: Fri Jan 18 22:00:34 EST 2008
URL: http://mail.zope.org/pipermail/cmf-tests/2008-January/007693.html

Subject: OK : CMF-trunk Zope-2.10 Python-2.4.4 : Linux
From: CMF Unit Tests
Date: Fri Jan 18 22:02:04 EST 2008
URL: http://mail.zope.org/pipermail/cmf-tests/2008-January/007694.html

Subject: OK : CMF-trunk Zope-trunk Python-2.4.4 : Linux
From: CMF Unit Tests
Date: Fri Jan 18 22:03:34 EST 2008
URL: http://mail.zope.org/pipermail/cmf-tests/2008-January/007695.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