summaryrefslogtreecommitdiff
path: root/postgresqleu/util/misc
diff options
context:
space:
mode:
authorMagnus Hagander2017-09-15 13:05:49 +0000
committerMagnus Hagander2017-09-15 13:05:49 +0000
commitece0322ce7f7f3d15e3f0b5ec8dbf4b5c5dfaba8 (patch)
tree11b3ff7958691a05cfc81627208ddfeca03fbf48 /postgresqleu/util/misc
parent9a38883d1de36b77f621e0d2445f6bbaa20b4727 (diff)
Add catch-all argument to PDFInvoice class
This is an incompatible change to the API, but by doing it this way it can be the last one. Any arguments added by a caller after this point will be ignored if the implementation does not know about them, so new arguments can be added without breaking things.
Diffstat (limited to 'postgresqleu/util/misc')
-rwxr-xr-xpostgresqleu/util/misc/pgeuinvoice.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/postgresqleu/util/misc/pgeuinvoice.py b/postgresqleu/util/misc/pgeuinvoice.py
index 67cc848f..a491026a 100755
--- a/postgresqleu/util/misc/pgeuinvoice.py
+++ b/postgresqleu/util/misc/pgeuinvoice.py
@@ -98,7 +98,7 @@ E-mail: treasurer@postgresql.eu""",
class PDFInvoice(PDFBase):
- def __init__(self, title, recipient, invoicedate, duedate, invoicenum=None, imagedir=None, currency='€', preview=False, receipt=False, bankinfo=True, totalvat=0):
+ def __init__(self, title, recipient, invoicedate, duedate, invoicenum=None, imagedir=None, currency='€', preview=False, receipt=False, bankinfo=True, totalvat=0, **kw):
super(PDFInvoice, self).__init__(recipient, invoicenum, imagedir, currency)
self.title = title