[Zope] commit_sub error in add_NetShowLogFile (a ZClass with baseclasses:CatalogAware and File)

Chris McDonough chrism@digicool.com
Mon, 5 Mar 2001 13:10:17 -0500


This should be fixed in the next release.  Indeed if you check out the CVS
trunk, it's fixed already.

----- Original Message -----
From: "Farrell, Troy" <troy.farrell@wilcom.com>
To: <zope@zope.org>
Sent: Monday, March 05, 2001 12:48 PM
Subject: [Zope] commit_sub error in add_NetShowLogFile (a ZClass with
baseclasses:CatalogAware and File)


> I have a ZClass NetShowLogFile.  It has baseclasses of CatalogAware and
> File.  When I try to add a NetShowLogFile, my python script adds the
> file(between 200KB and 3MB), parses the file, executes many SQL
methods(two
> per line in the file -- average 1000 lines), and
> context.REQUEST.RESPONSE.redirect()s to a different page.  The problem is
> this:
> After it finishes parsing the file and inserting it's contents into the
> database, I get a Transaction error:
>
> Error Type: AttributeError
> Error Value: commit_sub
> <!--
> Traceback (innermost last):
>   File /home/zope/Zope-2.3.1b1-src/lib/python/ZPublisher/Publish.py, line
> 222, in publish_module
>   File /home/zope/Zope-2.3.1b1-src/lib/python/ZPublisher/Publish.py, line
> 187, in publish
>   File /home/zope/Zope-2.3.1b1-src/lib/python/Zope/__init__.py, line 221,
in
> zpublisher_exception_hook
>     (Object: CatalogAware)
>   File /home/zope/Zope-2.3.1b1-src/lib/python/ZPublisher/Publish.py, line
> 175, in publish
>   File /home/zope/Zope-2.3.1b1-src/lib/python/Zope/__init__.py, line 235,
in
> commit
>   File /home/zope/Zope-2.3.1b1-src/lib/python/ZODB/Transaction.py, line
276,
> in commit
> AttributeError: (see above)
> -->
>
> Any ideas?  It looks similar to
> http://classic.zope.org:8080/Collector/1895/view
> and to
> http://classic.zope.org:8080/Collector/629/view
>
> It also looks like I may have to move my files to LocalFS objects and
> rebuild my ZClasses :(
>
> Thanks for the second time today,
> Troy
>
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )
>