From 5c39a9e0408e80b5b384a478ef9d8fcff1f04f77 Mon Sep 17 00:00:00 2001 From: Evan Broder Date: Sun, 15 Mar 2009 16:12:05 -0400 Subject: [PATCH] Move the PTS.__cinit__ docstring to being the class docstring. That way it actually gets displayed. Signed-off-by: Evan Broder --- afs/_pts.pyx | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/afs/_pts.pyx b/afs/_pts.pyx index 50f6002..5ba1c4f 100644 --- a/afs/_pts.pyx +++ b/afs/_pts.pyx @@ -38,23 +38,23 @@ cdef import from "afs/pterror.h": void initialize_PT_error_table() cdef class PTS: + """ + A PTS object is essentially a handle to talk to the server in a + given cell. + + cell defaults to None. If no argument is passed for cell, PTS + connects to the home cell. + + sec is the security level, an integer from 0 to 3: + - 0: unauthenticated connection + - 1: try authenticated, then fall back to unauthenticated + - 2: fail if an authenticated connection can't be established + - 3: same as 2, plus encrypt all traffic to the protection + server + """ cdef ubik_client * client def __cinit__(self, cell=None, sec=1): - """ - Open a connection to the protection server. A PTS object is - essentially a handle to talk to the server in a given cell. - - cell defaults to None. If no argument is passed for cell, PTS - connects to the home cell. - - sec is the security level, an integer from 0 to 3: - - 0: unauthenticated connection - - 1: try authenticated, then fall back to unauthenticated - - 2: fail if an authenticated connection can't be established - - 3: same as 2, plus encrypt all traffic to the protection - server - """ cdef afs_int32 code cdef afsconf_dir *cdir cdef afsconf_cell info -- 1.7.9.5