[Product-Developers] Problem creating first product

ericx ericx at vineyard.net
Tue May 20 02:19:16 UTC 2008


For the record:


To get the examples as described in Chapter 5 to work... 


If you attempt to write your own variation, run a context diff between your
own version and Mr. Aspeli's version posted on the Packt web site (in
hindsight... pretty obvious). Doing so, I discovered:



remove src/optilux.policy/optilux/policy/tests.py as generated by the paster
plone template. I'm sure tests.py is a valid alternative; but it appears to
mask anything contained in src/optilux.policy/optilux/policy/tests/. You
will see errors like: "object has no attribute 'test_suite'"

modify src/optilux.policy/optilux/policy/__init__.py to contain:


def initialize(context):
    """Intializer called when used as a Zope 2 product."""


I don't know python well enough to know what this is for (it does not appear
in the book); but clearly it maps to the entry you need to add in
src/optilux.polilcy/optilux/policy/configure.zcml (an addition I
overlooked):


<five:registerPackage package="." initialize=".initialize" />




I apologize if this has been discussed previously, but I couldn't find it.
Perhaps another mention will make it easier to search.

-- 
View this message in context: http://www.nabble.com/Problem-creating-first-product-tp17310880s20094p17331967.html
Sent from the Product Developers mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.plone.org/pipermail/plone-product-developers/attachments/20080519/4eb8e858/attachment-0001.html>


More information about the Product-Developers mailing list