BigBrotherBot v1.5.0
System Development Information for the BigBrotherBot project.
Public Member Functions | Public Attributes | Static Public Attributes

b3::parsers::frostbite::util::BanlistContent Class Reference

List of all members.

Public Member Functions

def __init__
def __len__
def __getitem__
def getData
def __repr__

Public Attributes


Static Public Attributes

 numOfBans = None
list bansData = []

Detailed Description

help extract banlist info from a frostbite banList.list response

usage :
    words = [2, 
        'name', 'Courgette', 'perm', , 'test',  
        'name', 'Courgette', 'seconds', 3600 , 'test2'] 
    bansInfo = BanlistContent(words)
    print "num of bans : %s" % len(bansInfo)
    print "first ban : %s" % bansInfo[0]
    print "second ban : %s" % bansInfo[1]
    print "the first 2 bans : %s" % bansInfo[0:2]
    for b in bansInfo:
        print b

Constructor & Destructor Documentation

def b3::parsers::frostbite::util::BanlistContent::__init__ (   self,
Represent a frostbite banList.list response
Request: banList.list 
Response: OK <player ban entries> 
Response: InvalidArguments 
Effect: Return list of banned players/IPs/GUIDs. 
Comment: The list starts with a number telling how many bans the list is holding. 
 After that, 5 words (Id-type, id, ban-type, time and reason) are received for every ban in the list.

Member Function Documentation

def b3::parsers::frostbite::util::BanlistContent::__getitem__ (   self,
Returns the ban data, for provided key (int or slice)
def b3::parsers::frostbite::util::BanlistContent::__len__ (   self)
def b3::parsers::frostbite::util::BanlistContent::__repr__ (   self)
def b3::parsers::frostbite::util::BanlistContent::getData (   self,

Member Data Documentation

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Properties