def show_curr(caller, showall=False):
 stackptr = caller.ndb.batch_stackptr
 stack = caller.ndb.batch_stack
 if (stackptr >= len(stack)):
  caller.ndb.batch_stackptr = (len(stack) - 1)
  show_curr(caller, showall)
  return
 entry = stack[stackptr]
 string = format_header(caller, entry)
 codeall = entry.strip()
 string += '{G(hh for help)'
 if showall:
  for line in codeall.split('\n'):
   string += ('\n{G|{n %s' % line)
 caller.msg(string)

def show_curr ( caller , showall = False ) : stackptr = caller . ndb . batch_stackptr stack = caller . ndb . batch_stack if ( stackptr >= len ( stack ) ) : caller . ndb . batch_stackptr = ( len ( stack ) - 1 ) show_curr ( caller , showall ) return entry = stack [ stackptr ] string = format_header ( caller , entry ) codeall = entry . strip ( ) string += '{G(hh for help)' if showall : for line in codeall . split ( '\n' ) : string += ( '\n{G|{n %s' % line ) caller . msg ( string )
show the current position in stack .