RE: [Zope] xmldocument

2001-01-10 Thread sean . upton

Do you have an example of the XML you are trying to use? File size, in
bytes?  Just curious, as I have had no problems with XMLDocument (in Zope
2.1.x and 2.2.x) working with newspaper stories from AP online in NITF
XML...

Sean

-Original Message-
From: Bak@kedai [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 10, 2001 1:34 AM
To: Phil Harris; [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: [Zope] xmldocument


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


___
Zope maillist  -  [EMAIL PROTECTED]
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  -  [EMAIL PROTECTED]
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 )




Re: [Zope] xmldocument

2001-01-10 Thread [EMAIL PROTECTED]

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<
AddressBookNavigator   Refresh   
XMLDocument  ZPyGreSQLDA
BTreeFolder Feedback.tar.gz   NewsHostRenderable
XMLWidgets   ZRTChat
BookmarkFolder  GUM   NewsSyndicate   SQLSession
ZCalendarZSQLMethods
Boring  HiperDom  Notes   SimpleGb  
ZCallableZWiki
CVS Hotfix_2000-10-02 OFSPSquishdot 
ZCatalog ZnolkSQLWizard
CachePool   LocalFS   POPMailBase TinyTable 
ZCounter ZopeTutorial
CalendarLoginManager  PTKBase TodoFolder
ZDBase   __init__.py
CalendarFolder  MIMETools PTKDemo Transform.tar.gz  
ZDConfera__init__.pyc
DemoPortal  MailHost  PersonalFolder  TutorialPoll  
ZFormulator  _pgmodule.so
EventFolder MembershipPollTutorialPollExamples  
ZGadflyDAmkproduct
ExternalMethod  Minimal   PythonMethodUserDb
ZGb  mkproduct-data
FSDump  MountedClientStorage  RFC822Message   Wizard
ZMirror
FeedbackMountedFileStorageRSSChannel  Workspace 
ZPoPyDA
-- 

http://www.kedai.com.my/kk 
http://www.kedai.com.my/eZine 

Just bring it!


___
Zope maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope] xmldocument

2001-01-10 Thread Chris McDonough

I've never seen that failure mode.. It'd be nice to get a reproducible bug
out of it.

- Original Message -
From: "Phil Harris" <[EMAIL PROTECTED]>
To: "Chris McDonough" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
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" <[EMAIL PROTECTED]>
> To: "Phil Harris" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>;
> <[EMAIL PROTECTED]>
> 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" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> > 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" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > 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<
> > > > AttributeError
> > > >
> > > >   Sorry, a Zope error occurred.
> > > > 
> > > >
> > > > --
> > > >
> > > > 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  -  [EMAIL PROTECTED]
> > > > 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  -  [EMAIL PROTECTED]
> > > 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  -  [EMAIL PROTECTED]
> 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  -  [EMAIL PROTECTED]
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 )




Re: [Zope] xmldocument

2001-01-10 Thread [EMAIL PROTECTED]

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


___
Zope maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope] xmldocument

2001-01-10 Thread Phil Harris

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" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
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<
> AttributeError
>
>   Sorry, a Zope error occurred.
> 
>
> --
>
> 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  -  [EMAIL PROTECTED]
> 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  -  [EMAIL PROTECTED]
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 )




Re: [Zope] xmldocument

2001-01-10 Thread Phil Harris

Chris,

This occurs using the bog-standard ZODB as well, nothing to do with any
other storage facility.

Phil
- Original Message -
From: "Chris McDonough" <[EMAIL PROTECTED]>
To: "Phil Harris" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
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" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> 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" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > 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<
> > > AttributeError
> > >
> > >   Sorry, a Zope error occurred.
> > > 
> > >
> > > --
> > >
> > > 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  -  [EMAIL PROTECTED]
> > > 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  -  [EMAIL PROTECTED]
> > 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  -  [EMAIL PROTECTED]
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 )




Re: [Zope] xmldocument

2001-01-10 Thread Chris McDonough

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" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
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" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> 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<
> > AttributeError
> >
> >   Sorry, a Zope error occurred.
> > 
> >
> > --
> >
> > 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  -  [EMAIL PROTECTED]
> > 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  -  [EMAIL PROTECTED]
> 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  -  [EMAIL PROTECTED]
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 )