Changeset 33281 for lang/perl/Chaostr

Show
Ignore:
Timestamp:
05/13/09 16:40:57 (3 years ago)
Author:
vkgtaro
Message:

Mixin!

Location:
lang/perl/Chaostr/trunk/lib/Chaostr
Files:
3 added
2 modified

Legend:

Unmodified
Added
Removed
  • lang/perl/Chaostr/trunk/lib/Chaostr/Service.pm

    r33278 r33281  
    33use Chaostr::Class; 
    44 
    5 use Chaostr::Config; 
    6 use Chaostr::DB; 
    7 use Chaostr::Log; 
    8 use Chaostr::Service::PluginLoader; 
    95use Data::Dumper; 
    106use FormValidator::LazyWay; 
     
    1410with 'Chaostr::Class::Loggable'; 
    1511with 'Chaostr::Class::Validatable'; 
    16  
    17 # with 'Chaostr::Service::Mixin::Mail'; 
    18 # with 'Chaostr::Service::Mixin::OneTimeSession'; 
    19 # with 'Chaostr::Service::Mixin::DateTime'; 
     12with 'Chaostr::Class::Mailable'; 
     13with 'Chaostr::Class::DateTime'; 
     14with 'Chaostr::Class::OneTimeSession'; 
    2015 
    2116has request => ( is => 'rw' ); 
  • lang/perl/Chaostr/trunk/lib/Chaostr/Service/Test.pm

    r33074 r33281  
    88    my ( $self, $content ) = @_; 
    99 
    10     return $self->onetimesession->save($content); 
     10    return $self->save_ontime_session($content); 
    1111} 
    1212 
     
    1414    my ( $self, $token ) = @_; 
    1515 
    16     return $self->onetimesession->load($token); 
     16    return $self->load_ontime_session($token); 
    1717} 
    1818 
     
    2020    my ( $self, $token ) = @_; 
    2121 
    22     return $self->onetimesession->remove($token); 
     22    return $self->remove_ontime_session($token); 
    2323} 
    2424