<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:10pt"><DIV>I made a pyhon product with catalogaware as one of my base class but my zcatalog named 'catalog' doesn't automatically catalog when I add a product item. what could be a problem?</DIV>
<DIV> </DIV>
<DIV>Please help</DIV>
<DIV> </DIV>
<DIV>this is part of my code that include catalogawareness:</DIV>
<DIV> </DIV>
<DIV>class ShpTypePointClass(Item, Persistent, Implicit, CatalogAware):<BR># print "ShpTypePointClass"<BR> id='ShpTypePoint'<BR> meta_type='ShpTypePoint'<BR> manage_options = (<BR> { 'label':'Properties','action':'manage_editShpTypePoint' },<BR> ) + Item.manage_options<BR> <BR> #_properties=(<BR> # { 'id':'title', 'type':'string', 'mode':'w'},<BR> # { 'id':'x', 'type':'string', 'mode':'w'},<BR> # { 'id':'y', 'type':'string', 'mode':'w'}<BR> # )<BR> <BR> def __init__(self, id, x, y, dbfInfo):<BR># print 'initializing'<BR>
self.id = id<BR> self.x = x<BR> self.y = y<BR> self.dbfInfo = dbfInfo<BR> self.reindex_object()</DIV>
<DIV> def printPoint(self):<BR># print "print Point"<BR> return "<br> printPoint Method <br> ID:" + self.id + " -- ( " + self.x + ", " + self.y + " )"</DIV>
<DIV> def edit(self, x, y, REQUEST=None):<BR> """Edit the Point"""<BR># print "edit"<BR> self.x = x<BR> self.y = y<BR> self.reindex_object()<BR> if REQUEST is not None:<BR> return self.manage_editShpTypePoint(self, REQUEST)</DIV>
<DIV> ##Web Methods<BR> index_html = HTMLFile('DTML/index_html', globals())<BR> manage_editShpTypePoint = HTMLFile('DTML/manage_editShpTypePoint', globals())</DIV>
<DIV>InitializeClass(ShpTypePointClass)</DIV>
<DIV> </DIV>
<DIV> </DIV></div><br>
<hr size=1>We won't tell. Get more on <a href="http://us.rd.yahoo.com/evt=49980/*http://tv.yahoo.com/collections/265
">shows you hate to love</a><br>(and love to hate): <a href="http://us.rd.yahoo.com/evt=49980/*http://tv.yahoo.com/collections/265
">Yahoo! TV's Guilty Pleasures list.</a></body></html>