[interchange-docs] Dump complete Vend::Cfg structure

docelic at mail.inet.hr docelic at mail.inet.hr
Sat Dec 22 08:35:47 EST 2007


On Sat, Dec 22, 2007 at 03:57:00AM -0800, Peter wrote:
> I ran across this page just now in the XML Docs:
> http://www.icdevgroup.org/docs/howtos/dump-vend-config.html
> 
> The page is instructions about how to write a usertag to dump the
> complete Vend::Cfg structure.  It is completely unnecessary and overkill
> to do it this way for two reasons...
> 
> 1.  There is a sub in Interchange for doing data dumps already, it is
> ::uneval(), and should be used instead of using Data::Dumper as
> suggested by this usertag.  It has about 3 or 4 different ways of
> creating the dump so it is not necessary to have Data::Dumper in your
> Perl build to use it.
> 
> 2.  There is already a tag in Interchange that does this.  To dump
> Vend::Cfg simply do this on a page:
> [uneval ref=`$Config`]

Heya Peter, updated, thanks.

I've replaced Data::Dumper thing with [uneval =...], and mentioned
etc/CATNAME.structure that also gets created.

> You can also do it in the "test code" section of the admin UI under the
> Administration tab, creating a page with this tag on it is not even
> necessary at all.

Right. Well this is kind of catalog-specific thing, and I haven't
found a good place to document catalog-specific things.. There's a 
new demo coming up from Kevin, and there's something that Racke,
Jure and me have been working on as well, so maybe the right way
will be to just write new docs for those two upcoming catalogs.

Cya,
-doc



More information about the docs mailing list