catonano wrote: > BUT now the startup output gives me some warnings. Here they are (this > is the step 1 of the book): > > > D:\ZopeIstanza>bin\runzope > d:\ZopeIstanza\lib\python\book\messageboard\configure.zcml:9: > DeprecationWarning > : The 'content' alias for the 'class' directive has been deprecated and > will be > removed in Zope 3.5. > > <content class=".messageboard.MessageBoard"> > C:\Programmi\Python24\Lib\site-packages\zope\configuration\config.py:184: > Deprec > ationWarning: zope.app.annotation has moved to zope.annotation. Import > of zope.a > pp.annotation will become unsupported in Zope 3.5 > mod = __import__(mname, *_import_chickens) > C:\Programmi\Python24\Lib\site-packages\zope\configuration\config.py:184: > Deprec > ationWarning: zope.app.annotation.interfaces has moved to > zope.annotation.interf > aces. Import of zope.app.annotation.interfaces will become unsupported > in Zope 3 > .5 > mod = __import__(mname, *_import_chickens) > C:\Programmi\Python24\Lib\site-packages\zope\configuration\fields.py:417: > UserWa > rning: You did not specify an i18n translation domain for the > 'description' fiel > d in d:\ZopeIstanza\lib\python\book\messageboard\configure.zcml > warnings.warn( > d:\ZopeIstanza\lib\python\book\messageboard\configure.zcml:35: > DeprecationWarnin > g: The 'content' alias for the 'class' directive has been deprecated and > will be > removed in Zope 3.5. > > <content class=".message.Message"> > C:\Programmi\Python24\Lib\site-packages\zope\configuration\fields.py:417: > UserWa > rning: You did not specify an i18n translation domain for the 'label' > field in d > :\ZopeIstanza\lib\python\book\messageboard\browser\configure.zcml > warnings.warn( > C:\Programmi\Python24\Lib\site-packages\zope\configuration\fields.py:417: > UserWa > rning: You did not specify an i18n translation domain for the > 'description' fiel > d in d:\ZopeIstanza\lib\python\book\messageboard\browser\configure.zcml > warnings.warn( > C:\Programmi\Python24\Lib\site-packages\zope\configuration\fields.py:417: > UserWa > rning: You did not specify an i18n translation domain for the 'title' > field in d > :\ZopeIstanza\lib\python\book\messageboard\browser\configure.zcml > warnings.warn( > ------ > 2006-08-27T21:52:58 INFO root -- HTTP:localhost:8080 Server started. > Hostname: localhost > Port: 8080 > ------ > 2006-08-27T21:52:58 INFO root Startup time: 9.828 sec real, 9.828 sec CPU > > > looks like the zcml file is a bit obsolete. I still can't fix it myself, > but I surely can go on with the book now !
Each warning should tell you waht you should change in the configure.zcml file. For example:: DeprecationWarning: zope.app.annotation has moved to zope.annotation... This tells you to replace all references to zope.app.annotation with zope.annotation because the package has moved. Similarly, DeprecationWarning: The 'content' alias for the 'class' directive has been deprecated... tells you to replace occurrences of 'content' with 'class'. Philipp _______________________________________________ Zope3-users mailing list [email protected] http://mail.zope.org/mailman/listinfo/zope3-users
