yamins81/genthor — pull request #20 by esolomon (2012-11-06 20:44:49+00:00)
Title: Canonical edits

Added a subclass "CanonicalBase" with two methods: saveCanonical and getCanonical. saveCanonical takes the same parameters as get_image, but you must also include a 'user' and 'version' field in config. 'version' should always be 0. saveCanonical saves the most recent set of parameters in a database with version 0, and increments the version number of all prior database entries with your username and the obj name of whatever you're working on.

getCanonical takes an object name and username and returns the config of the most recent version (which is 0).