persist_data: add has_key

(Bitbake rev: 7942833ca0685cf4f3b243dde6203499ef97420c)

Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Chris Larson 2011-04-04 09:36:22 -07:00 committed by Richard Purdie
parent 7fc020aa15
commit d43e7a91f2
1 changed files with 3 additions and 0 deletions

View File

@ -110,6 +110,9 @@ class SQLTable(collections.MutableMapping):
for row in data:
yield row[0]
def has_key(self, key):
return key in self
class SQLData(object):
"""Object representing the persistent data"""