Solves 361 Rename uses comment from previous meta
authorAshutosh Singla <ashu1461@gmail.com>
Wed, 24 Apr 2013 19:28:47 +0530
changeset 2100129929623809
parent 2099 e9d25b2c89a6
child 2101 d993f93428bc
Solves 361 Rename uses comment from previous meta
MoinMoin/items/__init__.py
     1.1 --- a/MoinMoin/items/__init__.py	Tue Apr 16 03:51:49 2013 +0530
     1.2 +++ b/MoinMoin/items/__init__.py	Wed Apr 24 19:28:47 2013 +0530
     1.3 @@ -455,7 +455,7 @@
     1.4          """
     1.5          raise NotImplementedError
     1.6  
     1.7 -    def _save(self, meta, data=None, name=None, action=u'SAVE', contenttype_guessed=None, comment=u'',
     1.8 +    def _save(self, meta, data=None, name=None, action=u'SAVE', contenttype_guessed=None, comment=None,
     1.9                overwrite=False, delete=False):
    1.10          backend = flaskg.storage
    1.11          storage_item = backend[self.name]
    1.12 @@ -490,7 +490,7 @@
    1.13          else:
    1.14              meta[NAME] = [name]
    1.15  
    1.16 -        if comment:
    1.17 +        if comment is not None:
    1.18              meta[COMMENT] = unicode(comment)
    1.19  
    1.20          if not overwrite and REVID in meta: