Example #1
0
 function allDone(err) {
   if(err) {
     calipso.log(err);
     next(err)
   } else {
     calipso.log("User module installed ... ");
     next();
   }
 }
Example #2
0
 function allDone(err) {
     if(err) {
       next(err)
     } else {
       calipso.log("Content types module installed ... ");
       next();
     }
 }
Example #3
0
 c.save(function(err) {
   if (err) {
     req.flash('error', req.t('Could not update the configuration because {msg}.',{msg:err.message}));
     if (res.statusCode != 302) { // Don't redirect if we already are, multiple errors
       res.redirect('/admin');
     }
   } else {
     calipso.log(c);
     calipso.config = c; // TODO : This wont work on multiple edits
     res.redirect('/admin/reload');
   }
   next();
 });
Example #4
0
        Content.count({}, function (err, count) {
 
         var total = count;
         calipso.log("Reindexing " + total + " documents ...");
 
         Content.find({},function (err, contents) {
           
             contents.forEach(function(item) {
                indexContent(item);
             });                          
             
             req.flash('info',req.t('Re-indexing {msg} content items ... this may take some time!',{msg:total}));
             next();
             
         });
         
       });
Example #5
0
/**
 * Template Job
 */
function templateJob(args, next) {
  calipso.log("Template job function called with args: " + args);
  next();
}
Example #6
0
/**
 * Admin hook for reloading
 */
function reload() {
  calipso.log("Template module reloaded");
}
Example #7
0
/**
 * hook for disabling
 */
function disable() {
  calipso.log("Template module disabled");
}
Example #8
0
/**
 * Template installation hook
 */
function install() {
  calipso.log("Template module installed");
}
Example #9
0
function reload() {
  calipso.log("Sample Content module reloaded");
}
Example #10
0
function disable() {
  calipso.log("Sample Content module disabled");
}
Example #11
0
function install() {
  calipso.log("Sample Content module installed");
}