def printClean(self, message): """ Send text to the widget if it is ready; if not, queue text for later. """ message = util.flattenMessageString(message) return self.callRemote('appendTo', message)
""" cn = unicode(conversationName) if cn in self.conversations: d = self.removeTab(cn) self._partConversation(cn) else: d = defer.succeed(None) # FIXME - we do not return this deferred. Need to see whether # minchat deals with deferreds returned by this stack def webClean(st): return unicode(st.replace('<','<').replace('>','>')) GREETING = util.flattenMessageString( u'''Vellum IRC v0.1 Click "Join!" to connect.''') class AccountManager(athena.LiveElement): """ UI element that handles changing of the nick and processing a login to the IRC server. """ jsClass = u"WebbyVellum.AccountManager" docFactory = loaders.xmlfile(RESOURCE('elements/AccountManager')) implements(iwebby.IChatAccountManager) def __init__(self, accountManager, conversationTabs, user, *a, **kw): super(AccountManager, self).__init__(*a, **kw) self.accountManager = accountManager