Mercurial > libervia-backend
comparison sat_frontends/quick_frontend/constants.py @ 4037:524856bd7b19
massive refactoring to switch from camelCase to snake_case:
historically, Libervia (SàT before) was using camelCase as allowed by PEP8 when using a
pre-PEP8 code, to use the same coding style as in Twisted.
However, snake_case is more readable and it's better to follow PEP8 best practices, so it
has been decided to move on full snake_case. Because Libervia has a huge codebase, this
ended with a ugly mix of camelCase and snake_case.
To fix that, this patch does a big refactoring by renaming every function and method
(including bridge) that are not coming from Twisted or Wokkel, to use fully snake_case.
This is a massive change, and may result in some bugs.
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 08 Apr 2023 13:54:42 +0200 |
parents | be6d91572633 |
children | 4b842c1fb686 |
comparison
equal
deleted
inserted
replaced
4036:c4464d7ae97b | 4037:524856bd7b19 |
---|---|
101 "selected", | 101 "selected", |
102 "notification", | 102 "notification", |
103 "notificationsClear", | 103 "notificationsClear", |
104 "widgetNew", | 104 "widgetNew", |
105 "widgetDeleted", | 105 "widgetDeleted", |
106 "profilePlugged", | 106 "profile_plugged", |
107 "contactsFilled", | 107 "contactsFilled", |
108 "disconnect", | 108 "disconnect", |
109 "gotMenus", | 109 "gotMenus", |
110 "menu", | 110 "menu", |
111 "progressFinished", | 111 "progress_finished", |
112 "progressError", | 112 "progress_error", |
113 } | 113 } |
114 | 114 |
115 # Notifications | 115 # Notifications |
116 NOTIFY_MESSAGE = "MESSAGE" # a message has been received | 116 NOTIFY_MESSAGE = "MESSAGE" # a message has been received |
117 NOTIFY_MENTION = "MENTION" # user has been mentionned | 117 NOTIFY_MENTION = "MENTION" # user has been mentionned |