Commit 7df4d4f5 authored by Martin van Es's avatar Martin van Es
Browse files

Rename Resource Realm for consitency

parent 10df9b45
#!/usr/bin/env python
from utils import read_config, Resource, Server
from utils import read_config, Realm, Server
from flask import Flask, Response
from datetime import datetime
from dateutil import tz
......@@ -66,7 +66,7 @@ for realm, values in config.items():
print(f"realm: {realm}")
location = values['metadir']
signer = values['signer']
server[realm] = Resource(location, signer)
server[realm] = Realm(location, signer)
if __name__ == "__main__":'', port=5001, debug=False)
......@@ -42,16 +42,16 @@ class MData(object):
class EventProcessor(pyinotify.ProcessEvent):
def __init__(self, resource):
self.resource = resource
def __init__(self, realm):
self.realm = realm
def process_default(self, event):
if event.maskname in ["IN_DELETE",
class Server(dict):
......@@ -59,7 +59,7 @@ class Server(dict):
self.all_entities = None
class Resource:
class Realm:
watch_list = {}
dirty = False
all_cache = None
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment