Exemple #1
0
def proccess_create_project(parsed):
    username = getattr(parsed, 'username', None)
    password = getattr(parsed, 'password', None)
    name = getattr(parsed, 'name', None)
    description = getattr(parsed, 'description', None)

    ProjectController.create(username, password, name, description)
    pr_pres.success_create()
Exemple #2
0
 def post(self, request):
     ProjectController.create(request.user.username, request.user.password,
                              request.POST['name'],
                              request.POST['description'])
     return redirect('tracker:projects')