1. Thomas Waldmann
  2. moin-2.0


psviderski  committed 4f9b58e

Fix broken item.modify (filter out None values from the update_meta dict)

  • Participants
  • Parent commits 21bd8d9
  • Branches default

Comments (0)

Files changed (1)

File MoinMoin/items/__init__.py

View file
     def modify(self, meta, data, comment=u'', contenttype_guessed=None, **update_meta):
         meta = dict(meta)  # we may get a read-only dict-like, copy it
+        # get rid of None values
+        update_meta = {key:value for key, value in update_meta.items() if value is not None}
         return self._save(meta, data, contenttype_guessed=contenttype_guessed, comment=comment)