From 413960249bf896e751f6d47975f26acbcdf54440 Mon Sep 17 00:00:00 2001 From: Andrey Balakirev Date: Sat, 22 Sep 2012 23:48:59 +0400 Subject: [PATCH] new autodafe --- controllers/remote.js | 12 ++++++------ controllers/site.js | 6 +++--- index.js | 2 +- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/controllers/remote.js b/controllers/remote.js index d8c13f1..bf51e11 100644 --- a/controllers/remote.js +++ b/controllers/remote.js @@ -1,14 +1,14 @@ -module.exports = Remote.inherits( autodafe.Controller ); +module.exports = Remote.inherits( global.autodafe.Controller ); function Remote( params ) { this._init( params ); } -Remote.prototype.show = function(params, client){ - this.send_response( 'remote', client, { - obj_name : params.model || 'ember', - width : params.width || 700, - height : params.height || 400 +Remote.prototype.show = function(response, request){ + response.view_name('remote').send({ + obj_name : request.params.model || 'ember', + width : request.params.width || 700, + height : request.params.height || 400 } ); } \ No newline at end of file diff --git a/controllers/site.js b/controllers/site.js index 34ce7d7..6d1d16e 100644 --- a/controllers/site.js +++ b/controllers/site.js @@ -5,10 +5,10 @@ function SiteController( params ) { } -SiteController.prototype.before_action = function( action, params, client ){ - this.send_response( 'WebPlayer', client, { +SiteController.prototype.before_action = function( action, response, request ){ + response.view_name( 'WebPlayer').send({ obj_name : action - } ); + }); return false; }; diff --git a/index.js b/index.js index a408506..5edd7e9 100644 --- a/index.js +++ b/index.js @@ -1,4 +1,4 @@ var config = require('./config.js'); -var autodafe = require('../autodafe_docs/node_modules/autodafe'); +var autodafe = require('../autodafe_docs/node_modules/adwiki/node_modules/autodafe'); autodafe.create_application( config ).run(); \ No newline at end of file