非编目内容之间的 Dexterity z3c 关系是否可能?

Are Dexterity z3c relations between non-cataloged content possible?

具体来说,我希望能够使用具有指向 acl_users.source_users 中用户的 z3c 关系字段的 Dexterity 内容。 Plone 文档演示了如何使用 plone.formwidget.contenttree 在模式中创建关系,但活页夹似乎都基于目录搜索。由于用户在这个意义上不满意,所以他们没有被编目。

我不确定这是否是最好的方法,但能够 link 对用户来说似乎是一个简单的抽象概念。我想另一种方法是将用户 ID 存储为一个简单的字符串字段并监听用户管理事件。

有两种可能的方法:

(1) 内容和用户之间关系的低级索引,可能 collective.subscribe (disclosure, I am the principal author, and the only example of this in use is collective.inviting,一个事件 RSVP 附加组件)。没有用于此的小部件或 UI。

(2) 如果您只是想挑选用户,您可以在您的架构中使用 Choice 字段,并在您的系统中使用动态用户词汇表(example), and store the user-id on your content (unrelated warning: user name and user id can be distinct from each other; if you use email as login in Plone 4, I suggest you use collective.emaillogin4). The content tree widget is not going to work here, so look at either using a drop-down (for <200 users) or an auto-complete 小部件)。