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/'
. 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
from django.contrib.auth.models import User
-from engine.manifoldapi import ManifoldAPI
+from manifold.manifoldapi import ManifoldAPI
# Name my backend 'ManifoldBackend'
class ManifoldBackend:
#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
'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:
### 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}' />"
#
# the manifold proxy
#
- (r'^manifold/api/(?P<format>\w+)/?$', 'engine.manifoldproxy.api'),
+ (r'^manifold/api/(?P<format>\w+)/?$', 'manifold.manifoldproxy.api'),
#
# various trash views
#
-from engine.plugin import Plugin
+from unfold.plugin import Plugin
class SimpleList (Plugin) :
-from engine.plugin import Plugin
+from unfold.plugin import Plugin
class StaticList (Plugin) :
-from engine.plugin import Plugin
+from unfold.plugin import Plugin
class QueryCode (Plugin):
-from engine.plugin import Plugin
+from unfold.plugin import Plugin
class QuickFilter (Plugin) :
-from engine.plugin import Plugin
+from unfold.plugin import Plugin
# usage Raw (html="some html text")
-from engine.composite import Composite
+from unfold.composite import Composite
class Tabs (Composite):
from django.template.loader import render_to_string
-from engine.composite import Composite
+from unfold.composite import Composite
class VerticalLayout (Composite) :
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
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
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
-from engine.plugin import Plugin
+from unfold.plugin import Plugin
class Composite (Plugin):
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
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