Use separate XML files for views

This commit is contained in:
Cédric Krier committed 2013-03-07 23:55:57 +01:00
1 parent eac3f60633
commit 4960fc4090
4 files changed
+25 -26

No files matched your search

+1
View File
@@ -6,6 +6,7 @@ include CHANGELOG
include LICENSE
include tryton.cfg
include *.xml
include view/*.xml
include *.odt
include locale/*.po
include doc/*
+1 -25
View File
@@ -7,31 +7,7 @@ this repository contains the full copyright notices and license terms. -->
<field name="model">ldap.connection</field>
<field name="type">form</field>
<field name="inherit" ref="ldap_connection.connection_view_form"/>
<field name="arch" type="xml">
<![CDATA[
<data>
<xpath
expr="/form/group[@id=&quot;buttons&quot;]"
position="before">
<separator string="Authentication" id="authentication"
colspan="6"/>
<label name="auth_uid"/>
<field name="auth_uid"/>
<label name="auth_base_dn"/>
<field name="auth_base_dn"/>
<newline/>
<label name="auth_require_filter"/>
<field name="auth_require_filter"/>
<label name="auth_scope"/>
<field name="auth_scope"/>
<newline/>
<label name="auth_create_user"/>
<field name="auth_create_user"/>
<newline/>
</xpath>
</data>
]]>
</field>
<field name="name">connection_form</field>
</record>
</data>
</tryton>
+1 -1
View File
@@ -45,7 +45,7 @@ setup(name='trytond_ldap_authentication',
],
package_data={
'trytond.modules.ldap_authentication': (info.get('xml', [])
+ ['tryton.cfg', 'locale/*.po']),
+ ['tryton.cfg', 'view/*.xml', 'locale/*.po']),
},
classifiers=[
'Development Status :: 5 - Production/Stable',
+22
View File
@@ -0,0 +1,22 @@
<?xml version="1.0"?>
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<data>
<xpath expr="/form/group[@id='buttons']" position="before">
<separator string="Authentication" id="authentication"
colspan="6"/>
<label name="auth_uid"/>
<field name="auth_uid"/>
<label name="auth_base_dn"/>
<field name="auth_base_dn"/>
<newline/>
<label name="auth_require_filter"/>
<field name="auth_require_filter"/>
<label name="auth_scope"/>
<field name="auth_scope"/>
<newline/>
<label name="auth_create_user"/>
<field name="auth_create_user"/>
<newline/>
</xpath>
</data>