[rt-devel] Option for Priority labels ...

Rich Lafferty rich+rt at lafferty.ca
Wed Feb 27 09:51:03 EST 2002


On Tue, Feb 26, 2002 at 11:50:12AM -0800, Eric Berggren (ericb at fpt.fujitsu.com) wrote:
>   I was going to investigate adding an option (config.pm) to select the
> presentation of the case priority as a label name rather than (just) as
> a raw number. Internally, it would remain the same, but when this option is
> enabled, it will display specified labels (also in the config.pm) instead
> or in addition to the numeric setting, and pull-downs would be offered to
> change the priority by these (custom) labels :
> 
> 	# e.g. labels to use; Low < 20; General < 40; High < 60; etc...
> 	%PriorityLabels = { 'None' => 0, 'Low' => 1, 'General' => 20,
>                             'High' => 40, 'Zesty' => 60, 'FireHot' => 80 };
> 
> 	$PriorityType = 0;   # 0 - integer; 1 - labels; other - both
> 
> 
>   Any thoughts/comments on this hack ?

My thought is "Let me give you mine first". I've already done what
you've described, but without PriorityType. I haven't sat down and
separated out our local modifications feature by feature, but I'll try
to do so for this one today or tonight.

Mine doesn't
  - handle ranges, if you use bubbling priority -- in fact, 
    let's call priority settings not corresponding to labels
    "undefined behaviour" :-)
  - use FinalPriority at all
  - let you turn it off

  -Rich

-- 
Rich Lafferty --------------+-----------------------------------------------
 Ottawa, Ontario, Canada    |  Save the Pacific Northwest Tree Octopus!
 http://www.lafferty.ca/    |    http://zapatopi.net/treeoctopus.html
rich at lafferty.ca -----------+-----------------------------------------------




More information about the Rt-devel mailing list