Changeset 25129 for lang/perl/NanoA
- Timestamp:
- 11/27/08 17:53:38 (4 years ago)
- Location:
- lang/perl/NanoA/trunk
- Files:
-
- 3 modified
-
app/tinybbs/start.pm (modified) (3 diffs)
-
lib/NanoA.pm (modified) (1 diff)
-
plugin/form.pm (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/perl/NanoA/trunk/app/tinybbs/start.pm
r25127 r25129 10 10 use base qw(NanoA); 11 11 12 define_form (12 define_form 13 13 fields => [ 14 14 title => { … … 32 32 regexp => 'email', 33 33 }, 34 ], 35 ); 34 ]; 36 35 37 36 sub run { … … 52 51 $query->param('body'), 53 52 ); 54 # redirect 55 $app->redirect( 56 $app->nanoa_uri . '/tinybbs/', 57 ); 53 # redirect to myself 54 $app->redirect; 58 55 } 59 56 -
lang/perl/NanoA/trunk/lib/NanoA.pm
r25127 r25129 137 137 my $pkg = shift; 138 138 $pkg =~ s|::|/|g; 139 $pkg =~ s|/start ||;139 $pkg =~ s|/start$|/|; 140 140 $pkg; 141 141 } -
lang/perl/NanoA/trunk/plugin/form.pm
r25105 r25129 13 13 my ($klass, $controller) = @_; 14 14 plugin::session->init_plugin($controller); 15 my $path = $controller;16 $path =~ s|::|/|;17 15 no strict 'refs'; 18 16 no warnings 'redefine'; … … 21 19 *{$controller . '::define_form'} = sub { 22 20 $form = NanoA::Form->new( 23 action => NanoA->nanoa_uri . '/' . $path,21 action => NanoA->nanoa_uri . '/' . NanoA::package_to_path($controller), 24 22 @_ == 1 ? %{$_[0]} : @_, 25 23 );
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)