Forum OpenACS Development: Re: Modifying xowiki page content from a script

Collapse
Posted by Byron Linares on
If I’m understanding correctly, what you want to do .
You can do it like this

set page [xowiki::Package instantiate_page_from_id -item_id $item_id]

set instance_attributes "ATTRIBUTE ATTRIBUTE_value ...."}

$page set page_template $tmp_item_id
$page set instance_attributes $instance_attributes
$template save
$template initialize_loaded_object

try it,

how do you solved the first problem ?

Collapse
Posted by Alvaro Rodriguez on
Right, I was getting kind of confused, but of course this would be the right way of doing it, creating a new revision every time.

Thanks,

The first problem was solved with doing the flush like Gustaf said.