Commit 57ca88b7 authored by Jérome Perrin's avatar Jérome Perrin

Add a "preference" attribute on property sheet to tell preference tool to look...

Add a "preference" attribute on property sheet to tell preference tool to look up this attribute on preferences.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4773 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 57d41c43
...@@ -35,30 +35,37 @@ class AccountingPreference: ...@@ -35,30 +35,37 @@ class AccountingPreference:
{ 'id' : 'preferred_accounting_transaction_from_date', { 'id' : 'preferred_accounting_transaction_from_date',
'description' : 'The minimal date (inclusive) for transactions', 'description' : 'The minimal date (inclusive) for transactions',
'type' : 'date', 'type' : 'date',
'preference' : 1,
'mode' : 'w' }, 'mode' : 'w' },
{ 'id' : 'preferred_accounting_transaction_at_date', { 'id' : 'preferred_accounting_transaction_at_date',
'description' : 'The maximal date (inclusive) for transactions', 'description' : 'The maximal date (inclusive) for transactions',
'type' : 'date', 'type' : 'date',
'preference' : 1,
'mode' : 'w' }, 'mode' : 'w' },
{ 'id' : 'preferred_accounting_transaction_simulation_state', { 'id' : 'preferred_accounting_transaction_simulation_state',
'description' : 'The simulation state for transactions', 'description' : 'The simulation state for transactions',
'type' : 'tokens', 'type' : 'tokens',
'preference' : 1,
'mode' : 'w'}, 'mode' : 'w'},
{ 'id' : 'preferred_accounting_transaction_section_category', { 'id' : 'preferred_accounting_transaction_section_category',
'description' : 'The section category for transactions; '\ 'description' : 'The section category for transactions; '\
'usually something like group/nexedi.', 'usually something like group/nexedi.',
'type' : 'string', 'type' : 'string',
'preference' : 1,
'mode' : 'w'}, 'mode' : 'w'},
{ 'id' : 'preferred_accounting_transaction_source_section', { 'id' : 'preferred_accounting_transaction_source_section',
'description' : 'The preferred section organisation.', 'description' : 'The preferred section organisation.',
'type' : 'string', 'type' : 'string',
'preference' : 1,
'mode' : 'w'}, 'mode' : 'w'},
{ 'id' : 'preferred_accounting_transaction_currency', { 'id' : 'preferred_accounting_transaction_currency',
'description' : 'The preferred currency.', 'description' : 'The preferred currency.',
'type' : 'string', 'type' : 'string',
'preference' : 1,
'mode' : 'w'}, 'mode' : 'w'},
{ 'id' : 'preferred_accounting_transaction_gap', { 'id' : 'preferred_accounting_transaction_gap',
'description' : 'The preferred gap.', 'description' : 'The preferred gap.',
'type' : 'string', 'type' : 'string',
'preference' : 1,
'mode' : 'w'}, 'mode' : 'w'},
) )
...@@ -36,13 +36,13 @@ class Preference : ...@@ -36,13 +36,13 @@ class Preference :
'description' : 'List of modules visible from the main page '\ 'description' : 'List of modules visible from the main page '\
'(useful to filter uninteresting modules)', '(useful to filter uninteresting modules)',
'type' : 'lines', 'type' : 'lines',
'preference' : 1,
'mode' : 'w' }, 'mode' : 'w' },
{ 'id' : 'preferred_section_category', { 'id' : 'preferred_section_category',
'description' : 'The section category for documents; '\ 'description' : 'The section category for documents; '\
'usually something like group/nexedi.', 'usually something like group/nexedi.',
'type' : 'string', 'type' : 'string',
'preference' : 1,
'mode' : 'w'}, 'mode' : 'w'},
) )
_categories = (
)
...@@ -35,9 +35,11 @@ class SubversionPreference: ...@@ -35,9 +35,11 @@ class SubversionPreference:
{ 'id' : 'preferred_subversion_working_directory', { 'id' : 'preferred_subversion_working_directory',
'description' : 'The working directory for Subversion', 'description' : 'The working directory for Subversion',
'type' : 'string', 'type' : 'string',
'preference' : 1,
'mode' : 'w' }, 'mode' : 'w' },
{ 'id' : 'preferred_subversion_user', { 'id' : 'preferred_subversion_user',
'description' : 'The user name for Subversion', 'description' : 'The user name for Subversion',
'type' : 'string', 'type' : 'string',
'preference' : 1,
'mode' : 'w' }, 'mode' : 'w' },
) )
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment