コード例 #1
0
ファイル: categories.py プロジェクト: nicolasderam/shop
 def get_metadata_schema(cls):
     return merge_dicts(
         ShopFolder.get_metadata_schema(),
         data=XHTMLBody(multilingual=True),
         breadcrumb_title=Unicode(multilingual=True),
         image_category=ImagePathDataType(multilingual=True),
         default_product_cover=ImagePathDataType(multilingual=True))
コード例 #2
0
ファイル: shop.py プロジェクト: hforge/shop
 def get_metadata_schema(cls):
     schema = ShopFolder.get_metadata_schema()
     schema['shop_uri'] = String
     schema['shop_backoffice_uri'] = String
     schema['order_notification_mails'] = Email(multiple=True)
     schema['shop_default_zone'] = CountriesZonesEnumerate(default=0)
     schema['shop_sort_by'] = SortBy_Enumerate
     schema['shop_sort_reverse'] = Boolean
     schema['categories_batch_size'] = Integer(default=20)
     schema['devise'] = Devises(default='978')
     schema['bill_logo'] = ImagePathDataType
     schema['pdf_signature'] = Unicode
     schema['barcode_format'] = BarcodesFormat
     schema['show_sub_categories'] = Boolean
     schema['hide_not_buyable_products'] = Boolean
     schema['product_cover_is_mandatory'] = Boolean
     schema['log_authentification'] = Boolean
     schema['registration_need_email_validation'] = Boolean
     return schema
コード例 #3
0
 def get_metadata_schema(cls):
     schema = ShopFolder.get_metadata_schema()
     schema['shop_uri'] = String
     schema['shop_backoffice_uri'] = String
     schema['order_notification_mails'] = Email(multiple=True)
     schema['shop_default_zone'] = CountriesZonesEnumerate(default=0)
     schema['shop_sort_by'] = SortBy_Enumerate
     schema['shop_sort_reverse'] = Boolean
     schema['categories_batch_size'] = Integer(default=20)
     schema['devise'] = Devises(default='978')
     schema['bill_logo'] = ImagePathDataType
     schema['pdf_signature'] = Unicode
     schema['barcode_format'] = BarcodesFormat
     schema['show_sub_categories'] = Boolean
     schema['hide_not_buyable_products'] = Boolean
     schema['product_cover_is_mandatory'] = Boolean
     schema['log_authentification'] = Boolean
     schema['registration_need_email_validation'] = Boolean
     return schema
コード例 #4
0
ファイル: user_group.py プロジェクト: nicolasderam/shop
 def get_metadata_schema(cls):
     return merge_dicts(ShopFolder.get_metadata_schema(),
                        cls.edit_schema)
コード例 #5
0
ファイル: categories.py プロジェクト: hforge/shop
 def get_metadata_schema(cls):
     return merge_dicts(ShopFolder.get_metadata_schema(),
                        data=XHTMLBody(multilingual=True),
                        breadcrumb_title=Unicode(multilingual=True),
                        image_category=ImagePathDataType(multilingual=True),
                        default_product_cover=ImagePathDataType(multilingual=True))