Chore Account server

Check-in [9177c5536e]
Login

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

Overview
Comment:Edge case
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | master | trunk
Files: files | file ages | folders
SHA3-256:9177c5536e548aa135f7b5ef767c2c69fcebc526219198eff2194fa9a5ff95e6
User & Date: ajv-899-334-8894@vsta.org 2016-10-26 23:15:09
Context
2016-10-31
21:28
Bringup, account server connection check-in: 26b310cf55 user: ajv-899-334-8894@vsta.org tags: master, trunk
2016-10-26
23:15
Edge case check-in: 9177c5536e user: ajv-899-334-8894@vsta.org tags: master, trunk
23:13
Drop some pdb hooks. Add version to redir target to sidestep cache check-in: 80164f8171 user: ajv-899-334-8894@vsta.org tags: master, trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to get.py.

56
57
58
59
60
61
62

63
64
65
66
67
68
69
70
71
72
73
74
75

76
77





78
79
80

        # Hostname they used to reach us, should be
        #  <host>:<port#>
        host = self.headers.get("host").split(":")[0]
        if services is None:
            buf += "<i>No services are configured for you?</i>"
        else:

            buf += "<ul>\n"
            for nm,cfg in services.iteritems():
                # Get service configuration; we need their port number
                #  to build the URL our client can use to reach it.
                if nm not in app.services:
                    # Don't list services which are not started
                    continue
                sport = app.services[nm][1]

                # Service URL
                surl = "http%s://%s:%d" % \
                 (("s" if server.ssl else ""), host, sport)
                buf += ' <li><a href="%s">%s</a></li>\n' % (surl, nm)


            buf += "</ul>\n"





        buf = self.build_tailer(buf)

        return buf







>













>


>
>
>
>
>



56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87

        # Hostname they used to reach us, should be
        #  <host>:<port#>
        host = self.headers.get("host").split(":")[0]
        if services is None:
            buf += "<i>No services are configured for you?</i>"
        else:
            nservice = 0
            buf += "<ul>\n"
            for nm,cfg in services.iteritems():
                # Get service configuration; we need their port number
                #  to build the URL our client can use to reach it.
                if nm not in app.services:
                    # Don't list services which are not started
                    continue
                sport = app.services[nm][1]

                # Service URL
                surl = "http%s://%s:%d" % \
                 (("s" if server.ssl else ""), host, sport)
                buf += ' <li><a href="%s">%s</a></li>\n' % (surl, nm)
                nservice += 1

            buf += "</ul>\n"

            # Edge case
            if not nservice:
                buf += '<h3>No services are running yet!</h3>'

        buf = self.build_tailer(buf)

        return buf