projects
/
mudpy.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Rename internal:directions to .mudpy.movement.*
[mudpy.git]
/
lib
/
mudpy
/
data.py
diff --git
a/lib/mudpy/data.py
b/lib/mudpy/data.py
index
9c167f5
..
00ab923
100644
(file)
--- a/
lib/mudpy/data.py
+++ b/
lib/mudpy/data.py
@@
-99,6
+99,9
@@
class DataFile:
element = mudpy.misc.Element(prefix, self.universe,
self.filename)
element.set(node[facet_pos:], self.data[node])
element = mudpy.misc.Element(prefix, self.universe,
self.filename)
element.set(node[facet_pos:], self.data[node])
+ if prefix.startswith("mudpy.movement."):
+ self.universe.directions.add(
+ prefix[prefix.rfind(".") + 1:])
for include_file in includes:
if not os.path.isabs(include_file):
include_file = find_file(
for include_file in includes:
if not os.path.isabs(include_file):
include_file = find_file(
@@
-132,11
+135,8
@@
class DataFile:
"__control__"]:
max_count = self.data["__control__"]["backup_count"]
else:
"__control__"]:
max_count = self.data["__control__"]["backup_count"]
else:
- max_count = self.universe.categories[
- "internal"
- ][
- "limits"
- ].get("default_backup_count")
+ max_count = self.universe.contents["mudpy.limit"].get(
+ "backups")
if os.path.exists(self.filename) and max_count:
backups = []
for candidate in os.listdir(os.path.dirname(self.filename)):
if os.path.exists(self.filename) and max_count:
backups = []
for candidate in os.listdir(os.path.dirname(self.filename)):