11# -*- coding: utf-8 -*-
22from __future__ import absolute_import , unicode_literals
33
4- # Standard Library
54import inspect
65
76
87def _user_attributes (cls ):
9- defaults = dir (type (str ('defaults' ), (object ,), {})) # gives all inbuilt attrs
10- return [
11- item [0 ] for item in inspect .getmembers (cls ) if item [0 ] not in defaults ]
8+ defaults = dir (type (str ("defaults" ), (object ,), {})) # gives all inbuilt attrs
9+ return [item [0 ] for item in inspect .getmembers (cls ) if item [0 ] not in defaults ]
1210
1311
1412def choices (cls ):
@@ -20,7 +18,7 @@ def choices(cls):
2018 val = getattr (cls , attr )
2119 setattr (cls , attr [1 :], val [0 ])
2220 _choices .append ((val [0 ], val [1 ]))
23- setattr (cls , ' CHOICES' , tuple (_choices ))
21+ setattr (cls , " CHOICES" , tuple (_choices ))
2422 return cls
2523
2624
@@ -72,8 +70,8 @@ class ProposalReviewVote:
7270# FIXME: `ProposalReviewerComment` should be Boolean
7371@choices
7472class ProposalReviewerComment :
75- _COMMENTED = [' True' , ' Yes' ]
76- _NOT_COMMENTED = [' False' , 'No' ]
73+ _COMMENTED = [" True" , " Yes" ]
74+ _NOT_COMMENTED = [" False" , "No" ]
7775
7876
7977@choices
@@ -89,24 +87,29 @@ class ConferenceSettingConstants:
8987 ALLOW_PUBLIC_VOTING_ON_PROPOSALS = {
9088 "name" : "allow_public_voting_on_proposals" ,
9189 "value" : True ,
92- "description" : "Allow public to vote on proposals" }
90+ "description" : "Allow public to vote on proposals" ,
91+ }
9392
94- DISPLAY_PROPOSALS_IN_PUBLIC = {"name" : "display_proposals_in_public" ,
95- "value" : True ,
96- "description" : "Display proposals in public" }
93+ DISPLAY_PROPOSALS_IN_PUBLIC = {
94+ "name" : "display_proposals_in_public" ,
95+ "value" : True ,
96+ "description" : "Display proposals in public" ,
97+ }
9798
98- ALLOW_PLUS_ZERO_REVIEWER_VOTE = {"name" : "allow_plus_zero_reviewer_vote" ,
99- "value" : True ,
100- "description" : "Allow +0 vote in reviewer votes" }
99+ ALLOW_PLUS_ZERO_REVIEWER_VOTE = {
100+ "name" : "allow_plus_zero_reviewer_vote" ,
101+ "value" : True ,
102+ "description" : "Allow +0 vote in reviewer votes" ,
103+ }
101104
102105
103106@choices
104107class PSRVotePhase :
105- _PRIMARY = [0 , ' Initial voting' ]
106- _SECONDARY = [1 , ' Second phase voting' ]
108+ _PRIMARY = [0 , " Initial voting" ]
109+ _SECONDARY = [1 , " Second phase voting" ]
107110
108111
109112@choices
110113class ProposalCommentType :
111- _GENERAL = [0 , ' All general comments' ]
112- _SECONDARY_VOTING = [1 , ' Second phase voting' ]
114+ _GENERAL = [0 , " All general comments" ]
115+ _SECONDARY_VOTING = [1 , " Second phase voting" ]
0 commit comments