rainerc / cr-data-manager

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

count in criteria-part does not work if (proposed) count value is not committed #29

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
if book.Count is not set but only book.ShadowCount this rule won't work:

<<Count:1>> => <Format:One-shot>

2 ways to handle that:

1.) write code like this:
if book.Count == 1 or book.ShadowCount == 1:
.... doSomething()

2.) let the user commit the proposed values

Original issue reported on code.google.com by rainer.c...@googlemail.com on 25 Mar 2013 at 9:31

GoogleCodeExporter commented 9 years ago
variant 2) is favorite

Original comment by rainer.c...@googlemail.com on 25 Mar 2013 at 11:37