- Timestamp:
- 05/13/2008 09:25:42 PM (14 months ago)
- Location:
- pyamf/trunk/pyamf
- Files:
-
- 3 modified
-
flex/messaging.py (modified) (1 diff)
-
remoting/amf3.py (modified) (1 diff)
-
tests/remoting/test_remoteobject.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
pyamf/trunk/pyamf/flex/messaging.py
r1375 r1376 171 171 UNSUBSCRIBE_OPERATION = 1 172 172 173 DISCONNECT_OPERATION = 12 174 173 175 def __init__(self, *args, **kwargs): 174 176 AsyncMessage.__init__(self, *args, **kwargs) -
pyamf/trunk/pyamf/remoting/amf3.py
r1333 r1376 110 110 elif ro_request.operation == CommandMessage.LOGIN_OPERATION: 111 111 raise ServerCallFailed, "Authorisation is not supported in RemoteObject" 112 elif ro_request.operation == CommandMessage.DISCONNECT_OPERATION: 113 return remoting.Response(ro_response) 112 114 else: 113 115 raise ServerCallFailed, "Unknown command operation %s" % ro_request.operation -
pyamf/trunk/pyamf/tests/remoting/test_remoteobject.py
r1333 r1376 176 176 self.assertEquals(ack.body, None) 177 177 178 def test_disconnect(self): 179 message = messaging.CommandMessage(operation=12) 180 rp = amf3.RequestProcessor(None) 181 request = remoting.Request('null', body=[message]) 182 183 response = rp(request) 184 ack = response.body 185 186 print ack 187 self.assertTrue(isinstance(response, remoting.Response)) 188 self.assertEquals(response.status, remoting.STATUS_OK) 189 self.assertTrue(isinstance(ack, messaging.AcknowledgeMessage)) 178 190 179 191 def suite():
