Ejemplo n.º 1
0
	def startend_content(self, attrs):
		self.__done = True

		from print_handlers import do_print

		return do_print(**self.__print_parm)
Ejemplo n.º 2
0
			exctype, exc, tb = sys.exc_info()
			raise exctype, exc, tb

	print_parm = {
			'handler': print_handler,
			'entity': entity,
			'action': p_action,
			'page': p_page,
			'prompt_pk_only': prompt_pk_only,
			'display_errors': display_errors,
			'error_str': error_str }

	if page is None:
		from print_handlers import do_print

		output = do_print(**print_parm)
	else:
		from ht_cont_parser import ht_cont_parser
		parser = ht_cont_parser()

		parser.set_params(session, print_parm)

		while True:
			text = page.read()

			if not len(text) > 0:
				break

			parser.feed(text)

		parser.close()