Re: Priority handling in main-menu

2003-11-11 Thread Joey Hess
Sebastian Ley wrote:
> in my opinion the priority handling on errors in main-menu needs still
> some work. Presently the logic is simple: Have an initial priority. If a
> menu item fails, lower the priority by one step. If a menu item suceeds,
> pump up the priority by one but not greater than the initial priority.
> 
> However consider the following situation (as also percieved in an
> installation-report):
> 
> Initial priority is high. A step fails and the priority gets lowered to
> medium, showing the menu. The user chooses that the failing step is not
> relevant or perhaps uses a shell to recover. He then selects the next
> entry. That entry suceeds again, so priority is set to high again. Which
> will bring him back to the step that actaully failed, too bad...
> 
> I do not know if we should think of an entire different solution to
> handle that but for now we could add some code to main-menu that assures
> that the priority will not be set >= high until the offending menu point
> actually suceeded. 

I would like to see main-menu be smarter about the default item it
picks. If the user skips over an earlier item and manager to successfuly
use a later item in the menu, then the earlier item is not necessary,
and main-menu should avoid making it the default again. This does not
apply if the later item has a menu-item-number in the 900's (shell,
etc).

-- 
see shy jo


signature.asc
Description: Digital signature


Re: Priority handling in main-menu

2003-11-11 Thread Sebastian Ley
On Tue, Nov 11, 2003 at 03:21:03PM +0100, Gaudenz Steinlin wrote:

> > I do not know if we should think of an entire different solution to
> > handle that but for now we could add some code to main-menu that assures
> > that the priority will not be set >= high until the offending menu point
> > actually suceeded. 
> Do you really mean >= high? I think >= medium would make more sense,
> because then main-menu is always shown until the offending menu entry
> succeeds.

Not be set to prio >= high means that is only medium or low. Main-menu
is shown with prio medium so it is exactly what we want. Parse error?
;-)

Regards,
Sebastian
-- 
PGP-Key: http://www.mmweg.rwth-aachen.de/~sebastian.ley/public.key
Fingerprint: A46A 753F AEDC 2C01 BE6E  F6DB 97E0 3309 9FD6 E3E6


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Priority handling in main-menu

2003-11-11 Thread Gaudenz Steinlin
On Tue, 2003-11-11 at 11:26, Sebastian Ley wrote:
> Hello,
> 
> in my opinion the priority handling on errors in main-menu needs still
> some work. Presently the logic is simple: Have an initial priority. If a
> menu item fails, lower the priority by one step. If a menu item suceeds,
> pump up the priority by one but not greater than the initial priority.
> 
> However consider the following situation (as also percieved in an
> installation-report):
> 
> Initial priority is high. A step fails and the priority gets lowered to
> medium, showing the menu. The user chooses that the failing step is not
> relevant or perhaps uses a shell to recover. He then selects the next
> entry. That entry suceeds again, so priority is set to high again. Which
> will bring him back to the step that actaully failed, too bad...
> 
> I do not know if we should think of an entire different solution to
> handle that but for now we could add some code to main-menu that assures
> that the priority will not be set >= high until the offending menu point
> actually suceeded. 
Do you really mean >= high? I think >= medium would make more sense,
because then main-menu is always shown until the offending menu entry
succeeds.

Gaudenz


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Priority handling in main-menu

2003-11-11 Thread Sebastian Ley
Hello,

in my opinion the priority handling on errors in main-menu needs still
some work. Presently the logic is simple: Have an initial priority. If a
menu item fails, lower the priority by one step. If a menu item suceeds,
pump up the priority by one but not greater than the initial priority.

However consider the following situation (as also percieved in an
installation-report):

Initial priority is high. A step fails and the priority gets lowered to
medium, showing the menu. The user chooses that the failing step is not
relevant or perhaps uses a shell to recover. He then selects the next
entry. That entry suceeds again, so priority is set to high again. Which
will bring him back to the step that actaully failed, too bad...

I do not know if we should think of an entire different solution to
handle that but for now we could add some code to main-menu that assures
that the priority will not be set >= high until the offending menu point
actually suceeded. 

Sebastian
-- 
PGP-Key: http://www.mmweg.rwth-aachen.de/~sebastian.ley/public.key
Fingerprint: A46A 753F AEDC 2C01 BE6E  F6DB 97E0 3309 9FD6 E3E6



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]