2 # log functions for user activity
7 def login(request, state=None):
9 activity.log(request, "user.login." + state, "User log in")
11 activity.log(request, "user.login", "User log in")
14 activity.log(request, "user.logout", "User log out")
17 activity.log(request, "user.signup.view", "User sign up")
19 def registered(request):
20 activity.log(request, "user.signup", "User registered")
23 activity.log(request, "user.contact", "User sent a contact request")
26 activity.log(request, "user.slice", "User requested a slice")
28 def resource(request):
29 activity.log(request, "user.resource", "User added a resource to a slice")