/[Frey]/trunk/lib/Frey/ObjectBrowser.pm
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 /trunk/lib/Frey/ObjectBrowser.pm

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

revision 67 by dpavlin, Tue Jul 8 12:20:08 2008 UTC revision 68 by dpavlin, Wed Jul 9 13:12:03 2008 UTC
# Line 21  sub process_links { Line 21  sub process_links {
21          }          }
22  }  }
23    
24  use Data::Dumper;  #use Data::Dumper;
25  $Data::Dumper::Deparse = 1;  #$Data::Dumper::Deparse = 1;
26    use Data::Dump qw/dump/;
27    use Data::Structure::Util qw(unbless);
28    
29  #method 'html' => positional(  #method 'html' => positional(
30  #       isa => 'Continuity::RequestHolder',  #       isa => 'Continuity::RequestHolder',
# Line 32  sub html { Line 34  sub html {
34          my ( $self, $req ) = @_;          my ( $self, $req ) = @_;
35    
36          my $params = $req->param;          my $params = $req->param;
37          warn Dumper( $params );          warn "# params = ",dump( $params );
38    
39          $req->print( Dumper( $params ) );          use Strix::User;
40            use Strix::View::User;
41    
42          $req->next;          my $s = Strix::User->rows();
43            warn "# s = ",dump( $s );
44    
45            my $f = {};
46            my @w;
47    
48            while ( my $u = $s->next ) {
49                    warn "# u = ",dump( $u );
50                    my $w = Strix::View::User->new(
51                            # FIXME this is cludge
52                            unbless( $u )
53                    );
54                    warn "# w = ",dump( $w );
55                    push @w, $w;
56            }
57    
58            while ( 1 ) {
59                    my $html = join('<hr/>', map { $_->process($f) } @w );
60                    $req->print( $html );
61                    $req->next;
62            }
63    
64            warn "NO WAY OUT!";
65  };  };
66    
67  1;  1;

Legend:
Removed from v.67  
changed lines
  Added in v.68

  ViewVC Help
Powered by ViewVC 1.1.26