Home

Class h.l.HHit(HDocument):

Part of hypy.libView In Hierarchy

A hit returned by a search.
Methodemphasize_htmlWrite emphasized text in html
Methodemphasize_rstWrite emphasized text in restructuredtext
MethodteaserProduce the teaser/snippet text for the hit

Inherited from HDocument:

Method__str__Undocumented
Method__init__Undocumented
MethodaddHiddenTextAdd text that will affect search scoring but will NOT appear in the
MethodaddTextPut some text into the document
Class MethodfromCDocumentConstruct a document from an existing estraiernative.Document, such as
Method__delitem__Undocumented
Method__setitem__Undocumented
Method__getitem__Undocumented
MethodupdateUpdate attributes of this document from another one
MethodgetReturn doc[key] unless key is not found, in which case return the
MethodkeysNames of all attributes set on this document
MethodvaluesValues of all attributes set on this document
Methoditems(attribute_name, attribute_value) 2-tuples for every attribute in this
MethodgetTextsReturn all (visible) texts in this document, as a list
MethodencodeReturn an encoded version of this document. Convenience method
Method_get_textUndocumented
Method_get_idUndocumented
def emphasize_html(self, text):
Write emphasized text in html
def emphasize_rst(self, text):
Write emphasized text in restructuredtext
def teaser(self, terms, format='html'):
Produce the teaser/snippet text for the hit
API Documentation for Hypy, generated by pydoctor at 2009-09-20 10:39:55.