znote 1.2.1__tar.gz → 1.2.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {znote-1.2.1/znote.egg-info → znote-1.2.2}/PKG-INFO +1 -1
- {znote-1.2.1 → znote-1.2.2}/znote/server.py +6 -6
- {znote-1.2.1 → znote-1.2.2/znote.egg-info}/PKG-INFO +1 -1
- {znote-1.2.1 → znote-1.2.2}/LICENSE +0 -0
- {znote-1.2.1 → znote-1.2.2}/README.md +0 -0
- {znote-1.2.1 → znote-1.2.2}/setup.cfg +0 -0
- {znote-1.2.1 → znote-1.2.2}/znote/__init__.py +0 -0
- {znote-1.2.1 → znote-1.2.2}/znote/app/display.py +0 -0
- {znote-1.2.1 → znote-1.2.2}/znote/app/input.py +0 -0
- {znote-1.2.1 → znote-1.2.2}/znote/client.py +0 -0
- {znote-1.2.1 → znote-1.2.2}/znote/core/auth.py +0 -0
- {znote-1.2.1 → znote-1.2.2}/znote/core/client/connect.py +0 -0
- {znote-1.2.1 → znote-1.2.2}/znote/core/client/fetch.py +0 -0
- {znote-1.2.1 → znote-1.2.2}/znote/core/client/metafile.py +0 -0
- {znote-1.2.1 → znote-1.2.2}/znote/core/client/settings.py +0 -0
- {znote-1.2.1 → znote-1.2.2}/znote/core/client/token.py +0 -0
- {znote-1.2.1 → znote-1.2.2}/znote/core/config.py +0 -0
- {znote-1.2.1 → znote-1.2.2}/znote/core/editor.py +0 -0
- {znote-1.2.1 → znote-1.2.2}/znote/core/gen.py +0 -0
- {znote-1.2.1 → znote-1.2.2}/znote/core/pack.py +0 -0
- {znote-1.2.1 → znote-1.2.2}/znote/core/server/note.py +0 -0
- {znote-1.2.1 → znote-1.2.2}/znote/core/server/settings.py +0 -0
- {znote-1.2.1 → znote-1.2.2}/znote/core/workspace.py +0 -0
- {znote-1.2.1 → znote-1.2.2}/znote/main.py +0 -0
- {znote-1.2.1 → znote-1.2.2}/znote/model/models.py +0 -0
- {znote-1.2.1 → znote-1.2.2}/znote.egg-info/SOURCES.txt +0 -0
- {znote-1.2.1 → znote-1.2.2}/znote.egg-info/dependency_links.txt +0 -0
- {znote-1.2.1 → znote-1.2.2}/znote.egg-info/entry_points.txt +0 -0
- {znote-1.2.1 → znote-1.2.2}/znote.egg-info/requires.txt +0 -0
- {znote-1.2.1 → znote-1.2.2}/znote.egg-info/top_level.txt +0 -0
|
@@ -604,7 +604,7 @@ class ThreadClient(threading.Thread):
|
|
|
604
604
|
channel.channel_hash=generate_unique_hash()
|
|
605
605
|
|
|
606
606
|
logs(f"[{self.get_name_user()}] - channel: {message['channel_name']} - {message['name']} publié", "success")
|
|
607
|
-
payload = {'method': 'notify', 'message': f
|
|
607
|
+
payload = {'method': 'notify', 'message': f"{message['name']} publié", 'status_code': 'success'}
|
|
608
608
|
|
|
609
609
|
|
|
610
610
|
|
|
@@ -627,7 +627,7 @@ class ThreadClient(threading.Thread):
|
|
|
627
627
|
|
|
628
628
|
pony.commit()
|
|
629
629
|
|
|
630
|
-
payload = {'method': 'notify', 'message': f
|
|
630
|
+
payload = {'method': 'notify', 'message': f"channel {message['channel_name']} purgé", 'status_code': 'success'}
|
|
631
631
|
|
|
632
632
|
|
|
633
633
|
elif message['action']=="fetch_hash":
|
|
@@ -635,7 +635,7 @@ class ThreadClient(threading.Thread):
|
|
|
635
635
|
if channel:
|
|
636
636
|
payload = {'method': 'channel', 'action': 'fetch_hash', 'channel_hash': channel.channel_hash}
|
|
637
637
|
else:
|
|
638
|
-
payload = {'method': 'notify', 'message': f
|
|
638
|
+
payload = {'method': 'notify', 'message': f"channel {message['channel_name']} introuvable", 'status_code': 'error'}
|
|
639
639
|
|
|
640
640
|
|
|
641
641
|
elif message['action']=="fetch" or message['action']=="diff":
|
|
@@ -661,7 +661,7 @@ class ThreadClient(threading.Thread):
|
|
|
661
661
|
payload[element] = message[element]
|
|
662
662
|
|
|
663
663
|
else:
|
|
664
|
-
payload = {'method': 'notify', 'message': f
|
|
664
|
+
payload = {'method': 'notify', 'message': f"channel {message['channel_name']} introuvable", 'status_code': 'error'}
|
|
665
665
|
|
|
666
666
|
elif message['action']=="list":
|
|
667
667
|
query = __main__.settings.orm.Channel.select()
|
|
@@ -692,7 +692,7 @@ class ThreadClient(threading.Thread):
|
|
|
692
692
|
payload = {'method': 'channel', 'action': 'info', 'channel_info': channel_info}
|
|
693
693
|
|
|
694
694
|
else:
|
|
695
|
-
payload = {'method': 'notify', 'message': f
|
|
695
|
+
payload = {'method': 'notify', 'message': f"channel {message['channel_name']} introuvable", 'status_code': 'error'}
|
|
696
696
|
|
|
697
697
|
elif message['action']=="tree":
|
|
698
698
|
if "channel_name" in message:
|
|
@@ -709,7 +709,7 @@ class ThreadClient(threading.Thread):
|
|
|
709
709
|
payload = {'method': 'channel', 'action': 'tree', 'list_files': list_files}
|
|
710
710
|
|
|
711
711
|
else:
|
|
712
|
-
payload = {'method': 'notify', 'message': f
|
|
712
|
+
payload = {'method': 'notify', 'message': f"channel {message['channel_name']} introuvable", 'status_code': 'error'}
|
|
713
713
|
|
|
714
714
|
|
|
715
715
|
else:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|