summaryrefslogtreecommitdiff
path: root/finance/emma/patches/patch-ae
blob: 6fcaf3137f3ef41bdd1d532bd4ccfdfa8c901dd5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
$NetBSD: patch-ae,v 1.2 2002/10/24 17:21:59 drochner Exp $

--- data/date.py.orig	Sat Sep 22 20:02:33 2001
+++ data/date.py	Thu Oct 24 18:44:53 2002
@@ -1,4 +1,6 @@
 try:
+    from mx.DateTime import *
+except ImportError:
     from DateTime import *
 except:
     print "In order to use date.py you need the mxdatetime package"
@@ -57,7 +59,7 @@
     return emma.date() >= this.ticks() and emma.date() < next.ticks()
 
 emma.register_func("MonthExt",\
-   "Args: numMonths, offset\n\n",\
+   "Args: numMonths, offset\n\n"\
    "Returns True if the transaction happened\n"\
    "in the next <numMonths> months offset by\n"\
    "<offset> weeks.\n\n"\
@@ -72,7 +74,7 @@
     return emma.date() >= this.ticks() and emma.date() < next.ticks()
 
 emma.register_func("YearExt",\
-   "Args: numYears, offset\n\n",\
+   "Args: numYears, offset\n\n"\
    "Returns True if the transaction happened in\n"\
    "the next <numYears> year offset by <offset>\n"\
    "years.\n\n"\