/[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 71 by dpavlin, Wed Jul 9 13:12:03 2008 UTC revision 72 by dpavlin, Wed Jul 9 16:41:00 2008 UTC
# Line 26  sub process_links { Line 26  sub process_links {
26  use Data::Dump qw/dump/;  use Data::Dump qw/dump/;
27  use Data::Structure::Util qw(unbless);  use Data::Structure::Util qw(unbless);
28    
29    
30  #method 'html' => positional(  #method 'html' => positional(
31  #       isa => 'Continuity::RequestHolder',  #       isa => 'Continuity::RequestHolder',
32  #       required => 1,  #       required => 1,
# Line 48  sub html { Line 49  sub html {
49          while ( my $u = $s->next ) {          while ( my $u = $s->next ) {
50                  warn "# u = ",dump( $u );                  warn "# u = ",dump( $u );
51                  my $w = Strix::View::User->new(                  my $w = Strix::View::User->new(
52                          # FIXME this is cludge                          #%{ unbless( $u ) }, # FIXME this is cludge
53                          unbless( $u )                          %{ $u } # much better :-)
54                  );                  );
55                    $w->_fey( $u );
56                  warn "# w = ",dump( $w );                  warn "# w = ",dump( $w );
57                  push @w, $w;                  push @w, $w;
58          }          }
59    
60          while ( 1 ) {          while ( 1 ) {
61                  my $html = join('<hr/>', map { $_->process($f) } @w );                  my $form = join('<hr/>', map { $_->process($f) } @w );
62                  $req->print( $html );              my $doc = Continuity::Widget::DomNode->create(
63                            html => [
64                                    head => [
65                                            link  => { rel=>"stylesheet", href=>"form.css", type=>"text/css" }
66                                    ],
67                                    body => [
68                                            h1 => [ 'Strix::User' ],
69                                            form => { method=>'post' } => [
70                                                    $form
71                                            ],
72                                    ],
73                            ]
74                    );
75    
76                    $req->print( $doc->to_string );
77                  $req->next;                  $req->next;
78    
79                    $f = { $req->params };
80                    warn "...here we go again...";
81          }          }
82    
83          warn "NO WAY OUT!";          warn "NO WAY OUT!";

Legend:
Removed from v.71  
changed lines
  Added in v.72

  ViewVC Help
Powered by ViewVC 1.1.26