[Grok-dev] Re: zc.sourcefactory

Philipp von Weitershausen philipp at weitershausen.de
Mon Sep 3 04:34:39 EDT 2007


Wichert Akkerman wrote:
> Previously Jan Ulrich Hasecke wrote:
>> Am 31.08.2007 um 22:32 schrieb Philipp von Weitershausen:
>>
>>> A workaround would be to use a source (or vocabulary) where the  
>>> value of can be different from the display item and the token used  
>>> in forms. Christian already pointed out how to write a simple  
>>> source with zc.sourcefactory.
>> Is zc.sourcefactory a default part of grok?
>>
>> I get an ImportError.
>>     ImportError: No module named sourcefactory.basic
>>
>> If it is not installed by default, how do I install it? Are there any  
>> howtos?
>>
>> I am working with grokproject.
> 
> Add it to the eggs= line buildout.cfg and rerun buildout.

That will work, but doesn't make sense. By introducing imports of 
'zc.sourcefactory' in his code, Jan Ulrich is making zc.sourcefactory a 
dependency. That should be reflected in setup.py.


-- 
http://worldcookery.com -- Professional Zope documentation and training


More information about the Grok-dev mailing list