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


Python Munch.__init__方法代码示例

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


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

示例1: __init__

# 需要导入模块: from munch import Munch [as 别名]
# 或者: from munch.Munch import __init__ [as 别名]
    def __init__(self, conn, id = None, invoice_item_etree = None):
        """
        Invoice-Item

        :param conn: Connection-Object
        """

        Bunch.__init__(self)

        self.conn = conn

        self.id = id  # integer
        self.article_id = None
        self.invoice_id = None  # integer
        self.position = None  # integer
        self.unit = None
        self.quantity = None  # float
        self.unit_price = None  # float
        self.tax_name = None
        self.tax_rate = None  # float
        self.title = None
        self.description = None
        self.total_gross = None  # float
        self.total_net = None  # float
        self.reduction = None
        self.total_gross_unreduced = None  # float
        self.total_net_unreduced = None  # float

        if invoice_item_etree is not None:
            self.load_from_etree(invoice_item_etree)
        elif id is not None:
            self.load()
开发者ID:gerold-penz,项目名称:python-billomat,代码行数:34,代码来源:invoice_items.py

示例2: __init__

# 需要导入模块: from munch import Munch [as 别名]
# 或者: from munch.Munch import __init__ [as 别名]
    def __init__(self, conn, id = None, reminder_etree = None):
        """
        Reminder

        :param conn: Connection-Object
        """

        Bunch.__init__(self)

        self.conn = conn
        self.content_language = None

        self.id = id  # integer
        self.created = None  # datetime
        self.status = None
        self.invoice_id = None  # integer
        self.contact_id = None  # integer
        self.reminder_text_id = None  # integer
        self.reminder_level = None  # integer
        self.reminder_level_name = None
        self.date = None  # date
        self.label = None
        self.subject = None
        self.intro = None
        self.note = None
        self.due_date = None  # date
        self.total_gross = None  # float
        self.is_old = None  # Steht dieses Flag auf 1, dann gibt es eine aktuellere Mahnung.

        if reminder_etree is not None:
            self.load_from_etree(reminder_etree)
        elif id is not None:
            self.load()
开发者ID:gerold-penz,项目名称:python-billomat,代码行数:35,代码来源:reminders.py

示例3: __init__

# 需要导入模块: from munch import Munch [as 别名]
# 或者: from munch.Munch import __init__ [as 别名]
    def __init__(self, conn, id = None, reminder_text_etree = None):
        """
        ReminderText

        :param conn: Connection-Object
        """

        Bunch.__init__(self)

        self.conn = conn
        self.content_language = None

        self.id = id  # Integer
        self.sorting = None  # Integer
        self.name = None
        self.subject = None
        self.header = None
        self.footer = None
        self.charge_name = None
        self.charge_description = None
        self.charge_amount = None  # Float

        if reminder_text_etree is not None:
            self.load_from_etree(reminder_text_etree)
        elif id is not None:
            self.load()
开发者ID:gerold-penz,项目名称:python-billomat,代码行数:28,代码来源:reminder_texts.py

示例4: __init__

# 需要导入模块: from munch import Munch [as 别名]
# 或者: from munch.Munch import __init__ [as 别名]
    def __init__(self, conn, id = None, contact_etree = None):
        """
        Contact

        :param conn: Connection-Object
        """

        Bunch.__init__(self)

        self.conn = conn

        self.id = id  # integer
        self.created = None  # datetime
        self.client_id = None  # integer
        self.label = None
        self.name = None
        self.street = None
        self.zip = None
        self.city = None
        self.state = None
        self.country_code = None
        self.first_name = None
        self.last_name = None
        self.salutation = None
        self.phone = None
        self.fax = None
        self.mobile = None
        self.email = None
        self.www = None

        if contact_etree is not None:
            self.load_from_etree(contact_etree)
        elif id is not None:
            self.load()
开发者ID:gerold-penz,项目名称:python-billomat,代码行数:36,代码来源:contacts.py

示例5: __init__

# 需要导入模块: from munch import Munch [as 别名]
# 或者: from munch.Munch import __init__ [as 别名]
    def __init__(self, conn, id = None, reminder_item_etree = None):
        """
        Reminder-Item

        :param conn: Connection-Object
        """

        Bunch.__init__(self)

        self.conn = conn

        self.id = id  # integer
        self.created = None  # datetime
        self.article_id = None
        self.reminder_id = None  # integer
        self.position = None  # integer
        self.unit = None
        self.quantity = None  # float
        self.unit_price = None  # float
        self.title = None
        self.description = None
        self.total = None  # float

        if reminder_item_etree is not None:
            self.load_from_etree(reminder_item_etree)
        elif id is not None:
            self.load()
