116 |
sub collection { |
sub collection { |
117 |
my ( $self, $model, $limit ) = @_; |
my ( $self, $model, $limit ) = @_; |
118 |
|
|
119 |
$limit ||= 100; # FIXME |
$limit ||= 0; # unlimited by default |
120 |
|
|
121 |
my $filter = $collection2filter->{$model}; |
my $filter = $collection2filter->{$model}; |
122 |
die "unknown model $model" unless $filter; |
die "unknown model $model" unless $filter; |
173 |
if ( grep(/^\Q$attr\E$/, @columns ) ) { |
if ( grep(/^\Q$attr\E$/, @columns ) ) { |
174 |
$data->{$attr} = $entry->get_value( $attr ); |
$data->{$attr} = $entry->get_value( $attr ); |
175 |
} elsif ( $attr !~ m/^(objectClass)$/i ) { |
} elsif ( $attr !~ m/^(objectClass)$/i ) { |
176 |
Jifty->log->error(ref($model)," doesn't have $attr"); |
Jifty->log->warn(ref($model)," doesn't have $attr"); |
177 |
} |
} |
178 |
} |
} |
179 |
|
|