happy new year all i can't get xmldocument to work with zope2.2x i can install the product ok, but can;t add XML Document. i got attribute error. any insight into the error is appreciated. can anybody suggest ways of rendering xml documents in zope? thanks --8<-------- <P><STRONG>AttributeError</STRONG></P> Sorry, a Zope error occurred.<p> <!-- Traceback (innermost last): File /home/kdie/Zope-2.2.0-src/lib/python/ZPublisher/Publish.py, line 222, in publish_module File /home/kdie/Zope-2.2.0-src/lib/python/ZPublisher/Publish.py, line 187, in publish File /home/kdie/Zope-2.2.0-src/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook File /home/kdie/Zope-2.2.0-src/lib/python/ZPublisher/Publish.py, line 175, in publish File /home/kdie/Zope-2.2.0-src/lib/python/Zope/__init__.py, line 235, in commit File /home/kdie/Zope/lib/python/ZODB/Transaction.py, line 261, in commit AttributeError: commit_sub --> -- http://www.kedai.com.my/kk http://www.kedai.com.my/eZine We don't need no, no, no, no, no parental guidance here!
Bak, I can't help you fix it but I can tell you what the problem is, the file is too big for Zope to cope with in one transaction so it starts a sub-transaction and there is a bug in the sub-transactioning engine. The same thing happens with a normal 'File' type as well. You should probably check the collector to see if this has been fixed or even reported. Phil ----- Original Message ----- From: "Bak@kedai" <kedai@kedai.com.my> To: <zope@zope.org> Sent: Wednesday, January 10, 2001 4:40 AM Subject: [Zope] xmldocument
happy new year all i can't get xmldocument to work with zope2.2x i can install the product ok, but can;t add XML Document.
i got attribute error. any insight into the error is appreciated.
can anybody suggest ways of rendering xml documents in zope?
thanks
--8<-------- <P><STRONG>AttributeError</STRONG></P>
Sorry, a Zope error occurred.<p> <!-- Traceback (innermost last): File /home/kdie/Zope-2.2.0-src/lib/python/ZPublisher/Publish.py, line 222, in publish_module File /home/kdie/Zope-2.2.0-src/lib/python/ZPublisher/Publish.py, line 187, in publish File /home/kdie/Zope-2.2.0-src/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook File /home/kdie/Zope-2.2.0-src/lib/python/ZPublisher/Publish.py, line 175, in publish File /home/kdie/Zope-2.2.0-src/lib/python/Zope/__init__.py, line 235, in commit File /home/kdie/Zope/lib/python/ZODB/Transaction.py, line 261, in commit AttributeError: commit_sub
-->
--
http://www.kedai.com.my/kk http://www.kedai.com.my/eZine
We don't need no, no, no, no, no parental guidance here!
_______________________________________________ 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 )
Relational database adapters (like ZOracleDA, etc.) are currently not compatible with subtransactions. I worked around this for a customer by adding dummy commit_sub and abort_sub methods to the database adapter's DB class, e.g. def commit_sub(*arg, **kw): pass def abort_sub(*arg, **kw): pass ----- Original Message ----- From: "Phil Harris" <phil.harris@zope.co.uk> To: <bak@nstp.com.my>; <zope@zope.org> Sent: Wednesday, January 10, 2001 3:56 AM Subject: Re: [Zope] xmldocument
Bak,
I can't help you fix it but I can tell you what the problem is, the file is too big for Zope to cope with in one transaction so it starts a sub-transaction and there is a bug in the sub-transactioning engine.
The same thing happens with a normal 'File' type as well.
You should probably check the collector to see if this has been fixed or even reported.
Phil
----- Original Message ----- From: "Bak@kedai" <kedai@kedai.com.my> To: <zope@zope.org> Sent: Wednesday, January 10, 2001 4:40 AM Subject: [Zope] xmldocument
happy new year all i can't get xmldocument to work with zope2.2x i can install the product ok, but can;t add XML Document.
i got attribute error. any insight into the error is appreciated.
can anybody suggest ways of rendering xml documents in zope?
thanks
--8<-------- <P><STRONG>AttributeError</STRONG></P>
Sorry, a Zope error occurred.<p> <!-- Traceback (innermost last): File /home/kdie/Zope-2.2.0-src/lib/python/ZPublisher/Publish.py, line 222, in publish_module File /home/kdie/Zope-2.2.0-src/lib/python/ZPublisher/Publish.py, line 187, in publish File /home/kdie/Zope-2.2.0-src/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook File /home/kdie/Zope-2.2.0-src/lib/python/ZPublisher/Publish.py, line 175, in publish File /home/kdie/Zope-2.2.0-src/lib/python/Zope/__init__.py, line 235, in commit File /home/kdie/Zope/lib/python/ZODB/Transaction.py, line 261, in commit AttributeError: commit_sub
-->
--
http://www.kedai.com.my/kk http://www.kedai.com.my/eZine
We don't need no, no, no, no, no parental guidance here!
_______________________________________________ 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 )
_______________________________________________ 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 )
Chris, This occurs using the bog-standard ZODB as well, nothing to do with any other storage facility. Phil ----- Original Message ----- From: "Chris McDonough" <chrism@digicool.com> To: "Phil Harris" <phil.harris@zope.co.uk>; <bak@nstp.com.my>; <zope@zope.org> Sent: Wednesday, January 10, 2001 9:27 AM Subject: Re: [Zope] xmldocument
Relational database adapters (like ZOracleDA, etc.) are currently not compatible with subtransactions. I worked around this for a customer by adding dummy commit_sub and abort_sub methods to the database adapter's DB class, e.g.
def commit_sub(*arg, **kw): pass def abort_sub(*arg, **kw): pass
----- Original Message ----- From: "Phil Harris" <phil.harris@zope.co.uk> To: <bak@nstp.com.my>; <zope@zope.org> Sent: Wednesday, January 10, 2001 3:56 AM Subject: Re: [Zope] xmldocument
Bak,
I can't help you fix it but I can tell you what the problem is, the file is too big for Zope to cope with in one transaction so it starts a sub-transaction and there is a bug in the sub-transactioning engine.
The same thing happens with a normal 'File' type as well.
You should probably check the collector to see if this has been fixed or even reported.
Phil
----- Original Message ----- From: "Bak@kedai" <kedai@kedai.com.my> To: <zope@zope.org> Sent: Wednesday, January 10, 2001 4:40 AM Subject: [Zope] xmldocument
happy new year all i can't get xmldocument to work with zope2.2x i can install the product ok, but can;t add XML Document.
i got attribute error. any insight into the error is appreciated.
can anybody suggest ways of rendering xml documents in zope?
thanks
--8<-------- <P><STRONG>AttributeError</STRONG></P>
Sorry, a Zope error occurred.<p> <!-- Traceback (innermost last): File /home/kdie/Zope-2.2.0-src/lib/python/ZPublisher/Publish.py, line 222, in publish_module File /home/kdie/Zope-2.2.0-src/lib/python/ZPublisher/Publish.py, line 187, in publish File /home/kdie/Zope-2.2.0-src/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook File /home/kdie/Zope-2.2.0-src/lib/python/ZPublisher/Publish.py, line 175, in publish File /home/kdie/Zope-2.2.0-src/lib/python/Zope/__init__.py, line 235, in commit File /home/kdie/Zope/lib/python/ZODB/Transaction.py, line 261, in commit AttributeError: commit_sub
-->
--
http://www.kedai.com.my/kk http://www.kedai.com.my/eZine
We don't need no, no, no, no, no parental guidance here!
_______________________________________________ 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 )
_______________________________________________ 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 )
I've never seen that failure mode.. It'd be nice to get a reproducible bug out of it. ----- Original Message ----- From: "Phil Harris" <phil.harris@zope.co.uk> To: "Chris McDonough" <chrism@digicool.com>; <bak@nstp.com.my>; <zope@zope.org> Sent: Wednesday, January 10, 2001 4:09 AM Subject: Re: [Zope] xmldocument
Chris,
This occurs using the bog-standard ZODB as well, nothing to do with any other storage facility.
Phil ----- Original Message ----- From: "Chris McDonough" <chrism@digicool.com> To: "Phil Harris" <phil.harris@zope.co.uk>; <bak@nstp.com.my>; <zope@zope.org> Sent: Wednesday, January 10, 2001 9:27 AM Subject: Re: [Zope] xmldocument
Relational database adapters (like ZOracleDA, etc.) are currently not compatible with subtransactions. I worked around this for a customer by adding dummy commit_sub and abort_sub methods to the database adapter's DB class, e.g.
def commit_sub(*arg, **kw): pass def abort_sub(*arg, **kw): pass
----- Original Message ----- From: "Phil Harris" <phil.harris@zope.co.uk> To: <bak@nstp.com.my>; <zope@zope.org> Sent: Wednesday, January 10, 2001 3:56 AM Subject: Re: [Zope] xmldocument
Bak,
I can't help you fix it but I can tell you what the problem is, the file is too big for Zope to cope with in one transaction so it starts a sub-transaction and there is a bug in the sub-transactioning engine.
The same thing happens with a normal 'File' type as well.
You should probably check the collector to see if this has been fixed or even reported.
Phil
----- Original Message ----- From: "Bak@kedai" <kedai@kedai.com.my> To: <zope@zope.org> Sent: Wednesday, January 10, 2001 4:40 AM Subject: [Zope] xmldocument
happy new year all i can't get xmldocument to work with zope2.2x i can install the product ok, but can;t add XML Document.
i got attribute error. any insight into the error is appreciated.
can anybody suggest ways of rendering xml documents in zope?
thanks
--8<-------- <P><STRONG>AttributeError</STRONG></P>
Sorry, a Zope error occurred.<p> <!-- Traceback (innermost last): File /home/kdie/Zope-2.2.0-src/lib/python/ZPublisher/Publish.py, line 222, in publish_module File /home/kdie/Zope-2.2.0-src/lib/python/ZPublisher/Publish.py, line 187, in publish File /home/kdie/Zope-2.2.0-src/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook File /home/kdie/Zope-2.2.0-src/lib/python/ZPublisher/Publish.py, line 175, in publish File /home/kdie/Zope-2.2.0-src/lib/python/Zope/__init__.py, line 235, in commit File /home/kdie/Zope/lib/python/ZODB/Transaction.py, line 261, in commit AttributeError: commit_sub
-->
--
http://www.kedai.com.my/kk http://www.kedai.com.my/eZine
We don't need no, no, no, no, no parental guidance here!
_______________________________________________ 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 )
_______________________________________________ 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 )
_______________________________________________ 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 )
On Wednesday 10 January 2001 17:55, Chris McDonough wrote:
I've never seen that failure mode.. It'd be nice to get a reproducible bug out of it.
this is wierd. with new install of zope2.16, zope2.20, zope2.2.5 - XMLDocunebt add works great. no error. but with zope2.2.5 (with all other products used[1] added), i got the original error. i use a lot of SQL stuff, but not where i tried to add XML document steps taken- -create new folder -add XML Document -the addForm appeared. insert id -when i clicked add/add and edit, i got the commit error. if i were to follow your advice, where should i put the dummy commit_sub? [1] product list follows -----8<-------- AddressBook Navigator Refresh XMLDocument ZPyGreSQLDA BTreeFolder Feedback.tar.gz NewsHost Renderable XMLWidgets ZRTChat BookmarkFolder GUM NewsSyndicate SQLSession ZCalendar ZSQLMethods Boring HiperDom Notes SimpleGb ZCallable ZWiki CVS Hotfix_2000-10-02 OFSP Squishdot ZCatalog ZnolkSQLWizard CachePool LocalFS POPMailBase TinyTable ZCounter ZopeTutorial Calendar LoginManager PTKBase TodoFolder ZDBase __init__.py CalendarFolder MIMETools PTKDemo Transform.tar.gz ZDConfera __init__.pyc DemoPortal MailHost PersonalFolder TutorialPoll ZFormulator _pgmodule.so EventFolder Membership Poll TutorialPollExamples ZGadflyDA mkproduct ExternalMethod Minimal PythonMethod UserDb ZGb mkproduct-data FSDump MountedClientStorage RFC822Message Wizard ZMirror Feedback MountedFileStorage RSSChannel Workspace ZPoPyDA -- http://www.kedai.com.my/kk http://www.kedai.com.my/eZine Just bring it!
On Wednesday 10 January 2001 16:56, Phil Harris wrote:
Bak,
I can't help you fix it but I can tell you what the problem is, the file is too big for Zope to cope with in one transaction so it starts a sub-transaction and there is a bug in the sub-transactioning engine.
The same thing happens with a normal 'File' type as well.
You should probably check the collector to see if this has been fixed or even reported.
Phil
to say the file is big is an understatement. how can adding a news file be too big for zope to cope? unless the default XML Document is huge. i'll peek at the collector. thanks phil -- http://www.kedai.com.my/kk http://www.kedai.com.my/eZine I will follow you! ..Damage Inc
participants (3)
-
Bak@kedai -
Chris McDonough -
Phil Harris