List Info

Thread: charting in Plone




charting in Plone
user name
2007-03-08 11:08:24

I am having trouble getting Matplotlib working in plone.  I can run examples outside of plone but when I try running the scripts within the plone environment I get the following errors depending on my test script.  How can I authorize Matplotlib?

 

Error Type

    ImportError

Error Value

    import of "pylab" is unauthorized

 

and

 

Error Type

    ImportError

Error Value

    import of "matplotlib"; is unauthorized

Re: charting in Plone
country flaguser name
Canada
2007-03-08 12:44:40
Banks, Justin C. a écrit :
> I am having trouble getting Matplotlib working in
plone.  

http
://plone.org/documentation/how-to/add-charts

Also, google a bit on this list to see other posts regarding
integration 
of matplotlib in Zope/Plone.

HTH,

Yves Moisan


------------------------------------------------------------
-------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the
chance to share your
opinions on IT & business topics through brief
surveys-and earn cash
http://www.techsay.com/default.
php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Plone-Users mailing list
Plone-Userslists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plone-users


Re: charting in Plone
country flaguser name
Belgium
2007-03-09 01:56:20
I suppose you are trying to import them in a python script.

For security reasons, python scripts are ran in a restricted environment, you can' t import all python modules as you would like.
You should put you methods in trusted environment (means filesystem code), in a tool class or in an external method (or in a zope3 adapter).

Cheers,
David

On 08 Mar 2007, at 18:08, Banks, Justin C. wrote:

I am having trouble getting Matplotlib working in plone.  I can run examples outside of plone but when I try running the scripts within the plone environment I get the following errors depending on my test script.  How can I authorize Matplotlib?

 

Error Type

    ImportError

Error Value

    import of "pylab" is unauthorized

 

and

 

Error Type

    ImportError

Error Value

    import of "matplotlib" is unauthorized

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
Plone-Users mailing list
Plone-Userslists.sourceforge.net">Plone-Userslists.sourceforge.net

[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )