rainerc / cr-data-manager

Automatically exported from code.google.com/p/cr-data-manager
1 stars 0 forks source link

old value of book.Tags is empty when written to the log #98

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. add Tag "tag1" to book
2. run the action <<Tags.Add:tag2>> on the book

What is the expected output? What do you see instead?
log should write

Tags old: tag1
Tags new: tag1, tag2

log writes instead:
Tags old: 
Tags new: tag1, tag2

Original issue reported on code.google.com by rainer.c...@googlemail.com on 10 Jun 2013 at 8:16

GoogleCodeExporter commented 9 years ago
this is due to a bug in ComicRack.

I use book.clone() to store the values of the untouched file and compare after 
DM ran over the book if the value of a field was changed by action.

book.clone() obviously does not copy all content.

Will post that as a bug on the forum and have to write a workaround.

Original comment by rainer.c...@googlemail.com on 10 Jun 2013 at 8:20

GoogleCodeExporter commented 9 years ago
fixed by workaround in 1.2.0 (getattr() and setattr() helped a lot!)

Original comment by rainer.c...@googlemail.com on 10 Jun 2013 at 9:38