[Zope3-Users] MessageBoard tutorial deprecation warnings

Brad Allen brad at allendev.com
Mon Oct 31 01:53:08 EST 2005


The messageboard tutorial in the Zope 3 Developer's Handbook
doesn't seem to work for me. I'm using the copy from 

svn co svn://svn.zope.org/repos/main/book/trunk

The SVN url listed in the book didn't work, but I'm not
sure this is the right one. 

Anyway, I'm using the "step13" folder, and when I registered
it with my Zope 3.1 instance on Ubuntu, and run Zope, I get
the following in my transcript.log:

    ConfigurationError: ('Invalid value for', 'interface', "Couldn't
import zope.app.workflow.interfaces, No module named workflow.interfaces
in zope.app.workflow.interfaces.IProcessInstanceContainerAdaptable")

I wanted to see more detail on that error, so I imported the offending
module at the Python interactive prompt. Along the way several
deprecation warnings cropped up (see below). Is there a newer
version of this tutorial I'm missing out on, or should I spend
some time trying to clean this up?

Thanks!


ballen at ubu:/var/lib/zope3/instance/sandbox/lib/python$ python
Python 2.4.2 (#2, Sep 30 2005, 21:19:01)
[GCC 4.0.2 20050808 (prerelease) (Ubuntu 4.0.1-4ubuntu8)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import book.messageboard.browser.messageboard
book/messageboard/browser/messageboard.py:22: DeprecationWarning:
ActiveStatus: ActiveStatus is now available in
zope.app.component.interfaces.registration. Will be gone in X3.3.
  from zope.app.registration.interfaces import ActiveStatus
book/messageboard/browser/messageboard.py:23: DeprecationWarning: ISite:
This interface has been moved to zope.app.component.interfaces. The
reference will be gone in X3.3.
  from zope.app.site.interfaces import ISite
book/messageboard/browser/messageboard.py:24: DeprecationWarning:
SiteManager: This class has been moved to zope.app.component.site. The
reference will be gone in X3.3.
  from zope.app.site.service import SiteManager, ServiceRegistration
book/messageboard/browser/messageboard.py:24: DeprecationWarning:
ServiceRegistration: The concept of services has been removed. Use
utilities instead. The reference will be gone in X3.3.
  from zope.app.site.service import SiteManager, ServiceRegistration
book/messageboard/browser/messageboard.py:25: DeprecationWarning:
LocalUtilityService: Services have been removed. Use site manager API.
The reference will be gone in X3.3.
  from zope.app.utility.utility import LocalUtilityService,
UtilityRegistration
book/messageboard/browser/messageboard.py:25: DeprecationWarning:
UtilityRegistration: This class has been moved to
zope.app.component.site. The reference will be gone in X3.3.
  from zope.app.utility.utility import LocalUtilityService,
UtilityRegistration
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "book/messageboard/browser/messageboard.py", line 26, in ?
    from zope.app.workflow.interfaces import
IProcessDefinitionImportHandler
ImportError: No module named workflow.interfaces
>>>





More information about the Zope3-users mailing list