~joaopinto/apt-portal/pre-modules

« back to all changes in this revision

Viewing changes to common/controllers/appinfo.py

  • Committer: Joao Pinto
  • Date: 2009-11-16 18:28:35 UTC
  • Revision ID: joao.pinto@getdeb.net-20091116182835-r06do4tvtu29k2v6
Renamed /app to /appinfo
Added /app as an alias to /update (keep legacy links)
Hide the "Remove" from packages (until it's properly tested)

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
#    You should have received a copy of the GNU General Public License
17
17
#    along with this program.  If not, see <http://www.gnu.org/licenses/>.
18
18
#
19
 
# /app/ contoller
 
19
# /appinfo/ contoller
20
20
 
21
21
"""
22
22
Application information controller
35
35
        app = Application.query.filter_by(id = id).first()
36
36
        return app
37
37
        
38
 
class App(object):
 
38
class AppInfo(object):
39
39
        @cherrypy.expose
40
40
        @cherrypy.tools.expires(secs=0)
41
41
        def edit(self, for_package_id = None, from_app_id = None):
195
195
                print args
196
196
 
197
197
                                                
198
 
cherrypy.root.app = App()
 
198
cherrypy.root.appinfo = AppInfo()