Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
synnefo
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
itminedu
synnefo
Commits
90e5b3ce
Commit
90e5b3ce
authored
Dec 12, 2012
by
Sofia Papagiannaki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow follower application with same deifinition name approvement
parent
3a1c2a0d
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
12 deletions
+14
-12
snf-astakos-app/astakos/im/management/commands/project-list.py
...stakos-app/astakos/im/management/commands/project-list.py
+4
-4
snf-astakos-app/astakos/im/messages.py
snf-astakos-app/astakos/im/messages.py
+1
-1
snf-astakos-app/astakos/im/models.py
snf-astakos-app/astakos/im/models.py
+6
-6
snf-astakos-app/astakos/im/templates/im/projects/project_list.html
...os-app/astakos/im/templates/im/projects/project_list.html
+3
-1
No files found.
snf-astakos-app/astakos/im/management/commands/project-list.py
View file @
90e5b3ce
...
...
@@ -50,10 +50,10 @@ class Command(NoArgsCommand):
)
def
handle_noargs
(
self
,
**
options
):
apps
=
ProjectApplication
.
objects
.
select_related
().
all
()
apps
=
ProjectApplication
.
objects
.
select_related
().
all
()
.
order_by
(
'id'
)
labels
=
(
'application.id'
,
'
project.id'
,
'name'
,
'application.state'
,
'application.id'
,
'
application.state'
,
'project.id'
,
'name'
,
'is_active'
,
'is_alive'
,
'is_suspended'
,
'is_terminated'
)
columns
=
(
15
,
10
,
20
,
10
,
10
,
10
,
10
,
10
)
...
...
@@ -79,9 +79,9 @@ class Command(NoArgsCommand):
is_terminated
=
''
fields
=
(
str
(
app
.
id
),
app
.
state
,
str
(
project_id
),
app
.
definition
.
name
,
app
.
state
,
format_bool
(
is_active
),
format_bool
(
is_alive
),
format_bool
(
is_suspended
),
...
...
snf-astakos-app/astakos/im/messages.py
View file @
90e5b3ce
...
...
@@ -138,7 +138,7 @@ NOT_ALIVE_PROJECT = 'Project %(id)s is not alive.'
NOT_ALLOWED
=
'You do not have the permissions to perform this action.'
MEMBER_NUMBER_LIMIT_REACHED
=
'Maximum participant number has been reached.'
MEMBER_JOIN_POLICY_CLOSED
=
'The project member join policy is cloesd.'
MEMBER_LEAVE_POLICY_CLOSED
=
'The project member leave policy is clo
es
d.'
MEMBER_LEAVE_POLICY_CLOSED
=
'The project member leave policy is clo
se
d.'
NOT_MEMBERSHIP_REQUEST
=
'There is no such a membership request.'
MEMBERSHIP_REQUEST_EXISTS
=
'There is alreary such a membership request.'
NO_APPLICANT
=
'Project application requires an applicant. None found.'
...
...
snf-astakos-app/astakos/im/models.py
View file @
90e5b3ce
...
...
@@ -1151,12 +1151,12 @@ class ProjectDefinition(models.Model):
"""
Validate name uniqueness among all active projects.
"""
alive_projects
=
list
(
get_alive_projects
())
q
=
filter
(
lambda
p
:
p
.
definition
.
name
==
self
.
name
and
\
p
.
application
.
id
!=
self
.
projectapplication
.
id
,
alive_projects
)
q
=
list
(
get_alive_projects
())
q
=
filter
(
lambda
p
:
p
.
definition
.
name
==
self
.
name
,
q
)
q
=
filter
(
lambda
p
:
p
.
application
.
id
!=
self
.
projectapplication
.
id
,
q
)
if
self
.
projectapplication
.
precursor_application
:
q
=
filter
(
lambda
p
:
p
.
application
.
id
!=
\
self
.
projectapplication
.
precursor_application
.
id
,
q
)
if
q
:
raise
ValidationError
(
_
(
astakos_messages
.
UNIQUE_PROJECT_NAME_CONSTRAIN_ERR
)
...
...
snf-astakos-app/astakos/im/templates/im/projects/project_list.html
View file @
90e5b3ce
...
...
@@ -86,6 +86,7 @@
<th>
Ends
</th>
<th>
Enrolled
</th>
<th>
Status
</th>
<th/>
<th>
Membership Status
</th>
<th>
</th>
<th>
Member accept policy
</th>
...
...
@@ -106,8 +107,9 @@
<td
style=
"width:13%"
>
{{o.definition.end_date|date:"d/m/Y"}}
</td>
<td
style=
"width:11%"
>
{{approved_members|length}}
</td>
<td
style=
"width:11%"
>
{{o.state}}
{% if o.state != 'Replaced' %}
<a
href=
"{% url project_update o.id %}"
>
Update
</a>
{% endif %}
{{o.state}}
</td>
<td>
{% if o.state != 'Replaced' %}
<a
href=
"{% url project_update o.id %}"
>
Update
</a>
{% endif %}
</td>
<td
style=
"width:17%"
>
<div
class=
"msg-wrap"
>
{% if user == o.owner %}
...
...
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