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

WIP

parent cd6894f5
No related branches found
No related tags found
No related merge requests found
......@@ -30,4 +30,5 @@ for domain, values in config.items():
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:
self._read_metadata(mdfile)
def _read_metadata(self, mdfile):
print("--- READ METADATA --")
print("\n--- READ METADATA --")
print(mdfile)
found = 0
removed = 0
old_idps = self.mdfiles[mdfile].copy()
......@@ -65,7 +66,7 @@ class Resource:
for entity_descriptor in root.findall('md:EntityDescriptor', ns):
entityID = entity_descriptor.attrib.get('entityID', 'none')
sha1 = hasher(entityID)
print(f"{{sha1}}{sha1} {entityID}")
print(f" {{sha1}}{sha1} {entityID}")
entity_descriptor.set('validUntil', validUntil)
entity_descriptor.set('cacheDuration', cacheDuration)
entity = Entity()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment