for how to use a separate authentication system,
as well as settings.py for how to enable it
+* ui/
+ provides building blocks for the UI, especially layouts (1 or 2 columns) as
+ well as the topmenu widget
+ + some global static files (css, js, images..)
+
* portal/
this is where the first implementation of myslice, with complete
user-management including registration, is taking place
rough/preliminary scaffolding views are in here
as the name suggests this is temporary
-* views/
- will receive actual views over time
- currently has some global html templates as well
- + some global static files (css, js, images..)
-
* insert_above:
a third-party django app for adding on-the-fly mentions to css or js files that need to go in the header
from django.shortcuts import render
from manifold.core.query import Query
from unfold.page import Page
-from myslice.viewutils import topmenu_items, the_user
+from ui.topmenu import topmenu_items, the_user
from django.http import HttpResponseRedirect
from plugins.debug_platform import DebugPlatform
# plugins
'plugins',
# views - more or less stable
- 'views',
+ 'ui',
# managing database migrations
'south',
# Uncomment the next line to enable the admin:
from manifold.manifoldapi import execute_query
from portal.actions import manifold_update_user, manifold_update_account
#
-from myslice.viewutils import topmenu_items, the_user
+from ui.topmenu import topmenu_items, the_user
#
from django.http import HttpResponse, HttpResponseRedirect
from django.contrib import messages
from django.shortcuts import render
-from django.template.loader import render_to_string
+from django.template.loader import render_to_string
from django.views.generic import View
from django.core.mail import send_mail
-from myslice.viewutils import topmenu_items, the_user
+from ui.topmenu import topmenu_items, the_user
from portal.forms import ContactForm
from unfold.loginrequired import LoginRequiredAutoLogoutView
-from myslice.viewutils import topmenu_items, the_user
+from ui.topmenu import topmenu_items, the_user
#This view requires login
class DashboardView (LoginRequiredAutoLogoutView):
from django.shortcuts import render_to_response
from manifold.manifoldresult import ManifoldResult
-from myslice.viewutils import topmenu_items, the_user
+from ui.topmenu import topmenu_items, the_user
from myslice.config import Config
class HomeView (View):
from manifold.core.query import Query
from unfold.page import Page
-from myslice.viewutils import topmenu_items, the_user
+from ui.topmenu import topmenu_items, the_user
from plugins.hazelnut import Hazelnut
from manifold.core.query import Query
from unfold.page import Page
-from myslice.viewutils import topmenu_items, the_user
+from ui.topmenu import topmenu_items, the_user
from plugins.hazelnut import Hazelnut
from django.shortcuts import render_to_response
from unfold.page import Page
-from myslice.viewutils import topmenu_items, the_user
+from ui.topmenu import topmenu_items, the_user
class PortalPage(Page):
def __init__(self, request):
from django.shortcuts import render
from unfold.page import Page
-from myslice.viewutils import topmenu_items
+from ui.topmenu import topmenu_items
from manifold.manifoldapi import execute_query
from manifold.core.query import Query
from portal.actions import authority_get_pi_emails
from portal.forms import SliceRequestForm
from unfold.loginrequired import LoginRequiredAutoLogoutView
-from myslice.viewutils import topmenu_items, the_user
+from ui.topmenu import topmenu_items, the_user
class SliceRequestView (LoginRequiredAutoLogoutView):
from unfold.page import Page
from manifold.core.query import Query, AnalyzedQuery
-from myslice.viewutils import topmenu_items, the_user
+from ui.topmenu import topmenu_items, the_user
from plugins.raw import Raw
from plugins.stack import Stack
from django.shortcuts import render
from django.template.loader import render_to_string
-from myslice.viewutils import topmenu_items, the_user
+from ui.topmenu import topmenu_items, the_user
from portal.event import Event
# presview is put in observation for now
# Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
from django.views.generic.base import TemplateView
-from myslice.viewutils import topmenu_items, the_user
+from ui.topmenu import topmenu_items, the_user
class WebSocketsView(TemplateView):
template_name = "websockets.html"
from plugins.querycode import QueryCode
from plugins.quickfilter import QuickFilter
-from trash.trashutils import quickfilter_criterias
+from trash.trashutils import quickfilter_criterias
#
-from myslice.viewutils import topmenu_items, the_user
+from ui.topmenu import topmenu_items, the_user
@login_required
def dashboard_view (request):
from plugins.messages import Messages
from plugins.hazelnut import Hazelnut
-from myslice.viewutils import topmenu_items, the_user
-from trash.trashutils import hard_wired_slice_names, hard_wired_list, lorem_p, lorem, quickfilter_criterias
+from ui.topmenu import topmenu_items, the_user
+from trash.trashutils import hard_wired_slice_names, hard_wired_list, lorem_p, lorem, quickfilter_criterias
#might be useful or not depending on the context
#@login_required
from unfold.prelude import Prelude
-from myslice.viewutils import topmenu_items, the_user
+from ui.topmenu import topmenu_items, the_user
# tmp
-from trash.trashutils import lorem, hard_wired_slice_names
+from trash.trashutils import lorem, hard_wired_slice_names
@login_required
def tab_view (request):
return ''
else:
return request.user.email
-