-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Working with an INegotiator multi-adapter did not work. I am convinced that default negotiator will never work with anonymous vs. non-anonymous requests since the negotiator is called as pre-traversal hook (authentication happens later afaik).
Anyway...workaround: I wrote a post-traversal hook (IPubAfterTraversal subscriber) where I could implement the desired behavior easily. - -aj Andreas Jung wrote: > > > Martijn Pieters wrote: > >> As Laurence points out, you can provide your own language >> negotiator that ignores the top-level language folder when logged >> in. > > Sounds reasonable however my debugger tells me that the security > context inside the constructor of the default negotiator of > portal_languages is always Anonymous User (likely because the > negotiation happens before authentication). What's confusing me: the > negotiator code contains checks for isAnonymousUser() while the > security context seems to be always Anonymous User - either dead code > or I am doing something wrong here. > > -aj > > _______________________________________________ Product-Developers > mailing list [email protected] > https://lists.plone.org/mailman/listinfo/plone-product-developers - -- ZOPYX Limited | zopyx group Charlottenstr. 37/1 | The full-service network for Zope & Plone D-72070 Tübingen | Produce & Publish www.zopyx.com | www.produce-and-publish.com - ------------------------------------------------------------------------ E-Publishing, Python, Zope & Plone development, Consulting -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQGUBAEBAgAGBQJPhG+CAAoJEADcfz7u4AZjBXYLv0HXxqMInyzIiQdNOYv1v0p/ HycoBC2HhHajrp24hFYRTVynGe6uKjeRvvnnIo7TwG2ox/3o4T0zBHHuCyx7Zcuc WB1bFC4AUv0J/F+30XSbcDSEimxj9EAFdFPIDnAo6x7vY+sAQ3T3EUi3JWkvVeWP J616T5kXvRj3VkSLktojvFphiQw9katy6ZgE7iuWcy06ns1wtxSC4WVS8cKWMqDo PatGUivZBYWTcViibq0D2qrVgSQ6GaQ9j3sFoo2N9lXBDJPVTPUBJuGXc2U7vvLp vbtY4nOVKj2KrYBSJyHPdEdRbqEuUMje/hBj67CFluhuZ/ahtSx7Z9XjPbWgCHEG p+5VabkA/Mjd99fn7MIlZA3Ah5jnFYWp2bRTp/FzxU4VkpjFWWMSccqzj5DzuHGq 7YZh7t8QgGd7PKPgS2rN4zYlWirO6DBMrO3hwk0WWhFsY+Z4/Jj33634HRq87ISA Nj8uaBFlWVcYllh1Q6OSkYhNapbhvTw= =+9z9 -----END PGP SIGNATURE-----
<<attachment: lists.vcf>>
_______________________________________________ Product-Developers mailing list [email protected] https://lists.plone.org/mailman/listinfo/plone-product-developers
