return [ 'query_uuid', 'button_domid', ]
#################### here is an extract previously in topmenu.py
+#import json
+#from pprint import pprint
+#from manifold.manifoldapi import execute_query
+#from manifold.core.query import Query
### # ** Where am I a PI **
### # For this we need to ask SFA (of all authorities) = PI function
### user_query = Query().get('local:user').select('config','email')
-import json
-from pprint import pprint
-from manifold.manifoldapi import execute_query
-from manifold.core.query import Query
# a set of utilities to help make the global layout consistent across views
+def the_user (request):
+ "retrieves logged in user's email, or empty string"
+ if not request.user.is_authenticated ():
+ return ''
+ else:
+ return request.user.email
+
# dropdowns are kind of ad hoc for now, and limited to one level
# [
# ### a regular first-level button
for dd in d['contents']: mark_active(dd,d)
return result
-def the_user (request):
- "retrieves logged in user's email, or empty string"
- if not request.user.is_authenticated ():
- return ''
- else:
- return request.user.email