Hi,
On Sun, Jan 15, 2006 at 11:20:47AM -0500, Stephan Richter wrote:
On Thursday 12 January 2006 08:13, Frank Burkhardt wrote:
but the problem remains: canAccess returns True for all inaccessible
objects.
It is hard to guess where your setup is wrong. Does it not work for unit
tests,
On Jan 17, 2006, at 10:38 AM, Frank Burkhardt wrote:
Hi,
On Sun, Jan 15, 2006 at 11:20:47AM -0500, Stephan Richter wrote:
On Thursday 12 January 2006 08:13, Frank Burkhardt wrote:
but the problem remains: canAccess returns True for all inaccessible
objects.
It is hard to guess where your
Hi,
On Tue, Jan 17, 2006 at 10:53:12AM -0500, Gary Poster wrote:
[snip]
The meaning of objects a user can access varies significantly from
application to application. You will probably want to optimize this
filter by creating an index eventually. For some policies and questions,
this
On Thursday 12 January 2006 07:01, Frank Burkhardt wrote:
for obj in catalog.searchResults(content=searchquery):
view=zapi.queryMultiAdapter((obj,self.request),name='view.html')
try:
canAccess(view,'__call__')
search_results.append(obj)
except:
object
Hi,
On Thu, Jan 12, 2006 at 07:19:02AM -0500, Stephan Richter wrote:
[snip]
But canAccess never fails here - even if the object is inaccessible.
canAccess() returns a boolean unless there is no security declaration at all.
I changed the code fragement to
for obj in