21 lines
506 B
Python
Executable file
21 lines
506 B
Python
Executable file
#!/usr/bin/env python
|
|
# coding: utf-8
|
|
|
|
from SWSCloudCore import models
|
|
|
|
__author__ = 'vanzhiganov'
|
|
|
|
|
|
admins_total = models.Admins.select().count()
|
|
admins_items = models.Admins.select()
|
|
|
|
print("Total admins: %i" % admins_total)
|
|
|
|
if admins_total == 0:
|
|
print('')
|
|
else:
|
|
print('List:')
|
|
for item in admins_items:
|
|
print('%s\t%s\t%s' % (item.id, item.email, item.status))
|
|
print('---')
|
|
print('For create a new admin account use command "procdn-admin-add --email <email> --password <password>"')
|