From 2fc2c979032f508ab11d6866dd7836a2b0d06b82 Mon Sep 17 00:00:00 2001
From: Berk Onat <b.onat@warwick.ac.uk>
Date: Mon, 9 Apr 2018 16:29:36 +0100
Subject: [PATCH] Adding restricted_uri meta info storage to SmartParser.

---
 common/python/nomadcore/smart_parser/SmartParserCommon.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/common/python/nomadcore/smart_parser/SmartParserCommon.py b/common/python/nomadcore/smart_parser/SmartParserCommon.py
index 604d9e5..2306446 100644
--- a/common/python/nomadcore/smart_parser/SmartParserCommon.py
+++ b/common/python/nomadcore/smart_parser/SmartParserCommon.py
@@ -161,6 +161,7 @@ class ParserBase(object):
                  parserinfodef=None, recorderOn=False):
         self.PARSERTAG = parsertag
         self.metaStorage = mStore.Container('section_run')
+        self.metaStorageRestrict = mStore.Container('section_restricted_uri')
         exclude_dict = { 
             'section_run' : [
             'section_processor_info', 
@@ -176,6 +177,7 @@ class ParserBase(object):
                 self.META_INFO_PATH
                 )
         self.metaStorage.build(jsonmetadata, 'section_run', exclude_dict)
+        self.metaStorageRestrict.build(jsonmetadata, 'section_restricted_uri', exclude_dict)
         self.re_program_name = re_program_name
         #set_Dictionaries(self)
         self.parserInfo = PARSER_INFO_DEFAULT.copy()
-- 
GitLab