znote 1.2.5__tar.gz → 1.2.7__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.
Files changed (31) hide show
  1. {znote-1.2.5/znote.egg-info → znote-1.2.7}/PKG-INFO +1 -1
  2. {znote-1.2.5 → znote-1.2.7}/znote/core/client/settings.py +9 -9
  3. {znote-1.2.5 → znote-1.2.7/znote.egg-info}/PKG-INFO +1 -1
  4. {znote-1.2.5 → znote-1.2.7}/LICENSE +0 -0
  5. {znote-1.2.5 → znote-1.2.7}/README.md +0 -0
  6. {znote-1.2.5 → znote-1.2.7}/setup.cfg +0 -0
  7. {znote-1.2.5 → znote-1.2.7}/znote/__init__.py +0 -0
  8. {znote-1.2.5 → znote-1.2.7}/znote/app/display.p +0 -0
  9. {znote-1.2.5 → znote-1.2.7}/znote/app/display.py +0 -0
  10. {znote-1.2.5 → znote-1.2.7}/znote/app/input.py +0 -0
  11. {znote-1.2.5 → znote-1.2.7}/znote/client.py +0 -0
  12. {znote-1.2.5 → znote-1.2.7}/znote/core/auth.py +0 -0
  13. {znote-1.2.5 → znote-1.2.7}/znote/core/client/connect.py +0 -0
  14. {znote-1.2.5 → znote-1.2.7}/znote/core/client/fetch.py +0 -0
  15. {znote-1.2.5 → znote-1.2.7}/znote/core/client/metafile.py +0 -0
  16. {znote-1.2.5 → znote-1.2.7}/znote/core/client/token.py +0 -0
  17. {znote-1.2.5 → znote-1.2.7}/znote/core/config.py +0 -0
  18. {znote-1.2.5 → znote-1.2.7}/znote/core/editor.py +0 -0
  19. {znote-1.2.5 → znote-1.2.7}/znote/core/gen.py +0 -0
  20. {znote-1.2.5 → znote-1.2.7}/znote/core/pack.py +0 -0
  21. {znote-1.2.5 → znote-1.2.7}/znote/core/server/note.py +0 -0
  22. {znote-1.2.5 → znote-1.2.7}/znote/core/server/settings.py +0 -0
  23. {znote-1.2.5 → znote-1.2.7}/znote/core/workspace.py +0 -0
  24. {znote-1.2.5 → znote-1.2.7}/znote/main.py +0 -0
  25. {znote-1.2.5 → znote-1.2.7}/znote/model/models.py +0 -0
  26. {znote-1.2.5 → znote-1.2.7}/znote/server.py +0 -0
  27. {znote-1.2.5 → znote-1.2.7}/znote.egg-info/SOURCES.txt +0 -0
  28. {znote-1.2.5 → znote-1.2.7}/znote.egg-info/dependency_links.txt +0 -0
  29. {znote-1.2.5 → znote-1.2.7}/znote.egg-info/entry_points.txt +0 -0
  30. {znote-1.2.5 → znote-1.2.7}/znote.egg-info/requires.txt +0 -0
  31. {znote-1.2.5 → znote-1.2.7}/znote.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: znote
3
- Version: 1.2.5
3
+ Version: 1.2.7
4
4
  Summary: Vault de prise de note
5
5
  Author:
6
6
  License: mit
@@ -29,7 +29,7 @@ class Settings():
29
29
  self.port = self.config.get('client.port', default=40017, auto_set=True)
30
30
  self.key_size = self.config.get('client.key_size', default=2048, auto_set=True)
31
31
  self.key_otp = self.config.get('client.key_otp', default='JBSWY3DPEHPK3PXP', auto_set=True)
32
- self.config_dir = self.config.get('server.working_dir', default=os.path.abspath(os.path.expanduser('~/.config/znote')), auto_set=True)
32
+ self.config_dir = self.config.get('client.working_dir', default=os.path.abspath(os.path.expanduser('~/.config/znote')), auto_set=True)
33
33
 
34
34
  self.totp = pyotp.TOTP(self.key_otp)
35
35
 
@@ -131,20 +131,20 @@ class Settings():
131
131
  verbose = input(f"{fg('dark_gray')}verbose [{fg('cyan')}{self.verbose}{fg('dark_gray')}]: ")
132
132
 
133
133
  if host:
134
- self.config.set('server.host', host)
134
+ self.config.set('client.host', host)
135
135
 
136
- if port and isinstance(port, int):
137
- self.config.set('server.port', int(port))
136
+ if port and port.isdigit():
137
+ self.config.set('client.port', int(port))
138
138
 
139
- if key_size and isinstance(key_size, int):
140
- self.config.set('server.key_size', int(key_size))
139
+ if key_size and key_size.isdigit():
140
+ self.config.set('client.key_size', int(key_size))
141
141
 
142
142
  if key_otp:
143
- self.config.set('server.key_otp', key_otp)
143
+ self.config.set('client.key_otp', key_otp)
144
144
 
145
145
  if working_dir:
146
- self.config.set('server.working_dir', working_dir)
146
+ self.config.set('client.working_dir', working_dir)
147
147
 
148
148
  if verbose:
149
- self.config.set('server.verbose', verbose)
149
+ self.config.set('client.verbose', verbose)
150
150
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: znote
3
- Version: 1.2.5
3
+ Version: 1.2.7
4
4
  Summary: Vault de prise de note
5
5
  Author:
6
6
  License: mit
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