Source

hotdebug / debugger.xml

Full commit
<?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data>
        <record id="view_hotdebug_tb_locals_tree" model="ir.ui.view">
            <field name="name">hotdebug.tb.locals.tree</field>
            <field name="model">hotdebug.tb.locals</field>
            <field name="type">tree</field>
            <field name="arch" type="xml">
                <tree string="Locals">
                    <field name="name" />
                    <field name="value_short" />
                </tree>
            </field>
        </record>

        <record id="view_hotdebug_tb_locals_form" model="ir.ui.view">
            <field name="name">hotdebug.tb.locals.form</field>
            <field name="model">hotdebug.tb.locals</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form string="Locals">
                    <separator colspan="4" string="Name" />
                    <field name="name" nolabel="1" colspan="4"/>
                    <separator colspan="4" string="Value" />
                    <field name="value" nolabel="1" colspan="4"/>
                </form>
            </field>
        </record>

        <record id="view_hotdebug_tb_tree" model="ir.ui.view">
            <field name="name">hotdebug.tb.tree</field>
            <field name="model">hotdebug.tb</field>
            <field name="type">tree</field>
            <field name="arch" type="xml">
                <tree string="Tracebacks">
                    <field name="name" />
                </tree>
            </field>
        </record>

        <record id="view_hotdebug_tb_form" model="ir.ui.view">
            <field name="name">hotdebug.tb.form</field>
            <field name="model">hotdebug.tb</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form string="Traceback">
                    <separator colspan="4" string="Traceback" />
                    <field name="name" nolabel="1" colspan="4"/>
                    <separator colspan="4" string="Source" />
                    <field name="lines" nolabel="1" colspan="4"/>
                    <field name="locals"  string="Locals" widget="one2many_list" nolabel="1" readonly="1" colspan="4" />
                </form>
            </field>
        </record>

        <record id="view_hotdebug_console" model="ir.ui.view">
            <field name="name">hotdebug.console.form</field>
            <field name="model">hotdebug.console</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form string="Hot debugger">
                    <notebook>
                        <page string="Console">
                            <field name="output" />
                            <field name="cmd" />
                            <newline />
                            <button colspan="2" name="restart_console" string="Restart console" type="object" icon="gtk-go-forward" />
                        </page>
                        <page string="Last exception">
                            <field name="catch_console_exception" invisible="1" />
                            <field name="catch_server_exception" invisible="1" />
                            <button colspan="2" name="set_catch_console_exception" string="Catch console exception"
                                attrs="{'readonly':[('catch_console_exception','=',True)]}"
                                context="{'catch_console_exception':True}"
                                type="object" icon="gtk-go-forward" />
                            <button colspan="2" name="set_catch_console_exception" string="Don't catch console exception"
                                attrs="{'readonly':[('catch_console_exception','=',False)]}"
                                context="{'catch_console_exception':False}"
                                type="object" icon="gtk-go-forward" />
                            <button colspan="2" name="set_catch_server_exception" string="Catch server exception"
                                attrs="{'readonly':[('catch_server_exception','=',True)]}"
                                context="{'catch_server_exception':True}"
                                type="object" icon="gtk-go-forward" />
                            <button colspan="2" name="set_catch_server_exception" string="Don't catch server exception"
                                attrs="{'readonly':[('catch_server_exception','=',False)]}"
                                context="{'catch_server_exception':False}"
                                type="object" icon="gtk-go-forward" />
                            <separator colspan="4" string="Last exception type" />
                            <field name="last_type" nolabel="1" colspan="4" />
                            <separator colspan="4" string="Last exception value" />
                            <field name="last_value" nolabel="1" colspan="4" />
                            <field name="last_traceback"  string="tracebacks" widget="one2many_list" nolabel="1" readonly="1" colspan="4" />
                        </page>
                        <page string="Help">
                            <field name="help" nolabel="1" colspan="4"/>
                        </page>
                    </notebook>
                </form>
            </field>
        </record>

        <record model="ir.actions.act_window" id="open_hotdebug_console">
            <field name="name">Hot Debug</field>
            <field name="src_model">hotdebug.console</field>
            <field name="res_model">hotdebug.console</field>
            <field name="view_mode">form</field>
            <field name="view_type">form</field>
            <field name="view_id" ref="view_hotdebug_console"/>
        </record>

        <menuitem id="hotdebug.menu_hotdebug" name="Hot Debug" 
            parent="base.menu_administration"
            action="open_hotdebug_console"
            sequence="100"/>
    </data>
</openerp>