Re: [CDBI] Class::DBI and Apache::Session - Why does it work?

[prev] [thread] [next] [Date index for 2005/12/03]

From: Matt S Trout
Subject: Re: [CDBI] Class::DBI and Apache::Session - Why does it work?
Date: 01:23 on 03 Dec 2005
On Sat, Dec 03, 2005 at 02:04:19AM +0100, Brad Bowman wrote:
> Matt S Trout wrote:
> >On Sat, Dec 03, 2005 at 12:39:27AM +0100, Brad Bowman wrote:
> >>I've started writing one.  To be continued...
> >
> >Consider supporting other serialisers as well - the key one being YAML ... 
> 
> YAML doesn't seem to have hooks like Storable, so I can't see
> how to alter the behaviour of YAML::Dump($object).

Bugger, it appears it isn't documented. The methods involved are yaml_dump
and yaml_load; an example of injecting such functions (for serialising
XML::LibXML objects) can be found in -

http://dev.catalyst.perl.org/repos/bast/trunk/BAST-DXE/lib/BAST/Handler/xml.pm

Look for "# EVIL HACK OF DOOM. Makes YAML work." :)

        -- 
             Matt S Trout       Offering custom development, consultancy and support
  Technical Director    contracts for Catalyst, DBIx::Class and BAST. Contact
Shadowcat Systems Ltd.  mst (at) shadowcatsystems.co.uk for more information

 + Help us build a better perl ORM: http://dbix-class.shadowcatsystems.co.uk/ +

_______________________________________________
ClassDBI mailing list
ClassDBI@xxxxx.xxxxxxxxxxxxxxxx.xxx
http://lists.digitalcraftsmen.net/mailman/listinfo/classdbi

(message missing)

Re: [CDBI] Class::DBI and Apache::Session - Why does it work?
Matt S Trout 01:23 on 03 Dec 2005

Generated at 11:26 on 05 Dec 2005 by mariachi v0.52