Added _EMPTY and Storage.exists() to libbe.storage.base.
authorW. Trevor King <wking@drexel.edu>
Fri, 22 Jan 2010 18:28:01 +0000 (13:28 -0500)
committerW. Trevor King <wking@drexel.edu>
Fri, 22 Jan 2010 18:28:01 +0000 (13:28 -0500)
commitd72430fee347e21a9b9e7912417615bbdb22e6d4
treef7c5c1db45f38774fdd56322c7e2d3af12c0edcc
parentbda68bb5d93f4b608fb1dd17c5a0cf1bb406daf9
Added _EMPTY and Storage.exists() to libbe.storage.base.

There seem to be problems distinguishing between "added but unset" IDs
and "added and set to ''" IDs.  Now _EMPTY lets us mark "added but unset",
and Storage.exists() handles "already added?" more clearly than the old
hack "does .get() succeed?".
libbe/storage/base.py