wepub

Check-in [db7a51a379]
Login

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

Overview
Comment:Convert to account server
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | master | trunk
Files: files | file ages | folders
SHA3-256:db7a51a379edb23ea2ce7a8ef29f2074d9e0bf3f899d5de2432f99a43cf62eeb
User & Date: ajv-899-334-8894@vsta.org 2016-11-17 17:33:33
Context
2016-11-20
01:05
Directly register w. account server, so we get a service directory. check-in: eb1051541a user: ajv-899-334-8894@vsta.org tags: master, trunk
2016-11-17
17:33
Convert to account server check-in: db7a51a379 user: ajv-899-334-8894@vsta.org tags: master, trunk
17:30
Return to previous position check-in: 903e492aa3 user: ajv-899-334-8894@vsta.org tags: master, trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to .gitignore.

1
2
3

*.pyc
chore
var




>
1
2
3
4
*.pyc
chore
var
certs

Changes to main.py.

1
2
3
4
5
6
7
8

9
10
11
12
13
14
15
16
17
18
19


20
21
22
23
24
25
26
..
35
36
37
38
39
40
41
42
43
44
45
46
47




48
49
50
51
52
53
54
#
# main.py
#	Main driver for WWW-Usenet interface
#
import sys, time
import chore
from get import GET_mixin
from put import PUT_mixin


# Tie our various handlers together
class App_Handler(chore.handlers.Chore_Handler, GET_mixin, PUT_mixin,
        chore.authen.Authen_mixin):
    def __init__(self, conn, tup, approot):

        # Cookie, or back to accounts file
        self.authentication = (self.auth_cookie, self.auth_password)

	chore.handlers.Chore_Handler.__init__(self, conn, tup, approot,
	    (GET_mixin.__init__,PUT_mixin.__init__))



# Load our configuration file
#
# This includes configuring our config file elements,
#  then processing the supplied file.
def load_cfg(fn):

................................................................................
    c.mults.add( ("files",) )
    c.onearg.add( ("files", "path") )

    # Parse the input
    return c.load_cfg(fn)

# Root of our app server
class App(chore.server.Server):

    def __init__(self, config):
	# Let Chore handle most things
	chore.server.Server.__init__(self, config, App_Handler);





if __name__ == "__main__":
    if len(sys.argv) != 2:
	sys.stderr.write("Usage is: %s <config-file>\n" %
	    (sys.argv[0],))
	sys.exit(1)

    # Create the server with config


|





>



|

<
<
<
<

|
>
>







 







|





>
>
>
>







1
2
3
4
5
6
7
8
9
10
11
12
13
14




15
16
17
18
19
20
21
22
23
24
25
..
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#
# main.py
#	Main driver for ePub web reader
#
import sys, time
import chore
from get import GET_mixin
from put import PUT_mixin
from chore.authen import Authen_mixin, Authen_Server_mixin

# Tie our various handlers together
class App_Handler(chore.handlers.Chore_Handler, GET_mixin, PUT_mixin,
        Authen_mixin):
    def __init__(self, conn, tup, approot):




	chore.handlers.Chore_Handler.__init__(self, conn, tup, approot,
	    (GET_mixin.__init__,
             PUT_mixin.__init__,
             Authen_mixin.__init__))

# Load our configuration file
#
# This includes configuring our config file elements,
#  then processing the supplied file.
def load_cfg(fn):

................................................................................
    c.mults.add( ("files",) )
    c.onearg.add( ("files", "path") )

    # Parse the input
    return c.load_cfg(fn)

# Root of our app server
class App(chore.server.Server, Authen_Server_mixin):

    def __init__(self, config):
	# Let Chore handle most things
	chore.server.Server.__init__(self, config, App_Handler);

        # Use authentication server
        Authen_Server_mixin.__init__(self)
        self.authentication.append(Authen_mixin.auth_server)

if __name__ == "__main__":
    if len(sys.argv) != 2:
	sys.stderr.write("Usage is: %s <config-file>\n" %
	    (sys.argv[0],))
	sys.exit(1)

    # Create the server with config

Deleted var/cookies/README.txt.

1
Cookies are stored here for sessions
<