Changeset 1124 for TI05-delivery/trunk
- Timestamp:
- 07/06/06 14:15:40 (15 years ago)
- Location:
- TI05-delivery/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
TI05-delivery/trunk/src/python_ext/bbftpd.c
r1100 r1124 54 54 } 55 55 56 if ((authzContext = PyObject_Call Method(authContext, "authorise", "")) == NULL) {56 if ((authzContext = PyObject_CallObject(authContext, NULL)) == NULL) { 57 57 //!TODO: should probably read the exception object to fill logmessage. 58 58 sprintf(logmessage, "bbftpd_private_auth_callback: authContext.authorise() failed"); -
TI05-delivery/trunk/test/test_embedded.py
r1104 r1124 30 30 31 31 class AuthContext: 32 def authorise(self):32 def __call__(self): 33 33 # Read the auth version message 34 34 msg = bbftpd.recv() … … 56 56 57 57 class FailingAuthContext(AuthContext): 58 def authorise(self):58 def __call__(self): 59 59 az = super(FailingAuthContext).authorise() 60 60 return None
Note: See TracChangeset
for help on using the changeset viewer.