- Notifications
You must be signed in to change notification settings - Fork35
Implement get_user#130
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Changes fromall commits
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
import locale | ||
import subprocess | ||
import sys | ||
try: | ||
import psycopg2 as pglib # noqa: F401 | ||
@@ -44,9 +46,11 @@ def set_env(self, var_name, var_val): | ||
# Check if the directory is already in PATH | ||
raise NotImplementedError() | ||
def get_user(self): | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. Это должно быть в local_ops.py и в remote_ops.py. os_ops.py - интерфейс нужный для того, чтобы не забыть реализовать какую-то из функций для локальной и удаленной работы There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. А если функция для local и remote одна и та же, и её не нужно переопределять в дочерних классах? | ||
if sys.platform.startswith('linux'): | ||
return subprocess.run(['id', '-nu'], capture_output=True, text=True).stdout.rstrip() | ||
else: | ||
raise NotImplementedError() | ||
def get_name(self): | ||
raise NotImplementedError() | ||