Closed shiroyuki closed 12 years ago
Implement the data-object mapper which converts a corresponding MongoDB document to an object (standard object) and vise versa
from tori.db.entity import entity @entity class Profile(object): def __init__(self, name, age): self.name = name self.age = age
Implement the data-object mapper which converts a corresponding MongoDB document to an object (standard object) and vise versa