Back to index

moin  1.9.0~rc2
Public Member Functions | Public Attributes
MoinMoin.wikisync.Tag Class Reference

List of all members.

Public Member Functions

def __init__
def __repr__
def __cmp__

Public Attributes

 remote_wiki
 remote_rev
 current_rev
 direction
 normalised_name

Detailed Description

This class is used to store information about merging state. 

Definition at line 371 of file wikisync.py.


Constructor & Destructor Documentation

def MoinMoin.wikisync.Tag.__init__ (   self,
  remote_wiki,
  remote_rev,
  current_rev,
  direction,
  normalised_name 
)
Creates a new Tag.

@param remote_wiki: The identifier of the remote wiki.
@param remote_rev: The revision number on the remote end.
@param current_rev: The related local revision.
@param direction: The direction of the sync, encoded as an integer.

Definition at line 374 of file wikisync.py.

00374 
00375     def __init__(self, remote_wiki, remote_rev, current_rev, direction, normalised_name):
00376         """ Creates a new Tag.
00377 
00378         @param remote_wiki: The identifier of the remote wiki.
00379         @param remote_rev: The revision number on the remote end.
00380         @param current_rev: The related local revision.
00381         @param direction: The direction of the sync, encoded as an integer.
00382         """
00383         assert (isinstance(remote_wiki, basestring) and isinstance(remote_rev, int)
00384                 and isinstance(current_rev, int) and isinstance(direction, int)
00385                 and isinstance(normalised_name, basestring))
00386         self.remote_wiki = remote_wiki
00387         self.remote_rev = remote_rev
00388         self.current_rev = current_rev
00389         self.direction = direction
00390         self.normalised_name = normalised_name


Member Function Documentation

def MoinMoin.wikisync.Tag.__cmp__ (   self,
  other 
)

Definition at line 394 of file wikisync.py.

00394 
00395     def __cmp__(self, other):
00396         if not isinstance(other, Tag):
00397             return NotImplemented
00398         return cmp(self.current_rev, other.current_rev)
00399 

Definition at line 391 of file wikisync.py.

00391 
00392     def __repr__(self):
00393         return u"<Tag normalised_pagename=%r remote_wiki=%r remote_rev=%r current_rev=%r>" % (getattr(self, "normalised_name", "UNDEF"), self.remote_wiki, self.remote_rev, self.current_rev)


Member Data Documentation

Definition at line 387 of file wikisync.py.

Definition at line 388 of file wikisync.py.

Definition at line 389 of file wikisync.py.

Definition at line 386 of file wikisync.py.

Definition at line 385 of file wikisync.py.


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