Re: [Dbix-class] InflateColumn with objects external to the database (like InflateColumn::FS)

2009-04-21 Thread Marc Mims
* Francesc Rom? i Frigol? [090421 03:13]: > On Mon, Apr 20, 2009 at 9:36 PM, Hans Dieter Pearcey < > hdp.perl.dbix-cl...@weftsoar.net> wrote: > > > On Mon, Apr 20, 2009 at 09:25:59PM +0200, Francesc Rom? i Frigol? wrote: > > > I understand your concern about having unnecessary dependencies, but i

Re: [Dbix-class] InflateColumn with objects external to the database (like InflateColumn::FS)

2009-04-21 Thread Francesc Romà i Frigolé
On Mon, Apr 20, 2009 at 9:36 PM, Hans Dieter Pearcey < hdp.perl.dbix-cl...@weftsoar.net> wrote: > On Mon, Apr 20, 2009 at 09:25:59PM +0200, Francesc Romà i Frigolé wrote: > > I understand your concern about having unnecessary dependencies, but is > there > > any module which could provide a UUID w

Re: [Dbix-class] InflateColumn with objects external to the database (like InflateColumn::FS)

2009-04-20 Thread Hans Dieter Pearcey
On Mon, Apr 20, 2009 at 09:25:59PM +0200, Francesc Romà i Frigolé wrote: > I understand your concern about having unnecessary dependencies, but is there > any module which could provide a UUID which is already a DBIC dependency? I'm > not aware of a UUID::Any module http://search.cpan.org/~dagolde

Re: [Dbix-class] InflateColumn with objects external to the database (like InflateColumn::FS)

2009-04-20 Thread Francesc Romà i Frigolé
On Mon, Apr 20, 2009 at 3:06 PM, Matt S Trout wrote: > On Sun, Apr 19, 2009 at 01:17:07PM +0200, Francesc Romà i Frigolé wrote: > > On Sat, Apr 18, 2009 at 1:42 AM, Marc Mims wrote: > > > I also removed DBIx::Class::UUIDColumns as a base class. I still 'use' > > > it for its get_uuid method, but

Re: [Dbix-class] InflateColumn with objects external to the database (like InflateColumn::FS)

2009-04-20 Thread Matt S Trout
On Sun, Apr 19, 2009 at 01:17:07PM +0200, Francesc Romà i Frigolé wrote: > On Sat, Apr 18, 2009 at 1:42 AM, Marc Mims wrote: > > I also removed DBIx::Class::UUIDColumns as a base class. I still 'use' > > it for its get_uuid method, but inheritance was probably not the right > > way to accomplish

Re: [Dbix-class] InflateColumn with objects external to the database (like InflateColumn::FS)

2009-04-19 Thread Francesc Romà i Frigolé
On Sat, Apr 18, 2009 at 1:42 AM, Marc Mims wrote: > > I've committed an update with a working copy method and a fix for a > previously reported infinite recursion bug introduced with the addition > of fs_new_on_update. > http://dev.catalyst.perl.org/svnweb/bast/revision?rev=5891 > I did a quick

Re: [Dbix-class] InflateColumn with objects external to the database (like InflateColumn::FS)

2009-04-17 Thread Marc Mims
* Francesc Rom? i Frigol? [090417 11:39]: > Marc is more comfortable with a solution that instead of modifying the > source object, it creates a new row object like this: > > my $copy = bless { %$self, _column_data => $col_data, _inflated_column => > $inflated_col }, ref $self; > $copy = $copy->n

Re: [Dbix-class] InflateColumn with objects external to the database (like InflateColumn::FS)

2009-04-17 Thread Marc Mims
* Francesc Rom? i Frigol? [090417 11:39]: > Marc is more comfortable with a solution that instead of modifying the > source object, it creates a new row object like this: > > my $copy = bless { %$self, _column_data => $col_data, _inflated_column => > $inflated_col }, ref $self; > $copy = $copy->n

[Dbix-class] InflateColumn with objects external to the database (like InflateColumn::FS)

2009-04-17 Thread Francesc Romà i Frigolé
Hello list, If I understand DBIx::Class::InflateColumn properly, it automatically converts column data into references and the other way around, but it doesn't take into account the possibility that the stored value could be some sort of a unique ID ( like a file name, process id, socket...) Imag