class TestItem(Item): name = Field() def get_name(self): return self['name'] def change_name(self, name): self['name'] = name
class Product(Item): _id = Field() name = Field(dblite='text') price = Field(dblite='integer') catalog_url = Field(dblite='text unique') description = Field(dblite_serializer=CompressedStrSerializer)
class Product(Item): _id = Field() name = Field() price = Field() stock = Field() last_updated = Field(serializer=str)
class TestItem(Item): name = Field() keys = Field() values = Field()
class TestItem(Item): name = Field()
class TestItem(Item): name = Field() number = Field()
class TestItem(BaseItem): keys = Field()
class BaseItem(Item): name = Field() keys = Field() values = Field()