Beispiel #1
0
 def _S(self, **k):
     h = HomeState()
     for k, v in k.iteritems():
         setattr(h, k, v)
     self.db.add(h)
     return h