Beispiel #1
0
class AddNews(CMForm):
    title = StringField(u'title',
                        validators=[validators.data_required(message=u'缺少标题')])
    cover_image = StringField(
        u'cover_image',
        validators=[validators.data_required(message=u'缺少封面图片'),
                    ValidImage()])
    content = StringField(
        u'content', validators=[validators.data_required(message=u'缺少新闻内容')])
    type_id = IntegerField(
        u'type_id', validators=[validators.data_required(message=u'缺少类型id')])
Beispiel #2
0
class AddInvestment(CMForm):
    company_name = StringField(
        u'company_name',
        validators=[validators.data_required(message=u'缺少公司名字')])
    cover_image = StringField(
        u'cover_image',
        validators=[validators.data_required(message=u'缺少封面图片'),
                    ValidImage()])
    company_url = StringField(
        u'company_url',
        validators=[validators.data_required(message=u'缺少公司网址')])
    company_addr = StringField(
        u'company_addr',
        validators=[validators.data_required(message=u'缺少公司地址描述')])
    pm_manager = StringField(
        u'pm_manager',
        validators=[validators.data_required(message=u'缺少项目负责人')])
    company_introduce = StringField(
        u'company_introduce',
        validators=[validators.data_required(message=u'缺少公司描述')])
    type_id = IntegerField(
        u'type_id', validators=[validators.data_required(message=u'缺少类型id')])
Beispiel #3
0
class GetTeamMemberMeta(CMForm):
    tm_id = IntegerField(
        u'tm_id',
        validators=[validators.data_required(message=u'缺少成员id'),
                    ValidID()])
Beispiel #4
0
class SetTeamTop(CMForm):
    tm_id = IntegerField(
        u'tm_id',
        validators=[validators.data_required(message=u'缺少成员id'),
                    ValidID()])
    top = BooleanField(u'top', default=False)
Beispiel #5
0
class DeleteTab(CMForm):
    tab_id = IntegerField(
        u'tab_id', validators=[validators.data_required(message='缺少tab栏id')])
Beispiel #6
0
class UpdateTab(AddTab):
    tab_id = IntegerField(
        u'tab_id', validators=[validators.data_required(message='缺少tab栏id')])
Beispiel #7
0
class DeleteImage(CMForm):
    image_id = IntegerField(
        u'image_id', validators=[validators.data_required(message=u'缺少图片id')])
Beispiel #8
0
class UpdateNews(AddNews):
    news_id = IntegerField(
        u'news_id', validators=[validators.data_required(message=u'缺少新闻id')])
Beispiel #9
0
class SetImTop(CMForm):
    im_id = IntegerField(
        u'im_id', validators=[validators.data_required(message=u'缺少项目id')])
    top = BooleanField(u'top', default=False)
Beispiel #10
0
class DeleteInvestmentType(CMForm):
    type_id = IntegerField(
        u'type_id', validators=[validators.data_required(message=u'缺少类型id')])
Beispiel #11
0
class UpdateInvestmentType(AddInvestmentType):
    type_id = IntegerField(
        u'type_id', validators=[validators.data_required(message=u'缺少类型id')])
Beispiel #12
0
class GetAddrMeta(CMForm):
    addr_id = IntegerField(
        u'addr_id', validators=[validators.data_required(message=u'缺少地址记录id')])
Beispiel #13
0
class UpdateAddr(AddAddr):
    addr_id = IntegerField(
        u'addr_id', validators=[validators.data_required(message=u'缺少地址记录id')])
Beispiel #14
0
class GetNewsMeta(CMForm):
    news_id = IntegerField(
        u'news_id', validators=[validators.data_required(message=u'缺少新闻id')])
Beispiel #15
0
class SetNewsTop(CMForm):
    news_id = IntegerField(
        u'news_id', validators=[validators.data_required(message=u'缺少新闻id')])
    top = BooleanField(u'top', default=False)
Beispiel #16
0
class UpdateInvestment(AddInvestment):
    im_id = IntegerField(
        u'im_id', validators=[validators.data_required(message=u'缺少项目id')])
Beispiel #17
0
class UpdateImage(AddImage):
    image_id = IntegerField(
        u'image_id', validators=[validators.data_required(message=u'缺少图片id')])
Beispiel #18
0
class DeleteInvestment(CMForm):
    im_id = IntegerField(
        u'im_id', validators=[validators.data_required(message=u'缺少项目id')])
Beispiel #19
0
class UpdateTeamMember(AddTeamMember):
    tm_id = IntegerField(
        u'tm_id',
        validators=[validators.data_required(message=u'缺少成员id'),
                    ValidID()])