Op 24-8-2011 18:31, Andrew Colin Kissa schreef: > On 24 Aug 2011, at 4:41 PM, Johan Hendriks wrote: > >> Is it possible to generate a monthly report manual. >> Lets say i want to create a report for the month may, or july now. >> And only for one certain domain, i do not mind if it goes for all the >> domains BTW. >> What must i do for that. > baruwa-admin help sendpdfreports > > will give you all the options available. > > -- > Baruwa - www.baruwa.org > > _______________________________________________ > Baruwa mailing list > [email protected] > http://lists.baruwa.org/mailman/listinfo/baruwa > Keep Baruwa FREE - http://pledgie.com/campaigns/12056 Thnaks for the quick reply. I did know about the options, so if those are the options a report for may is not do able, or i must mis understand the options.
while testing, i noticed some funny things # baruwa-admin sendpdfreports --bydomain --period="2 weeks" --full =================== Processing reports ====================== * Queue schavemaker.com's report to: [email protected] * Queue htcnl.com's report to: [email protected] * Queue schavemaker.nl's report to: [email protected] * Queue sle.nl's report to: [email protected] ====== sending 4 messages ======= This all looks good, except it gives me the full list of al mail since the start of this baruwa server. So the full report at the end page has the table from 2011-04-01 till 2011-08-24 Not just the 2 weeks, but from the start this is with --bydomain if i specify the domain however # baruwa-admin sendpdfreports --domain=schavemaker.com --period="2 weeks" --full =================== Processing reports ====================== * Queue admin's report to: [email protected] * Queue support's report to: [email protected] ====== sending 2 messages ======= Then i get the last 2 weeks for the domain schavemaker.com, so this works like expected. Also the month statement is not working and errors out # baruwa-admin sendpdfreports --domain=schavemaker.com --period="1 month" --full Traceback (most recent call last): File "/usr/local/bin/baruwa-admin", line 5, in <module> pkg_resources.run_script('baruwa==1.1.0', 'baruwa-admin') File "build/bdist.freebsd-8.2-RELEASE-amd64/egg/pkg_resources.py", line 489, in run_script File "build/bdist.freebsd-8.2-RELEASE-amd64/egg/pkg_resources.py", line 1207, in run_script File "/usr/local/lib/python2.7/site-packages/baruwa-1.1.0-py2.7.egg/EGG-INFO/scripts/baruwa-admin", line 11, in <module> execute_manager(settings) File "/usr/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 438, in execute_manager utility.execute() File "/usr/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 379, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/usr/local/lib/python2.7/site-packages/django/core/management/base.py", line 191, in run_from_argv self.execute(*args, **options.__dict__) File "/usr/local/lib/python2.7/site-packages/django/core/management/base.py", line 220, in execute output = self.handle(*args, **options) File "/usr/local/lib/python2.7/site-packages/baruwa-1.1.0-py2.7.egg/baruwa/reports/management/commands/sendpdfreports.py", line 81, in handle delta = datetime.timedelta(**{ptype: int(num)}) TypeError: 'months' is an invalid keyword argument for this function A nice feature would be --lastdate so the following command should give me the month may for example. # baruwa-admin sendpdfreports --domain=schavemaker.com --period="1 month" --full --lastdate=2011-05-31 or this will give me the last week from januari # baruwa-admin sendpdfreports --domain=schavemaker.com --period="1 week" --full --lastdate=2011-01-31 Thanks again for your time. regards, Johan Hendriks -- _______________________ *Johan Hendriks* *Schavemaker Transport* Tel:+31 (0)251 229098 Fax:+31 (0)251 212016 email:[email protected] <mailto:[email protected]> web:http://www.schavemaker.com _______________________ /Confidentiality Notice: The information in this document may be confidential. It is intended only for the use of the named recipient. If you are not the intended recipient, please notify me immediately and then delete this document. Do not disclose the contents of this document to any other person, nor take any copies. Violation of this notice may be unlawful. / _______________________ _______________________________________________ Baruwa mailing list [email protected] http://lists.baruwa.org/mailman/listinfo/baruwa Keep Baruwa FREE - http://pledgie.com/campaigns/12056

