/[A3C]/bin/import-ldap.pl
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /bin/import-ldap.pl

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 111 by dpavlin, Wed May 14 16:50:02 2008 UTC revision 116 by dpavlin, Thu May 15 17:38:13 2008 UTC
# Line 46  if ( @models ) { Line 46  if ( @models ) {
46    
47          while ( my $o = $orgs->next ) {          while ( my $o = $orgs->next ) {
48                  Jifty->log->info( 'sync organization ', $o_nr++, '/', $orgs->count, ' ', $o->name );                  Jifty->log->info( 'sync organization ', $o_nr++, '/', $orgs->count, ' ', $o->name );
49                  my $org_uid = $o->$value_from || die "can't find org_uid in $value_from in ",dump( $o->as_hash );                  if ( ! $o->can( $value_from ) ) {
50                            warn "can't find $value_from in ",dump( $o->as_hash );
51                            next;
52                    }
53                    my $org_uid = $o->$value_from || warn "can't find org_uid in $value_from in ",dump( $o->as_hash );
54                  my $action = Jifty->web->new_action(                  my $action = Jifty->web->new_action(
55                          class => 'SyncOrganization',                          class => 'SyncOrganization',
56                          moniker => 'sync',                          moniker => 'sync',

Legend:
Removed from v.111  
changed lines
  Added in v.116

  ViewVC Help
Powered by ViewVC 1.1.26