开发者ID:gerold-penz,项目名称:python-billomat,代码行数:29,代码来源:reminder_items.py

示例6: __init__

# 需要导入模块: from munch import Munch [as 别名]
# 或者: from munch.Munch import __init__ [as 别名]
    def __init__(self, conn, id = None, article_etree = None):
        """
        Article

        :param conn: Connection-Object
        """

        Bunch.__init__(self)

        self.conn = conn
        self.content_language = None

        self.id = id  # integer
        self.created = None  # datetime
        self.article_number = None
        self.number = None  # integer
        self.number_pre = None
        self.title = None
        self.description = None
        self.sales_price = None  # float
        self.sales_price2 = None  # float
        self.sales_price3 = None  # float
        self.sales_price4 = None  # float
        self.sales_price5 = None  # float
        self.currency_code = None
        self.unit_id = None  # integer
        self.tax_id = None  # integer
        self.purchase_price = None  # float
        self.purchase_price_net_gross = None
        self.supplier_id = None  # integer

        if article_etree is not None:
            self.load_from_etree(article_etree)
        elif id is not None:
            self.load()
开发者ID:gerold-penz,项目名称:python-billomat,代码行数:37,代码来源:articles.py

示例7: __init__

# 需要导入模块: from munch import Munch [as 别名]
# 或者: from munch.Munch import __init__ [as 别名]
        def __init__(self, code, message, data):
            """
            :param code: Error code
            :param message: Error message
            :param data: Additional error informations
            """

            Bunch.__init__(self)
            self.code = code
            self.message = message
            self.data = data
开发者ID:gerold-penz,项目名称:python-jsonrpc,代码行数:13,代码来源:rpcresponse.py

示例8: __init__

# 需要导入模块: from munch import Munch [as 别名]
# 或者: from munch.Munch import __init__ [as 别名]
    def __init__(self, conn, id = None, supplier_etree = None):
        """
        Supplier

        :param conn: Connection-Object
        """

        Bunch.__init__(self)

        self.conn = conn

        self.id = id  # integer
        self.created = None  # datetime
        self.name = None
        self.salutation = None
        self.first_name = None
        self.last_name = None
        self.street = None
        self.zip = None
        self.city = None
        self.state = None  # z.B. Bundesland
        self.country_code = None
        self.phone = None
        self.fax = None
        self.mobile = None
        self.email = None
        self.www = None
        self.tax_number = None
        self.vat_number = None
        self.creditor_identifier = None
        self.bank_account_owner = None
        self.bank_number = None
        self.bank_name = None
        self.bank_account_number = None
        self.bank_swift = None
        self.bank_iban = None
        self.currency_code = None
        self.note = None
        self.client_number = None
        self.costs_gross = None  # float
        self.costs_net = None

        if supplier_etree is not None:
            self.load_from_etree(supplier_etree)
        elif id is not None:
            self.load()
开发者ID:gerold-penz,项目名称:python-billomat,代码行数:48,代码来源:suppliers.py

示例9: __init__

# 需要导入模块: from munch import Munch [as 别名]
# 或者: from munch.Munch import __init__ [as 别名]
    def __init__(self, conn, id = None, tag_etree = None):
        """
        RecurringTag

        :param conn: Connection-Object
        """

        Bunch.__init__(self)

        self.conn = conn

        self.id = id  # Integer
        self.recurring_id = None  # Not always filled
        self.name = None
        self.count = None  # Not always filled

        if tag_etree is not None:
            self.load_from_etree(tag_etree)
        elif id is not None:
            self.load()
开发者ID:gerold-penz,项目名称:python-billomat,代码行数:22,代码来源:recurring_tags.py

示例10: __init__

# 需要导入模块: from munch import Munch [as 别名]
# 或者: from munch.Munch import __init__ [as 别名]
    def __init__(self, conn, id = None, recurring_email_receiver_etree = None):
        """
        Recurring-Item

        :param conn: Connection-Object
        """

        Bunch.__init__(self)

        self.conn = conn

        self.id = id  # integer
        self.recurring_id = None  # integer
        self.type = None
        self.address = None

        if recurring_email_receiver_etree is not None:
            self.load_from_etree(recurring_email_receiver_etree)
        elif id is not None:
            self.load()
