|
@@ -62,6 +62,10 @@ class MultipleSameSynapseName(Exception):
|
|
pass
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
+class NoValidOrder(Exception):
|
|
|
|
+ pass
|
|
|
|
+
|
|
|
|
+
|
|
class ConfigurationChecker:
|
|
class ConfigurationChecker:
|
|
"""
|
|
"""
|
|
This Class provides all method to Check the configuration files are properly set up.
|
|
This Class provides all method to Check the configuration files are properly set up.
|
|
@@ -192,10 +196,10 @@ class ConfigurationChecker:
|
|
.. raises:: NoEventPeriod
|
|
.. raises:: NoEventPeriod
|
|
.. warnings:: Static and Public
|
|
.. warnings:: Static and Public
|
|
"""
|
|
"""
|
|
-
|
|
|
|
if event_dict is None:
|
|
if event_dict is None:
|
|
raise NoEventPeriod("Event must contain a period: %s" % event_dict)
|
|
raise NoEventPeriod("Event must contain a period: %s" % event_dict)
|
|
-
|
|
|
|
|
|
+ if event_dict["event"] is None or event_dict["event"] == "":
|
|
|
|
+ raise NoEventPeriod("Event must contain a period: %s" % event_dict)
|
|
return True
|
|
return True
|
|
|
|
|
|
@staticmethod
|
|
@staticmethod
|
|
@@ -215,10 +219,10 @@ class ConfigurationChecker:
|
|
.. seealso:: Order
|
|
.. seealso:: Order
|
|
.. warnings:: Static and Public
|
|
.. warnings:: Static and Public
|
|
"""
|
|
"""
|
|
|
|
+ if order_dict is None or order_dict == "":
|
|
|
|
+ raise NoValidOrder("An order cannot be null or empty")
|
|
|
|
|
|
- if order_dict is not None:
|
|
|
|
- return True
|
|
|
|
- return False
|
|
|
|
|
|
+ return True
|
|
|
|
|
|
@staticmethod
|
|
@staticmethod
|
|
def check_synapes(synapses_list):
|
|
def check_synapes(synapses_list):
|