changeset 1941:9136b83cce24 namespaces

minor changes for consistency, etc.
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sun, 03 Feb 2013 23:14:38 +0100
parents c3624283c9ec
children ef3b90a72626
files MoinMoin/_tests/test_user.py MoinMoin/storage/middleware/_tests/test_protecting.py MoinMoin/storage/middleware/indexing.py
diffstat 3 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/_tests/test_user.py	Sun Feb 03 22:29:55 2013 +0100
+++ b/MoinMoin/_tests/test_user.py	Sun Feb 03 23:14:38 2013 +0100
@@ -107,7 +107,6 @@
         Create user, set a specific pw hash and check that user can login
         with the correct password and can not log in with a wrong password.
         """
-
         # Create test user
         name = u'Test User'
         # sha512_crypt passlib hash for '12345':
--- a/MoinMoin/storage/middleware/_tests/test_protecting.py	Sun Feb 03 22:29:55 2013 +0100
+++ b/MoinMoin/storage/middleware/_tests/test_protecting.py	Sun Feb 03 23:14:38 2013 +0100
@@ -63,7 +63,7 @@
         revids = []
         for item_name, acl, content in items:
             item = self.imw[item_name]
-            r = item.store_revision(dict(name=[item_name, ], acl=acl),  # need contenttype=u'text/plain' in dict?
+            r = item.store_revision(dict(name=[item_name, ], acl=acl, contenttype=u'text/plain'),
                                     StringIO(content), return_rev=True)
             revids.append(r.revid)
         return revids
--- a/MoinMoin/storage/middleware/indexing.py	Sun Feb 03 22:29:55 2013 +0100
+++ b/MoinMoin/storage/middleware/indexing.py	Sun Feb 03 23:14:38 2013 +0100
@@ -992,7 +992,7 @@
         # just update the meta dict with the validated stuff:
         meta.update(dict(m.value.items()))
         # we do not want None / empty values:
-        meta = dict([(k, v) for k, v in meta.items() if v not in [None, ]]) # do not kick out empty lists before fixing NAME processing
+        meta = dict([(k, v) for k, v in meta.items() if v not in [None, ]]) # XXX do not kick out empty lists before fixing NAME processing
 
         if self.itemid is None:
             self.itemid = meta[ITEMID]