aboutsummaryrefslogtreecommitdiffstats
path: root/gsxws
diff options
context:
space:
mode:
authorFilipp Lepalaan <f@230.to>2013-05-13 19:47:40 +0300
committerFilipp Lepalaan <f@230.to>2013-05-13 19:47:40 +0300
commit4ebc7f7eae508fcf5a3031e1eeadba4183589136 (patch)
tree421f4cbade2d4ec20ed9c95a1996cbd16b9a1429 /gsxws
parentac36a003cdf90e968bd95dc43b41bb329ec7448a (diff)
downloadpy-gsxws-4ebc7f7eae508fcf5a3031e1eeadba4183589136.tar.gz
py-gsxws-4ebc7f7eae508fcf5a3031e1eeadba4183589136.tar.bz2
py-gsxws-4ebc7f7eae508fcf5a3031e1eeadba4183589136.zip
Set filename properly
Diffstat (limited to 'gsxws')
-rw-r--r--gsxws/core.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/gsxws/core.py b/gsxws/core.py
index b2d9b89..4e35c76 100644
--- a/gsxws/core.py
+++ b/gsxws/core.py
@@ -292,9 +292,11 @@ class GsxObject(object):
super(GsxObject, self).__setattr__(name, value)
return
+ # Kind of a lame way to identify files, but it's the best
+ # we have for Django's File class right now...
if hasattr(value, "fileno"):
if not hasattr(self, "fileName"):
- super(GsxObject, self).__setattr__("fileName", value.name)
+ self.fileName = value.name
value = base64.b64encode(value.read())