Diff

core/storagemanager.lua @ 5130:051d352ed03c

storagemanager, datamanager, mod_storage_{internal,sql}: Replace list_stores() with an iterator version
author Kim Alvefur <zash@zash.se>
date Mon, 17 Sep 2012 05:42:10 +0200
parent 5129:e8253c931166
child 5131:0cd962661fa2
line wrap: on
line diff
--- a/core/storagemanager.lua	Sun Sep 16 02:18:07 2012 +0200
+++ b/core/storagemanager.lua	Mon Sep 17 05:42:10 2012 +0200
@@ -119,8 +119,8 @@
 function datamanager.store(username, host, datastore, data)
 	return open(host, datastore):set(username, data);
 end
-function datamanager.list_stores(username, host)
-	return get_driver(host):list_stores(username);
+function datamanager.stores(username, host, typ)
+	return get_driver(host):stores(username, typ);
 end
 function datamanager.purge(username, host)
 	return purge(username);