[z3-five] Re: Some design questions

Andreas Jung lists at andreas-jung.com
Tue Apr 19 13:59:52 MEST 2005



--On Montag, 18. April 2005 22:38 Uhr +0200 Philipp von Weitershausen 
<philipp at weitershausen.de> wrote:
>> --On Montag, 18. April 2005 19:58 Uhr +0200 Philipp von Weitershausen
>> <philipp at weitershausen.de> wrote:
>>
>>>    german_stopwords = zapi.getUtility(IStopWords, 'de')
>>>
>>> So, in short, all stop-word objects are utilities that provide
>>> IStopWords and their registration name is the country/language code.
>>> The same thing would most probably make sense for converters (utility
>>> name would be the mime type) and the parsers (name would be the
>>> country/language code again).
>>
>> Utilities are available in Five?
>
> Yup. They work just like in Zope 3, simply use the <utility /> directive
> in ZCML.

How do you deal with testing such things in Five? Currently I have only pure
Python code (using only Zope2 BTrees). Since utitlites need to be configured
using ZCML, how should I setup my tests for testing utilitiy functionalies?
I've seen that the Five tests use a subclass of ZopeTestCase...maybe I don't
want to use ZopeTestCase at the current stage and stick with Python or
core Zope 3 functionalities at the moment...any chance to do this?

Andreas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 186 bytes
Desc: not available
Url : http://codespeak.net/pipermail/z3-five/attachments/20050419/37f53381/attachment-0001.bin


More information about the z3-five mailing list