Authentication problem with owner_info
Hello everyone, In order to diplay the person who wrote a new item I use his code : <em tal:content="here/owner_info/id">Owner</em> Unfortunatly this don't work ! I keep getting authentication problems (I test as Anonymous User). Does anybody has an idea why this is happening ? -- (°> Nicolas Évrard / ) Liège - Belgique ^^
try here/getOwner -aj --On Donnerstag, 13. März 2003 19:47 Uhr +0100 Nicolas Évrard <nicoe@altern.org> wrote:
Hello everyone,
In order to diplay the person who wrote a new item I use his code :
<em tal:content="here/owner_info/id">Owner</em>
Unfortunatly this don't work ! I keep getting authentication problems (I test as Anonymous User).
Does anybody has an idea why this is happening ?
-- (°> Nicolas Évrard / ) Liège - Belgique ^^
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
* Nicolas Évrard [21:02 13/03/03 CET]:
* Andreas Jung [19:51 13/03/03 CET]:
try here/getOwner
Yep, already tried that ... but it didn't worked :(
Well I finally find a way around but I don't think this is really the right thing to do : I created the python script : return context.owner_info()['id'] with the proxy of Manager and now it works ! -- (°> Nicolas Évrard / ) Liège - Belgique ^^
Nicolas Évrard wrote at 2003-3-13 19:47 +0100:
In order to diplay the person who wrote a new item I use his code :
<em tal:content="here/owner_info/id">Owner</em>
Unfortunatly this don't work ! I keep getting authentication problems (I test as Anonymous User).
You want to learn about "proxie" roles. Please consult the Zope Book (2.6. edition). Dieter
* Dieter Maurer [23:05 14/03/03 CET]:
Nicolas Évrard wrote at 2003-3-13 19:47 +0100:
In order to diplay the person who wrote a new item I use his code :
<em tal:content="here/owner_info/id">Owner</em>
Unfortunatly this don't work ! I keep getting authentication problems (I test as Anonymous User).
You want to learn about "proxie" roles.
I did, as explained in <20030314012324.GA29602@smarties.nutellux.ath.cx>, but I though this kind of thing didn't need a proxy. PS : Don't CC me on replies, I read the list (and use Mail-Followup-To). Thanks. -- (°> Nicolas Évrard / ) Liège - Belgique ^^
participants (3)
-
Andreas Jung -
Dieter Maurer -
Nicolas Évrard