Commit e46a01794cb7166ef252ec031d5383d004beb1ce

Authored by Luan
2 parents b941633f d19a1292

Merge branch 'master' into xmpp_password

puppet/modules/colab/templates/nginx/site_default.erb
@@ -40,6 +40,14 @@ server { @@ -40,6 +40,14 @@ server {
40 proxy_pass http://10.1.2.81; 40 proxy_pass http://10.1.2.81;
41 } 41 }
42 42
  43 + location /ci/static {
  44 + proxy_pass http://10.1.2.171:8080;
  45 + }
  46 +
  47 + location /ci/adjuncts {
  48 + proxy_pass http://10.1.2.171:8080;
  49 + }
  50 +
43 location / { 51 location / {
44 try_files /home/colab/colab/www$uri @django; 52 try_files /home/colab/colab/www$uri @django;
45 } 53 }
requirements.txt
@@ -28,7 +28,7 @@ tornado==3.1.1 @@ -28,7 +28,7 @@ tornado==3.1.1
28 # Deps for Single SignOn (SSO) 28 # Deps for Single SignOn (SSO)
29 git+https://github.com/mozilla/django-browserid 29 git+https://github.com/mozilla/django-browserid
30 30
31 -django-revproxy==0.2.5 31 +django-revproxy==0.2.7
32 32
33 # Converse.js (XMPP client) 33 # Converse.js (XMPP client)
34 django-conversejs==0.2.8 34 django-conversejs==0.2.8
src/accounts/views.py
@@ -129,6 +129,14 @@ class ManageUserSubscriptionsView(UserProfileBaseMixin, DetailView): @@ -129,6 +129,14 @@ class ManageUserSubscriptionsView(UserProfileBaseMixin, DetailView):
129 http_method_names = [u'get', u'post'] 129 http_method_names = [u'get', u'post']
130 template_name = u'accounts/manage_subscriptions.html' 130 template_name = u'accounts/manage_subscriptions.html'
131 131
  132 + def get_object(self, *args, **kwargs):
  133 + obj = super(ManageUserSubscriptionsView, self).get_object(*args,
  134 + **kwargs)
  135 + if self.request.user != obj and not self.request.user.is_superuser:
  136 + raise PermissionDenied
  137 +
  138 + return obj
  139 +
132 def post(self, request, *args, **kwargs): 140 def post(self, request, *args, **kwargs):
133 user = self.get_object() 141 user = self.get_object()
134 for email in user.emails.values_list('address', flat=True): 142 for email in user.emails.values_list('address', flat=True):
src/proxy/diazo/jenkins.xml 0 → 100644
@@ -0,0 +1,25 @@ @@ -0,0 +1,25 @@
  1 +<rules
  2 + xmlns="http://namespaces.plone.org/diazo"
  3 + xmlns:css="http://namespaces.plone.org/diazo/css"
  4 + xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  5 +
  6 + <before theme-children="/html/head" content-children="/html/head" />
  7 + <before css:theme-children="#main-content" css:content-children="body" />
  8 +
  9 + <merge attributes="class" css:theme="body" css:content="body" />
  10 + <drop css:content="#top-panel" />
  11 +
  12 + <after theme-children="/html/head">
  13 + <script>jQuery.noConflict();</script>
  14 + <style>
  15 + #breadcrumbs {
  16 + border: 0 !important;
  17 + }
  18 +
  19 + #right-top-nav {
  20 + margin-right: 5em !important;
  21 + }
  22 + </style>
  23 + </after>
  24 +
  25 +</rules>
src/tz/templates/tz/set_utc_offset.html
1 <script type="text/javascript"> 1 <script type="text/javascript">
2 var date = new Date(); 2 var date = new Date();
3 - $.cookie('utc_offset', date.getTimezoneOffset(), { path: '/' }); 3 + jQuery.cookie('utc_offset', date.getTimezoneOffset(), { path: '/' });
4 </script> 4 </script>