(self, from_obj, to_obj)
| 146 | self.right = right |
| 147 | |
| 148 | def assign(self, from_obj, to_obj): |
| 149 | # Fetch the value of the right expression. |
| 150 | if self.right is not None: |
| 151 | right = self.right |
| 152 | else: |
| 153 | right = from_obj.get_data(self.right_attribute) |
| 154 | to_obj.set_data(**{str(self.left_attribute): right}) |
| 155 | |
| 156 | def serialize(self, serializer): |
| 157 | """ |