Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Perl Cvs P5ee > [svn:p5ee] r110...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 687 of 694
Post > Topic >>

[svn:p5ee] r11053 - p5ee/trunk/App-Repository/lib/App/ValueDomain

by spadkins@[EMAIL PROTECTED] Apr 4, 2008 at 07:29 AM

Author: spadkins
Date: Fri Apr  4 07:29:09 2008
New Revision: 11053

Modified:
   p5ee/trunk/App-Repository/lib/App/ValueDomain/RepositoryTableColumns.pm

Log:
support get_table_def() instead of using the rep->{table}{<table>}
shortcut

Modified:
p5ee/trunk/App-Repository/lib/App/ValueDomain/RepositoryTableColumns.pm
==============================================================================
---
p5ee/trunk/App-Repository/lib/App/ValueDomain/RepositoryTableColumns.pm	(original)
+++
p5ee/trunk/App-Repository/lib/App/ValueDomain/RepositoryTableColumns.pm	Fri
Apr  4 07:29:09 2008
@[EMAIL PROTECTED]
 -75,9 +75,10 @[EMAIL PROTECTED]
     my $context = $self->{context};
     my $rep = $context->repository($self->{repository});
     my $table = $self->{table} || die "No table specified in
$self->{name} ValueDomain";
+    my $table_def = $rep->get_table_def($table);
     my $values = $rep->get_column_names($table);
     my $labels = $rep->get_column_labels($table, $self->{labelcolumn});
-    my $column_defs = $rep->{table}{$table}{column};
+    my $column_defs = $table_def->{column};
     $values = [ @[EMAIL PROTECTED]
 ];    # make a copy
     $labels = { %$labels };    # make a copy
     if ($self->{sortcolumn}) {




 1 Posts in Topic:
[svn:p5ee] r11053 - p5ee/trunk/App-Repository/lib/App/ValueDomai
spadkins@[EMAIL PROTECTED  2008-04-04 07:29:09 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Tue May 13 21:46:03 CDT 2008.