(self, relative, value)
| 268 | return os.path.join(self.path, relative) |
| 269 | |
| 270 | def json(self, relative, value): |
| 271 | data = (json.dumps(value, sort_keys=True, indent=2, |
| 272 | ensure_ascii=True) + "\n").encode("ascii") |
| 273 | if len(data) > 64 * 1024 * 1024: |
| 274 | _error("resource_limit", "metadata exceeds 64MiB bound") |
| 275 | return self.write(relative, data) |
| 276 | |
| 277 | def publish(self, meta): |
| 278 | # A partial JSON file is never a commit marker. The pending complete |