forked from heroku/sf-suds
-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathsuds.xsd.sxbuiltin.patch
More file actions
41 lines (41 loc) · 1.43 KB
/
suds.xsd.sxbuiltin.patch
File metadata and controls
41 lines (41 loc) · 1.43 KB
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
30
31
32
33
34
35
36
37
38
39
40
41
Index: suds/xsd/sxbuiltin.py
===================================================================
--- suds/xsd/sxbuiltin.py (revision 694)
+++ suds/xsd/sxbuiltin.py (working copy)
@@ -138,7 +138,7 @@
def translate(self, value, topython=True):
if topython:
if isinstance(value, basestring) and len(value):
- return Date(value).date
+ return Date(value).value
else:
return None
else:
@@ -156,11 +156,11 @@
def translate(self, value, topython=True):
if topython:
if isinstance(value, basestring) and len(value):
- return Time(value).time
+ return Time(value).value
else:
return None
else:
- if isinstance(value, dt.date):
+ if isinstance(value, dt.time):
return str(Time(value))
else:
return value
@@ -174,11 +174,11 @@
def translate(self, value, topython=True):
if topython:
if isinstance(value, basestring) and len(value):
- return DateTime(value).datetime
+ return DateTime(value).value
else:
return None
else:
- if isinstance(value, dt.date):
+ if isinstance(value, dt.datetime):
return str(DateTime(value))
else:
return value