| | 1 | This is a log of me running the trac_billing script (included in the scripts folder of the TimingAndEstimationPlugin |
| | 2 | |
| | 3 | '''First we import the trac_billing package'''[[br]] |
| | 4 | >>> import trac_billing[[br]] |
| | 5 | '''This runs the billing report against every trac database and emails the result to the specified address'''[[br]] |
| | 6 | >>> trac_billing.run_billing('russ@acceleration.net')[[br]] |
| | 7 | Collecting output...[[br]] |
| | 8 | ''' You might see some errors here if you dont have the plugin installed on some of your tracs or if you have non trac files folders in the trac directory'''[[br]] |
| | 9 | ---[[br]] |
| | 10 | Writing out billing information to '/var/BigVisibleCharts/Billing/billing_2006_8_14_14_21_.html'[[br]] |
| | 11 | ---[[br]] |
| | 12 | Emailing results to russ@acceleration.net[[br]] |
| | 13 | ''' Here we issue the command to add a new bill date at the current time to all of the databases'''[[br]] |
| | 14 | >>> trac_billing.mark_billing_date_in_all_projects()[[br]] |
| | 15 | Marking the bill date on all projects.[br] |
| | 16 | * ADWolf2006 failed: ('no such table: bill_date',)[[br]] |
| | 17 | tracMgmt Succeeded.[[br]] |
| | 18 | ... ''' There will be a line for every directory in the trac folder and whether or not it succeeded or failed''' |
| | 19 | Done marking bill dates[[br]] |