X-Git-Url: https://scm.cri.ensmp.fr/git/Plinn.git/blobdiff_plain/de068d5b8a1fd46a70f75f4e20e581ee846f866d..bc716e7b2058b3bbcf49b7b5431a1d9e7ed23f02:/skins/photo_theme/homepage_dispatcher.py

diff --git a/skins/photo_theme/homepage_dispatcher.py b/skins/photo_theme/homepage_dispatcher.py
index 57262be..443c164 100755
--- a/skins/photo_theme/homepage_dispatcher.py
+++ b/skins/photo_theme/homepage_dispatcher.py
@@ -3,6 +3,7 @@ from Products.CMFCore.utils import getToolByName
 from ZTUtils import make_query as mq
 from Products.CMFDefault.utils import Message as _
 
+utool = getToolByName(context, 'portal_url')
 req = context.REQUEST
 resp = req.RESPONSE
 came_from = req.form.get('came_from')
@@ -16,13 +17,14 @@ if came_from :
 		came_from = '%s?%s&%s' % (url, qs, mq(portal_status_message=_('Login success')))
 	return resp.redirect(came_from)
 
-else :
-	from Products.realis.utils import searchContentsWithLocalRolesForAuthenticatedUser as search
-	results = search(context, portal_type='Portfolio')
-	if results :
-		atool = getToolByName(context, 'portal_actions')
-		return context.setRedirect(atool, 'user/my_albums', portal_status_message=_('Login success'))
-	else :
-		utool = getToolByName(context, 'portal_url')
-		return resp.redirect('%s?%s' % (utool(), mq(portal_status_message=_('Login success'))))
-	
\ No newline at end of file
+# else :
+#   from Products.realis.utils import searchContentsWithLocalRolesForAuthenticatedUser as search
+#   results = search(context, portal_type='Portfolio')
+#   if results :
+#       atool = getToolByName(context, 'portal_actions')
+#       return context.setRedirect(atool, 'user/my_albums', portal_status_message=_('Login success'))
+#   else :
+#       utool = getToolByName(context, 'portal_url')
+#       return resp.redirect('%s?%s' % (utool(), mq(portal_status_message=_('Login success'))))
+
+return resp.redirect('%s?%s' % (utool(), mq(portal_status_message=_('Login success'))))
\ No newline at end of file