如何删除Trac中从全局配置继承的自定义票证字段?

时间:2012-07-18 10:31:17

标签: trac

我在所有Trac环境继承的全局配置中定义了一些自定义票证字段。现在我想仅针对单个环境删除其中的一些(但不必取消继承全局配置,该配置设置的不仅仅是自定义字段)。可能是显而易见的方式

[ticket-custom]
mycustomfield =

没用。有什么办法吗?

1 个答案:

答案 0 :(得分:2)

不,一般来说,继承没有限制。因此,一旦继承了配置部分,就无法阻止它的传播。

你可以构建一个稍微碎片化的继承而不是放弃继承来达到你的目标:

<强> global_trac.ini:

all the basic, common stuff

[ticket-custom]
put reduced, common set of custom fields here

<强> global_trac_with_custom_fields.ini:

[inherit]
file = ../global_trac.ini

[ticket-custom]
put full set of custom fields here

<强> your_special_trac_env / CONF / trac.ini:

[inherit]
file = ../global_trac.ini

<强> some_other_trac_env / CONF / trac.ini:

[inherit]
file = ../global_trac_with_custom_fields.ini
相关问题