开发者ID:gerold-penz,项目名称:python-billomat,代码行数:22,代码来源:recurring_email_receivers.py

示例11: __init__

# 需要导入模块: from munch import Munch [as 别名]
# 或者: from munch.Munch import __init__ [as 别名]
    def __init__(self, conn, id = None, credit_note_etree = None):
        """
        CreditNote

        :param conn: Connection-Object
        """

        Bunch.__init__(self)

        self.conn = conn
        self.content_language = None

        self.id = id  # integer
        self.client_id = None  # integer
        self.contact_id = None  # integer
        self.created = None  # datetime
        self.credit_note_number = None
        self.number = None  # integer
        self.number_pre = None
        self.status = None
        self.date = None  # date
        self.address = None
        self.title = None
        self.label = None
        self.intro = None
        self.note = None
        self.total_gross = None  # float
        self.total_net = None  # float
        self.net_gross = None
        self.reduction = None
        self.total_gross_unreduced = None  # float
        self.total_net_unreduced = None  # float
        self.currency_code = None
        self.quote = None  # float
        self.invoice_id = None  # ID der korrigierten Rechnung
        self.taxes = None  # array

        if credit_note_etree is not None:
            self.load_from_etree(credit_note_etree)
        elif id is not None:
            self.load()
开发者ID:gerold-penz,项目名称:python-billomat,代码行数:43,代码来源:credit_notes.py

示例12: __init__

# 需要导入模块: from munch import Munch [as 别名]
# 或者: from munch.Munch import __init__ [as 别名]
    def __init__(self, conn, id = None, property_etree = None):
        """
        ClientPropertyValue

        :param conn: Connection-Object
        """

        Bunch.__init__(self)

        self.conn = conn

        self.id = id  # Integer
        self.client_id = None  # Integer
        self.client_property_id = None  # Integer
        self.type = None  # TEXTFIELD, CHECKBOX, TEXTAREA, ...
        self.name = None
        self.value = None

        if property_etree is not None:
            self.load_from_etree(property_etree)
        elif id is not None:
            self.load()
开发者ID:gerold-penz,项目名称:python-billomat,代码行数:24,代码来源:client_properties.py

示例13: __init__

# 需要导入模块: from munch import Munch [as 别名]
# 或者: from munch.Munch import __init__ [as 别名]
    def __init__(self, conn, id = None, payment_etree = None):
        """
        InvoicePayment

        :param conn: Connection-Object
        """

        Bunch.__init__(self)

        self.conn = conn

        self.id = id  # Integer
        self.created = None  # Datetime
        self.invoice_id = None  # Not always filled
        self.user_id = None  # Integer
        self.date = None  # Date
        self.amount = None  # Float
        self.comment = None
        self.type = None

        if payment_etree is not None:
            self.load_from_etree(payment_etree)
        elif id is not None:
            self.load()
开发者ID:gerold-penz,项目名称:python-billomat,代码行数:26,代码来源:invoice_payments.py

示例14: __init__

# 需要导入模块: from munch import Munch [as 别名]
# 或者: from munch.Munch import __init__ [as 别名]
    def __init__(self, conn, id = None, email_template_etree = None):
        """
        EmailTemplate

        :param conn: Connection-Object
        """

        Bunch.__init__(self)

        self.conn = conn
        self.content_language = None

        self.id = id  # Integer
        self.name = None
        self.type = None
        self.subject = None
        self.text = None
        self.bcc = None  # Boolean
        self.is_default = None  # Boolean

        if email_template_etree is not None:
            self.load_from_etree(email_template_etree)
        elif id is not None:
            self.load()
开发者ID:gerold-penz,项目名称:python-billomat,代码行数:26,代码来源:email_templates.py

示例15: __init__

# 需要导入模块: from munch import Munch [as 别名]
# 或者: from munch.Munch import __init__ [as 别名]
 def __init__(self, *args, **kwargs):
     warnings.warn(
         'DictContainer is deprecated.  Use the Munch class'
         ' from python-bunch instead.', DeprecationWarning, stacklevel=2)
     Munch.__init__(self, *args, **kwargs)
开发者ID:vivekanand1101,项目名称:python-fedora,代码行数:7,代码来源:__init__.py


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