Browse Source

Get rid of stats function, userdb stats now includes signed-in stats.

pull/10/head
cns 16 years ago
committed by butlerx
parent
commit
8bea09ef35
1 changed files with 1 additions and 10 deletions
  1. +1
    -10
      rbaccount.py

+ 1
- 10
rbaccount.py View File

@@ -25,7 +25,7 @@ from rbuser import *
# DATA #
#-----------------------------------------------------------------------------#

__version__ = '$Revision: 1.5 $'
__version__ = '$Revision: 1.6 $'
__author__ = 'Cillian Sharkey'

#-----------------------------------------------------------------------------#
@@ -287,15 +287,6 @@ class RBAccount:
print 'Home directory does not exist'
print "%13s: %s" % ('logged in', os.path.exists('%s/%s' % (rbconfig.dir_signaway_state, usr.uid)) and 'true' or 'false')

#---------------------------------------------------------------------#
# MISCELLANEOUS METHODS #
#---------------------------------------------------------------------#
def stats(self):
"""Print account statistics on standard output."""

print "%20s %5d (signed agreement)" % ('Logged in', len(os.listdir(rbconfig.dir_signaway_state)))
#---------------------------------------------------------------------#
# USER CHECKING AND INFORMATION RETRIEVAL METHODS #
#---------------------------------------------------------------------#


Loading…
Cancel
Save