Commit 789fd433 authored by Robin Obůrka's avatar Robin Obůrka Committed by Robin Obůrka

msgloop: Rename user data to ctx

I really don't want to write self.context.variable as a programmer.
parent 518abee7
...@@ -36,7 +36,7 @@ class SNBox(): ...@@ -36,7 +36,7 @@ class SNBox():
# User data # User data
# Data generated by setup function are placed into separate variable # Data generated by setup function are placed into separate variable
# Final box shouldn't use "self" - we want to isolate its values # Final box shouldn't use "self" - we want to isolate its values
self.context = None self.ctx = None
# Core methods - Will be implemented in non-abstract boxes # Core methods - Will be implemented in non-abstract boxes
def check_configuration(self): def check_configuration(self):
...@@ -68,7 +68,7 @@ class SNBox(): ...@@ -68,7 +68,7 @@ class SNBox():
self.check_configuration() self.check_configuration()
try: try:
self.context = self.get_user_data() self.ctx = self.get_user_data()
self.logger.info("SNBox starting loop for %s box", self.name) self.logger.info("SNBox starting loop for %s box", self.name)
self.register_signals() self.register_signals()
......
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