[Zope3-Users] How to register a local adapter?

nixon nxnth at yahoo.com.cn
Sat Jan 5 22:31:22 EST 2008


Hi, dear all,

The scenario:
I have a  folder "MyFolder" created under the root folder of zope3 and make it a site manager.
I want to have a different "index.html" page under MyFolder so that folders under MyFolder look different from the root folder. (It's a common folder and I dont want to make a specail type)
I guess a local adapter may help.
While a local utility could be easily made by clicking "Registration" tab,
I cannot find anything available for local adapter registration through the
web.


I know the local adapter registration API:
e.g. "sm.registerAdapter(FileSize, [IFile])"
It seems to be invoked in runtime. But I don't know where to place it?
I think it should be invoked once during startup and should not be invoked everytime I use the adapter.

Thank you!
Regards
Nixon



      ___________________________________________________________ 
雅虎邮箱传递新年祝福,个性贺卡送亲朋! 
http://cn.mail.yahoo.com/gc/index.html?entry=5&souce=mail_mailletter_tagline
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/zope3-users/attachments/20080106/c8c350f5/attachment.htm


More information about the Zope3-users mailing list