comparison MoinMoin/items/__init__.py @ 1918:f0b346ac6338

added return_rev param to store_revision() to avoid returning a revision object without need
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sun, 20 Jan 2013 23:36:37 +0100
parents 78b7a1136984
children 2bd864ed640e 70c534eb5596
comparison
equal deleted inserted replaced
1917:16ea00a08d51 1918:f0b346ac6338
438 438
439 newrev = storage_item.store_revision(meta, data, overwrite=overwrite, 439 newrev = storage_item.store_revision(meta, data, overwrite=overwrite,
440 action=unicode(action), 440 action=unicode(action),
441 contenttype_current=contenttype_current, 441 contenttype_current=contenttype_current,
442 contenttype_guessed=contenttype_guessed, 442 contenttype_guessed=contenttype_guessed,
443 return_rev=True,
443 ) 444 )
444 item_modified.send(app._get_current_object(), item_name=name) 445 item_modified.send(app._get_current_object(), item_name=name)
445 return newrev.revid, newrev.meta[SIZE] 446 return newrev.revid, newrev.meta[SIZE]
446 447
447 @property 448 @property