def load(self, data):
self.total = data.get("<STR_LIT>", {})<EOL>self.default = data.get("<STR_LIT:default>", {})<EOL>self.tables = {}<EOL>self.indexes = {}<EOL>for tablename, limit in iteritems(data.get("<STR_LIT>", {})):<EOL><INDENT>self.set_table_limit(tablename, **limit)<EOL><DEDENT>for tablename, index_data in iteritems(data.get("<STR_LIT>", {})):<EOL><INDENT>for indexname, limit in iteritems(index_data):<EOL><INDENT>self.set_index_limit(tablename, indexname, **limit)<EOL><DEDENT><DEDENT>
Load the configuration from a save() dict