当前位置: 首页>>代码示例>>Python>>正文


Python Pool.register方法代码示例

本文整理汇总了Python中trytond.pool.Pool.register方法的典型用法代码示例。如果您正苦于以下问题:Python Pool.register方法的具体用法?Python Pool.register怎么用?Python Pool.register使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在trytond.pool.Pool的用法示例。


在下文中一共展示了Pool.register方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: register

# 需要导入模块: from trytond.pool import Pool [as 别名]
# 或者: from trytond.pool.Pool import register [as 别名]
def register():
    Pool.register(
        Sale,
        ShipmentOut,
        Carrier,
        module='carrier_pricelist', type_='model'
    )
开发者ID:openlabs,项目名称:trytond-carrier-pricelist,代码行数:9,代码来源:__init__.py

示例2: register

# 需要导入模块: from trytond.pool import Pool [as 别名]
# 或者: from trytond.pool.Pool import register [as 别名]
def register():
    "Register classes with pool"
    Pool.register(
        Channel,
        PrestashopExportOrdersWizardView,
        PrestashopConnectionWizardView,
        Country,
        Subdivision,
        CountryPrestashop,
        SubdivisionPrestashop,
        Currency,
        CurrencyPrestashop,
        Language,
        SiteLanguage,
        Party,
        Address,
        ContactMechanism,
        Template,
        TemplatePrestashop,
        Product,
        ProductPrestashop,
        Sale,
        SaleLine,
        SiteOrderState,
        module='prestashop', type_='model')
    Pool.register(
        PrestashopExportOrdersWizard,
        PrestashopConnectionWizard,
        module='prestashop', type_='wizard')
开发者ID:priyankarani,项目名称:trytond-prestashop,代码行数:31,代码来源:__init__.py

示例3: register

# 需要导入模块: from trytond.pool import Pool [as 别名]
# 或者: from trytond.pool.Pool import register [as 别名]
def register():
    """
    Register classes with pool
    """
    Pool.register(
        SaleChannel,
        Product,
        ProductCode,
        Template,
        ExportAmazonCatalogStart,
        ExportAmazonCatalogDone,
        ExportAmazonInventoryStart,
        ExportAmazonInventoryDone,
        CheckAmazonServiceStatusView,
        CheckAmazonSettingsView,
        Sale,
        Party,
        Address,
        Subdivision,
        module='amazon_mws', type_='model'
    )
    Pool.register(
        CheckAmazonServiceStatus,
        CheckAmazonSettings,
        ExportAmazonCatalog,
        ExportAmazonInventory,
        module='amazon_mws', type_='wizard'
    )
开发者ID:openlabs,项目名称:trytond-amazon-mws,代码行数:30,代码来源:__init__.py

示例4: register

# 需要导入模块: from trytond.pool import Pool [as 别名]
# 或者: from trytond.pool.Pool import register [as 别名]
def register():
    Pool.register(
        typologie,
        allo,        
        module='allo_quoi', type_='model')

    Pool.register(ObjPointQGis, module='allo_quoi', type_='report')
开发者ID:silpol,项目名称:tryton-bef,代码行数:9,代码来源:__init__.py

示例5: register

# 需要导入模块: from trytond.pool import Pool [as 别名]
# 或者: from trytond.pool.Pool import register [as 别名]
def register():
    Pool.register(
        DrugsRecreational,
        PatientRecreationalDrugs,
        PatientCAGE,
        MedicalPatient,
        module='health_lifestyle', type_='model')
开发者ID:Sisouvan,项目名称:ogh,代码行数:9,代码来源:__init__.py

示例6: register

# 需要导入模块: from trytond.pool import Pool [as 别名]
# 或者: from trytond.pool.Pool import register [as 别名]
def register():
    """
    Register classes with pool
    """
    Pool.register(
        MWSAccount,
        Product,
        ProductCode,
        Template,
        ProductMwsAccount,
        ExportCatalogStart,
        ExportCatalogDone,
        ExportCatalogPricingStart,
        ExportCatalogPricingDone,
        ExportCatalogInventoryStart,
        ExportCatalogInventoryDone,
        CheckServiceStatusView,
        CheckAmazonSettingsView,
        module='amazon_mws', type_='model'
    )
    Pool.register(
        CheckServiceStatus,
        CheckAmazonSettings,
        ExportCatalog,
        ExportCatalogPricing,
        ExportCatalogInventory,
        module='amazon_mws', type_='wizard'
    )
开发者ID:PritishC,项目名称:trytond-amazon-mws,代码行数:30,代码来源:__init__.py

示例7: register

