deesto wrote:
In an "old-style" product imported into Buildout, where is the proper place
for the 'PROJECTNAME = ' declaration? I assumed it would be here:
 src/my.project/Products/MyProject/config.py

But this does not work:
 NameError: name 'PROJECTNAME' is not defined

The config.py-file is the standard place to define PROJECTNAME.
But - as someone has already mentioned - you need to import it, i.e.
you need a line

from Products.MyProject.config import PROJECTNAME

in the file where python complains.

Hth,

Markus


More background information here:
http://www.nabble.com/porting-old-style-products-into-buildout-td16308469s6741.html

Thanks,
~John

_______________________________________________
Product-Developers mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/product-developers

Reply via email to