mirror of
https://github.com/evennia/evennia.git
synced 2026-03-25 09:16:32 +01:00
Renamed callback to a more sensible name.
This commit is contained in:
parent
94b449466a
commit
5ecbff32f6
1 changed files with 2 additions and 2 deletions
|
|
@ -1,6 +1,6 @@
|
|||
|
||||
class ReloadMixin():
|
||||
def cache(self, callback, do_save=True):
|
||||
def cache(self, reloader, do_save=True):
|
||||
cache_dict = {}
|
||||
if do_save:
|
||||
if self.save and callable(self.save):
|
||||
|
|
@ -12,7 +12,7 @@ class ReloadMixin():
|
|||
if not callable(value):
|
||||
cache_dict[key] = value
|
||||
|
||||
callback(cache_dict)
|
||||
reloader(self, cache_dict)
|
||||
|
||||
def reload(self, cache):
|
||||
for key, value in cache.iteritems():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue