Changeset 241


Ignore:
Timestamp:
12/30/10 18:40:51 (13 years ago)
Author:
nanardon
Message:
  • compat URL rpms/query
File:
1 edited

Legend:

Unmodified
Added
Removed
  • server/trunk/web/lib/Sophie/Controller/Rpms.pm

    r229 r241  
    382382        /^analyse$/    and $c->go('analyse',     [ $pkgid, @args ]); 
    383383        /^dependency$/ and $c->go('dependency',  [ $pkgid, @args ]); 
     384        /^query$/      and $c->go('query',       [ $pkgid, @args ]); 
    384385        /./            and $c->go('/404/index'); # other subpart dont exists 
    385386    } 
     
    567568} 
    568569 
     570# compat URL: 
     571sub query :Chained('rpms_') :PathPart('analyse') :Args(0) :XMLRPC { 
     572    my ( $self, $c, $pkgid, $dist ) = @_; 
     573    $pkgid ||= $c->stash->{pkgid}; 
     574    $c->stash->{rpmurl} = ($c->req->path =~ m:(.*)/[^/]+:)[0]; 
     575    $c->res->redirect($c->uri_for('/', $c->stash->{rpmurl}, 'analyse')); 
     576} 
     577 
    569578=head1 AUTHOR 
    570579 
Note: See TracChangeset for help on using the changeset viewer.