Revision f807da72

b/snf-astakos-app/astakos/im/messages.py
178 178
PENDING_MEMBERSHIP_LEAVE                =   'Your request is pending moderation by the Project owner.'
179 179
USER_JOINED_PROJECT                     =   '%(realname)s has joined the Project.'
180 180
USER_LEFT_PROJECT                       =   '%(realname)s has left the Project.'
181
USER_JOIN_REQUEST_SUBMITED              =   'Join request submitted.'
181 182

  
182 183
# Auth providers messages
183 184
AUTH_PROVIDER_NOT_ACTIVE                     =   "'%(provider)s' is disabled."
b/snf-astakos-app/astakos/im/views.py
1188 1188
def project_join(request, application_id):
1189 1189
    next = request.GET.get('next')
1190 1190
    if not next:
1191
        next = reverse('astakos.im.views.project_list')
1191
        next = reverse('astakos.im.views.project_detail',
1192
                       args=(application_id,))
1192 1193

  
1193 1194
    rollback = False
1194 1195
    try:
1195 1196
        application_id = int(application_id)
1196 1197
        join_project(application_id, request.user)
1198
        # TODO: distinct messages for request/auto accept ???
1199
        messages.success(request, _(astakos_messages.USER_JOIN_REQUEST_SUBMITED))
1197 1200
    except (IOError, PermissionDenied), e:
1198 1201
        messages.error(request, e)
1199 1202
    except BaseException, e:

Also available in: Unified diff