pychess.ic.managers package¶
Submodules¶
pychess.ic.managers.AdjournManager module¶
pychess.ic.managers.AutoLogOutManager module¶
pychess.ic.managers.BoardManager module¶
pychess.ic.managers.ChatManager module¶
-
class
pychess.ic.managers.ChatManager.
ChatManager
(connection)¶ Bases:
GObject
-
convTime
(h, m, s)¶
-
entityDecode
(text)¶
-
entityEncode
(text)¶
-
getChannelLog
(channel, minutes=30)¶ Channel can be channel_id, shout or c-shout
-
getChannelPlayers
(matchlist)¶
-
getChannels
()¶
-
getJoinedChannels
()¶
-
getNoChannelPlayers
(match)¶
-
getPeopleInChannel
(channel)¶
-
getPlayersChannels
(player)¶
-
get_allob_list
(match)¶ - Description: Processes the returning pattern matched of the FICS allob command
- extracts out the gameno and a list of observers before emmiting them for collection by the observers view
match: (re.reg-ex) is the complied matching pattern for processing
-
gotPlayerChannels
(matchlist)¶
-
joinChannel
(channel)¶
-
mayTellChannel
(channel)¶
-
onAnnouncement
(match)¶
-
onArrivalNotification
(match)¶
-
onChannelList
(matchlist)¶
-
onChannelLogBreak
(match)¶
-
onChannelLogLine
(match)¶
-
onChannelLogStart
(match)¶
-
onChannelMessage
(match)¶
-
onDepartedNotification
(match)¶
-
onKibitzMessage
(match)¶
-
onPrivateMessage
(match)¶
-
onShoutMessage
(match)¶
-
onWhisperMessage
(match)¶
-
on_allob_no
(match)¶
-
removeChannel
(channel)¶
-
tellAll
(message)¶
-
tellBughousePartner
(message)¶
-
tellChannel
(channel, message)¶
-
tellGame
(gameno, message)¶
-
tellOpponent
(message)¶
-
tellPlayer
(player, message)¶
-
tellUser
(player, message)¶
-
toldChannel
(match)¶
-
whisper
(message)¶
-
channelListItem
= re.compile('((?:\\d+,?)+)\\s*(.*)')¶
-
entityExpr
= re.compile('&#x([a-f0-9]+);')¶
-
pychess.ic.managers.ConsoleManager module¶
pychess.ic.managers.ErrorManager module¶
pychess.ic.managers.FingerManager module¶
-
class
pychess.ic.managers.FingerManager.
FingerManager
(connection)¶ Bases:
GObject
-
finger
(user)¶
-
onFinger
(matchlist)¶
-
onRatingAdjust
(match)¶
-
parseDate
(date)¶
-
parseShortDate
(date)¶
-
parseTime
(time)¶
-
setBusyMessage
(message)¶ Like set busy is really busy right now.
-
setFingerNote
(note, message)¶
-
-
class
pychess.ic.managers.FingerManager.
FingerObject
(name='')¶ Bases:
object
-
getAdminLevel
()¶ Returns the admin level as a string Only set for admins.
-
getBusyMessage
()¶ Returns the userset idle message This is set when status == STATUS_BUSY or sometimes when status == STATUS_PLAYING
-
getColor
()¶ If status == STATUS_PLAYING getColor returns the color witch the player has got in the game. Otherwise always WHITE is returned
-
getCreated
()¶ Returns when the account was created
-
getEmail
()¶ Returns the email adress of the user. This will probably only be set for the logged in user
-
getGameno
()¶ Returns the gameno of the game in which user is currently playing This is only set when status == STATUS_PLAYING
-
getIdleTime
()¶ Returns the when the last time the user did something active Not set when status == STATUS_OFFLINE
-
getLastSeen
()¶ Returns when the user logged off This is only set when status == STATUS_OFFLINE This is not set, if the user has never logged on
-
getName
()¶ Returns the name of the user, without any title sufixes
-
getNotes
()¶ Returns a list of the ten finger notes
-
getOpponent
()¶ Returns the opponent of the user in his current game This is only set when status == STATUS_PLAYING
-
getRating
(type=None)¶
-
getRatings
()¶
-
getRatingsLen
()¶
-
getSanctions
()¶ Returns any sanctions the user has against them. This is usually an empty string
-
getSilence
()¶ Return True if the user is playing in silence This is only set when status == STATUS_PLAYING
-
getStatus
()¶ Returns the current user-status as a STATUS constant
-
getTimeseal
()¶ Returns True if the user is using timeseal for fics connection
-
getTitles
()¶
-
getTotalTimeOnline
()¶ Returns how many seconds the user has been on FICS since the account was created. This is not set, if the user has never logged on
-
getUpTime
()¶ Returns the when the user logged on Not set when status == STATUS_OFFLINE
-
setAdminLevel
(value)¶
-
setBusyMessage
(value)¶ Use relative seconds
-
setColor
(value)¶
-
setCreated
(value)¶ Use relative seconds
-
setEmail
(value)¶
-
setGameno
(value)¶
-
setIdleTime
(value)¶ Use relative seconds
-
setLastSeen
(value)¶ Use relative seconds
-
setName
(value)¶
-
setNote
(index, note)¶
-
setOpponent
(value)¶
-
setRating
(rating_type, rating_line)¶
-
setSanctions
(value)¶
-
setSilence
(value)¶
-
setStatus
(value)¶
-
setTimeseal
(value)¶
-
setTitles
(titles)¶
-
setTotalTimeOnline
(value)¶ Use relative seconds
-
setUpTime
(value)¶ Use relative seconds
-
pychess.ic.managers.HelperManager module¶
pychess.ic.managers.ListAndVarManager module¶
-
class
pychess.ic.managers.ListAndVarManager.
ListAndVarManager
(connection)¶ Bases:
object
-
addToList
(list_name, value)¶
-
autoFlagNotify
(*args)¶
-
getList
(list_name)¶
-
onUpdateEmptyListitems
(match)¶
-
onUpdateList
(match)¶
-
onUpdateListitems
(matchlist)¶
-
onUpdateLists
(matchlist)¶
-
removeFromList
(list_name, value)¶
-
pychess.ic.managers.NewsManager module¶
pychess.ic.managers.OfferManager module¶
-
class
pychess.ic.managers.OfferManager.
OfferManager
(connection)¶ Bases:
GObject
-
accept
(offer)¶
-
acceptIndex
(index)¶
-
challenge
(player_name, game_type, startmin, incsec, rated, color=None)¶
-
decline
(offer)¶
-
declineIndex
(index)¶
-
noOffersToAccept
(match)¶
-
notEnoughMovesToUndo
(match)¶
-
offer
(offer)¶
-
onOfferAdd
(match)¶
-
onOfferDeclined
(match)¶
-
onOfferRemove
(match)¶
-
playIndex
(index)¶
-
withdraw
(offer)¶
-
pychess.ic.managers.SeekManager module¶
-
class
pychess.ic.managers.SeekManager.
SeekManager
(connection)¶ Bases:
GObject
-
assess
(player1, player2, type)¶
-
on_assess
(matchlist)¶
-
on_our_seeks_removed
(matchlist)¶
-
on_seek_add
(match)¶
-
on_seek_clear
(*args)¶
-
on_seek_remove
(match)¶
-
on_seek_updated
(matchlist)¶
-
refresh_seeks
()¶
-
seek
(startmin, incsec, game_type, rated, ratings=(0, 9999), color=None, manual=False)¶
-
pychess.ic.managers.ICCAdjournManager module¶
pychess.ic.managers.ICCAutoLogOutManager module¶
-
class
pychess.ic.managers.ICCAutoLogOutManager.
ICCAutoLogOutManager
(connection)¶ Bases:
pychess.ic.managers.AutoLogOutManager.AutoLogOutManager
pychess.ic.managers.ICCBoardManager module¶
pychess.ic.managers.ICCChatManager module¶
pychess.ic.managers.ICCErrorManager module¶
-
class
pychess.ic.managers.ICCErrorManager.
ICCErrorManager
(connection)¶ Bases:
pychess.ic.managers.ErrorManager.ErrorManager
-
on_icc_illegal_move
(data)¶
-
pychess.ic.managers.ICCFingerManager module¶
-
class
pychess.ic.managers.ICCFingerManager.
ICCFingerManager
(connection)¶ Bases:
pychess.ic.managers.FingerManager.FingerManager
-
finger
(user)¶
-
on_icc_who_am_i
(data)¶
-
on_icc_yfinger
(data)¶
-
pychess.ic.managers.ICCHelperManager module¶
pychess.ic.managers.ICCListAndVarManager module¶
-
class
pychess.ic.managers.ICCListAndVarManager.
ICCListAndVarManager
(connection)¶ Bases:
pychess.ic.managers.ListAndVarManager.ListAndVarManager
-
autoFlagNotify
(*args)¶
-
pychess.ic.managers.ICCNewsManager module¶
-
class
pychess.ic.managers.ICCNewsManager.
ICCNewsManager
(connection)¶
pychess.ic.managers.ICCOfferManager module¶
pychess.ic.managers.ICCSeekManager module¶
-
class
pychess.ic.managers.ICCSeekManager.
ICCSeekManager
(connection)¶ Bases:
pychess.ic.managers.SeekManager.SeekManager
-
on_icc_seek_add
(data)¶
-
on_icc_seek_removed
(data)¶
-