[XML-SIG] minidom/pulldom connection

Greg Stein gstein@lyra.org
Thu, 23 Nov 2000 01:40:47 -0800


On Thu, Nov 23, 2000 at 01:22:22AM -0500, Fred L. Drake, Jr. wrote:
> 
> Greg Stein writes:
>  > Before: each time you called startDocument(), it would start a new document.
>  > Now, it will only do so the first time.
>  > 
>  > I would recommend passing a class (a constructor, really) object to __init__
>  > and storing that constructor. startDocument() can then call it
>  > unconditionally like before.
> 
>   Excellent point!  I've updated the patch on SourceForge:
> 
> http://sourceforge.net/patch/?func=detailpatch&patch_id=102477&group_id=5470
> 
>  > [ this does imply moving the import back to the global scope ]
> 
>   Actually, no, it doesn't.  ;)

Ah. heh... I had presumed a documentFactory=minidom.Document type of default
in the constructor which would need it. Guess it works your way, too :-)

[ albeit with a bit more complexity, but okay... ]

Cheers,
-g

-- 
Greg Stein, http://www.lyra.org/