diff --git a/lib/utils.js b/lib/utils.js index 59f14e4..ddaffb4 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -42,7 +42,14 @@ utils = { throw new Error('Missing parameters "table"'); } newpath = '/'; - newpath += encodeURIComponent(args.table); + nsSep = args.table.indexOf(':'); + if (nsSep >= 0) { + namespace = args.table.substr(0,nsSep); + tablename = args.table.substr(nsSep+1); + newpath += encodeURIComponent(namespace) + ':' + encodeURIComponent(tablename); + } else { + newpath += encodeURIComponent(args.table); + } if (args.key) { newpath += '/'; newpath += encodeURIComponent(args.key);