X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=portal%2Factions.py;h=da5fe56fbe405a85330e884862feacddc46da359;hb=25a564caae591fd408aa0c11470e99852306f20d;hp=b06ccdfe180a4559294bb64ffb3144e355488847;hpb=8125063b08b2151d67ef86f076377fca80efde6d;p=myslice.git diff --git a/portal/actions.py b/portal/actions.py index b06ccdfe..da5fe56f 100644 --- a/portal/actions.py +++ b/portal/actions.py @@ -14,6 +14,8 @@ from myslice.theme import ThemeView theme = ThemeView() +import activity.slice + # Thierry: moving this right into the code so # most people can use myslice without having to install sfa # XXX tmp sfa dependency, should be moved to SFA gateway @@ -616,7 +618,8 @@ def create_slice(wsgi_request, request): raise Exception, "Could not create %s. Already exists ?" % slice_params['hrn'] else: clear_user_creds(wsgi_request,user_email) - + # log user activity + activity.slice.validate(self.request, "Slice validation", { "slice" : hrn }) try: theme.template_name = 'slice_request_validated.txt' text_content = render_to_string(theme.template, request)