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

Class Entry


This class contains the entries that belong together on one page. On Wiktionaries that are still on first character capitalization, this means both [[Kind]] and [[kind]]. Terms in different languages can be described. Each of these entries probably represents another language.
Method Summary
  __init__(self, entrylang)
Constructor...
  addMeaning(self, meaning)
Lets you add another meaning to this entry
  getMeanings(self)
Returns a dictionary containing all the meaning objects for this entry
  showcontents(self, indentation)
Prints the contents of all the subobjects contained in this entry.
  wikiwrap(self, wikilang)
Returns a string for this entry in a format ready for Wiktionary

Method Details

__init__(self, entrylang)
(Constructor)

Constructor
Called with one parameter:
- the language of this entry

addMeaning(self, meaning)

Lets you add another meaning to this entry

getMeanings(self)

Returns a dictionary containing all the meaning objects for this entry

showcontents(self, indentation)

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

wikiwrap(self, wikilang)

Returns a string for this entry in a format ready for Wiktionary

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