delayed-write-p option for view slots

0 views
Skip to first unread message

Jan Rychter

unread,
Jun 25, 2008, 5:22:42 AM6/25/08
to webl...@googlegroups.com
This is something that I am not committing, but I thought I'd put it up
for discussion.

The patch implements an additional :delayed-write-p option for view
slots. If you set it to t, then the view slot writer will get called
*after* the object has been persisted. This is useful for updating
relations, where objects need to be assigned ids and stored before
relations can be updated.

This patch is likely useless to you if you never encountered the
problem. However, if you have any many-to-many relations in your data
and you want to create new objects, you will find it indispensable. You
can't create a new object using weblocks and clsql if your object has a
many-to-many relation slot without the patch.

The reason I'm not committing this is because Slava isn't convinced this
is the right way to deal with the problem, and I fully agree. In the
meantime, it solves the problem for me.

--J.

delayed-write.patch.gz

Vyacheslav Akhmechet

unread,
Aug 5, 2008, 3:25:49 AM8/5/08
to webl...@googlegroups.com
On Wed, Jun 25, 2008 at 5:22 AM, Jan Rychter <j...@rychter.com> wrote:
> This is something that I am not committing, but I thought I'd put it up
> for discussion.
>
> The patch implements an additional :delayed-write-p option for view
> slots. If you set it to t, then the view slot writer will get called
> *after* the object has been persisted. This is useful for updating
> relations, where objects need to be assigned ids and stored before
> relations can be updated.
If this isn't in the dev tree, please push it on bitbucket (just a
friendly reminder) :)

- Slava

Reply all
Reply to author
Forward
0 new messages