The problem:

When I store the data with bulkloader the method DecimalProperty.get_value_for_datastore is never called so, when I store 5.4 in the datastore saves exactly like this: 5.4; This should be passed thought get_value_for_datastore and convert to an integer like this: 54000; Because I need 4 digits after decimal: 5.4 * 10000 = 54000; then back 54000/10000 = 5.4

1 Answer
1

When you bulkload data with the bulkloader, your model definitions are not loaded or used - data is loaded directly into the datastore using the low-level API. As a result, none of your model code is called either. Your 'very dirty solution' is the right way to go about this.

thanks ;) but I think they should be able to somehow be DRY, by reusing the code defined in the model for consistence and not by-passing all validations, anyways.. but thanks ;)
–
Totty.jsNov 2 '11 at 10:52