lib/openwfe/participants/atomparticipants.rb in openwferu-0.9.11 vs lib/openwfe/participants/atomparticipants.rb in openwferu-0.9.12
- old
+ new
@@ -135,41 +135,42 @@
@feed << e
@feed = @feed[0, @max_item_count] \
if @feed.length > @max_item_count
- publish(workitem)
+ publish workitem
- reply_to_engine(workitem)
+ reply_to_engine workitem
end
protected
def render (workitem)
fe = get_flow_expression(workitem)
template = if @block_template
- @block_template.call(fe, self, workitem)
+ #@block_template.call(fe, self, workitem)
+ call_block @block_template, workitem
elsif @template
if @template.kind_of? File
@template.readlines
else
@template.to_s
end
else
"(no template given)"
end
- return OpenWFE::dosub(template, fe, workitem)
+ OpenWFE::dosub(template, fe, workitem)
end
#
# For the moment, just dumps the feed into a file.
#
def publish (workitem)
synchronize do
- filename = "atom_#{workitem.participant_name}.xml"
+ filename = "work/atom_#{workitem.participant_name}.xml"
f = File.open(filename, "w")
f << @feed.to_s
f.close()
end
end