This commit is contained in:
Dominic Bosch 2014-03-20 09:06:29 +01:00
parent f35aa5a285
commit 457a1c0852
3 changed files with 19 additions and 18 deletions

View file

@ -13,7 +13,7 @@ Components Manager
# - [Persistence](persistence.html)
db = require './persistence'
# - [Dynamic Modules](dynamic-modules.html)
dynmod = require './dynamic-modules'
dynmod = require './dynamic-modules' #TODO Rename to code-loader
# - Node.js Modules: [fs](http://nodejs.org/api/fs.html),
# [vm](http://nodejs.org/api/vm.html) and

View file

@ -113,9 +113,10 @@ function initMessageActions() {
if(typeof(func) === 'function') func(args);
};
process.on('message', function( obj ) {
// console.log( 'message: ');
// console.log (obj);
process.on('message', function( msg ) {
console.log( 'message: ');
console.log (msg);
console.log (JSON.parse(msg));
// var arrProps = obj .split('|');
// if(arrProps.length < 2) log.error('EP', 'too few parameter in message!');
// else {

View file

@ -22,23 +22,23 @@ Action Invoker Name: <input id="input_id" type="text" />
# - context: The ProBinder context (the binder ID)
#
exports.createBinderEntry = ( args ) ->
url = 'https://probinder.com/service/27/save'
url = 'https://probinder.com/service/27/save'
credentials =
username: params.username
password: params.password
credentials =
username: params.username
password: params.password
data =
companyId: args.company
context: args.context
text: args.content
data =
companyId: args.company
context: args.context
text: args.content
needle.post url, data, credentials, ( err, resp, body ) ->
if err
log err
if resp.statusCode isnt 200
log 'Request not successful:'
log body
needle.post url, data, credentials, ( err, resp, body ) ->
if err
log err
if resp.statusCode isnt 200
log 'Request not successful:'
log body
</div>
<button id="but_submit">save</button>
</td>