Skip to content

ngdb.seealso

See-also loading/holding code.

SeeAlso

SeeAlso(guide, load)

Bases: PromptCollection

Class to load and hold all the see alsos for a long entry.

Parameters:

Name Type Description Default

guide

GuideReader

The reader object for the guide.

required

load

bool

Should we bother trying to load any?

required
Note

The load parameter might look a bit daft, and it is, but a Norton Guide has a flag to say if there are any see-also entries and a count value later on, which won't be there and won't be 0 if the flag is 0. So... we pass the flag in here and just have a see-also collection that has nothing in it.

I could, of course, make the use of this class optional but that feels icky.

MAX_SEE_ALSO class-attribute instance-attribute

MAX_SEE_ALSO = 20

Max number of see also items we'll handle.

This is the limit published in the Expert Help Compiler manual and, while this limit isn't really needed in this code, it does help guard against corrupt guides.