root / snf-app / synnefo / db / management / commands / calculate_bills.py @ 483c9197
History | View | Annotate | Download (1.8 kB)
1 | ace4bd5d | Georgios Gousios | # Copyright 2011 GRNET S.A. All rights reserved.
|
---|---|---|---|
2 | bfd0754e | Vassilios Karakoidas | #
|
3 | ace4bd5d | Georgios Gousios | # Redistribution and use in source and binary forms, with or without
|
4 | ace4bd5d | Georgios Gousios | # modification, are permitted provided that the following conditions
|
5 | ace4bd5d | Georgios Gousios | # are met:
|
6 | ace4bd5d | Georgios Gousios | #
|
7 | ace4bd5d | Georgios Gousios | # 1. Redistributions of source code must retain the above copyright
|
8 | ace4bd5d | Georgios Gousios | # notice, this list of conditions and the following disclaimer.
|
9 | ace4bd5d | Georgios Gousios | #
|
10 | ace4bd5d | Georgios Gousios | # 2. Redistributions in binary form must reproduce the above copyright
|
11 | ace4bd5d | Georgios Gousios | # notice, this list of conditions and the following disclaimer in the
|
12 | ace4bd5d | Georgios Gousios | # documentation and/or other materials provided with the distribution.
|
13 | bfd0754e | Vassilios Karakoidas | #
|
14 | ace4bd5d | Georgios Gousios | # THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
15 | ace4bd5d | Georgios Gousios | # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
16 | ace4bd5d | Georgios Gousios | # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
17 | ace4bd5d | Georgios Gousios | # ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
18 | ace4bd5d | Georgios Gousios | # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
19 | ace4bd5d | Georgios Gousios | # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
20 | ace4bd5d | Georgios Gousios | # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
21 | ace4bd5d | Georgios Gousios | # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
22 | ace4bd5d | Georgios Gousios | # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
23 | ace4bd5d | Georgios Gousios | # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
24 | ace4bd5d | Georgios Gousios | # SUCH DAMAGE.
|
25 | bfd0754e | Vassilios Karakoidas | #
|
26 | ace4bd5d | Georgios Gousios | # The views and conclusions contained in the software and documentation are
|
27 | ace4bd5d | Georgios Gousios | # those of the authors and should not be interpreted as representing official
|
28 | ace4bd5d | Georgios Gousios | # policies, either expressed or implied, of GRNET S.A.
|
29 | ace4bd5d | Georgios Gousios | |
30 | ace4bd5d | Georgios Gousios | # bill Calculator Command - Management Script
|
31 | bfd0754e | Vassilios Karakoidas | |
32 | bfd0754e | Vassilios Karakoidas | from django.core.management.base import NoArgsCommand |
33 | bfd0754e | Vassilios Karakoidas | |
34 | 738c4d47 | Georgios Gousios | from synnefo.db import bill_calculator |
35 | bfd0754e | Vassilios Karakoidas | |
36 | bfd0754e | Vassilios Karakoidas | class Command(NoArgsCommand): |
37 | bfd0754e | Vassilios Karakoidas | help = ''
|
38 | bfd0754e | Vassilios Karakoidas | |
39 | bfd0754e | Vassilios Karakoidas | def handle_noargs(self, **options): |
40 | bfd0754e | Vassilios Karakoidas | bill_calculator.calculate_bills() |