Use function decorators to check authentication tokens.

This commit is contained in:
luxick
2018-03-28 20:58:19 +02:00
parent 4b8d2421a5
commit ad85a37d5e
6 changed files with 87 additions and 41 deletions

View File

@@ -31,6 +31,7 @@ class Access:
soc.close()
return message.get('data')
if __name__ == '__main__':
access = Access({'host': 'europa', 'port': 12345, 'buffer_size': 1024, 'auth_token': 'a'})
action = 'load_seasons'

View File

@@ -542,7 +542,7 @@
<object class="GtkLabel" id="ep_death_count_label">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">[DeathCount]</property>
<property name="label" translatable="yes">Computing...</property>
</object>
<packing>
<property name="left_attach">1</property>
@@ -553,7 +553,7 @@
<object class="GtkLabel">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">Total Drinks:</property>
<property name="label" translatable="yes">Total Shots:</property>
<property name="xalign">1</property>
</object>
<packing>
@@ -565,7 +565,7 @@
<object class="GtkLabel" id="ep_drinks_label">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">[DrinkCount]</property>
<property name="label" translatable="yes">Computing...</property>
</object>
<packing>
<property name="left_attach">1</property>
@@ -588,7 +588,7 @@
<object class="GtkLabel" id="ep_booze_label">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">[ToatalBooze]</property>
<property name="label" translatable="yes">Computing...</property>
</object>
<packing>
<property name="left_attach">1</property>
@@ -647,7 +647,7 @@
<object class="GtkLabel" id="ep_player_drinks_label">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">[PlayerDrinks]</property>
<property name="label" translatable="yes">Computing...</property>
</object>
<packing>
<property name="left_attach">1</property>
@@ -658,7 +658,7 @@
<object class="GtkLabel" id="ep_player_booze_label">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">[PlayerBooze]</property>
<property name="label" translatable="yes">Computing...</property>
</object>
<packing>
<property name="left_attach">1</property>
@@ -669,7 +669,7 @@
<object class="GtkLabel" id="ep_player_alc_label">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">[PlayerAlc]</property>
<property name="label" translatable="yes">Computing...</property>
</object>
<packing>
<property name="left_attach">1</property>
@@ -680,7 +680,7 @@
<object class="GtkLabel" id="ep_alc_label">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">[TotalAlc]</property>
<property name="label" translatable="yes">Computing...</property>
</object>
<packing>
<property name="left_attach">1</property>
@@ -703,6 +703,7 @@
<object class="GtkLabel" id="ep_enemy_name_label">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">Computing...</property>
</object>
<packing>
<property name="left_attach">1</property>