Chore Account server

Check-in [6e9e3d2bcf]
Login

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

Overview
Comment:Get server name into title so bookmarks are more descriptive
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | master | trunk
Files: files | file ages | folders
SHA3-256:6e9e3d2bcf151fe1c24b785bd62aad6a0d97e0c741573a466f1f4b3e1a7c9096
User & Date: ajv-899-334-8894@vsta.org 2016-11-30 20:27:32
Context
2016-11-30
22:48
Make UDS group protection friendly check-in: a1cb0fe2a0 user: ajv-899-334-8894@vsta.org tags: master, trunk
20:27
Get server name into title so bookmarks are more descriptive check-in: 6e9e3d2bcf user: ajv-899-334-8894@vsta.org tags: master, trunk
2016-11-27
18:34
Fix config handling. Add per-user config items for imap. check-in: 0977f2e88c user: ajv-899-334-8894@vsta.org tags: master, trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to get.py.

43
44
45
46
47
48
49

50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
        return self.send_result(buf, "text/html")

    # Show portal of services
    def send_portal(self):
        srv = self.server
        app = srv.approot


        buf = self.build_header("%sService Portal" %
            ("SSL " if srv.ssl else "",))
        buf += "<h3>Choose a service:</h3><br>\n"
        cfg = app.accts.get(self.user)
        if cfg is None:
            raise Exception, "Unknown account authenticated"
        services = cfg.get("serve")

        # 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







>
|
|








<







43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60

61
62
63
64
65
66
67
        return self.send_result(buf, "text/html")

    # Show portal of services
    def send_portal(self):
        srv = self.server
        app = srv.approot

        host = self.headers["host"].split(":")[0]
        buf = self.build_header("%s %sService Portal" %
            (host, "SSL " if srv.ssl else "",))
        buf += "<h3>Choose a service:</h3><br>\n"
        cfg = app.accts.get(self.user)
        if cfg is None:
            raise Exception, "Unknown account authenticated"
        services = cfg.get("serve")

        # Hostname they used to reach us, should be
        #  <host>:<port#>

        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