comparison mod_storage_xmlarchive/mod_storage_xmlarchive.lua @ 4646:072d078be095

mod_storage_xmlarchive: Advertise capabilities (none atm) Both 'total' and 'quota' would be prohibitively expensive for the kind of archives this module targets as it would require counting items across the entire archive.
author Kim Alvefur <zash@zash.se>
date Fri, 13 Aug 2021 01:18:32 +0200
parents b92147edd172
children b91e40472d68
comparison
equal deleted inserted replaced
4645:25ce28711fac 4646:072d078be095
19 module:require"datamanager_append_raw"; 19 module:require"datamanager_append_raw";
20 end 20 end
21 21
22 local archive = {}; 22 local archive = {};
23 local archive_mt = { __index = archive }; 23 local archive_mt = { __index = archive };
24
25 archive.caps = {
26 total = false,
27 quota = nil,
28 };
24 29
25 local is_stanza = st.is_stanza or function (s) 30 local is_stanza = st.is_stanza or function (s)
26 return getmetatable(s) == st.stanza_mt; 31 return getmetatable(s) == st.stanza_mt;
27 end 32 end
28 33