include("import") func doOpen(_data) need_shelve() println(shFile, ' = shelve.open(', FileName, ', ', Flag, ', ', Protocol, ', ', Writeback, ')') end func doRead(_data) // TODO event(onRead, shFile && '[' && Key && ']') end func doWrite(_data) // TODO println(shFile, '[', Key, '] = ', Value) event(onWrite) end func doDelete(_data) // TODO println('del ', shFile, '[', Key, ']') event(onDelete) end func doSync(_data) // TODO println(shFile, '.sync()') end func doClose(_data) // TODO println(shFile, '.close()') end func Keys() return(shFile && '.keys()') end func Values() return(shFile && '.values()') end func Items() return(shFile && '.items()') end