Changeset 67:222c8fef50f3 in ralphm-patches


Ignore:
Timestamp:
Sep 1, 2012, 2:20:59 PM (8 years ago)
Author:
Ralph Meijer <ralphm@…>
Branch:
default
Message:

Use alice, bob and charlie as account names.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c2s_stanza_handlers.patch

    r66 r67  
    11# HG changeset patch
    2 # Parent 41c2620133080ea88612732ff211561c660cfdec
     2# Parent 0010b81dc2caab48246d1e3d3d4f555af549688c
    33Add c2s protocol handlers for iq, message and presence stanzas.
    44
     
    2929+domain = socket.gethostname()
    3030+
    31 +RALPHM = JID('ralphm@'+domain)
    32 +INTOSI = JID('intosi@'+domain)
    33 +TERMIE = JID('termie@'+domain)
     31+ALICE = JID('alice@'+domain)
     32+BOB = JID('bob@'+domain)
     33+CHARLIE = JID('charlie@'+domain)
    3434+
    3535+roster = {
    36 +    'ralphm': {
    37 +        INTOSI: RosterItem(INTOSI,
     36+    'alice': {
     37+        BOB: RosterItem(BOB,
    3838+                           subscriptionTo=True,
    3939+                           subscriptionFrom=True,
    40 +                           name='Intosi',
    41 +                           groups=set(['Friends'])),
    42 +        TERMIE: RosterItem(TERMIE,
     40+                           name='Bob'),
     41+        CHARLIE: RosterItem(CHARLIE,
    4342+                           subscriptionTo=True,
    4443+                           subscriptionFrom=True,
    45 +                           name='termie'),
     44+                           name='Charlie',
     45+                           groups=set(['Friends'])),
    4646+        },
    47 +    'termie': {
    48 +        RALPHM: RosterItem(RALPHM,
     47+    'bob': {
     48+        ALICE: RosterItem(ALICE,
    4949+                           subscriptionTo=True,
    5050+                           subscriptionFrom=True,
    51 +                           name='ralphm'),
     51+                           name='Alice'),
    5252+        }
    5353+    }
     
    7777+sessionManager.setHandlerParent(component)
    7878+
    79 +checker = InMemoryUsernamePasswordDatabaseDontUse(ralphm='secret',
    80 +                                                  termie='secret')
     79+checker = InMemoryUsernamePasswordDatabaseDontUse(alice='secret',
     80+                                                  bob='secret')
    8181+portal = Portal(sessionManager, (checker,))
    8282+portals = {JID(domain): portal}
  • series

    r66 r67  
    11roster_server.patch #+c2s
    22router_unknown.patch #+c2s
     3
    34listening-authenticator-stream-features.patch #+c2s
    4 
    55client_listen_authenticator.patch #+c2s
    66
Note: See TracChangeset for help on using the changeset viewer.