moduleapi: Add module:open_store() as a front-end to storagemanager.open()
authorMatthew Wild <mwild1@gmail.com>
Fri, 19 Apr 2013 12:29:47 +0000 (13:29 +0100)
committerMatthew Wild <mwild1@gmail.com>
Fri, 19 Apr 2013 12:29:47 +0000 (13:29 +0100)
core/moduleapi.lua

index fa20c3cdd9fd179e4e6e0d5acec774fb5b68b666..a8e6881e7bf89f91611d9097effd3f7d0e34f4bc 100644 (file)
@@ -337,4 +337,8 @@ function api:load_resource(path, mode)
        return io.open(path, mode);
 end
 
+function api:open_store(name, type)
+       return storagemanager.open(self.host, name, type);
+end
+
 return api;