split engine/ into manifold/ (backend oriented) and unfold/ (the UI)
authorThierry Parmentelat <thierry.parmentelat@inria.fr>
Mon, 18 Mar 2013 13:13:06 +0000 (14:13 +0100)
committerThierry Parmentelat <thierry.parmentelat@inria.fr>
Mon, 18 Mar 2013 13:13:06 +0000 (14:13 +0100)
36 files changed:
Makefile
README
auth/manifoldbackend.py
manifold/__init__.py [moved from engine/__init__.py with 100% similarity]
manifold/manifoldapi.py [moved from engine/manifoldapi.py with 100% similarity]
manifold/manifoldproxy.py [moved from engine/manifoldproxy.py with 95% similarity]
manifold/manifoldquery.py [moved from engine/manifoldquery.py with 100% similarity]
myslice/settings.py
myslice/urls.py
plugins/lists/simplelist.py
plugins/lists/staticlist.py
plugins/querycode/querycode.py
plugins/quickfilter/quickfilter.py
plugins/raw/raw.py
plugins/tabs/tabs.py
plugins/verticallayout/verticallayout.py
trash/dashboard.py
trash/pluginview.py
trash/sampleviews.py
unfold/__init__.py [new file with mode: 0644]
unfold/composite.py [moved from engine/composite.py with 96% similarity]
unfold/css/plugin.css [moved from engine/css/plugin.css with 100% similarity]
unfold/js/manifold-async.js [moved from engine/js/manifold-async.js with 100% similarity]
unfold/js/manifold-pubsub.js [moved from engine/js/manifold-pubsub.js with 100% similarity]
unfold/js/manifold-query.js [moved from engine/js/manifold-query.js with 100% similarity]
unfold/js/onavail.js [moved from engine/js/onavail.js with 100% similarity]
unfold/js/plugin-init.js [moved from engine/js/plugin-init.js with 100% similarity]
unfold/js/plugin.js [moved from engine/js/plugin.js with 100% similarity]
unfold/models.py [moved from engine/models.py with 100% similarity]
unfold/page.py [moved from engine/page.py with 98% similarity]
unfold/plugin.py [moved from engine/plugin.py with 99% similarity]
unfold/prelude.py [moved from engine/prelude.py with 100% similarity]
unfold/templates/header-prelude.html [moved from engine/templates/header-prelude.html with 100% similarity]
unfold/templates/plugin-setenv.js [moved from engine/templates/plugin-setenv.js with 100% similarity]
unfold/templates/plugin.html [moved from engine/templates/plugin.html with 100% similarity]
unfold/tests.py [moved from engine/tests.py with 100% similarity]

index a819950..85b5d09 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -42,7 +42,7 @@ thirdparty-css:
 thirdparty-img:
        @find $(THIRD-PARTY-RESOURCES) -name '*.png'
 
-# we might have any of these as templates - e.g. ./engine/templates/plugin-setenv.js
+# we might have any of these as templates - e.g. ./unfold/templates/plugin-setenv.js
 # so if there's a /templates/ in the path ignore the file
 local-js: force
        @find . -type f -name '*.js' | egrep -v '/all-(static|templates)/|/third-party/|/templates/'
diff --git a/README b/README
index 95a197a..724fa20 100644 (file)
--- a/README
+++ b/README
@@ -103,8 +103,11 @@ I've tried to keep track of the version I picked and to have an easy upgrade pat
   . settings.py
   . urls.py
 
-* engine:
-  the code for building / rendering plugins / queries
+* manifold:
+  the code for dealing with queries, sending them to the backend, and offering the /manifold/api/ proxy URL
+
+* unfold:
+  the code for building / rendering plugins 
 
 * plugins:
   the actual code for plugins
index dbaf863..96697b3 100644 (file)
@@ -2,7 +2,7 @@ import time
 
 from django.contrib.auth.models import User
 
-from engine.manifoldapi import ManifoldAPI
+from manifold.manifoldapi import ManifoldAPI
 
 # Name my backend 'ManifoldBackend'
 class ManifoldBackend:
similarity index 100%
rename from engine/__init__.py
rename to manifold/__init__.py
similarity index 95%
rename from engine/manifoldproxy.py
rename to manifold/manifoldproxy.py
index f75d430..3b3ba0f 100644 (file)
@@ -3,8 +3,8 @@ import json
 #from django.core import serializers
 from django.http import HttpResponse, HttpResponseForbidden
 
-from engine.manifoldquery import ManifoldQuery
-from engine.manifoldapi import ManifoldAPI
+from manifold.manifoldquery import ManifoldQuery
+from manifold.manifoldapi import ManifoldAPI
 
 # add artificial delay in s
 debug_spin=0
