Hi Jeroen!

Semantic Watchlist operates with the data that has been already stored in
the database, right? What I need is to make some things before the new text
become stored. Here is my use case:

1. Suppose we have a wiki for brainstorming. Each article represents an
idea. The brainstorming session is offline but we have a secretary guy
whose job is to write stuff on a wiki using Semantic Forms. Other guys A,B
and C are actual authors of the ideas. One of the fields in the semantic
forms is called "Author of the idea". When Secretary fills this field with
author's name and saves the article, we change the author of this revision
accourding to the value in "Author of the idea"

I'm using ArticleSaveComplete hook now and UPDATE the `revision` table
after article is stored. It works but it's obviously a workaround. What I
want is to replace the $user variable accourding to the name of the user in
the semantic property "Author" in the callback function for ArticleSave
hook (prior to adding the article to the database).
-----
Yury Katkov




On Wed, Jul 25, 2012 at 2:12 PM, Jeroen De Dauw <jeroended...@gmail.com>wrote:

> Hey,
>
>
> > Probably I do. I want to know whether or not the user will change the
> property befor the text is stored in the database.
>
> Sorry, that makes no sense to me. If you want to know the property value
> changes, what you need is exactly the hooks providing diffs I mentioned.
> Why would you need association with source text for this?
>
> What are you trying to create that needs this information?
>
>
> Cheers
>
> --
> Jeroen De Dauw
> http://www.bn2vs.com
> Don't panic. Don't be evil.
> --
>
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel

Reply via email to