Changeset 194


Ignore:
Timestamp:
04/14/09 18:36:36 (15 years ago)
Author:
nanardon
Message:
  • clearly separate Catalyst Model and Vote::DB module, making test faster
Location:
trunk
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/Makefile.PL

    r147 r194  
    22 
    33name 'Vote'; 
    4 all_from 'lib/Vote.pm'; 
     4all_from 'lib/Vote/DB.pm'; 
    55 
    66requires 'Catalyst' => '5.7015'; 
  • trunk/lib/Vote.pm

    r189 r194  
    2222    Session::State::Cookie 
    2323    /; 
    24  
    25 our $VERSION = '1.90'; 
    2624 
    2725# Configure the application.  
  • trunk/lib/Vote/DB.pm

    r193 r194  
    55use strict; 
    66use warnings; 
    7 use Vote; 
    87use base 'Vote::DB::common'; 
    98use Vote::DB::Poll; 
     
    1211use Vote::DB::Voting; # see delete_voting() 
    1312use Vote::DB::Choice; 
     13 
     14our $VERSION = '1.90'; 
    1415 
    1516=head1 NAME 
  • trunk/lib/Vote/DB/Poll.pm

    r193 r194  
    55use strict; 
    66use warnings; 
    7 use Vote; 
     7use base 'Vote::DB::common'; 
    88use Crypt::RSA; 
    99use Crypt::RSA::Key::Public::SSH; 
     
    1212use XML::Simple; 
    1313use MIME::Base64; 
    14 use base 'Vote::DB::common'; 
    1514use Vote::DB::Ballot; 
    1615use Vote::DB::Voting; 
  • trunk/lib/Vote/DB/common.pm

    r190 r194  
    55use strict; 
    66use warnings; 
    7 use Vote; 
    87use DBI; 
    98use vars qw(@EXPORT); 
  • trunk/lib/Vote/View/Latex.pm

    r183 r194  
    22 
    33use strict; 
    4 use base 'Catalyst::View::TT'; 
     4use base 'Vote::View::TT'; 
    55use LaTeX::Driver; 
    66use File::Temp; 
  • trunk/lib/Vote/View/Mail.pm

    r180 r194  
    44use base 'Catalyst::View::TT'; 
    55use Mail::Mailer; 
    6 use Vote; 
     6use Vote::DB; 
    77 
    88__PACKAGE__->config( 
     
    3131        'Content-Type' => 'text/plain; charset=UTF-8; format=flowed', 
    3232        'Content-Transfer-Encoding' => '8bit', 
    33         'X-Epoll-version' => $Vote::VERSION, 
     33        'X-Epoll-version' => $Vote::DB::VERSION, 
    3434    }); 
    3535    print $mailer 
  • trunk/lib/Vote/View/TT.pm

    r128 r194  
    33use strict; 
    44use base 'Catalyst::View::TT'; 
     5use Vote::DB; 
    56 
    67__PACKAGE__->config( 
     
    2526    my ($self, $c) = @_; 
    2627 
    27     $c->stash->{Vote}{VERSION} = $Vote::VERSION; 
     28    $c->stash->{Vote}{VERSION} = $Vote::DB::VERSION; 
    2829    Catalyst::View::TT::process($self, $c); 
    2930} 
Note: See TracChangeset for help on using the changeset viewer.