+
+ # If the store greeting in cookie setting is activated make sure that the greeting_set cookies isn't set
+ if (settings.STORE_GREETING_IN_COOKIE and not request.COOKIES.has_key('greeting_set')) or \
+ not settings.STORE_GREETING_IN_COOKIE:
+ request.user.message_set.create(message=msg)
+
+ if settings.STORE_GREETING_IN_COOKIE:
+ request.COOKIES.set(key='greeting_set', value=True)