Skip to content
Snippets Groups Projects
Commit 23998d8f authored by Martin van Es's avatar Martin van Es
Browse files

WIP

parent cd6894f5
Branches
Tags
No related merge requests found
...@@ -30,4 +30,5 @@ for domain, values in config.items(): ...@@ -30,4 +30,5 @@ for domain, values in config.items():
server.add_watch(domain, location) server.add_watch(domain, location)
app.run(host='127.0.0.1', port=5001) if __name__ == "__main__":
app.run(host='127.0.0.1', port=5001, debug=False)
...@@ -49,7 +49,8 @@ class Resource: ...@@ -49,7 +49,8 @@ class Resource:
self._read_metadata(mdfile) self._read_metadata(mdfile)
def _read_metadata(self, mdfile): def _read_metadata(self, mdfile):
print("--- READ METADATA --") print("\n--- READ METADATA --")
print(mdfile)
found = 0 found = 0
removed = 0 removed = 0
old_idps = self.mdfiles[mdfile].copy() old_idps = self.mdfiles[mdfile].copy()
...@@ -65,7 +66,7 @@ class Resource: ...@@ -65,7 +66,7 @@ class Resource:
for entity_descriptor in root.findall('md:EntityDescriptor', ns): for entity_descriptor in root.findall('md:EntityDescriptor', ns):
entityID = entity_descriptor.attrib.get('entityID', 'none') entityID = entity_descriptor.attrib.get('entityID', 'none')
sha1 = hasher(entityID) sha1 = hasher(entityID)
print(f"{{sha1}}{sha1} {entityID}") print(f" {{sha1}}{sha1} {entityID}")
entity_descriptor.set('validUntil', validUntil) entity_descriptor.set('validUntil', validUntil)
entity_descriptor.set('cacheDuration', cacheDuration) entity_descriptor.set('cacheDuration', cacheDuration)
entity = Entity() entity = Entity()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment