diff options
author | Filipp Lepalaan <f@230.to> | 2013-05-13 19:47:40 +0300 |
---|---|---|
committer | Filipp Lepalaan <f@230.to> | 2013-05-13 19:47:40 +0300 |
commit | 4ebc7f7eae508fcf5a3031e1eeadba4183589136 (patch) | |
tree | 421f4cbade2d4ec20ed9c95a1996cbd16b9a1429 | |
parent | ac36a003cdf90e968bd95dc43b41bb329ec7448a (diff) | |
download | py-gsxws-4ebc7f7eae508fcf5a3031e1eeadba4183589136.tar.gz py-gsxws-4ebc7f7eae508fcf5a3031e1eeadba4183589136.tar.bz2 py-gsxws-4ebc7f7eae508fcf5a3031e1eeadba4183589136.zip |
Set filename properly
-rw-r--r-- | gsxws/core.py | 4 |
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()) |