[Zope] ZGDCart problem

Dennis Allison allison at sumeru.stanford.EDU
Mon Feb 9 12:25:55 EST 2004


I just installed the product ZGDChart-0.6.5.tar.gz.  It unpacks and 
installs, but when I try to make an instance it dies with the diagnostic
-----------
TypeError
Exception Value unbound method __init__() must be called with instance as
first argument

Traceback (innermost last):

    * Module ZPublisher.Publish, line 98, in publish
    * Module ZPublisher.mapply, line 88, in mapply
    * Module ZPublisher.Publish, line 39, in call_object
    * Module Products.ZGDChart.ZGDChart, line 86, in manage_addZGDChart
    * Module Products.ZGDChart.ZGDChart, line 200, in __init__

TypeError: unbound method __init__() must be called with instance as first
argument
----------
under Zope 2.6.2b3 with Python 2.1.3.


The error seems to be here:

    def __init__(self, id='ZGDChart', title='ZGDChart', height=250, width=250,
        SQL=None, chart_type='Bar_3D', option=['xaxis', 'yaxis', 'grid',
'border']):

        GDChart.GDChart.__init__(self, id=id, title=title, height=height,
width=width, SQL=SQL, chart_type=chart_type, option=option)



The value of self passed in to  GDChart.GDChart.__init__ is not a ZGDChart
instance as I would have expected, but a string.

Any suggestions?  fixes?
 






More information about the Zope mailing list