Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ó
- âex[c @ sÍ d d l Z d d l Z d d l Z d d l m Z d d l m Z m Z m Z m Z m
- Z
- m Z m Z m
- Z m Z m Z m Z m Z d d l m Z d d l m Z d d l Z d d l m Z m Z d d l m Z d d l Z d d l m Z d d l m Z d d
- l m! Z! d d l" Z d d l# m$ Z$ d d l% Z d d l& Z d d l' Z d d l# m( Z( d d
- l) m* Z* d „ Z+ e j, d e- ƒ Z. d Z/ d Z0 d Z1 d Z2 d Z3 d Z4 d Z5 d Z6 d Z7 d Z8 d e f d „ ƒ YZ9 d e: f d „ ƒ YZ; d e j j< e e f d „ ƒ YZ= d f d! „ ƒ YZ> d" e= f d# „ ƒ YZ? d$ Z@ d% e= f d& „ ƒ YZA e eB d' „ ƒ ZC e eB d( „ ƒ ZD e eB d) „ ƒ ZE e d* „ ƒ ZF e d+ „ ƒ ZG d, e= f d- „ ƒ YZH d S(. iÿÿÿÿN( t session( t taskt Startt Sleept Eventt WaitForEventt TaskTimeoutt Returnt Queuet Semaphoret TaskOwnert RunUntilCompletet ActiveObject( t
- MQListener( t IMQError( t CallPeriodicallyt WaitWithTimeout( t __version__( t networkExceptions( t
- weakmethod( t assertInRelease( t SessionDispatcher( t LocalChat( t LStringc O s d S( N( ( t argst kwargs( ( s C:\Python27\meet.pyt NullFunc s s imvu.s) You have been disconnected from the chat.i
- i i i i i i i i t DuplicateMessageDetectorc B sb e Z d Z d Z d Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z
- d „ Z d
- „ Z RS( s client.chat.missing_message.t chat_gatewayt imqc C s; t j | | j ƒ i | _ | | _ | | _ | | _ d S( N( R t __init__t
- taskSchedulert! _DuplicateMessageDetector__byUsert* _DuplicateMessageDetector__serviceProvidert& _DuplicateMessageDetector__userAccountt* _DuplicateMessageDetector__timeout( t selft serviceProvidert userAccountt timeout( ( s C:\Python27\meet.pyR - s
- c C s_ | j | ƒ t | d ƒ } | j j | g ƒ } g } t } | j j ƒ } t | ƒ } | | j } | | d <d | k r“ | d j ƒ | d <n x™ | D]‘ }
- |
- \ } } }
- | | k rí | j
- d | ƒ | j | ƒ s+| j |
- ƒ q+qš | j
- | | |
- | ƒ r| j
- d | ƒ t } qš | j |
- ƒ qš W| sN| j | | | f ƒ n | | j | <| S( Nt from_idt messages message not duplicated: %rs Suppressing duplicate message %r( t' _DuplicateMessageDetector__checkChannelt strR t gett FalseR! t timeProvidert dictR# t stript _DuplicateMessageDetector__logt* _DuplicateMessageDetector__isSystemMessaget( _DuplicateMessageDetector__reportMissingt _isDuplicatet append( R$ t msgt channelR( t
- candidatest newListt isDuplicatet nowt msgCopyR' t candidatet candidateMessaget candidateTimeoutt candidateChannel( ( s C:\Python27\meet.pyt checkDuplicate4 s2
- c C s/ | j j t | ƒ ƒ r+ | j t | ƒ =n d S( N( R t has_keyR+ ( R$ t userId( ( s C:\Python27\meet.pyt userDroppedQ s c C s. | j d d ƒ | j d d ƒ k o- | | k S( NR) ( R, t None( R$ t at bt aChannelt bChannel( ( s C:\Python27\meet.pyR4 U s c C s+ | j d d ƒ } | d k o* | j d ƒ S( NR) t *( R, RE t
- startswith( R$ R) t messageText( ( s C:\Python27\meet.pyt __isSystemMessageX s c sy ˆ t j k r t j n t j ‰ t ‡ ‡ ‡ f d † ƒ } ˆ j j d ˆ ƒ ru ˆ j d ˆ ƒ ˆ j | ƒ ƒ n d S( Nc 3 sž ˆ j ˆ ƒ t j ˆ } yZ t j j d t j j ƒ d d i | d 6d d 6d ˆ j j ƒ d g d ˆ j
- j ƒ VWn# t k
- r™ } t j
- d
- | ƒ n Xd S( Nt urls /api/increment_counter.phpt paramst nameid t
- percentaget autht responseSchemat networks# error incrementing chat counter: %r( R* R t MISSING_MESSAGE_COUNTER_STEMt imvut httpt
- securePostRT t getServiceDomainR" t getAuthR! t Exceptiont loggert error( t counterNamet e( R7 t otherChannelR$ ( s C:\Python27\meet.pyt incrementCounterRequest_ s
- )1s$ client.chat.report_missing_messages.s( reporting missing message for channel %r( R t CHANNEL_IMQt CHANNEL_CHAT_GATEWAYR R" t getImvuConfigBoolR1 t
- attachTask( R$ R7 Ra ( ( R7 R` R$ s C:\Python27\meet.pyt __reportMissing\ s
- !
- c C s d S( N( ( R$ R7 ( ( s C:\Python27\meet.pyt __checkChannelm s c G s# | j j ƒ r t j | Œ n d S( N( R" t isQAR\ t info( R$ R ( ( s C:\Python27\meet.pyt __logp s (
- t __name__t
- __module__RU Rc Rb R RA RD R4 R2 R3 R* R1 ( ( ( s C:\Python27\meet.pyR ( s t InvitationDeclinedDialogc B s e Z d Z d Z d Z g Z RS( s. chrome://imvu/content/dialogs/input/index.htmlið i÷ s Invitation Declined( ið i÷ ( Rk Rl t urit sizet titlet geckoListeners( ( ( s C:\Python27\meet.pyRm u s t DirectConnectSessionc B sŠ e Z d Z e d9 e d9 d „ Z d „ Z d „ Z e d „ ƒ Z
- e d „ ƒ Z e d „ ƒ Z e
- d „ Z d9 d „ Z d „ Z e d
- „ ƒ Z d „ Z d „ Z d
- „ Z e d „ ƒ Z d „ Z e e d „ ƒ ƒ Z d „ Z d „ Z d „ Z d „ Z d9 d „ Z d „ Z e d „ ƒ Z d d „ Z! d „ Z" d „ Z# e d „ ƒ Z$ e d9 d d „ ƒ Z% e d9 d „ ƒ Z& e d „ ƒ Z' e g d! „ ƒ Z( e d" „ ƒ Z) e d# „ ƒ Z* d$ „ Z+ d% „ Z, d& „ Z- d' „ Z. d( „ Z/ d) „ Z0 d* „ Z1 d d+ „ Z2 d, „ Z3 d- „ Z4 d. „ Z5 d/ „ Z6 e d9 d0 „ ƒ Z7 d1 „ Z8 e d2 „ ƒ Z9 e d3 „ ƒ Z: d4 „ Z; d5 „ Z< d6 „ Z= d7 „ Z> d8 „ Z? RS(: i< c C s¾ t j j j | ƒ t j | | j ƒ d | _ | j | d | ƒ| _ t ƒ | _
- | | _ t | _
- t d ƒ | _ t ƒ | _ d | _ | | _ g | _ g | _ t | _ t j | ƒ | _ t ƒ | _ | | _ | | _ g | _ t | j | j d ƒ | _! t | _" t# j$ j% | j ƒ | _& d | _' | j( d ƒ d | _) d | _* d | _+ d | _, d | _- i | _. g | _/ t | _0 t | _1 d | _2 i | _3 | j4 t5 | j6 d d t ƒƒ d S( Nt
- DirectConnectt senderi ix i s creating new sessioni t immediatelyCall(7 t imR t ImSessionR R
- R t activityt createt! _DirectConnectSession__dispatchert TaskQueuet' _DirectConnectSession__outgoingMessagest _DirectConnectSession__locationR- t" _DirectConnectSession__isConnectedR t' _DirectConnectSession__inviteToChatLockR t) _DirectConnectSession__chatConnectedEventRE t chatId_t" _DirectConnectSession__userAccountt
- participants_t& _DirectConnectSession__pendingMessagest Truet _DirectConnectSession__activeR t reft showMessageFuncWr_t _updateParticipantEventt& _DirectConnectSession__serviceProvidert! _DirectConnectSession__parentHwndt# _DirectConnectSession__ignoredUsersR t( _DirectConnectSession__duplicateDetectort" _DirectConnectSession__is_running_RV t gatewayt AvatarInfoManagert( _DirectConnectSession__avatarInfoManagert
- waitingScale_t _logt lastMessageId_t% _DirectConnectSession__inviteAttemptst _DirectConnectSession__queueNamet( _DirectConnectSession__lastServerContactt% _DirectConnectSession__participantUrlt& _DirectConnectSession__participantInfot& _DirectConnectSession__infoUpdateQueuet5 _DirectConnectSession__processingParticipantInfoQueuet" _DirectConnectSession__sawPureUsert _DirectConnectSession__accountt/ _DirectConnectSession__unsentParticipantChangesRe R t) _DirectConnectSession__checkDisconnection( R$ R% R& t showMessageFunct
- parentHwndt dispatcherFactoryt location( ( s C:\Python27\meet.pyR sJ
- c C s" | j j ƒ o! | j j j d ƒ S( Ns imq.text_chat.require_imq( R‚ Rh RŠ t mqManagert enabled( R$ ( ( s C:\Python27\meet.pyt __requireIMQ¦ s c C s
- | | _ d S( N( R} ( R$ t roomPid( ( s C:\Python27\meet.pyt setLocation© s c C s
- | j j ƒ S( N( R‚ t getUserId( R$ ( ( s C:\Python27\meet.pyt userId_¬ s c C s | j S( N( R} ( R$ ( ( s C:\Python27\meet.pyR£ ° s c C s | j S( N( R– ( R$ ( ( s C:\Python27\meet.pyt queueName´ s c C s° | r | | _ n | j sJ | j j ƒ pF | j j ƒ pF | j j ƒ rN d S| j j t | j ƒ | | f ƒ | j d k r¨ | j r¨ t
- | _ | j | j ƒ ƒ n d Sd S( N(
- R t) shouldAlwaysPostToChatParticipantEndPointt4 shouldPostToChatParticipantEndPointIfPureUserPresentt2 shouldPostToChatParticipantEndPointIfOutfitChangedRš t insertt lenR˜ RE R› R… Re t2 _DirectConnectSession__processParticipantInfoQueue( R$ t accountt updatest force( ( s C:\Python27\meet.pyt updateParticipantInfo¸ s 8" c C s# | j r | j | | j ƒ n d S( N( Rž Rµ ( R$ R² ( ( s C:\Python27\meet.pyt __triggerParticipantUpdateÄ s c C s3 | j r/ | j ƒ r/ t | _ | j | ƒ n d S( N( Rœ R R… t/ _DirectConnectSession__triggerParticipantUpdate( R$ R² ( ( s C:\Python27\meet.pyt sawPureUserÈ s c
- c s x}t | j ƒ d k ri } | j } g | _ xa | D]Y \ } } xJ | j ƒ D]< } | s| | j j | d ƒ | | k rQ | | | | <qQ qQ Wq8 W| oé | j oé | j j ƒ pé | j j ƒ rË | j
- pé | j j ƒ oé | j d t ƒ s | j
- j | ƒ Pn | j j | ƒ t j d | ƒ yH t j j d | j d | d | j j ƒ d g d | j j d d
- ƒ VWq t k
- r{q Xq Wt | _ d S( Ni t legacy_outfit_messages, NRD POSTing to chat_participant endpoint: %rRN RO RR RS RT t methodt POST( R° Rš t keysR™ R, RE Rƒ R R¬ R Rœ R® R- Rž t updateR\ Ri RV RW RX R˜ RZ RŠ RT R R› ( R$ t changest queueR³ R´ t key( ( s C:\Python27\meet.pyt __processParticipantInfoQueueÍ s&
- %WH
- c G s t j | d | | f Œ d S( Ns session=%r( R\ Ri ( R$ R) R ( ( s C:\Python27\meet.pyR“ å s c C s | j S( N( R ( R$ ( ( s C:\Python27\meet.pyt getChatIdè s c C s
- | j | k S( N( Rª ( R$ RC ( ( s C:\Python27\meet.pyt isOwnerë s c C s | j S( N( R† ( R$ ( ( s C:\Python27\meet.pyt activeî s c C s, d t | ƒ j | j | j | j | j f S( Ns( <%s %s: instance %s, userId %s, chat %s>( t typeRk Rx t _instanceIdRª R ( R$ ( ( s C:\Python27\meet.pyt __repr__ò s
- c c sJ | s
- d Sy | j | | ƒ VWn$ t k
- rE t j d | | ƒ n Xd S( Ns( chatGateway.terminateChat(%r, %r) failed( t
- terminateChatR R\ t exception( t chatGatewayRC t chatId( ( s C:\Python27\meet.pyt __reportChatTerminationù s
- c C sO | j d ƒ | j j j | j | j j | j | j ƒ d t ƒ| j ƒ d S( Nt closeSessiont executionPolicy(
- R“ RŠ R t scheduleTaskt, _DirectConnectSession__reportChatTerminationRÊ Rª R R t! _DirectConnectSession__markClosed( R$ ( ( s C:\Python27\meet.pyRÍ s
- 4c C s1 | j d ƒ | j ƒ | j j ƒ t | _ d S( Nt __markClosed( R“ t stopAttachedTasksRz t disposeR- R† ( R$ ( ( s C:\Python27\meet.pyRÒ s
- c C s | j S( N( R~ ( R$ ( ( s C:\Python27\meet.pyt isConnected s c C sd | j r` | j j ƒ | j d k r` t j d | j | j j ƒ ƒ | j j j | d i ƒ n d S( Nix s? Detected disconnection, last server contact at %d, it is now %dt DisconnectionDetected( R~ RŠ R. R— R\ Ri t eventBust fire( R$ ( ( s C:\Python27\meet.pyt __checkDisconnection s %c sX ˆ j s ˆ j r d Sˆ j d ƒ t ˆ _ t ‡ ‡ f d † ƒ } ˆ j | ƒ ƒ d S( Ns maybeConnect decided to connectc 3 s* ˆ j d ˆ ƒ V} | r& ˆ j ƒ n d S( Nt private( t$ _DirectConnectSession__connectToChatt, _DirectConnectSession__setupPostConnectTasks( t connected( RÚ R$ ( s C:\Python27\meet.pyt
- initialize s ( R~ RŽ R“ R… R Re ( R$ RÚ RÞ ( ( RÚ R$ s C:\Python27\meet.pyt maybeConnect s
- c C sv | j d k | _ | j ƒ rr | j j j d ƒ sI | j | j ƒ ƒ n | j | j ƒ ƒ | j | j
- ƒ ƒ n d S( Ns imq.disable_xmlrpc_chat_polling( R RE R~ RÕ RŠ R¤ R¥ Re t _fetchNewMessagest _sendOutgoingMessagest _updateParticipantList( R$ ( ( s C:\Python27\meet.pyt __setupPostConnectTasks$ s c c s¶ y= | j j j d | j d | j d | j ƒ V} t | ƒ VWnr t j k
- r± } | j t
- j j k r« t
- j d | ƒ | j ƒ | j | j j j d ƒ ƒ t g ƒ Vq² ‚ n Xd S( NRC RË t
- lastMessageIds$ marking %s closed because of fault 9s$ Sorry, you are no longer in the chat( RŠ RÊ t getNewMessagesRª R R” R t xmlrpclibt Faultt faultCodeRV R t ERROR_NO_LONGER_IN_CHATR\ RÉ RÑ t _showUiMessaget translationTablet LS( R$ t resultt f( ( s C:\Python27\meet.pyt __getNewMessages- s .
- i c C s/ | j ƒ } | r+ | d | d | d | ƒ Sd S( Nt sessRL R' ( Rˆ ( R$ RL R' t msgFunc( ( s C:\Python27\meet.pyRê ; s c C s d S( N( ( R$ ( ( s C:\Python27\meet.pyt _showConnectedMessage@ s c C s t t | j g | j ƒ ƒ S( N( t sortedt setRª Rƒ ( R$ ( ( s C:\Python27\meet.pyt getParticipantUserIdsC s c c s’ | j ƒ t j d | | j | ƒ y | d | _ | j j ƒ Wn t k
- rT n$ X| j j j
- | d i | j d 6ƒ t d | j d ƒ Vd S( Ns8 %s(userId=%s)::getOrMakeChat returned waiting result: %sRË t NewChatIdg à?(
- t _showStillWaitingMsgR\ t debugRª R R€ Rô t KeyErrorRŠ R× RØ R R’ ( R$ Rí ( ( s C:\Python27\meet.pyt __handleWaitingResultF s
- #i c c sš | | _ | j j ƒ | j j j | d i | j d 6| d 6ƒ | j j j | d i | j d 6ƒ d t | j ƒ | _ | j ƒ rµ t | j j
- j | j | i t d 6ƒ d ƒ Vn0 t
- | j j
- j | j | i t d 6ƒ d t ƒVt | ƒ | _ | j d | j ƒ | d k rg| j d
- d | ƒ | d k rM| j d
- d
- | j ƒ qg| j d
- d | j ƒ n | j d | j ƒ | j ƒ | j j ƒ | _ d S( Nt
- JoinedChatRË t seatRö s /chat/%it listen_to_selfg 4@t bubbleErrorOutOfEventPumps Setting lastMessageId_ to %sRL s *seat %si s
- *resume %ss
- *accept %ss& _fetchNewMessages connected to chat %s( R R€ Rô RŠ R× RØ t intR– t! _DirectConnectSession__requireIMQR R¤ t subscribeR… R R- R” R“ RE t
- sendImMessageRª Rò R. R— ( R$ RË Rü Rä ( ( s C:\Python27\meet.pyt
- __joinChatT s(
- #00
- c c s d } d } t } xßt ró| d k rG | j j j | d ƒ t } Pn y | j d | d | ƒ V} WnK t k
- r± t j d | j
- ƒ | d 7} t d | j d | ƒ Vq n X| d k rè | d 7} t d | j d | ƒ Vq n | j
- d | ƒ | j d
- d ƒ d k s(| j d
- d ƒ d
- k r,Pn | j d ƒ | _ | j d t ƒ rv| j | ƒ V| j d d ƒ } q n y1 | j | d | j d ƒ | j d d ƒ ƒ VWnE t t f k
- rî} | j
- d | ƒ | j j j | d ƒ t } n XPq Wt | ƒ Vd S( Ni i t ChatConnectFailedt inviteIdRÚ s, failed getOrMakeChat for userId %s, retryingi g à?s getOrMakeChat result: %st responset acceptedt declinedR' t participantUrlt waitingRË Rü Rä s error joining chat queue: %r( RE R… RŠ R× RØ R- t
- getOrMakeChatR R\ RÉ Rª R R’ R“ R, R˜ t* _DirectConnectSession__handleWaitingResultt _DirectConnectSession__joinChatR R R ( R$ RÚ t attemptsR RÝ Rí R_ ( ( s C:\Python27\meet.pyt __connectToChatm sH
- 01
- c c s! xt ry | j ƒ V} WnK t k
- rg t j d | j ƒ | j | j j j d ƒ ƒ t
- t ƒ Vq X| j j ƒ | _
- | rœ | j d t | ƒ | ƒ n d } xV | D]N } | j | t j ƒ | d | _ | d d k rí t
- d ƒ Vn | d 7} q© W| j d | j ƒ t
- d ƒ Vq Wd S(
- Ns- failed getNewMessages for userId %s, retryings) You have been disconnected from the chat.s received %s new messages: %si t
- message_idi i s Setting lastMessageId_ to %sg333333ã?( R… t% _DirectConnectSession__getNewMessagesR R\ RÉ Rª Rê RŠ Rë Rì R t NetworkErrorRetryIntervalR. R— R“ R° t) _DirectConnectSession__addIncomingMessageR Rc R” ( R$ Rí t it messageDict( ( s C:\Python27\meet.pyRà — s&
- c
- # sœ ‡ f d † } x* ˆ j j ƒ s; | j ˆ j j ƒ Vƒ q W| sF d Sˆ j d | ƒ t | | ƒ } xI | D]A } t j | ƒ } t j d | ƒ ˆ j
- j j | ˆ j
- d ƒ ql Wˆ j
- j j d ƒ s˜xÏ t d ƒ D]u } y ˆ j
- j j | ƒ V} Wn, t k
- r!t j d ƒ t d ƒ VqÓ qÓ Xˆ j
- j ƒ ˆ _ ˆ j d | | ƒ PqÓ WxI | D]> \ } } | j d
- ƒ sSˆ j ˆ j
- j j d | ƒ ƒ PqSqSWn d S( Nc s2 | \ } } i ˆ j d 6ˆ j d 6| d 6| d 6S( NRC RË R) t to( Rª R ( t .0R6 R ( R$ ( s C:\Python27\meet.pyt
- formatMessage² s
- s" flushMessages dequeued messages %rs send IMQ chat message: %st messagess imq.disable_xmlrpc_sendi s Error sending chat messagesg ø?s( successfully sent messages %r, result %sRJ s Message was not sent: {0!r}( R| t emptyR5 R, R“ t mapt jsont dumpsR\ Rø RŠ R¤ t sendMessageR– R¥ t rangeRÊ t sendChatMessagesR RÉ R R. R— RK Rê Rë t FLS(
- R$ R R t formattedMessagest mt jsonMsgR Rí R6 R ( ( R$ s C:\Python27\meet.pyt
- flushMessages¯ s4
- c c s< | j d ƒ x( t r7 | j d | j j ƒ Vg ƒ Vq Wd S( Ns Starting outgoing message loopR ( R“ R… R% R| R, ( R$ ( ( s C:\Python27\meet.pyRá × s
- c
- c s | j d ƒ znxgt ryy# | j j j | j | j ƒ V} Wn$ t k
- rb t j d | j ƒ nÞXt
- } | j j ƒ | _ i } t
- ƒ } x9 | D]1 } t | d ƒ } | d | | <| j | ƒ q‘ WxR t
- | j ƒ | D]= } | j d | ƒ | j j | ƒ t } | j j | ƒ VqÚ Wxd | t
- | j ƒ D]O } | j j | ƒ t } | j j | | | ƒ V} | s/| j j | ƒ q/q/WxM | j D]B \ } } | d | j k r¾| j | | ƒ qŒt j d | ƒ qŒW| j 2| j ƒ d k r| j ƒ r| j j d | j d
- f ƒ n | r@| j j j | d ƒ | j ƒ n | j j! ƒ y t" | j d ƒ VWq t# k
- ruq Xq WWd | j d
- ƒ Xd S( Ns Starting participant update loops- error trying to find participants for chat %sRC Rü s& notifyParticipantRemoved(): userId: %rR( s/ Ignoring message %r because user is not in chati s *uid %di t ParticipantsUpdatedg -@s Exiting update participant loop($ R“ R… RŠ RÊ t getParticipantsRª R R R\ RÉ R- R. R— Rô Rÿ t addRƒ t removeRz t participantLeftR5 t participantAddedR„ t- _DirectConnectSession__processIncomingMessaget warningt numParticipantst
- isRoomSessionR| t putR× RØ R· R‰ t clearR R (
- R$ t participantInfost participantsChangedt seatst newParticipantst pRC t gotInfot message_dictR7 ( ( s C:\Python27\meet.pyRâ Ý sT
- #
- c C sF | j d | j ƒ ƒ | j ƒ d k rB | j ƒ rB | j ƒ n d S( Ns1 _partnerLeftDialogCallback numParticipants_ is %si ( R“ R. R/ t
- endSession( R$ t ignore( ( s C:\Python27\meet.pyt _partnerLeftDialogCallback s c C s | j j | ƒ d S( N( RŒ R5 ( R$ RC ( ( s C:\Python27\meet.pyt
- ignoreUser s c C s | j j | ƒ d S( N( RŒ R) ( R$ RC ( ( s C:\Python27\meet.pyt unIgnoreUser s c C s
- | | j k S( N( RŒ ( R$ RC ( ( s C:\Python27\meet.pyt
- isIgnoredUser s c C s™ t | ƒ t | d ƒ } | d k r… | j | ƒ r9 d S| | j ƒ k r… | j d | ƒ | j j | | f ƒ | j j ƒ d Sn | j | | ƒ d S( NR( i s/ Deferring message %r, updating participant list(
- R Rÿ R> Rõ R“ R„ R5 R‰ Rô R, ( R$ R R7 R( ( ( s C:\Python27\meet.pyt __addIncomingMessage! s
- c
- C s† | j j | | ƒ s‚ | j j t j j d | j d d ƒ d | j j ƒ d t
- | j d d ƒ ƒ d t
- | j d d ƒ ƒ ƒ ƒ n d S( NR) t t timestampt fromIdR( i t toIdt to_id( R RA Rz t notifyNewMessageRv t commont ImMessageR, RŠ R. Rÿ ( R$ R R7 ( ( s C:\Python27\meet.pyt __processIncomingMessage. s c C s | j j j | d ƒ d S( Ns Session.End( RŠ R× RØ ( R$ ( ( s C:\Python27\meet.pyR9 2 s c C s_ | j d | ƒ | j ƒ | j i | j d 6| d 6| d 6t j ƒ | j j | | f ƒ d S( Ns sendImMessage(): messageText: %rR( R) RD ( R“ Rß R Rª R Rc R| R0 ( R$ RL R ( ( s C:\Python27\meet.pyR 5 s
- c C s | j j | ƒ d S( N( Rz t setCommandManager( R$ t c( ( s C:\Python27\meet.pyRI = s c C s t | j ƒ ƒ S( N( R° Rõ ( R$ ( ( s C:\Python27\meet.pyR. @ s c C s t S( N( R- ( R$ ( ( s C:\Python27\meet.pyt
- sessionIsFullC s c C s t S( N( R- ( R$ ( ( s C:\Python27\meet.pyt isPrivateF s c c s¨ | | j k r+ t i d d 6d d 6ƒ Vn | j j ƒ Vi | j d 6| d 6| j pY d d 6| j d 6} | d k rƒ | | d
- <n | j j j | V} t | ƒ Vd S( Nt declineR s$ You cannot invite yourself to a chatt reasonRC t partnerIdi RË R£ R (
- Rª R R€ t waitR R£ RE RŠ RÊ t
- attemptInvite( R$ RO R R t rv( ( s C:\Python27\meet.pyt _sendInvitationI s
- c C s | j | j | ƒ ƒ d S( N( Re t# _DirectConnectSession__inviteToChat( R$ t inviteeId( ( s C:\Python27\meet.pyt inviteToChatY s c c s | j d | | | ƒ | d } | j j j | ƒ V} t ƒ } i t d ƒ d 6| j j j d d | ƒ| j j j d d | r… | n d ƒd
- 6d d 6| _ | j j j
- | j | ƒ } | s d S| j j j | j ƒ V} | sê d } n | d
- | } | j j
- j | j | | ƒ Vd S( Ns5 sendAwayNote(): inviteId: %r inviteeId: %r reason: %ri
- s Invitation declinedRp s {avatarname} is currently: t
- avatarnames1 {awayMessage!r}. Would you like to leave a note?t awayMessageR@ R) t defaultValues <Avatar>s : ( R“ RŠ t avatarInfoManagert
- getAvatarNameRm R Rë R! t
- dialogInfot
- dialogManagert showModalR‹ Rª RÊ t leaveInviteAwayNote( R$ R RU RN t partnerNamet dialogt user_messaget user_namet away_note( ( s C:\Python27\meet.pyt sendAwayNote\ s
- A
- c
- c s÷ | j j ƒ Vá| j j ƒ } | j d | | | ƒ d | _ | j ƒ d } xt rà| j d 7_ t j
- d | j | j j ƒ ƒ y | j d | d | ƒ V} Wn+ t k
- rÐ t j
- d ƒ i t d 6} n X| j d ƒ } y t | ƒ } Wn' t t f k
- rt j d | ƒ n X| d k rN| d k rN| | k rNt j d
- ƒ n | d k rc| } n | j r»| j d d ƒ d k r»t j
- d | d ƒ | j | d d ƒ V| j ƒ n d | k rR| j j ƒ | | j k rÒ| j d
- | | j j ƒ | ƒ | j j j | ƒ V} | j ƒ | j | j j j d d | ƒd d ƒd Sn€d | k r§| d } | d k r”| j d d ƒ } | j d d ƒ } | j d d ƒ } | s¹d } n | j d | ƒ | j ƒ | j d ƒ d k r
- | r
- | j | j | | | ƒ ƒ nƒ | j j j | ƒ V} | r\| j | j j j d d | ƒd | d d ƒn4 | j | j j j d d | ƒd | d d d ƒd St! d | ƒ ‚ n+ | j d | ƒ | j" j# ƒ | j ƒ d St$ d ƒ VqR Wt! d! ƒ ‚ Wd QXd S(" Ns. inviteToChat(%s, %s) firstInviteAttemptTime=%di i s7 inviteToChat attempting to make invite #%d (time is %d)RO R s7 sendInvitation raised, assuming we should keep waiting.R
- s Got funky inviteId: %rsA We asked for the status of an invite - but got back a new invite!RË s# Didn't have a chat, but got one! %rs4 partner %s timed out our invitation after %d secondss- {partnerName} did not answer your invitation.R` R' i R RM RN t accessViolations no reason givens3 partner %s declined our invitation, closing sessions I'm awayu2 {partnerName} can not join as the room only allowst i, u& {partnerName} declined to chat, sayings 't 's unknown response: %rs) inviteToChat: invite was accepted from %ss should never be reached(% R t acquireRŠ R. R“ R• R÷ RE R… R\ Ri RS R RÉ R, Rÿ t TypeErrort
- ValueErrorR- t criticalR R
- RÜ t MaxSecondsToWaitForAcceptRZ R[ t _hideStillWaitingMsgRê Rë R! t findRe Re R[ R‰ Rô R (
- R$ RU t firstInviteAttemptTimeR t rett newInviteIdR` R RN Rf ( ( s C:\Python27\meet.pyt __inviteToChatn sv
- $ "
- (
- 34
- c C sx t j d t | ƒ j | j | j | j | j g ƒ | j d k r” t j | j ƒ } t
- | t ƒ sx t j d | ƒ d S| j
- j j | d | ƒ nà | j d k rtt j | j ƒ } t
- | t ƒ sØ t j d | ƒ d St
- | j t ƒ ró | j n t | j j d ƒ d ƒ | d <| d | j d
- d ƒ k rHt j d | j | ƒ n | j d
- d ƒ | d <| j | t j ƒ n d S( Ns %s.onImqMessage(%r)t controls Got invalid control message %rt ControlMessageR s Got invalid chat message %rt /iÿÿÿÿR( RC i s$ forged message detected: from %r: %rR RD ( R\ Ri RÅ Rk t user_idR¿ t mountR) R t loadst
- isinstanceR/ R- RŠ R× RØ Rÿ t splitR, R R Rb ( R$ R) R# ( ( s C:\Python27\meet.pyt onImqMessage² s(
- ;c C s d S( N( ( R$ ( ( s C:\Python27\meet.pyR÷ È s c C s d S( N( ( R$ ( ( s C:\Python27\meet.pyRn Ë s c C s t S( N( R- ( R$ t bootert bootee( ( s C:\Python27\meet.pyt canBootÎ s c C s t S( N( R- ( R$ RC ( ( s C:\Python27\meet.pyt isLieutenantÑ s N(@ Rk Rl Rm R RE R R R R¨ t propertyRª R£ R« R- Rµ R· R¸ R R± R“ RÂ RÃ RÄ RÇ t staticmethodRÐ RÍ RÑ RÕ RŸ Rß RÜ R Rê Rò Rõ R R
- RÛ Rà R% Rá Râ R; R< R= R> R R, R9 R RI R. RK RL RS RV Re RT R| R÷ Rn R R€ ( ( ( s C:\Python27\meet.pyRr | sx ' )'6
- D t InviteDecisionc B s e Z d Z d Z d Z d Z RS( t ACCEPTt DECLINEt IGNOREt REJECTED( Rk Rl R„ R… R† R‡ ( ( ( s C:\Python27\meet.pyRƒ Õ s t ChatSessionc B s8 e Z e d d d „ Z e d d d „ ƒ Z d „ Z RS( i c C sB t j | d | d | d | d | d | ƒ| | _ | j ƒ d S( NR% R& R R¡ R£ ( Rr R t _ChatSession__resultRß ( R$ R% R& Rí R R¡ R£ ( ( s C:\Python27\meet.pyR Þ s + c C s | j S( N( R‰ ( R$ R RÚ ( ( s C:\Python27\meet.pyR ã s c C s t S( N( R- ( R$ ( ( s C:\Python27\meet.pyt" shouldResetRoomDefinitionAtStartupç s N( Rk Rl R RE R R R RŠ ( ( ( s C:\Python27\meet.pyRˆ Ü s s IMVU Chat Roomt JoinRoomSessionc B s e Z e d g g e e d e d „ Z e d „ ƒ Z d „ Z d „ Z
- d „ Z d „ Z d „ Z
- d „ Z d „ Z d „ Z d
- „ Z d „ Z d „ Z d
- „ Z d „ Z d „ Z d „ Z d „ Z d „ Z e d d d „ ƒ Z d „ Z d „ Z d „ Z RS( c
- C sT t j | d | d | d | d | ƒt | t ƒ sJ t d | f ƒ ‚ n t | t ƒ so t d | f ƒ ‚ n | | _ | | _ | | _ | | _ | | _
- | | _ |
- | _ | | _
- | | _ | | _ i | j j j d ƒ t 6| j j j d ƒ t 6| j j j d ƒ t 6| j j j d
- ƒ t 6| j j j d ƒ t 6| _ | j d | ƒ d S(
- NR% R& R R¡ s' roomInstanceId must be a string, was %rs! roomOwners must be a list, was %rsE Your client version is too old, please upgrade to the latest version.s+ You are too young to join a chat room chat.s The room is currently closed.sG You have been kicked out of the room. Cannot rejoin within 20 minutes.s The room is full.RÚ ( Rr R Rz t
- basestringRj t listt roomInstanceId_t! _JoinRoomSession__serviceProvidert& _JoinRoomSession__modeConstructedEventt _JoinRoomSession__lieutenantst _JoinRoomSession__roomOwnerst) _JoinRoomSession__allowRoomShellOverwritet" _JoinRoomSession__allowLoadNewRoomt _JoinRoomSession__parentHwndt _JoinRoomSession__privatet) _JoinRoomSession__autoBootWhenOwnerLeavesRë Rì t$ ERROR_PUBLIC_ROOM_CLIENT_VERSION_OLDt ERROR_PUBLIC_ROOM_AGE_LIMITt ERROR_PUBLIC_ROOM_CLOSEDt ERROR_PUBLIC_ROOM_BOOTEDt ERROR_PUBLIC_ROOM_FULLt reasons_Rß (
- R$ t roomInstanceIdR% R& t modeConstructedEventR R¡ t lieutenantst
- roomOwnerst allowRoomShellOverwritet allowLoadNewRoomRÚ t autoBootWhenOwnerLeaves( ( s C:\Python27\meet.pyR ï s* % c C s | j S( N( RŽ ( R$ ( ( s C:\Python27\meet.pyR£ s c C s, | j j t | ƒ d ƒ p+ | | j ƒ k S( Nt -( RŽ RK R+ t
- getRoomOwners( R$ RC ( ( s C:\Python27\meet.pyRÃ
- s c C s | j S( N( R– ( R$ ( ( s C:\Python27\meet.pyRL
- s c C s t | j j d ƒ d ƒ S( NR¥ i ( Rÿ RŽ R{ ( R$ ( ( s C:\Python27\meet.pyt getOwner s c C s t | ƒ | j k S( N( R+ R‘ ( R$ RC ( ( s C:\Python27\meet.pyR€ s c C s | j | ƒ p | j | ƒ S( N( RÃ R€ ( R$ RC ( ( s C:\Python27\meet.pyt hasBootPrivileges s c C s | j | ƒ o | j | ƒ S( N( R¨ ( R$ R} R~ ( ( s C:\Python27\meet.pyR s c C s t S( N( R… ( R$ ( ( s C:\Python27\meet.pyR/ s c C s | j S( N( R“ ( R$ ( ( s C:\Python27\meet.pyR¢ s c C s | j S( N( R— ( R$ ( ( s C:\Python27\meet.pyR¤ " s c C s
- | | _ d S( N( R— ( R$ R¤ ( ( s C:\Python27\meet.pyt setAutoBootWhenOwnerLeaves% s c C s | j S( N( R” ( R$ ( ( s C:\Python27\meet.pyR£ ( s c C s | j S( N( R’ ( R$ ( ( s C:\Python27\meet.pyR¦ + s c C s
- | | _ d S( N( R’ ( R$ R¡ ( ( s C:\Python27\meet.pyt
- setRoomOwners. s c C s t S( N( R- ( R$ ( ( s C:\Python27\meet.pyt isAlwaysDriver1 s c C s t S( N( R- ( R$ ( ( s C:\Python27\meet.pyt resetRoomDefinitionAtStartup4 s c C s | j S( N( RŽ ( R$ ( ( s C:\Python27\meet.pyt getRoomInstanceId7 s c C s
- | | _ d S( N( RŽ ( R$ Rž ( ( s C:\Python27\meet.pyt setRoomInstanceId: s c c sç | j d | j | j ƒ d | j } | j j j | j | | j pG d d t d | ƒV} d | k rØ | d d k rØ | j d d ƒ } | j d d ƒ } | j d
- | j ƒ | j
- j ƒ V| j ƒ | j
- | | ƒ n t | ƒ Vd S( NsK JoinRoomSession::getOrMakeChat(): self.userId_: %r self.roomInstanceId_: %rs
- publicroom-%si t
- publicRoomRÚ R R RN t explanations7 User %s declined to join the chat room, closing session( R“ Rª RŽ R RÊ R R R… R, RE R RP RÍ t" _JoinRoomSession__showErrorMessageR ( R$ R RÚ Rx Rq t errorCodet errorExplanation( ( s C:\Python27\meet.pyR = s
- 4
- c s< ˆ j d ˆ ƒ t ‡ ‡ f d † ƒ } ˆ j | ƒ ƒ d S( Ns boot user %rc 3 s6 ˆ j j j i ˆ d 6ˆ j d 6ƒ Vˆ j j ƒ d S( NRC Rž ( R RÊ t
- bootOutOfChatRŽ R‰ Rô ( ( R$ RC ( s C:\Python27\meet.pyt bootP s ( R“ R Re ( R$ RC Rµ ( ( R$ RC s C:\Python27\meet.pyt bootUserM s c C s | d k r d S| t k rI | j j j d ƒ } | j j j d ƒ } n~ | d k rš | j j | d ƒ } | j j j d ƒ } | j j j d | ƒ } n- | j j j d ƒ } | j j j d | ƒ } | j j j | j
- t j j
- | | ƒ ƒ | j ƒ d Sd S( Ns Sorry!s{ Looks like this chat room is quite popular and appears to be full! Be sure to visit other rooms and come back here later...s no reason givens Chat Room Access Declineds7 Your access to the chat room is declined. Reason: {0!r}s {0}( RE Rœ R Rë Rì R R, R! R] R^ R• RV Ra t ConfirmationDialogR9 ( R$ R² R³ Rp t textRN ( ( s C:\Python27\meet.pyt __showErrorMessageX s (
- c C s | j | j j j d ƒ ƒ d S( Ns Inviting: waiting for reply...( Rê R Rë Rì ( R$ ( ( s C:\Python27\meet.pyR÷ j s N( Rk Rl R RE R- R… R R R£ RÃ RL R§ R€ R¨ R R/ R¢ R¤ R© R£ R¦ Rª R« R¬ R R® R R R¶ R± R÷ ( ( ( s C:\Python27\meet.pyR‹ í s0 ! c c sV | j j ƒ r; | j j d ƒ r; t | | | | | ƒ Vn t | | | | | ƒ Vd S( Ns imq.chat_invites( R¤ RÕ R¥ t _waitForInvitet _pollForInvite( R% RC t decisionCallbackt startChatCallbackR¡ ( ( s C:\Python27\meet.pyt handleInviten s !c c sc y | j j i | d 6ƒ V} Wn$ t k
- rD t j d ƒ d } n Xt | | | | | | ƒ Vd S( NRC s checkForInvite2 failed( RÊ t checkForInvite2R R\ RÉ RE t
- _handleInvite( R% RC R¼ R½ R¡ t invite( ( s C:\Python27\meet.pyR» v s
- c # sg d t f ‡ f d † ƒ Y} t j d ƒ | ƒ } x. t rb | j V} t ˆ | | | | | ƒ Vq5 Wd S( Nt IMQInviteReceiverc s/ e Z ‡ f d † Z d „ Z e d „ ƒ Z RS( c s) d | _ ˆ j j ˆ j d | j ƒ d S( Ns ServerEvent.chatInvite( RE t _IMQInviteReceiver__futureR× t registert serverEventTransportt" _IMQInviteReceiver__inviteReceived( R$ ( R% ( s C:\Python27\meet.pyR ‡ s c S s2 | j r. | j } d | _ | j | j ƒ n d S( N( Rà RE t completeRi ( R$ t eventt future( ( s C:\Python27\meet.pyt __inviteReceivedŒ s
- c S s t j j ƒ | _ | j S( N( RV R t FutureRÃ ( R$ ( ( s C:\Python27\meet.pyRÉ “ s ( Rk Rl R RÆ R RÉ ( ( R% ( s C:\Python27\meet.pyRÂ … s s listening for IMQ chat invites( t objectR\ Ri R… RÉ RÀ ( R% RC R¼ R½ R¡ RÂ t receiverRÁ ( ( R% s C:\Python27\meet.pyRº ‚ s
- c # sÇ t ˆ ƒ t k o+ t ‡ f d † d Dƒ ƒ sB t j d ˆ ƒ d Sˆ d } ˆ d } ˆ d } ˆ d } ˆ d }
- | | | |
- ƒ V\ } } | t j k r't j d ƒ y¯ | j j i | d 6| d 6| d 6ƒ V}
- |
- j
- d
- ƒ r7| j j d ƒ } | j j d ƒ } | j
- j | t j j | | ƒ ƒ t t ƒ Vn | j j | | ƒ V} | |
- d <Wn t k
- rxt j d
- ƒ qÃXt j d |
- ƒ g | D] } t | d ƒ ^ q} | | k rÈ| | |
- ƒ qÃ| j j | ƒ V} | j j d | ƒ } | j j d ƒ } | j
- j | t j j | | ƒ ƒ nœ | t j k sE| t j k rÃt j d ƒ yM | j j i | d 6| d 6| d 6| d 6| t j k r’d n d d 6ƒ VWqÃt k
- r¿t j d ƒ qÃXn d S( Nc 3 s | ] } | ˆ k Vq d S( N( ( R RÀ ( RÁ ( s C:\Python27\meet.pys <genexpr>¡ s RË R RO R£ t inviters ignoring invite (%r)s Accepting chat invitationRC t expireds9 Sorry, the invite has expired and the room is unavailables Invite Has Expireds acceptInvite faileds acceptInvite returned %ss Oops, {0} has left the chats
- Chat Endeds Declining chat invitationRN t rejectedR t statuss declineInvite failed( RË R RO R£ RÎ ( RÅ R/ t allR\ R] Rƒ R„ Ri RÊ t acceptInviteR, Rë Rì R] R^ RV Ra R· R R- R' R RÉ Rÿ RZ R[ R! R… R‡ t
- declineInvite( R% RÁ RC R¼ R½ R¡ RË R RO R£ t partnerDatat decisionRN Rí R) Rp R2 t xt participantsRP ( ( RÁ s C:\Python27\meet.pyRÀ Ÿ sT .
- "
- #%
- %
- c c su y | j j | ƒ V} Wn t k
- r4 } t ƒ Vn X| j sq | j j | g ƒ V\ } | j rq t d ƒ Vqq n d S( Ns/ You can not invite a non-AP user to an AP room.( RZ t
- getAvatarInfoR[ R t hasAPt productInfoManagert getProductsByIdst
- requiresAP( R% RC R§ t
- avatarInfoR_ t productInfo( ( s C:\Python27\meet.pyt checkInviteSafetyÏ s t MeetSomeoneSessionc B sƒ e Z e d d „ Z e d „ ƒ Z d „ Z d „ Z d „ Z d „ Z
- d „ Z d „ Z e
- d d d „ ƒ Z d „ Z d
- „ Z RS( c
- C su t j | d | d | d | d | ƒ| | _ | | _ i | _ t j j | j ƒ | _ | | _ | j
- d t ƒ d S( NR% R& R R¡ RÚ ( Rr R t$ _MeetSomeoneSession__serviceProvidert# _MeetSomeoneSession__roomInstanceIdt# _MeetSomeoneSession__chatNowParams_RV R R t& _MeetSomeoneSession__avatarInfoManagert _MeetSomeoneSession__parentHwndRß R… ( R$ R% R& Rž R R¡ ( ( s C:\Python27\meet.pyR Þ s % c C s | j r | j d Sd Sd S( Ni ( Rƒ RE ( R$ ( ( s C:\Python27\meet.pyt __participantIdç s c C s d | j S( Ns Chat now-( Rã ( R$ ( ( s C:\Python27\meet.pyt getActivityï s c C s | j S( N( Rã ( R$ ( ( s C:\Python27\meet.pyR ò s c C s | j S( N( Rª ( R$ ( ( s C:\Python27\meet.pyR§ õ s c s4 ‡ f d † } | ˆ d d d d d g ƒ | _ d S( Nc s t ‡ f d † ˆ j ƒ Dƒ ƒ S( Nc 3 s- | ]# \ } } | ˆ k r | | f Vq d S( N( ( R RÀ t value( t filters( s C:\Python27\meet.pys <genexpr>û s ( R/ t iteritems( t
- collectionRê ( t
- chatParams( Rê s C:\Python27\meet.pyt filterú s t aget apR£ t gendert language( Rä ( R$ Rí Rî ( ( Rí s C:\Python27\meet.pyt setChatNowParamsø s c C s | j S( N( Rä ( R$ ( ( s C:\Python27\meet.pyt _getChatNowParams s c C s t S( N( R… ( R$ ( ( s C:\Python27\meet.pyR/ s c
- c s¶ | j j d d ƒ } d | } i | j d 6t d 6| d 6| j pF d d 6| pS t d 6| j d
- 6} | j j j | j | | j p… d d d d d d
- | j p d ƒV} t
- | ƒ Vd S( NRî t surprises Chat now-RC t versionRx i RË RÚ t
- chatNowParamsR¯ ( Rä R, Rª R R R… Râ RÊ R RE R ( R$ R RÚ Rî Rx R Rí ( ( s C:\Python27\meet.pyR s
- Cc C s0 | j d ƒ | j | j j j d ƒ d ƒ d S( Ns( MeetSomeoneSession: _showStillWaitingMsgs% Connecting you with another person...i ( R“ Rê Râ Rë Rì ( R$ ( ( s C:\Python27\meet.pyR÷ s
- c C s | j | j j j d ƒ ƒ d S( Ns Chat now! found someone...( Rê Râ Rë Rì ( R$ ( ( s C:\Python27\meet.pyRò s N( Rk Rl R RE R R t" _MeetSomeoneSession__participantIdRè R R§ Ró Rô R/ R R R÷ Rò ( ( ( s C:\Python27\meet.pyRá Ü s
- (I t loggingRæ R Rv R t imvu.taskR R R R R R R R R{ R R
- R R t imvu.imq.MQManagerR
- t imvu.imq.imqconnectionR RV t imvu.task.utilR R t imvu.versionR t imvu.networkR R t imvu.utilR t im.commont imvu.sessionR t imvu.fst imvu.gatewayt imvu.gateway.AvatarInfoManagerR t imvu.translationR R t getLoggerRk R\ t ConnectionLostMessageR t ERROR_CHAT_FULLt ERROR_CHAT_EMPTYt ERROR_CHAT_NOT_PUBLICR˜ R™ Rš R› Rœ R RÌ Rm Rw Rr Rƒ Rˆ t DEFAULT_PUBLIC_ROOM_TITLER‹ RE R¾ R» Rº RÀ Rà Rá ( ( ( s C:\Python27\meet.pyt <module> sd R M"ÿ ÿ [0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement