webXMPP

Check-in [ba6eb42033]
Login

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

Overview
Comment:Long cookie life
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | master | trunk
Files: files | file ages | folders
SHA3-256:ba6eb4203346cd8d127b28764dc1b703a9edb1eef2a9f849a8522491f4511e63
User & Date: ajv-899-334-8894@vsta.org 2018-03-12 14:59:30
Context
2018-03-12
14:59
Fix typo. Include our own input in user history. check-in: a9af2b1f5e user: ajv-899-334-8894@vsta.org tags: master, trunk
14:59
Long cookie life check-in: ba6eb42033 user: ajv-899-334-8894@vsta.org tags: master, trunk
2018-01-18
00:31
Two features: SMS blacklist Adjust config now that we have two SMS config params (acceptable submitters for REST, and blacklist pattern) And yes, blacklisting of numbers, just a simple string match Also a telnet interface, so there's now CLI-friendly messaging. check-in: dd233913a4 user: ajv-899-334-8894@vsta.org tags: master, trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to main.py.

48
49
50
51
52
53
54




55
56
57
58
59
60
61

	ok = webxmpp.start_user(self.user)
	if not ok:
	    sys.stderr.write(
	     "Cookie for missing user: %s\n" % (self.user,))
	    # Just bail this service
	    raise Exception, "Missing user"





# Config file
def load_cfg(fn):
    c = chore.config.Config()

    # Web server config
    chore.www.add_config(c)







>
>
>
>







48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65

	ok = webxmpp.start_user(self.user)
	if not ok:
	    sys.stderr.write(
	     "Cookie for missing user: %s\n" % (self.user,))
	    # Just bail this service
	    raise Exception, "Missing user"

    # Make cookies last a whole year
    def cookie_expires(self):
	return 60*60*24*365

# Config file
def load_cfg(fn):
    c = chore.config.Config()

    # Web server config
    chore.www.add_config(c)