# 需要导入模块: from trytond.pool import Pool [as 别名]
# 或者: from trytond.pool.Pool import register [as 别名]
def register():
    Pool.register(
        TipoYCategoria,
        Producto,
        AvisoComun,
        AvisoEspecial,
        FunebreComun,
        FunebreDestacado,
        ClasificadoComun,
        ClasificadoDestacado,
        EdictoJudicial,
        Insert,
        Suplemento,
        Centimetros,
        Radio,
        Digital,
        SeleccionFechas,
        FormaVenta,
        Sale,
        SaleLine,
        module='asistente_venta', type_='model')
    Pool.register(
        AsistenteWizard,
        EleccionFormaVenta,
        module='asistente_venta', type_='wizard')
开发者ID:it10,项目名称:tryton-dypra,代码行数:27,代码来源:__init__.py

示例8: register

# 需要导入模块: from trytond.pool import Pool [as 别名]
# 或者: from trytond.pool.Pool import register [as 别名]
def register():
    Pool.register(
        Product,
        Sale,
        SaleLine,
        module='sale_quantity_constraints', type_='model'
    )
开发者ID:openlabs,项目名称:trytond-sale-quantity-constraints,代码行数:9,代码来源:__init__.py

示例9: register

# 需要导入模块: from trytond.pool import Pool [as 别名]
# 或者: from trytond.pool.Pool import register [as 别名]
def register():
    #Pool.register(
    #   module='library', type_='report')
    Pool.register(
        Book,
        module='library', type_='model'
    )
开发者ID:dkodnik,项目名称:tryton-documentation,代码行数:9,代码来源:__init__.py

示例10: register

# 需要导入模块: from trytond.pool import Pool [as 别名]
# 或者: from trytond.pool.Pool import register [as 别名]
def register():
    Pool.register(
        Party,
        Sale,
        SaleLine,
        Product,
        module='sale_price_list', type_='model')
开发者ID:kret0s,项目名称:gnuhealth-live,代码行数:9,代码来源:__init__.py

示例11: register

# 需要导入模块: from trytond.pool import Pool [as 别名]
# 或者: from trytond.pool.Pool import register [as 别名]
def register():
    Pool.register(
        Template,
        Product,
        ProductVariationAttributes,
        module='nereid_catalog_variants', type_='model'
    )
开发者ID:goyal1092,项目名称:nereid-catalog-variants,代码行数:9,代码来源:__init__.py

示例12: register

# 需要导入模块: from trytond.pool import Pool [as 别名]
# 或者: from trytond.pool.Pool import register [as 别名]
def register():
    Pool.register(
        Sale,
        Checkout,
        DefaultCheckout,
        type_="model", module="nereid_checkout"
    )
开发者ID:pokoli,项目名称:nereid-checkout,代码行数:9,代码来源:__init__.py

示例13: register

# 需要导入模块: from trytond.pool import Pool [as 别名]
# 或者: from trytond.pool.Pool import register [as 别名]
def register():
    "Register classes"
    Pool.register(
        Website,
        NereidUser,
        module='nereid_auth_github', type_='model'
    )
开发者ID:GauravButola,项目名称:nereid-auth-github,代码行数:9,代码来源:__init__.py

示例14: register

# 需要导入模块: from trytond.pool import Pool [as 别名]
# 或者: from trytond.pool.Pool import register [as 别名]
def register():
    Pool.register(
        Address,
        Party,
        ContactMechanism,
        NereidUser,
        Permission,
        UserPermission,
        URLMap,
        WebSiteLocale,
        WebSite,
        URLRule,
        URLRuleDefaults,
        WebsiteCountry,
        WebsiteCurrency,
        WebsiteWebsiteLocale,
        NereidStaticFolder,
        NereidStaticFile,
        Currency,
        ContextProcessors,
        NereidConfigStart,
        module='nereid', type_='model'
    )
    Pool.register(
        NereidConfig,
        module='nereid', type_='wizard'
    )
开发者ID:rahulsukla,项目名称:nereid,代码行数:29,代码来源:__init__.py

示例15: register

# 需要导入模块: from trytond.pool import Pool [as 别名]
# 或者: from trytond.pool.Pool import register [as 别名]
def register():
    Pool.register(
        SaleChannel,
        ReadUser,
        WriteUser,
        ChannelException,
        ChannelOrderState,
        User,
        Sale,
        ProductSaleChannelListing,
        Product,
        ImportDataWizardStart,
        ImportDataWizardSuccess,
        ImportDataWizardProperties,
        ImportOrderStatesStart,
        ExportPricesStatus,
        ExportPricesStart,
        AddProductListingStart,
        module='sale_channel', type_='model'
    )
    Pool.register(
        AddProductListing,
        ImportDataWizard,
        ImportOrderStates,
        ExportPrices,
        module='sale_channel', type_='wizard'
    )
开发者ID:usudaysingh,项目名称:trytond-sale-channel,代码行数:29,代码来源:__init__.py


注:本文中的trytond.pool.Pool.register方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。