Exemple #1
0
class BookMapper(Mapper):
    title = RawField()
    price = RawField()
    hoge = NonKeyField()

    def filter_hoge(self):
        return self.options['hoge']
Exemple #2
0
class TeacherMapper(ModelMapper):
    goodCount = RawField('good_count')
    badCount = RawField('bad_count')

    class Meta:
        model = Teacher
        exclude = ('good_count', 'bad_count', 'subject')
Exemple #3
0
class BookMapper(Mapper):
    title = RawField()
    price = RawField()
    author = DelegateField(AuthorMapper)

    # priceをfloat型に変換
    def filter_price(self, value):
        return float(value)
Exemple #4
0
class TaskMapper(Mapper):
    uid = RawField('_uid')
    script = RawField('_script')
    script_args = RawField('_script_args')
    ignore_result = RawField('_ignore_result')
    task_args = RawField('_task_args')
    result = RawField('_result')
    status = RawField('_status')
Exemple #5
0
class BookMapper(Mapper):
    title = RawField()
    price = RawField()
    author = DelegateField(AuthorMapper)
Exemple #6
0
class AuthorMapper(Mapper):
    name = RawField()
    company = RawField()
Exemple #7
0
class PlayerMapper(Mapper):
    Name = RawField('name')
    Generation = RawField('generation')
    Level = RawField('level')
Exemple #8
0
class AuthorMapper(Mapper):
    name = RawField()
    company = RawField()
    cp_code = RawField('company_code')
Exemple #9
0
class BookMapper(Mapper):
    title = RawField()
    price = RawField()
    author = RawField()
Exemple #10
0
class ItemMapper(ResouceMapper):
    item_id = RawField('id')
    item_name = RawField('name')
Exemple #11
0
class ResouceMapper(Mapper):
    resource_uri = RawField()
Exemple #12
0
class BookMapper(Mapper):
    title = RawField()
    price = RawField()
    author = DelegateField(AuthorMapper)
    cp_code = RawField('author.company_code')
Exemple #13
0
class SubjectMapper(ModelMapper):
    isHot = RawField('is_hot')

    class Meta:
        model = Subject
        exclude = ('is_hot', )
Exemple #14
0
class BookMapper(Mapper):
    title = RawField()
    price = RawField()
    author = DelegateField(AuthorMapper, attach_parent=True)
Exemple #15
0
class ItemMapper(Mapper):
    item_id = RawField('id')
    item_name = RawField('name')
    item_price = RawField('price')
class CommentMapper(Mapper):
    author = RawField()
    text = RawField()