minor cleanup and docs...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2016-04-18 17:27:34 +03:00
parent 1ee56fd580
commit 55fcdade33
2 changed files with 10 additions and 2 deletions

View File

@ -917,6 +917,8 @@ var FileSystemWriterActions = actions.Actions({
// XXX resolve env variables in path... // XXX resolve env variables in path...
// XXX make custom previews... // XXX make custom previews...
// ...should this be a function of .images.getBestPreview(..)??? // ...should this be a function of .images.getBestPreview(..)???
// XXX report errors...
// XXX stop the process on errors...
exportDirs: ['File/Export as nested directories', exportDirs: ['File/Export as nested directories',
function(path, pattern, level_dir, size, logger){ function(path, pattern, level_dir, size, logger){
logger = logger || this.logger logger = logger || this.logger
@ -942,6 +944,8 @@ var FileSystemWriterActions = actions.Actions({
size = size || this.config['export-preview-size'] || 1000 size = size || this.config['export-preview-size'] || 1000
pattern = pattern || this.config['export-preview-name-pattern'] || '%f' pattern = pattern || this.config['export-preview-name-pattern'] || '%f'
// XXX need to abort on fatal errors...
this.data.ribbon_order this.data.ribbon_order
.slice() .slice()
.reverse() .reverse()
@ -989,8 +993,11 @@ var FileSystemWriterActions = actions.Actions({
.replace(/%I/, that.data.getImageOrder(gid, 'global')) .replace(/%I/, that.data.getImageOrder(gid, 'global'))
// tags... // tags...
.replace(/%\((.*)\)m/, tags.indexOf('selected') >= 0 ? '$1' : '') // XXX test: %n%(b)b%(m)m%e
.replace(/%\((.*)\)b/, tags.indexOf('bookmark') >= 0 ? '$1' : '') .replace(
/%\((.*)\)m/, tags.indexOf('selected') >= 0 ? '$1' : '')
.replace(
/%\((.*)\)b/, tags.indexOf('bookmark') >= 0 ? '$1' : '')
// metadata... // metadata...
// XXX // XXX

View File

@ -18,6 +18,7 @@ var object = require('lib/object')
// XXX need a mechanism to either queue chains of tasks that depend on // XXX need a mechanism to either queue chains of tasks that depend on
// on the previous results or a way to delay a task until what it // on the previous results or a way to delay a task until what it
// needs is finished... // needs is finished...
// XXX add fatal .abort(..) of queue...
var QueueActions = var QueueActions =
module.QueueActions = actions.Actions({ module.QueueActions = actions.Actions({
config: { config: {