I have a special unicode codec that I register with Zope. like: import codec codecs.register(special_codec) But every time I refresh the product that uses the codec, it doesn't get registered again. So my somestring.encode() function returns a None. For every minor change I need to restart the zope server, and it is just soooo slooow to work with. Does anybody have an idea as to how I can avoid doing this? I am in a WinXP machine with Zope 2.7.3 from the installer. I guess I need to put the codec somewhere outside the Product folder, but how do I then get it loaded as part of the Zope startup? -- hilsen/regards Max M, Denmark http://www.mxm.dk/ IT's Mad Science
Max M wrote:
import codec codecs.register(special_codec)
Oh well, forget about it. I just made a package in the Products dir, where the codec is registered in the __init__.py file. Then I can reload the other product all I want. -- hilsen/regards Max M, Denmark http://www.mxm.dk/ IT's Mad Science
participants (1)
-
Max M