Skip to content

Commit

Permalink
Merge branch 'master' of github-noodles:/guyromm/NoodlesFramework
Browse files Browse the repository at this point in the history
  • Loading branch information
serg0987 committed Sep 2, 2011
2 parents 2b992cc + e00d756 commit dd90fea
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion datastore.py
Expand Up @@ -109,9 +109,13 @@ def save(self, storage = None):
if not self.id:
new_id = RedisConn.incr(':'.join([REDIS_NAMESPACE, self.__class__.__name__.lower() + '_key']))
self.id = new_id
# print ':'.join([REDIS_NAMESPACE, self.collection_name, str(self.id)]), json.dumps(self.__instdict__)
RedisConn.set(':'.join([REDIS_NAMESPACE, self.collection_name, str(self.id)]), json.dumps(self.__instdict__))
# print '==============================================================================================='
# print json.dumps(self.__instdict__)
#self.save_redis_recursive(':'.join([self.collection_name, str(self.id)]), self.__instdict__)



@classmethod
def get_structure(cls):
structure = cls.__structure__.get(cls.__name__)
Expand Down

0 comments on commit dd90fea

Please sign in to comment.