Exemple #1
0
    def get_statement(self):
        """Examine Account Statement

        $ gstatement -p chemistry
        ################################################################################
        #
        # Statement for account 2 (chemistry) generated on Tue Aug 3 16:06:15 2005.
        #
        # Reporting account activity from -infinity to now.
        #
        ################################################################################
        Beginning Balance: 0
        ------------------ --------------------
        Total Credits: 360019744
        Total Debits: -19744
        ------------------ --------------------
        Ending Balance: 360000000
        ############################### Credit Detail ##################################
        Object Action JobId Amount Time
        ------- ------- ---------- --------- ----------------------
        Account Deposit 360000000 2005-08-03 16:01:15-07
        Job Refund PBS.1234.0 19744 2005-08-03 16:04:02-07
        ############################### Debit Detail ###################################
        Object Action JobId Project User Machine Amount Time
        ---------- ---------- ---------- --------- ---- ------- ------ ----------------------
        Job Charge PBS.1234.0 chemistry amy colony -19744 2005-08-03 16:03:39-07
        24
        """
        gstatement()
Exemple #2
0
    def get_statement(self):
        """Examine Account Statement

        $ gstatement -p chemistry
        ################################################################################
        #
        # Statement for account 2 (chemistry) generated on Tue Aug 3 16:06:15 2005.
        #
        # Reporting account activity from -infinity to now.
        #
        ################################################################################
        Beginning Balance: 0
        ------------------ --------------------
        Total Credits: 360019744
        Total Debits: -19744
        ------------------ --------------------
        Ending Balance: 360000000
        ############################### Credit Detail ##################################
        Object Action JobId Amount Time
        ------- ------- ---------- --------- ----------------------
        Account Deposit 360000000 2005-08-03 16:01:15-07
        Job Refund PBS.1234.0 19744 2005-08-03 16:04:02-07
        ############################### Debit Detail ###################################
        Object Action JobId Project User Machine Amount Time
        ---------- ---------- ---------- --------- ---- ------- ------ ----------------------
        Job Charge PBS.1234.0 chemistry amy colony -19744 2005-08-03 16:03:39-07
        24
        """
        gstatement()
 def user_usage(self, userid):
     statement = gstatement("-u", userid)
     return statement
 def project_usage(self, project):
     statement = gstatement("-p", project)
     return statement
 def user_usage(self, userid):
     statement = gstatement("-u", userid)
     return statement
 def project_usage(self, project):
     statement = gstatement("-p", project)
     return statement