Chore Account server

Check-in [983353d070]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Old pdb hook
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | master | trunk
Files: files | file ages | folders
SHA3-256:983353d0704caccebe11e2617a97ca60e0abafeb7d0e16dc537c41d4c2a17148
User & Date: ajv-899-334-8894@vsta.org 2016-11-14 17:35:20
Context
2016-11-17
17:21
Move to firewall-friendly port numbering (can pass a simple range for all external ports). Point at our SSL cert (thanks, letsencrypt!) check-in: 6a294b69d2 user: ajv-899-334-8894@vsta.org tags: master, trunk
2016-11-14
17:35
Old pdb hook check-in: 983353d070 user: ajv-899-334-8894@vsta.org tags: master, trunk
2016-11-13
20:09
Bringup, account server check-in: 82fbdb4e98 user: ajv-899-334-8894@vsta.org tags: master, trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to main.py.

     1      1   #
     2      2   # account.py
     3      3   #	Manage user accounts across chore services
     4      4   #
     5         -import pdb
     6      5   import sys, os, threading, socket, json
     7      6   import chore
     8      7   from get import GET_mixin
     9      8   from post import POST_mixin
    10      9   
    11     10   # Extra chars for service names, beyond isalnum()
    12     11   OkChars = set([' ', '_'])
................................................................................
   238    237                   (self.magics[resp] != req["magic"]):
   239    238               sys.stderr.write("Bad magic from '%s'\n" % (resp,))
   240    239               return
   241    240   
   242    241           # Check cookie
   243    242           if op == "cookie?":
   244    243               # Correct format?
   245         -            pdb.set_trace()
   246    244               tup = chore.authen.parse_cookie(req.get("cookie", "XXX"))
   247    245               if tup is None:
   248    246                   self.reply("?format", req)
   249    247                   return
   250    248   
   251    249               # Ok cookie value?
   252    250               user,cookie = tup