[Pkg-debile-commits] [debile-web] 06/07: rename hacker => worker

Sylvestre Ledru sylvestre at alioth.debian.org
Sat Sep 28 13:31:17 UTC 2013


This is an automated email from the git hooks/post-receive script.

sylvestre pushed a commit to branch update-usuability
in repository debile-web.

commit 62b490707a8d23e6592ad133e3e65ca3fa330dd4
Author: Sylvestre Ledru <sylvestre at debian.org>
Date:   Sat Sep 28 14:56:18 2013 +0200

    rename hacker => worker
---
 debileweb/blueprints/frontend.py       |   14 +++++++-------
 templates/{hacker.html => worker.html} |    6 +++---
 2 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/debileweb/blueprints/frontend.py b/debileweb/blueprints/frontend.py
index 0b8883e..85fb2fa 100644
--- a/debileweb/blueprints/frontend.py
+++ b/debileweb/blueprints/frontend.py
@@ -126,7 +126,7 @@ def source_list():
         info['source'] = s
         info['source_link'] = "/source/%s/%s/%s/%s" % (s.user.login, s.name, s.version, s.run)
         info['group_link'] = "/group/%s" % s.group.name
-        info['user_link'] = "/hacker/%s" % s.user.login
+        info['user_link'] = "/worker/%s" % s.user.login
         sources_info.append(info)
 
     return render_template('source_list.html', **{
@@ -217,7 +217,7 @@ def source(package_name="", owner_name="fred", package_version="latest", run_num
 
     # Compute description section
     desc = {}
-    desc['user_link'] = "/hacker/%s" % package.user.login
+    desc['user_link'] = "/worker/%s" % package.user.login
     desc['run'] = run_number
     # desc['pool_link'] =
 
@@ -332,19 +332,19 @@ def machine(machine_name):
     })
 
 
- at frontend.route("/hacker/<hacker_login>")
-def hacker(hacker_login):
+ at frontend.route("/worker/<worker_login>")
+def worker(worker_login):
     session = Session()
     # FIXME : unsafe code, catch exceptions
-    user = session.query(User).filter(User.login == hacker_login).one()
+    user = session.query(User).filter(User.login == worker_login).one()
 
     ur = UserRepository(user)
     dput_upload_profile = ur.generate_dputprofile()
     apt_binary_list = ur.generate_aptbinarylist()
     apt_source_list = ur.generate_aptsourcelist()
 
-    return render_template('hacker.html', **{
-        "hacker": user,
+    return render_template('worker.html', **{
+        "worker": user,
         "dput_upload_profile": dput_upload_profile,
         "apt_binary_list": apt_binary_list,
         "apt_source_list": apt_source_list
diff --git a/templates/hacker.html b/templates/worker.html
similarity index 83%
rename from templates/hacker.html
rename to templates/worker.html
index 4b7cc52..b0f4158 100644
--- a/templates/hacker.html
+++ b/templates/worker.html
@@ -1,11 +1,11 @@
 {% extends "base.html" %}
 
-{% block title %}Hacker{% endblock %}
+{% block title %}Worker{% endblock %}
 
 {% block content %}
-<h1>{{hacker.name}}</h1>
+<h1>{{worker.name}}</h1>
 
-{{hacker.name}}'s GPG key is <code>{{hacker.gpg_fingerprint}}</code>.
+{{worker.name}}'s GPG key is <code>{{worker.gpg_fingerprint}}</code>.
 
 <h2>Upload your source package to debile</h2>
 Follow our one-minute-very-easy-even-for-noobs setup guide.

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-debile/debile-web.git



More information about the Pkg-debile-commits mailing list