Changeset 1269
- Timestamp:
- 03/07/06 15:55:19 (15 years ago)
- Location:
- TI05-delivery/trunk
- Files:
-
- 3 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
TI05-delivery/trunk/lib/python/delivery/server.py
r1268 r1269 176 176 #-------------------------------------------------------------------------------------------------------------- 177 177 178 class BasicClientAuthHandler(AuthHandler):179 """180 This class makes communicating with the stand alone bbftp client slightly easier.181 Mainly for use during testing.182 """183 184 def recvCStr(self):185 """Receive a message from the client which may contain \\0 characters indicating message end.186 187 The message is truncated to the first \\0 character.188 189 @return a string containing the message received.190 """191 192 msg = self.recv()193 # Trim to first '\0'194 x = msg.find('\0')195 if x:196 msg = msg[:x]197 198 return msg199 200 201 178 202 179 class LiberalAuthzHandler(AuthzHandler): -
TI05-delivery/trunk/test/test_embedded.py
r1264 r1269 27 27 28 28 29 class TestAuthHandler(server. BasicClientAuthHandler):29 class TestAuthHandler(server.AuthHandler): 30 30 31 31 def authenticate(self): … … 77 77 return self.authzPath(path) 78 78 79 def authzS end(self, path):79 def authzStore(self, path): 80 80 return self.authzPath(path) 81 81
Note: See TracChangeset
for help on using the changeset viewer.