Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
synnefo
Commits
cd4789c3
Commit
cd4789c3
authored
Feb 13, 2014
by
Olga Brani
Browse files
astakos: pep8 fixes
parent
523cedc8
Changes
1
Hide whitespace changes
Inline
Side-by-side
snf-astakos-app/astakos/im/tables.py
View file @
cd4789c3
...
...
@@ -267,7 +267,7 @@ class UserProjectsTable(UserTable):
empty_values
=
(),
orderable
=
False
)
owner
=
tables
.
Column
(
verbose_name
=
_
(
"Owner"
),
accessor
=
'application.owner'
)
accessor
=
'application.owner'
)
membership_status
=
tables
.
Column
(
verbose_name
=
_
(
"Status"
),
empty_values
=
(),
orderable
=
False
)
...
...
@@ -315,8 +315,8 @@ class UserProjectsTable(UserTable):
return
mark_safe
(
str
(
members_count
)
+
append
)
class
Meta
:
sequence
=
(
'name'
,
'membership_status'
,
'owner'
,
'issue_date'
,
'end_date'
,
'members_count_f'
,
'project_action'
)
sequence
=
(
'name'
,
'membership_status'
,
'owner'
,
'issue_date'
,
'end_date'
,
'members_count_f'
,
'project_action'
)
attrs
=
{
'id'
:
'projects-list'
,
'class'
:
'my-projects alt-style'
}
template
=
"im/table_render.html"
empty_text
=
_
(
'No projects'
)
...
...
@@ -357,9 +357,9 @@ class ProjectMembersTable(UserTable):
check
=
tables
.
Column
(
accessor
=
"person.id"
,
verbose_name
=
mark_safe
(
input
),
orderable
=
False
)
email
=
tables
.
Column
(
accessor
=
"person.email"
,
verbose_name
=
_
(
'Email'
),
orderable
=
False
)
orderable
=
False
)
status
=
tables
.
Column
(
accessor
=
"state"
,
verbose_name
=
_
(
'Status'
),
orderable
=
False
)
orderable
=
False
)
project_action
=
RichLinkColumn
(
verbose_name
=
_
(
'Action'
),
extra_context
=
member_action_extra_context
,
orderable
=
False
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment