(self)
Removes fields' values that are the same as default values.
Removes fields' values that are the same as default values.
Removes fields values that are the same as default values .
def hide_defaults(self):
        """Removes fields' values that are the same as default values."""
        for k in self.fields.keys():
            if self.default_fields.has_key(k):
                if self.default_fields[k] == self.fields[k]:
                    del(self.fields[k])
        self.payload.hide_defaults()
def hide_defaults ( self ) : for k in self . fields . keys ( ) : if self . default_fields . has_key ( k ) : if self . default_fields [ k ] == self . fields [ k ] : del ( self . fields [ k ] ) self . payload . hide_defaults ( )