[Product-Developers] ImportError using new Product
WyredChris
chris at cwil.net
Mon Sep 8 17:16:40 UTC 2008
Hi all,
In order to make good use of Open Flash Chart in Plone 3, I have created an
OpenFlashChart product by adding OpenFlashChart.py to OpenFlashChart folder
under Plone/Data/Products. I also added an empty __init__.py file and upon
restarting Zope, both were compiled to .pyc so I guess this means they were
found!
OpenFlashChart.py defines a Graph and a GraphObject class and I'd like to be
able to greate a GraphObject and have it render the chart (I can get the SWF
to load, just not the data).
I've pared back script in the skins/custom folder to simply:
from OpenFlashChart import GraphObject
x = GraphObject()
x.render()
When I test it, I get ImportError: Import of "OpenFlashChart" is
unauthorized.
Please, if anybody can help me, I'll be very grateful (and a little more
sane).
Thanks in advance,
Chris.
--
View this message in context: http://n2.nabble.com/ImportError-using-new-Product-tp1075709p1075709.html
Sent from the Product Developers mailing list archive at Nabble.com.
More information about the Product-Developers
mailing list