Feature Store
{{ resolvedDiscussionCount }}/{{ discussionCount }} {{ resolvedCountText }} resolved
-
-
100 102 verbose_name=_('Samba password'), 101 103 help_text=_( 102 104 'Generated password for accessing store from ' 103 'Windows.')) 105 'Windows.'), -
Owner
s/Windows/virtual machines/
-
-
1 # -*- coding: utf-8 -*- 2 from south.utils import datetime_utils as datetime 3 from south.db import db 4 from south.v2 import SchemaMigration 5 from django.db import models 6 7 8 class Migration(SchemaMigration): 9 10 def forwards(self, orm): 11 # Adding field 'Profile.smb_password' 12 db.add_column(u'dashboard_profile', 'smb_password', 13 self.gf('django.db.models.fields.CharField')(default='asdasd', max_length=20), -
Owner
huh?
-
Owner
asdasd
-
-
22 def get_request_arguments(ssl_auth, basic_auth): 23 args = { 24 'verify': settings.STORE_VERIFY_SSL, 25 'cert': (settings.STORE_CLIENT_CERT, settings.STORE_CLIENT_KEY), 26 'auth': (settings.STORE_CLIENT_USER, settings.STORE_CLIENT_PASSWORD), 27 } 28 if ssl_auth and basic_auth: 29 pass 30 elif ssl_auth: 31 del args['auth'] 32 elif basic_auth: 33 del args['cert'] 34 else: 35 del args['cert'] 36 del args['auth'] 37 -
Owner
what?fixed
-
-
3168 reverse("dashboard.views.store-list"), 3169 os.path.dirname(os.path.dirname(path)), 3170 )) 3171 else: 3172 return redirect("%s?directory=%s" % ( 3173 reverse("dashboard.views.store-list"), 3174 os.path.dirname(path), 3175 )) 3176 3177 3178 @require_POST 3179 @login_required 3180 def store_new_directory(request): 3181 user_home = "u-%d" % request.user.pk 3182 path = request.POST.get("path") 3183 name = request.POST.get("name") -
Owner
is this validated?
-
-
1 {% load i18n %} 2 3 <div class="list-group" id="store-list-list"> 4 <a href="{% url "dashboard.views.store-list" %}?directory={{ up_url }}" -
Owner
could hide this in top level dir
-
-
558 559 } 559 560 return cookieValue; 560 561 } 562 563 564 /* no js compatibility */ -
Owner
body.nojs .js-only, body.js .js-hidden { display: none; }
<body class="nojs">
$("body").toggleClass("nojs").toggleClass("js")
-
-
-
Owner
:trollface:
-
-
Owner
- Download folder button missing
- Review file browser layout
- Shorten long file names in the toplist
-
58 return response 32 59 33 def post_request(url, payload, timeout=None): 34 try: 35 headers = {'content-type': 'application/json'} 36 r = requests.post(url, data=payload, headers=headers, timeout=timeout, 37 **get_request_arguments()) 38 return r 39 except Exception as e: 40 logger.error("Error in store POST: %s" % e) 41 dummy = Mock() 42 setattr(dummy, "status_code", 200) 43 setattr(dummy, "content", "[]") 44 return dummy 60 def _request_cmd(self, cmd, **kwargs): 61 return self._request(self.username, post, CMD=cmd) -
Owner
kwargs?
-
-
-
81 92 93 def rename(self, old_path, new_name): 94 self._request_cmd("RENAME", PATH=old_path, NEW_NAME=new_name) 82 95 83 def requestdownload(neptun, path): 84 url = settings.STORE_URL + '/' + neptun 85 payload = json.dumps({'CMD': 'DOWNLOAD', 'PATH': path}) 86 r = post_request(url, payload) 87 response = json.loads(r.content) 88 return response['LINK'] 96 def get_quota(self): # no CMD? :o 97 r = self._request(self.username) 98 return r.json() 89 99 100 def set_quota(self, quota): 101 self._request(self.username + "/quota/", post, QUOTA=quota) -
Owner
- self._request(self.username + "/quota/", post, QUOTA=quota) + self._request("/quota/" + self.username, post, QUOTA=quota)
-
-
-