Back to index

moin  1.9.0~rc2
Public Member Functions
MoinMoin.wikisync.AbstractTagStore Class Reference
Inheritance diagram for MoinMoin.wikisync.AbstractTagStore:
Inheritance graph
[legend]

List of all members.

Public Member Functions

def __init__
def dump
def add
def get_all_tags
def get_last_tag
def clear
def fetch

Detailed Description

This class is an abstract base class that shows how to implement classes
    that manage the storage of tags. 

Definition at line 400 of file wikisync.py.


Constructor & Destructor Documentation

def MoinMoin.wikisync.AbstractTagStore.__init__ (   self,
  page 
)
Subclasses don't need to call this method. It is just here to enforce
them having accept a page argument at least. 

Reimplemented in MoinMoin.wikisync.PickleTagStore.

Definition at line 404 of file wikisync.py.

00404 
00405     def __init__(self, page):
00406         """ Subclasses don't need to call this method. It is just here to enforce
00407         them having accept a page argument at least. """
00408         pass


Member Function Documentation

def MoinMoin.wikisync.AbstractTagStore.add (   self,
  kwargs 
)
Adds a Tag object to the current TagStore. 

Reimplemented in MoinMoin.wikisync.PickleTagStore.

Definition at line 413 of file wikisync.py.

00413 
00414     def add(self, **kwargs):
00415         """ Adds a Tag object to the current TagStore. """
00416         print "Got tag for page %r: %r" % (self.page, kwargs)
00417         return NotImplemented

Removes all tags. 

Reimplemented in MoinMoin.wikisync.PickleTagStore.

Definition at line 426 of file wikisync.py.

00426 
00427     def clear(self):
00428         """ Removes all tags. """
00429         return NotImplemented

Returns all tags for a given item as a string. 

Definition at line 409 of file wikisync.py.

00409 
00410     def dump(self):
00411         """ Returns all tags for a given item as a string. """
00412         return repr(self.get_all_tags())

Here is the call graph for this function:

def MoinMoin.wikisync.AbstractTagStore.fetch (   self,
  iwid_full = None,
  direction = None 
)
Fetches tags by a special IWID or interwiki name. 

Reimplemented in MoinMoin.wikisync.PickleTagStore.

Definition at line 430 of file wikisync.py.

00430 
00431     def fetch(self, iwid_full=None, direction=None):
00432         """ Fetches tags by a special IWID or interwiki name. """
00433         return NotImplemented
00434 

Returns a list of all Tag objects associated to this page. 

Reimplemented in MoinMoin.wikisync.PickleTagStore.

Definition at line 418 of file wikisync.py.

00418 
00419     def get_all_tags(self):
00420         """ Returns a list of all Tag objects associated to this page. """
00421         return NotImplemented

Here is the caller graph for this function:

Returns the newest tag. 

Reimplemented in MoinMoin.wikisync.PickleTagStore.

Definition at line 422 of file wikisync.py.

00422 
00423     def get_last_tag(self):
00424         """ Returns the newest tag. """
00425         return NotImplemented


The documentation for this class was generated from the following file: