[Zope] CMF metadata; CMF talkback; ownership

hamish@allan.tc hamish@allan.tc
31 Aug 2001 13:16:16 -0000


hello folks,

i'm new to zope, and i've been trying to get up to speed with the CMF. i have a 
query about metadata (and some other more general queries below).

when i create a CMF site and view it, i can use the portal controls to 'join' 
(create a user) and then, having authenticated myself as that user, create 
documents, news items, images etc. in my member area. when i do so i am invited 
to provide metadata.

when i view the members folder through the zope interface, i can click on 
documents and news items to be presented with a 'dublin core' tab, through 
which i can examine the metadata for that item. however, images appear to be 
the same as 'standard' zope images, with no dublin core tab. but the metadata 
is somewhere! i can still view and edit it through the portal interface. so 
where is it stored?!?!?!

also, images seem to make the talkback interface misbehave. consider the 
following setup:

http://localhost:8080/cmftest/Members/hamish/index_html          (document)
http://localhost:8080/cmftest/Members/hamish/images              (folder)
http://localhost:8080/cmftest/Members/hamish/images/photo_of_me  (image)

i configure the system to allow talkback on documents and images, and then 
create some nested comments on index_html and photo_of_me. the link to the 
first talkback comment on index_html has the form:

http://localhost:8080/cmftest/Members/hamish/index_html/talkback/999212237

and the plus next to it used to expand the tree has the form:

http://localhost:8080/cmftest/Members/hamish/index_html?tree-c=eJyLVneEAq-
sZFt1HQUEvyLUVj0WAIdvCFk#AAAAAAAAJxU=

but wheras the link to the first talkback comment on photo_of_me has the same 
form:

http://localhost:8080/cmftest/Members/hamish/images/photo_of_me/talkback/9992121
04

its tree expansion link has the form:

http://localhost:8080/cmftest/Members/hamish/images/photo_of_me/photo_of_me?
tree-e=eJyLVneEAq8CV1t1HQUEv8zRVj0WAIU7CCs#AAAAAAAAJvA=

and clicking on that plus sign just shows me the image, i.e., as if the url had 
been .../images/photo_of_me or .../images/photo_of_me/photo_of_me.

okay, just one more query now! this one may be a bug.

- i authenticate myself as 'user_u' (manager/owner), and create 'folder_f'.
- inside 'folder_f' i create 'folder_g', inside which i create 'folder_h', 
inside which i create 'document_d'.
- inside 'folder_h' i also create an acl_users folder and add a new 
user, 'user_v' (manager/owner).
- i authenticate myself as 'user_v' and take ownership of 'document_d'.
- i authenticate myself as 'user_u', cut 'folder_h' and paste it 
into 'folder_f'.
- 'folder_g' is now empty and can be deleted.
- i authenticate myself as 'user_v' and examine 'document_d'. i am invited to 
take ownership of said document (because i am 'user_v 
(folder_f/folder_h/acl_users)', and it is owned by 'user_v 
(folder_f/folder_g/folder_h/acl_users)').

is this the desired behaviour? i appreciate that had i simply 
deleted 'user_v', 'document_d' would still be owned by that user, but somehow 
it seems wrong that the same estrangement can be achieved by a more powerful 
user moving a subfolder (e.g., when trying to reorganise the layout of several 
websites on a single zope server).

thanks,
hamish



-- 
Get your firstname@lastname email for FREE at http://Nameplanet.com/?su