Fix _unserialize of reply headers
authorPeter Harris <pharris@opentext.com>
Thu, 23 Sep 2010 03:15:38 +0000 (23:15 -0400)
committerPeter Harris <pharris@opentext.com>
Thu, 23 Sep 2010 03:16:33 +0000 (23:16 -0400)
This cleans up a number of warnings, and passes the sequence number
through correctly.

Signed-off-by: Peter Harris <pharris@opentext.com>
src/c_client.py

index 1f3277a..91719b7 100644 (file)
@@ -925,8 +925,9 @@ def _c_serialize_helper_fields(context, self,
     prev_field_was_variable = False
 
     for field in self.fields:
-        if not ((field.wire and not field.auto) or field.visible):
-            continue
+        if not field.visible:
+            if not ((field.wire and not field.auto) or 'unserialize' == context):
+                continue
 
         # switch/bitcase: fixed size fields must be considered explicitly 
         if field.type.fixed_size():