Uploaded image for project: 'Nuxeo Drive '
  1. Nuxeo Drive
  2. NXDRIVE-1277

Review objects state export

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.1.1
    • Fix Version/s: 4.1.3
    • Component/s: Framework

      Description

      Currently, we have this method in gui/dialog.py:

      def _json_default(self, obj: Any) -> Any:
      	if isinstance(obj, Action):
      		return self._export_action(obj)
      	if isinstance(obj, Engine):
      		return self._export_engine(obj)
      	if isinstance(obj, Notification):
      		return self._export_notification(obj)
      	if isinstance(obj, StateRow):
      		return self._export_state(obj)
      	if isinstance(obj, Worker):
      		return self._export_worker(obj)
      	return obj
      

      Simply add the appropriate export() method to concerned objects.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 4 hours
                  4h