in reply to Re: broken twig?
in thread broken twig?
That is the thing that confuses me. $twig->purge in process_attachment() seems to delete the whole record, not just the attachment. What I want to do is purge only the attachment.
I also call purge in process_record and it seems to do what is expected there (if I comment out the purge in process_attachment that is) Meaning if I have multiple records, each one is purged in turn after processing
using purge_up_to($attach) does the same. When process_record is called it has no children so it has nothing to process
Am I doing something wrong in the way I handle the attachment?
here is a more faithful view of the xml:
<document version="2.2"> <record> <record_id>113082</record_id> <creation_ts>2005-09-08 11:53 MDT</creation_ts> <short_desc>test</short_desc> <delta_ts>2005-09-08 11:58:21 MDT</delta_ts> <attachment> <attachid>47644</attachid> <date>2005-09-08 11:55 MDT</date> <desc>diff</desc> <data>Large amounts of encoded data in excess of 5 MB </data> </attachment> <attachment> .... </attachment> </record> </document>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: broken twig?
by mirod (Canon) on Sep 13, 2005 at 21:04 UTC | |
by gregaryh (Novice) on Sep 13, 2005 at 21:31 UTC | |
by mirod (Canon) on Sep 13, 2005 at 21:50 UTC |