HUE-1660 [core] Export/import all stored scripts

Review Request #4299 — Created April 1, 2014 and updated

abec
old-hue-rw
HUE-1660
hue
enricoberti, romain
commit 14898336e67675087847724131a4b186f4edd973
Author: Abraham Elmahrek <abraham@elmahrek.com>
Date:   Tue Mar 25 16:45:17 2014 -0700

    HUE-1660 [core] Export/import all stored scripts
    
    Use jsonpickle libraries for serialization.
    Create hierarchy of relationships by providing wrapper objects that store
    m2m, m2o, and gfk information.
    Use mapping when deserializing and provide iterative solution.
    
    Add 'filename' and 'filedata' hooks so that users have files that can be
    modified.

:100644 100644 c5dbbef... 4adc0fb... M	apps/beeswax/src/beeswax/models.py
:000000 100644 0000000... 5e94808... A	desktop/core/ext-py/jsonpickle-0.7.0/COPYING
:000000 100644 0000000... da90d4a... A	desktop/core/ext-py/jsonpickle-0.7.0/MANIFEST.in
:000000 100644 0000000... d308fb8... A	desktop/core/ext-py/jsonpickle-0.7.0/PKG-INFO
:000000 100644 0000000... 4adb4ba... A	desktop/core/ext-py/jsonpickle-0.7.0/README.rst
:000000 100644 0000000... 91b5fbe... A	desktop/core/ext-py/jsonpickle-0.7.0/Rakefile
:000000 100644 0000000... a944ae0... A	desktop/core/ext-py/jsonpickle-0.7.0/docs/source/api.rst
:000000 100644 0000000... 4783834... A	desktop/core/ext-py/jsonpickle-0.7.0/docs/source/changelog.rst
:000000 100644 0000000... 8be2120... A	desktop/core/ext-py/jsonpickle-0.7.0/docs/source/conf.py
:000000 100644 0000000... 7c094e6... A	desktop/core/ext-py/jsonpickle-0.7.0/docs/source/contrib.rst
:000000 100644 0000000... 16827c9... A	desktop/core/ext-py/jsonpickle-0.7.0/docs/source/index.rst
:000000 100644 0000000... 7e57ffc... A	desktop/core/ext-py/jsonpickle-0.7.0/jsonpickle/__init__.py
:000000 100644 0000000... 8e7f8af... A	desktop/core/ext-py/jsonpickle-0.7.0/jsonpickle/_samples.py
:000000 100644 0000000... 57aeede... A	desktop/core/ext-py/jsonpickle-0.7.0/jsonpickle/backend.py
:000000 100644 0000000... 0c920b2... A	desktop/core/ext-py/jsonpickle-0.7.0/jsonpickle/compat.py
:000000 100644 0000000... 2ac898f... A	desktop/core/ext-py/jsonpickle-0.7.0/jsonpickle/handlers.py
:000000 100644 0000000... 71fc05b... A	desktop/core/ext-py/jsonpickle-0.7.0/jsonpickle/pickler.py
:000000 100644 0000000... 10c7ce8... A	desktop/core/ext-py/jsonpickle-0.7.0/jsonpickle/tags.py
:000000 100644 0000000... c8f1e83... A	desktop/core/ext-py/jsonpickle-0.7.0/jsonpickle/unpickler.py
:000000 100644 0000000... bb88166... A	desktop/core/ext-py/jsonpickle-0.7.0/jsonpickle/util.py
:000000 100644 0000000... 2810d0a... A	desktop/core/ext-py/jsonpickle-0.7.0/jsonpickle/version.py
:000000 100644 0000000... 8d8fb90... A	desktop/core/ext-py/jsonpickle-0.7.0/requirements-2.txt
:000000 100644 0000000... 8d0f5c0... A	desktop/core/ext-py/jsonpickle-0.7.0/requirements-3.txt
:000000 100644 0000000... e0d7513... A	desktop/core/ext-py/jsonpickle-0.7.0/requirements-test.txt
:000000 100644 0000000... 8d8fb90... A	desktop/core/ext-py/jsonpickle-0.7.0/requirements.txt
:000000 100644 0000000... 861a9f5... A	desktop/core/ext-py/jsonpickle-0.7.0/setup.cfg
:000000 100644 0000000... 2d406df... A	desktop/core/ext-py/jsonpickle-0.7.0/setup.py
:000000 100644 0000000... 1862056... A	desktop/core/ext-py/jsonpickle-0.7.0/tests/backends_tests.py
:000000 100755 0000000... 6a4f8ea... A	desktop/core/ext-py/jsonpickle-0.7.0/tests/benchmark.py
:000000 100644 0000000... 9783964... A	desktop/core/ext-py/jsonpickle-0.7.0/tests/datetime_tests.py
:000000 100644 0000000... d98e6ad... A	desktop/core/ext-py/jsonpickle-0.7.0/tests/document_test.py
:000000 100644 0000000... a7f21a8... A	desktop/core/ext-py/jsonpickle-0.7.0/tests/handler_tests.py
:000000 100644 0000000... 920761e... A	desktop/core/ext-py/jsonpickle-0.7.0/tests/jsonpickle_test.py
:000000 100755 0000000... 7bafe49... A	desktop/core/ext-py/jsonpickle-0.7.0/tests/runtests.py
:000000 100644 0000000... b069641... A	desktop/core/ext-py/jsonpickle-0.7.0/tests/thirdparty_tests.py
:000000 100644 0000000... ac9c1cb... A	desktop/core/ext-py/jsonpickle-0.7.0/tests/util_tests.py
:100644 100644 57af8c0... 34abe59... M	desktop/core/src/desktop/api.py
:100644 100644 fddbb94... c72a0a6... M	desktop/core/src/desktop/api_tests.py
:000000 100644 0000000... 393f2fc... A	desktop/core/src/desktop/forms.py
:100644 100644 3c6085d... e22601d... M	desktop/core/src/desktop/lib/django_util.py
:000000 100644 0000000... 4e5f36d... A	desktop/core/src/desktop/lib/document_serializers.py
:000000 100644 0000000... 4d3791e... A	desktop/core/src/desktop/migrations/0008_auto__add_field_document_uid.py
:000000 100644 0000000... 1a548a4... A	desktop/core/src/desktop/migrations/0009_initial_uuid_values.py
:100644 100644 ad1af98... 7acb2e7... M	desktop/core/src/desktop/models.py
:100644 100644 708d1ae... ed514c2... M	desktop/core/src/desktop/templates/home.mako
:100644 100644 47c0355... 0205092... M	desktop/core/src/desktop/urls.py
:100644 100644 d2fabca... 5fa33d8... M	desktop/core/src/desktop/views.py
:100644 100644 3313b33... a08f456... M	desktop/core/static/ext/js/fileuploader.js
Prototype #5. Like #4, except iterative and mapping based.

also add some error handling.
romain
  1. If each object/model has a UUID field and we use natural keys, would it work?
    1. For me this wasn't working. It's entirely possible I was missing something though. The implementation of serializing and deserializing natural keys seems a bit complex. We also run into the issue that object primary keys when serialized cannot be natural keys. We would have to manage dependency resolution for that on our own as well. It seems that functionality was added to django 1.7 though: https://docs.djangoproject.com/en/dev/ref/django-admin/#django-admin-option---natural-primary.
  2. 
      
abec
Review request changed
Loading...