On 6/30/06, John Siracusa <[EMAIL PROTECTED]> wrote:
> On 6/30/06 5:33 PM, Jonathan Vanasco wrote:
>> it'd be best not to have the rdb-object in a session anyways.  i try to keep
>> session data into a structure that has pure data and can serialize into
>> json/yaml, as i often need to share between mod_perl and python or php.
>>
> I'm actually planning to add as_json() and as_yaml() Helper methods for RDBO
> eventually...

Any ideas on the format for these?  For example, I've got a
column_values_as_yaml() helper method like this:

    $o = My::Object->new(a => 1, b => 2, c => 3);

    print $o->column_values_as_yaml;

which prints:

    a: 1
    b: 2
    c: 3

But then what should the as_yaml() helper do?  The same thing?  Or
should the class name be in there somewhere?

    My::Object:
      a: 1
      b: 2
      c: 3

I have similar questions for as_json().  How should this work?

-John


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Rose-db-object mailing list
Rose-db-object@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rose-db-object

Reply via email to