Package pywikipedia :: Module wiktionary :: Class WiktionaryPage
[show private | hide private]
[frames | no frames]

Class WiktionaryPage


This class contains all that can appear on one Wiktionary page
Method Summary
  __init__(self, wikilang, term)
Constructor...
  addEntry(self, entry)
Add an entry object to this entry
  listEntries(self)
Returns a dictionary of entry objects for this entry
  showcontents(self)
Prints the contents of all the subobjects contained in this page.
  sortEntries(self)
Sorts the sortedentries list containing the keys of the entry objects dictionary for this entry
  wikiwrap(self)
Returns a string that is ready to be submitted to Wiktionary for this page

Method Details

__init__(self, wikilang, term)
(Constructor)

Constructor
Called with two parameters:
- the language of the Wiktionary it belongs to
- the term that is described on this page

addEntry(self, entry)

Add an entry object to this entry

listEntries(self)

Returns a dictionary of entry objects for this entry

showcontents(self)

Prints the contents of all the subobjects contained in this page. Every subobject is indented a little further on the screen. The primary purpose is to help keep your sanity while debugging.

sortEntries(self)

Sorts the sortedentries list containing the keys of the entry objects dictionary for this entry

wikiwrap(self)

Returns a string that is ready to be submitted to Wiktionary for this page

Generated by Epydoc 2.1 on Sun Jul 03 17:07:33 2005 http://epydoc.sf.net