Ralph Meijer avatar Ralph Meijer committed 222c8fe

Use alice, bob and charlie as account names.

Comments (0)

Files changed (2)

c2s_stanza_handlers.patch

 # HG changeset patch
-# Parent 41c2620133080ea88612732ff211561c660cfdec
+# Parent 0010b81dc2caab48246d1e3d3d4f555af549688c
 Add c2s protocol handlers for iq, message and presence stanzas.
 
 TODO:
 +import socket
 +domain = socket.gethostname()
 +
-+RALPHM = JID('ralphm@'+domain)
-+INTOSI = JID('intosi@'+domain)
-+TERMIE = JID('termie@'+domain)
++ALICE = JID('alice@'+domain)
++BOB = JID('bob@'+domain)
++CHARLIE = JID('charlie@'+domain)
 +
 +roster = {
-+    'ralphm': {
-+        INTOSI: RosterItem(INTOSI,
++    'alice': {
++        BOB: RosterItem(BOB,
 +                           subscriptionTo=True,
 +                           subscriptionFrom=True,
-+                           name='Intosi',
-+                           groups=set(['Friends'])),
-+        TERMIE: RosterItem(TERMIE,
++                           name='Bob'),
++        CHARLIE: RosterItem(CHARLIE,
 +                           subscriptionTo=True,
 +                           subscriptionFrom=True,
-+                           name='termie'),
++                           name='Charlie',
++                           groups=set(['Friends'])),
 +        },
-+    'termie': {
-+        RALPHM: RosterItem(RALPHM,
++    'bob': {
++        ALICE: RosterItem(ALICE,
 +                           subscriptionTo=True,
 +                           subscriptionFrom=True,
-+                           name='ralphm'),
++                           name='Alice'),
 +        }
 +    }
 +
 +sessionManager = client.SessionManager(domain, accounts)
 +sessionManager.setHandlerParent(component)
 +
-+checker = InMemoryUsernamePasswordDatabaseDontUse(ralphm='secret',
-+                                                  termie='secret')
++checker = InMemoryUsernamePasswordDatabaseDontUse(alice='secret',
++                                                  bob='secret')
 +portal = Portal(sessionManager, (checker,))
 +portals = {JID(domain): portal}
 +
 roster_server.patch #+c2s
 router_unknown.patch #+c2s
+
 listening-authenticator-stream-features.patch #+c2s
-
 client_listen_authenticator.patch #+c2s
 
 c2s_server_factory.patch #+c2s
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.