index a4a3221..0deec52 100644 (file)
@@ -142,12 +142,16 @@ INSTALLED_APPS = (
     'django.contrib.sites',
     'django.contrib.messages',
     'django.contrib.staticfiles',
+    # handling the {% insert %} and {% container %} tags
     # see details in devel/django-insert-above-1.0-4
     'insert_above',
+    # our django project
     'myslice',
-    'auth',
-    'engine',
+    # the core of the UI
+    'auth', 'manifold', 'unfold',
+    # plugins
     'plugins',
+    # views - more or less stable 
     'views',
     'trash',
     # Uncomment the next line to enable the admin:
@@ -190,7 +194,7 @@ AUTHENTICATION_BACKENDS = ( 'auth.backend.MyCustomBackend', 'auth.manifoldbacken
 ### the view to redirect malformed (i.e. with a wrong CSRF) incoming requests
 # without this setting django will return a 403 forbidden error, which is fine
 # if you need to see the error message then use this setting
-CSRF_FAILURE_VIEW = 'engine.manifoldproxy.csrf_failure'
+CSRF_FAILURE_VIEW = 'manifold.manifoldproxy.csrf_failure'
 
 #################### for insert_above
 #IA_JS_FORMAT = "<script type='text/javascript' src='{URL}' />"
index b5389a1..c3fabab 100644 (file)
@@ -38,7 +38,7 @@ urlpatterns = patterns(
     #
     # the manifold proxy
     #
-    (r'^manifold/api/(?P<format>\w+)/?$', 'engine.manifoldproxy.api'),
+    (r'^manifold/api/(?P<format>\w+)/?$', 'manifold.manifoldproxy.api'),
     #
     # various trash views
     #
index 663dd05..5681bb7 100644 (file)
@@ -1,4 +1,4 @@
-from engine.plugin import Plugin
+from unfold.plugin import Plugin
 
 class SimpleList (Plugin) :
 
index 134917a..4655578 100644 (file)
@@ -1,4 +1,4 @@
-from engine.plugin import Plugin
+from unfold.plugin import Plugin
 
 class StaticList (Plugin) :
 
index 6766444..5211d63 100644 (file)
@@ -1,4 +1,4 @@
-from engine.plugin import Plugin
+from unfold.plugin import Plugin
 
 class QueryCode (Plugin):
 
index a49a0e5..cd6ff6e 100644 (file)
@@ -1,4 +1,4 @@
-from engine.plugin import Plugin
+from unfold.plugin import Plugin
 
 class QuickFilter (Plugin) :
 
index 6da0c90..01f59e9 100644 (file)
@@ -1,4 +1,4 @@
-from engine.plugin import Plugin
+from unfold.plugin import Plugin
 
 # usage Raw (html="some html text")
 
index d487eec..211af42 100644 (file)
@@ -1,4 +1,4 @@
-from engine.composite import Composite
+from unfold.composite import Composite
 
 class Tabs (Composite):
     
index 9ac6f49..fe6ff45 100644 (file)
@@ -1,6 +1,6 @@
 from django.template.loader import render_to_string
 
-from engine.composite import Composite
+from unfold.composite import Composite
 
 class VerticalLayout (Composite) :
     
index d081ea2..3f92b9d 100644 (file)
@@ -7,8 +7,8 @@ from django.shortcuts import render_to_response
 
 from django.contrib.auth.decorators import login_required
 
-from engine.page import Page
-from engine.manifoldquery import ManifoldQuery
+from unfold.page import Page
+from manifold.manifoldquery import ManifoldQuery
 
 from plugins.verticallayout.verticallayout import VerticalLayout
 from plugins.lists.slicelist import SliceList
index 9c9c6a7..da31dfa 100644 (file)
@@ -7,7 +7,7 @@ from django.shortcuts import render_to_response
 
 from django.contrib.auth.decorators import login_required
 
-from engine.page import Page
+from unfold.page import Page
 
 from plugins.verticallayout.verticallayout import VerticalLayout
 from plugins.tabs.tabs import Tabs
index 7147dbb..8fbcb01 100644 (file)
@@ -4,7 +4,7 @@ from django.template import RequestContext
 from django.shortcuts import render_to_response
 from django.contrib.auth.decorators import login_required
 
-from engine.prelude import Prelude
+from unfold.prelude import Prelude
 
 from myslice.viewutils import topmenu_items, the_user
 # tmp
diff --git a/unfold/__init__.py b/unfold/__init__.py
new file mode 100644 (file)
index 0000000..e69de29
similarity index 96%
rename from engine/composite.py
rename to unfold/composite.py
index 49ea0b5..409b1bc 100644 (file)
@@ -1,4 +1,4 @@
-from engine.plugin import Plugin
+from unfold.plugin import Plugin
 
 class Composite (Plugin):
 
similarity index 100%
rename from engine/css/plugin.css
rename to unfold/css/plugin.css
similarity index 100%
rename from engine/js/onavail.js
rename to unfold/js/onavail.js
similarity index 100%
rename from engine/js/plugin.js
rename to unfold/js/plugin.js
similarity index 100%
rename from engine/models.py
rename to unfold/models.py
similarity index 98%
rename from engine/page.py
rename to unfold/page.py
index 57e5226..5d37acf 100644 (file)
@@ -4,8 +4,8 @@
 
 import json
 
-from engine.prelude import Prelude
-from engine.manifoldapi import ManifoldAPI
+from unfold.prelude import Prelude
+from manifold.manifoldapi import ManifoldAPI
 from myslice.config import Config
 
 # decorator to deflect calls on this Page to its prelude
similarity index 99%
rename from engine/plugin.py
rename to unfold/plugin.py
index 8f817a5..1b71052 100644 (file)
@@ -6,8 +6,8 @@ import json
 
 from django.template.loader import render_to_string
 
-from engine.page import Page
-from engine.prelude import Prelude
+from unfold.page import Page
+from unfold.prelude import Prelude
 
 #################### 
 # set DEBUG to
similarity index 100%
rename from engine/prelude.py
rename to unfold/prelude.py
similarity index 100%
rename from engine/tests.py
rename to unfold/tests.py