[Dbix-class] [BUG] deploy($args, $dir) can't find the ddl file because it doesn't pass $version

2009-02-23 Thread Guillermo Roditi
it will just never work correctly -- Guillermo Roditi (groditi) ___ List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class IRC: irc.perl.org#dbix-class SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/ Searchable Archive: http://www.grokbase.com

[Dbix-class] Re: [BUG] deploy($args, $dir) can't find the ddl file because it doesn't pass $version

2009-02-23 Thread Guillermo Roditi
On Mon, Feb 23, 2009 at 6:45 PM, Guillermo Roditi grod...@gmail.com wrote: $schema-deploy({...}, $dir); is supposed to look in $dir for a DDL file that matches -ddl_filename. The problem is that if you store your DDL file with a version number then deploy won't find it because there's no way

[Dbix-class] no warnings 'DBIx::Class::Relationship::ManyToMany'; breaks on overridden many_to_many

2009-02-04 Thread Guillermo Roditi
-- Guillermo Roditi (groditi) ___ List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class IRC: irc.perl.org#dbix-class SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/ Searchable Archive: http://www.grokbase.com/group/dbix-class

[Dbix-class] -source_name returns undef instead of source name

2009-02-04 Thread Guillermo Roditi
'); } This has worked before and is now broken. I confirmed that this was supported on 0.08010 -- Guillermo Roditi (groditi) ___ List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class IRC: irc.perl.org#dbix-class SVN: http

[Dbix-class] 0.08 breaks DBIx::Class::EncodedColumn

2009-02-03 Thread Guillermo Roditi
of the issue, but it seems to be the change would have to have happened in either new, or set_column. -- Guillermo Roditi (groditi) ___ List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class IRC: irc.perl.org#dbix-class SVN: http

[Dbix-class] [OT] Request for help

2008-03-19 Thread Guillermo Roditi
. Thanks again, -- Guillermo Roditi (groditi) ___ List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class IRC: irc.perl.org#dbix-class SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/ Searchable Archive: http://www.grokbase.com/group

Re: [Dbix-class] RestrictWithObject and ResultSet

2008-03-04 Thread Guillermo Roditi
sub restrict_Foo_resultset { my ($self, $fullset) = @_; my $keys = [ keys %{ $self-{hash} } ]; my $restricted = $fullset-search({ id = {'-in' = $keys } }); return $restricted; } --Guillermo Roditi (groditi) On Mon, Mar 3, 2008 at 9:00 PM, James R. Leu [EMAIL PROTECTED] wrote

Re: [Dbix-class] find redux

2008-02-13 Thread Guillermo Roditi
I attach a patch (against http://dev.catalyst.perl.org/repos/bast/DBIx-Class/0.08/trunk) that does more or less that - when you specify the unique key it ignores all columns from the query that don't belong to it ( I find this to be desired behavior Zbigniew Lukasiak++

Re: [Dbix-class] using load_classes selectively

2008-02-08 Thread Guillermo Roditi
The current DBIx::Class::Schema::Loader mysql driver hs just added some really nice new features. I suggest you grab the latest version from SVN or the devel release (http://search.cpan.org/~ilmari/DBIx-Class-Schema-Loader-0.04999_01/) --Guillermo Roditi (groditi) On Feb 8, 2008 9:30 AM, Frazer

[Dbix-class] EncodedColumn extended behavior RFC

2008-02-07 Thread Guillermo Roditi
and skip encoding or encode the dereferenced value in scalar references -If the value is blessed attempt to look for a stringify function, otherwise just ignore -ignore everything else (don't encode) Any ideas, suggestions or else? --Guillermo Roditi

[Dbix-class] Dealing with relationships of non-order sensitive value pairs

2008-02-05 Thread Guillermo Roditi
= 10, default_value = , is_nullable = 0, extra = { unsigned = 1 }, is_foreign_key = 1, }, ); __PACKAGE__-set_primary_key(vhost1_id, vhost2_id); --Guillermo Roditi (groditi

Re: [Dbix-class] find redux

2008-02-04 Thread Guillermo Roditi
So $photos-search({ owned_by = $uid })-find({ id = $photo_id }) has to include the WHERE owned_by = $uid even if the find specifies key = 'primary'. However, we -can- ignore keys passed in the find hash. But I'm not sure we should, except in case of a *_or_* call. Thoughts, people? I

Re: [Dbix-class] Re: Re: A better Digest / Encoding / EncryptionComponent

2008-01-31 Thread Guillermo Roditi
OK! DBIx-Class-EncodedColumn-0.1_02 is on the CPAN and svn! Please take a look at it, or at least the docs if you currently use DigestColumns. --Guillermo Roditi (groditi) On Jan 30, 2008 1:45 PM, Hartmaier Alexander [EMAIL PROTECTED] wrote: I don't get the difference to deflating

Re: [Dbix-class] Re: A better Digest / Encoding / Encryption Component

2008-01-30 Thread Guillermo Roditi
AND knew that DigestColumns existed (you linked to the POD) and you couldn't just submit a patch or ask for a commit bit to add the 3 lines it would habve taken to support salts? *sigh* --Guillermo Roditi (groditi) PS I realize it's my fault for forgetting to include salt support, but seriously

[Dbix-class] Re: A better Digest / Encoding / Encryption Component

2008-01-30 Thread Guillermo Roditi
On Jan 29, 2008 6:52 PM, Guillermo Roditi [EMAIL PROTECTED] wrote: Please see working draft, with tests and docs at: DBIx::Class::EncodedColumn available in the BAST repo and as a dev release on CPAN (should hit your mirror shortly). I forgot Digest support for salts AGAIN. Will add the code

Re: [Dbix-class] Re: Re: A better Digest / Encoding / Encryption Component

2008-01-30 Thread Guillermo Roditi
}')); or override set_column to do this bit for you. sub set_column{ my($self,$column, $value) = @_; if($column eq 'password' defined $value ){ $value = \'FUNCTION( '.$value.')'; } $self-next::method($column, $value); } --Guillermo Roditi (groditi

[Dbix-class] A better Digest / Encoding / Encryption Component

2008-01-29 Thread Guillermo Roditi
::Bcrypt, encode_args = { #salt gets generated automatically for this one cost = 8, key_nul = 1, check_method = 'check_password', } --Guillermo Roditi ___ List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class IRC

Re: [Dbix-class] Re: 3-5 beer reward for improvements in DBIx::Class::Schema::Loader

2008-01-27 Thread Guillermo Roditi
Two down, there's still 2-4 out there! Still available: -- is_foreign_key = 1 -- making CURRENT_TIMESTAMP translate to using DBIx::Class::TimeStamp --groditi ___ List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class IRC:

[Dbix-class] 3-5 beer reward for improvements in DBIx::Class::Schema::Loader

2008-01-26 Thread Guillermo Roditi
::Class::Schema::Loader. First come first serve!! For payment on completion please email [EMAIL PROTECTED] or look for me in #dbix-class (groditi) I hope someone takes this. --Guillermo Roditi ___ List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo