-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:redshodan/unsonic into docker
* 'master' of github.com:redshodan/unsonic: 0.1b7 release Removed unsonic version of sync, let mishmash sync itself. all unsonic commands make sure alembic is run. Make the serve command not load the db and take extra loading time.
- Loading branch information
Showing
8 changed files
with
28 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
from nicfit import command | ||
from mishmash.core import Command | ||
from . import Command, register | ||
from ..models import listUsers, initAlembic | ||
|
||
from .. import models | ||
|
||
|
||
@command.register | ||
@register | ||
class ListUsers(Command): | ||
NAME = "listusers" | ||
HELP = "List users in the database" | ||
|
||
|
||
def _run(self, args=None): | ||
initAlembic() | ||
|
||
args = args or self.args | ||
|
||
print("Users:") | ||
for uname, roles in models.listUsers(self.db_session): | ||
for uname, roles in listUsers(self.db_session): | ||
print(" %s: roles: %s" % (uname, ", ".join(roles))) | ||
return 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
VERSION = "0.1b6" | ||
VERSION = "0.1b7" | ||
UNSONIC_PROTOCOL_VERSION = "0.1" | ||
PROTOCOL_VERSION = "1.14.0" |