Commits

Thomas Waldmann  committed 9136b83

minor changes for consistency, etc.

  • Participants
  • Parent commits c362428
  • Branches namespaces

Comments (0)

Files changed (3)

File MoinMoin/_tests/test_user.py

         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':

File MoinMoin/storage/middleware/_tests/test_protecting.py

         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

File MoinMoin/storage/middleware/indexing.py

         # 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]