[Zope] 'Owner' not being set.

Dave Smithson Dave Smithson" <dave.smithson@runningdog.co.uk
Fri, 13 Jul 2001 15:56:21 +0100


Thanks very much indeed for the help so far.

> What are they: topics? for what query?
I'm sorry, but I don't understand this question. :-(

Dieter wrote:
> Hmm... "example" and "example2" are standard folders?
Yes they are. I have made screengrabs of the site hierarchy, and the
contents of 'example' and 'example2' at:

http://d029.ml.uwcm.ac.uk:8080/imi_test/screengrab

Hm. I fear that the Catalog issue is a red herring. The line marked ** in
the following code, which is the 'zc_book_add'  is, apparently, the problem:

<html>
<head><title>Add zc_book</title></head>
<body bgcolor="#FFFFFF" link="#000099" vlink="#555555">

**
<dtml-call "REQUEST.set('Owner',AUTHENTICATED_USER.getUserName())">
**

<dtml-with "zc_book.createInObjectManager(REQUEST['id'], REQUEST)">

<dtml-call "REQUEST.set('prop',propertysheets.get('book_properties'))">
<dtml-call "prop.manage_editProperties(REQUEST)">
<dtml-call reindex_object>
</dtml-with>
<dtml-if DestinationURL>
  <dtml-call "RESPONSE.redirect(DestinationURL+'/manage_workspace')">
<dtml-else>
  <dtml-call "RESPONSE.redirect(URL2+'/manage_workspace')">
</dtml-if>
</body></html>

The line  <dtml-call
"REQUEST.set('Owner',AUTHENTICATED_USER.getUserName())">  should return the
username of the authenticated user - but, for some reason, the owner field
in the request isn't being set - and hence information uploaded into
'example/book' is also seen in 'example2/book'. I don't know if I'm
describing the right problems here.

I've added a 'showuser' on the pages, which I think might clarify things a
little.

Yours in self-doubt,

Cheers,

Dave.

David Smithson
Information Designer
Media Resources Centre
University of Wales College of Medicine
Cardiff UK