[Fedora Elections] #36: Consider hiding historical elections
by fedora-badges
#36: Consider hiding historical elections
---------------------+------------------------------------------------------
Reporter: tremble | Owner: nigelj
Type: defect | Status: new
Priority: minor | Milestone: Future Release
Component: General | Version: 0.2.1
Keywords: |
---------------------+------------------------------------------------------
The list of elections is growing.
While we want to keep the information (probably), do we really want to
display more than the last X (15? - just over two releases, would show how
a current board member was elected) months worth of election, and just
tuck the rest behind a "historical eletcions" link
--
Ticket URL: <https://fedorahosted.org/elections/ticket/36>
Fedora Elections <https://fedorahosted.org/elections/>
Fedora Elections
10 years, 1 month
[Fedora Elections] #26: First submit should be preview
by fedora-badges
#26: First submit should be preview
-------------------------+--------------------------------------------------
Reporter: mmcgrath | Owner: nigelj
Type: enhancement | Status: new
Priority: major | Milestone:
Component: General | Version: 0.1.5
Keywords: |
-------------------------+--------------------------------------------------
Minor thing but I think it might help, when you vote. The first screen to
submit to should really say "preview" instead of submit since you're not
submitting the vote until the final screen.
--
Ticket URL: <https://fedorahosted.org/elections/ticket/26>
Fedora Elections <https://fedorahosted.org/elections/>
Fedora Elections
11 years, 11 months
[Fedora Elections] #28: Improvements for the Voting App: Allow voting multiple times
by fedora-badges
#28: Improvements for the Voting App: Allow voting multiple times
-------------------------+--------------------------------------------------
Reporter: ixs | Owner: nigelj
Type: enhancement | Status: new
Priority: major | Milestone:
Component: General | Version: 0.1.5
Keywords: |
-------------------------+--------------------------------------------------
Please allow voting multiple times with each later vote canceling the
previous votes. This easily allows to correct a mistake during the voting
procedure or accounts for changed opinion.
There has just been a bit of discussion on IRC where people accidentially
voted incorrectly and would have liked such a feature.
kthxbai
--
Ticket URL: <https://fedorahosted.org/elections/ticket/28>
Fedora Elections <https://fedorahosted.org/elections/>
Fedora Elections
11 years, 11 months
fedora-elections.spec
by tremble
fedora-elections.spec | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 7e85d5ae12c749bc171ff72af5e920426048b613
Author: Mark Chappell <tremble(a)tremble.org.uk>
Date: Tue Sep 28 21:30:58 2010 +0200
Add a little more detail to the changelog
diff --git a/fedora-elections.spec b/fedora-elections.spec
index 986d2cf..5b6e538 100644
--- a/fedora-elections.spec
+++ b/fedora-elections.spec
@@ -50,10 +50,10 @@ rm -rf $RPM_BUILD_ROOT
%attr(640,root,root) %config(noreplace) %{_sysconfdir}/*
-
%changelog
* Fri Sep 17 2010 Mark Chappell <tremble(a)fedoraproject.org> - 0.4.0-1
- Bump, various GUI improvements
+- New Elections Editing Admin interface
* Mon Jul 14 2008 Nigel Jones <dev(a)nigelj.com> - 0.1.5-1
- Bump, some minor improvements etc etc, mainly geared towards FESCo election
13 years, 7 months
2 commits - elections/admin.py elections/controllers.py elections/vote.py fedora-elections.spec
by tremble
elections/admin.py | 10 +++++-----
elections/controllers.py | 6 +++---
elections/vote.py | 2 +-
fedora-elections.spec | 2 +-
4 files changed, 10 insertions(+), 10 deletions(-)
New commits:
commit 77bc1f8573b24261c9e3bab63180968ce29d37e1
Author: Mark Chappell <tremble(a)tremble.org.uk>
Date: Sun Sep 19 10:11:44 2010 +0200
Add new admins to ElectionAdmins rather than LegalVoters. Replace \t with ' '
diff --git a/elections/admin.py b/elections/admin.py
index 5424830..2b4fbf8 100644
--- a/elections/admin.py
+++ b/elections/admin.py
@@ -97,12 +97,12 @@ class Admin(controllers.Controller):
if "submit" in kw:
for entry in kw['newgroups'].split("|"):
entry.strip()
- if len(entry) :
+ if len(entry) :
LegalVoters(election_id=kw['id'], group_name=entry)
for entry in kw['newadmins'].split("|"):
entry.strip()
- if len(entry) :
- LegalVoters(election_id=kw['id'], group_name=entry)
+ if len(entry) :
+ ElectionAdmins(election_id=kw['id'], group_name=entry)
for key, value in kw.items():
if key.startswith('remove_'):
group = key[len('remove_'):]
@@ -172,8 +172,8 @@ class Admin(controllers.Controller):
raise turbogears.redirect("/admin/")
candidates = Candidates.query.filter_by(election_id=election.id).all()
- votergroups = LegalVoters.query.filter_by(election_id=election.id).all()
- admingroups = ElectionAdmins.query.filter_by(election_id=election.id).all()
+ votergroups = LegalVoters.query.filter_by(election_id=election.id).all()
+ admingroups = ElectionAdmins.query.filter_by(election_id=election.id).all()
groupnamemap = {}
for g in admingroups:
try:
diff --git a/elections/controllers.py b/elections/controllers.py
index 754a6da..94ee6f8 100644
--- a/elections/controllers.py
+++ b/elections/controllers.py
@@ -60,7 +60,7 @@ class Root(controllers.RootController):
current = []
future = []
now = datetime.utcnow()
- for e in elections:
+ for e in elections:
if e.start_date > now :
future.append(e)
elif e.end_date < now :
@@ -101,7 +101,7 @@ class Root(controllers.RootController):
try:
groupnamemap[g.group_name] = g.group_name + " (" + self.fas.group_by_name(g.group_name)['display_name'] +")"
except (AppError, AuthError, KeyError) :
- groupnamemap[g.group_name] = g.group_name
+ groupnamemap[g.group_name] = g.group_name
curtime = datetime.utcnow()
@@ -159,7 +159,7 @@ class Root(controllers.RootController):
@expose(template="elections.templates.verify")
def verify(self):
validvotes = {}
- invalidvotes = {}
+ invalidvotes = {}
c = 0
allvotes = UserVoteCount.query.filter_by(voter=turbogears.identity.current.user_name).all()
for v in allvotes:
diff --git a/elections/vote.py b/elections/vote.py
index 967e4f4..5b5f575 100644
--- a/elections/vote.py
+++ b/elections/vote.py
@@ -62,7 +62,7 @@ class Vote(controllers.Controller):
raise turbogears.redirect("/")
votergroups = LegalVoters.query.filter_by(election_id=eid).all()
- foo = identity.current.groups
+ foo = identity.current.groups
match = 0
for group in votergroups:
commit 2ac242620c3508970d25b7861e9d10ba1ff42f60
Author: Mark Chappell <tremble(a)tremble.org.uk>
Date: Fri Sep 17 22:54:34 2010 +0200
put something useful into the changelog
diff --git a/fedora-elections.spec b/fedora-elections.spec
index 286e870..986d2cf 100644
--- a/fedora-elections.spec
+++ b/fedora-elections.spec
@@ -53,7 +53,7 @@ rm -rf $RPM_BUILD_ROOT
%changelog
* Fri Sep 17 2010 Mark Chappell <tremble(a)fedoraproject.org> - 0.4.0-1
-- Bump, some minor improvements etc etc, mainly geared towards FESCo election
+- Bump, various GUI improvements
* Mon Jul 14 2008 Nigel Jones <dev(a)nigelj.com> - 0.1.5-1
- Bump, some minor improvements etc etc, mainly geared towards FESCo election
13 years, 7 months
2 commits - elections/release.py elections/templates fedora-elections.spec
by tremble
elections/release.py | 2 +-
elections/templates/admedit.html | 6 +++---
fedora-elections.spec | 5 ++++-
3 files changed, 8 insertions(+), 5 deletions(-)
New commits:
commit a569038e09814c21c23dc18aa51f17434decf2f2
Author: Mark Chappell <tremble(a)tremble.org.uk>
Date: Fri Sep 17 22:52:02 2010 +0200
use tg.checker rather than a nasty if clause
diff --git a/elections/templates/admedit.html b/elections/templates/admedit.html
index db0801a..e036dda 100644
--- a/elections/templates/admedit.html
+++ b/elections/templates/admedit.html
@@ -21,10 +21,10 @@
<tr><td>End Date:</td><td><input type="text" name="enddate" value="${e.end_date}" /></td></tr>
<tr><td>Seats Elected:</td><td><input type="text" name="seats" value="${e.seats_elected}" /></td></tr>
<tr><td>Votes Per User:</td><td><input type="text" name="votes" value="${e.votes_per_user}" /></td></tr>
- <tr><td>Allow Nominations?</td><td><input type="checkbox" name="allownominations" py:attrs="{'checked':''} if e.allow_nominations else {}" /> </td></tr>
+ <tr><td>Allow Nominations?</td><td><input type="checkbox" name="allownominations" py:attrs="{'checked':tg.checker(e.allow_nominations)}" /> </td></tr>
<tr><td>Until When?</td><td><input type="text" name="nominationend" value="" /> </td></tr>
- <tr><td>Use FAS?</td><td><input type="checkbox" name="usefas" py:attrs="{'checked':''} if e.usefas else {}" /> </td></tr>
- <tr><td>Embargoed?</td><td><input type="checkbox" name="embargoed" py:attrs="{'checked':''} if e.embargoed else {}" /> </td></tr>
+ <tr><td>Use FAS?</td><td><input type="checkbox" name="usefas" py:attrs="{'checked':tg.checker(e.usefas)}" /> </td></tr>
+ <tr><td>Embargoed?</td><td><input type="checkbox" name="embargoed" py:attrs="{'checked':tg.checker(e.embargoed)}" /> </td></tr>
<tr><td></td><td><input type="submit" name="submit" value="Submit"/></td></tr>
<tr>
commit 13a5d8579aae2ddc204ca9f0fab09f817e4c9643
Author: Mark Chappell <tremble(a)tremble.org.uk>
Date: Fri Sep 17 20:46:23 2010 +0200
Bump version up to 0.4 prior to rebuild
diff --git a/elections/release.py b/elections/release.py
index 26f1c9c..6b12f00 100644
--- a/elections/release.py
+++ b/elections/release.py
@@ -24,7 +24,7 @@
# Release information about elections
-version = "0.2.1"
+version = "0.4.0"
description = "Elections Application for Fedora Project"
# long_description = "More description about your plan"
diff --git a/fedora-elections.spec b/fedora-elections.spec
index 6f9d9ea..286e870 100644
--- a/fedora-elections.spec
+++ b/fedora-elections.spec
@@ -2,7 +2,7 @@
%{!?pyver: %define pyver %(%{__python} -c "import sys ; print sys.version[:3]")}
Name: fedora-elections
-Version: 0.1.5
+Version: 0.4.0
Release: 1%{?dist}
Summary: Elections Application for Fedora Project
@@ -52,6 +52,9 @@ rm -rf $RPM_BUILD_ROOT
%changelog
+* Fri Sep 17 2010 Mark Chappell <tremble(a)fedoraproject.org> - 0.4.0-1
+- Bump, some minor improvements etc etc, mainly geared towards FESCo election
+
* Mon Jul 14 2008 Nigel Jones <dev(a)nigelj.com> - 0.1.5-1
- Bump, some minor improvements etc etc, mainly geared towards FESCo election
13 years, 8 months