fix for StorageList and tests added

gluon/storage.py
StorageList had a recursion error (please check the implementation before committing)

gluon/tests*
added the fix_path module to avoid those ugly lines at the beginning of each test file
added tests for gluon.contenttype and test_fileutils
added tests for missing Storage methods
This commit is contained in:
niphlod
2014-09-21 08:26:38 +02:00
parent bb199ad533
commit 34a417cfa0
19 changed files with 218 additions and 441 deletions
+2 -2
View File
@@ -151,10 +151,10 @@ class StorageList(Storage):
def __getattr__(self, key):
if key in self:
return getattr(self, key)
return self.get(key)
else:
r = []
setattr(self, key, r)
self[key] = r
return r