414
414
"""Returns a string that represents self, usually just !fact. !fact#channel is a local fact,
415
415
!alias→fact if is an alias and <alias> is True. If <forceChannel> is True, global facts with
416
416
be represented by !fact# instead of !fact."""
417
420
if self.channel not in ('#', None) or forceChannel:
418
421
id = '%s%s' % (self.name, self.channel or '#')
421
424
if alias and self.isAlias():
422
425
id = '%s→%s' % (id, self.data)