java - Appengine bulk downloader is not downloading list properties -


this related a previous question of mine, new information.

i'm trying configure bulkdownloader download data java appengine app in such way list of owned objects transformed nested xml path inside each parent object. have been using export transform transform.child_node_from_list. however, list property never being downloaded , passed transform!

this seems similar effect when looking @ entity in appengine datastore viewer - parent entity doesn't show list property @ all. have access through code.

my question, then, this: how can access list property bulk downloader? if downloading --kind=parententity, think stopping downloading childentity? (is there way specify "all kinds" or anything?)

in python download config, model directly referenced in config file. need mock python model mimics jdo model , use reference?

for reference, abbreviated versions of each of files follow:

downloadconfig.yaml:

transformers:  - kind: parententity   connector: simplexml   connector_options:     xpath_to_nodes: /parents/parent     style: element_centric   property_map:     - property: __key__       external_name: key       export_transform: transform.key_id_or_name_as_string      - property: name       external_name: name       # type: string stats: 30 properties of type in kind.      - property: children       external_name: children       import_transform:          transform.list_from_child_node('children/child')       export_transform:         transform.empty_if_none(transform.child_node_from_list('child')) 

parententity.java:

package experiment.dataexport;  import java.util.list;  import javax.jdo.annotations.idgeneratorstrategy; import javax.jdo.annotations.persistencecapable; import javax.jdo.annotations.persistent; import javax.jdo.annotations.primarykey;  import com.google.appengine.api.datastore.key;  @persistencecapable public class parententity {     @primarykey     @persistent(valuestrategy = idgeneratorstrategy.identity)     public key key;      @persistent     public string name;      @persistent(defaultfetchgroup = "true")     public list<childentity> children; } 

sample xml output:

<parents>  <parent>   <name>parent 5613</name>   <key>72001</key>   <children></children>  </parent>  <parent>   <name>parent 1237</name>   <key>73001</key>   <children></children>  </parent> </parents> 

(there should several <child> elements in each <children> node, downloader retrieving none instead of proper list of children)


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -