Mobiperf / MobiPerf

New MobiPerf Repository
http://mobiperf.com
Other
87 stars 62 forks source link

Adding utility functions for data archival process. #34

Closed gavaletz closed 12 years ago

gavaletz commented 12 years ago

These files will be used to serialize and compress entities from the datastore on GAE into a zip file. Handlers for triggering these functions will be in the next CL.

server/gspeedometer/helpers/archive_util.py - see file commentary for details on what functions have been added.

server/gspeedometer/helpers/util.py - added a couple comments about issues that need to be addressed. Issues will be added in the github issue tracker. One problem is that it is possible to have dangling references when some data is removed and ConvertToDict will throw a ReferencePropertyResolveError. The other problem is that ConvertFromDict does not seem to be able to deal with unconverting output from ConvertToDict in some cases.

server/gspeedometer/model.py - added a function that will take a string and return the class that is represented by that string. This avoids evaluation of the string and the possible security issues that brings.

mdwelsh commented 12 years ago

Ping?

mdwelsh commented 12 years ago

Ping?

mdwelsh commented 12 years ago

Assigning to Dave - maybe he can deal with this.

drchoffnes commented 12 years ago

This is going to be merged with the data anonymization code. I suggest we close this issue and merge via the branch I've been using for code reviews (issue #9001, http://speedometer-reviews.appspot.com/9001/)

mdwelsh commented 12 years ago

SGTM. Closing without merging.