Package pywikipedia :: Module editarticle :: Class EditArticle
[show private | hide private]
[frames | no frames]

Type EditArticle

object --+
         |
        EditArticle


Method Summary
  __init__(self, args)
Takes one argument, usually this is sys.argv[1:]
  edit(self)
Edit the page using the editor.
  getcomment(self)
  handle_edit_conflict(self)
  initialise_data(self)
Login, set editor, page and pagelink attributes
  login(self)
Initialises site and username data
  repair(self, content)
Removes single newlines and prepare encoding for local wiki
  run(self)
  set_options(self)
Parse commandline and set options attribute
  setpage(self)
Sets page and pagelink
  showdiff(self, old, new)
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
x.__hash__() <==> hash(x)
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __repr__(x)
x.__repr__() <==> repr(x)
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
  __str__(x)
x.__str__() <==> str(x)

Class Variable Summary
str joinchars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopq...

Method Details

__init__(self, args)
(Constructor)

Takes one argument, usually this is sys.argv[1:]
Overrides:
__builtin__.object.__init__

edit(self)

Edit the page using the editor.

It returns two strings: the old version and the new version.

initialise_data(self)

Login, set editor, page and pagelink attributes

login(self)

Initialises site and username data

repair(self, content)

Removes single newlines and prepare encoding for local wiki

set_options(self)

Parse commandline and set options attribute

setpage(self)

Sets page and pagelink

Class Variable Details

joinchars

Type:
str
Value:
'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz\x83\x8a\x8c\x8e\\
x9a\x9c\x9e\x9f\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8\xc9\xca\xcb\xcc\xc\
d\xce\xcf\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf\\
xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8\xe9\xea\xeb\xec\xed\xee\xef\xf0\xf\
1\xf2\xf3\xf4\xf5\xf6\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff[]0123456789'     

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