filenames without _ (spare my pinkie)
authorThierry Parmentelat <thierry.parmentelat@inria.fr>
Wed, 13 Feb 2013 13:11:34 +0000 (14:11 +0100)
committerThierry Parmentelat <thierry.parmentelat@inria.fr>
Wed, 13 Feb 2013 13:11:34 +0000 (14:11 +0100)
auth/manifoldbackend.py [moved from auth/manifold_backend.py with 96% similarity]
engine/manifoldapi.py [moved from engine/manifold_api.py with 78% similarity]
engine/manifoldquery.py [moved from engine/manifold_query.py with 99% similarity]
engine/plugin.py
engine/static/css/plugin.css
myslice/config.py
myslice/settings.py
myslice/viewutils.py

similarity index 96%
rename from auth/manifold_backend.py
rename to auth/manifoldbackend.py
index 67ab89f..f548b43 100644 (file)
@@ -1,6 +1,6 @@
 # import the User object
 from django.contrib.auth.models import User
-from engine.manifold_api import ManifoldAPI
+from engine.manifoldapi import ManifoldAPI
 
 
 # import time - this is used to create Django's internal username
@@ -14,7 +14,6 @@ class ManifoldBackend:
     def authenticate(self, username=None, password=None):
         if not username or not password:
             return None
-        print username
 
         try:
             auth = {'AuthMethod': 'password', 'Username': username, 'AuthString': password}
similarity index 78%
rename from engine/manifold_api.py
rename to engine/manifoldapi.py
index c166bd8..b125a59 100644 (file)
@@ -2,6 +2,8 @@
 import xmlrpclib
 from myslice.config import Config
 
+debug=True
+
 class ManifoldAPI:
 
   def __init__(self, auth=None, cainfo=None):
@@ -21,7 +23,7 @@ class ManifoldAPI:
 
   def __getattr__(self, methodName):
       def func(*args, **kwds):
-           print methodName, self.auth, self.url
-           result=getattr(self.proxy, methodName)(self.auth, *args, **kwds)
-           return result
+        result=getattr(self.proxy, methodName)(self.auth, *args, **kwds)
+        if debug: print methodName, self.auth, self.url,'->',result
+        return result
       return func
similarity index 99%
rename from engine/manifold_query.py
rename to engine/manifoldquery.py
index 8a5690f..b8f594e 100644 (file)
@@ -43,6 +43,3 @@ class ManifoldQuery:
         aq = self.analyzed_query.to_json() if self.analyzed_query else 'null'
         
         return "new Query('%(a)s', '%(m)s', '%(t)s', %(f)s, %(p)s, %(c)s, %(unique)s, '%(uuid)s', %(aq)s, {{%(sq)s}})"%locals()
-
-    
-
index e7dcfa9..fc68c48 100644 (file)
@@ -14,7 +14,8 @@ from engine.prelude import Prelude
 # . [ 'SliceList', 'TabbedView' ] : to debug these classes
 # . True : to debug all plugin
 
-DEBUG= [ 'Tabs' ]
+#DEBUG= [ 'Tabs' ]
+DEBUG= False
 
 class Plugin:
 
@@ -112,7 +113,6 @@ class Plugin:
         env ['settings_json' ] = settings_json
         # compute plugin-specific initialization
         js_init = render_to_string ( 'plugin-setenv.js', env )
-        print 'js_init',js_init
         self.add_js_chunks (request, js_init)
         
         # interpret the result of requirements ()
index 53ff87b..0c7aaa2 100644 (file)
@@ -3,3 +3,9 @@ div.plugin-toggle {
     border-style:      dotted;
     border-width:      1px;
 }
+p.plugin-show {
+    cursor: s-resize;
+}
+p.plugin-hide { 
+    cursor: n-resize;
+}
index 4fe5aa3..3293f1d 100644 (file)
@@ -1,7 +1,7 @@
 class Config:
 
-#    manifold_server = 'manifold.pl.sophia.inria.fr'
-    manifold_server = 'demo.myslice.info'
+    manifold_server = 'manifold.pl.sophia.inria.fr'
+#    manifold_server = 'demo.myslice.info'
     manifold_port = '7080'
     manifold_path = '/'
 
index 4ce0e3a..7fc65b8 100644 (file)
@@ -184,7 +184,7 @@ LOGGING = {
     }
 }
 
-AUTHENTICATION_BACKENDS = ( 'auth.backend.MyCustomBackend', 'auth.manifold_backend.ManifoldBackend', )
+AUTHENTICATION_BACKENDS = ( 'auth.backend.MyCustomBackend', 'auth.manifoldbackend.ManifoldBackend', )
 
 #################### for insert_above
 #IA_JS_FORMAT = "<script type='text/javascript' src='{URL}' />"
index 030e0d9..ecdd81f 100644 (file)
@@ -23,7 +23,7 @@ def topmenu_items (current,request=None):
 def the_user (request):
     "This code below is broken"
     if not request.user.is_authenticated (): 
-        print 'void'
+#        print 'void user!'
         return ''
     else: 
         return request.user.email