Ignore:
Timestamp:
15/06/06 15:51:43 (13 years ago)
Author:
spascoe
Message:

Defined constants used by bbftp in delivery.server.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI05-delivery/trunk/lib/python/delivery/server.py

    r1187 r1195  
    1111 
    1212import bbftpd 
     13 
     14class TROPT: 
     15    """Static class containing constants used by bbftp in the transferoption parameter. 
     16 
     17    TROPT.X always corresponds to TROPT_X as defined in bbftpd/structures.h. 
     18    Options that aren't likely to be used for the delivery service are not 
     19    included (e.g. TROPT_RFIO). 
     20 
     21    @cvar TMP always use temporary name. 
     22    @cvar ACC keep access and modification time. 
     23    @cvar MODE keep mode. 
     24    @cvar DIR create all dirs in path. 
     25    """ 
     26    TMP = bbftpd.TROPT_TMP 
     27    ACC = bbftpd.TROPT_ACC 
     28    MODE = bbftpd.TROPT_MODE 
     29    DIR = bbftpd.TROPT_DIR 
     30 
     31class MSG: 
     32    """Static class containing message codes used by bbftp. 
     33 
     34    MSG.X corresponds to MSG_X or MSG_X_V2 as defined in bbftpd/structures.h. 
     35    Message codes not returned by the auth/authz interface are not included. 
     36 
     37    @cvar CHDIR a chdir request. 
     38    @cvar LIST a ls/dir request. 
     39    @cvar MKDIR a mkdir request. 
     40    @cvar RM a rm request. 
     41    @cvar STAT a stat request. 
     42    @cvar DF a statfs request. 
     43    """ 
     44    CHDIR = bbftpd.MSG_CHDIR_V2 
     45    LIST = bbftpd.MSG_LIST_V2 
     46    MKDIR = bbftpd.MSG_MKDIR_V2 
     47    RM = bbftpd.MSG_RM 
     48    STAT = bbftpd.MSG_STAT 
     49    DF = bbftpd.MSG_DF 
     50     
     51 
     52#-------------------------------------------------------------------------------------------------------------- 
    1353 
    1454def start(authHandler, args): 
Note: See TracChangeset for help on using the changeset viewer.