311 |
rollback(providerTaxProfileBlock) |
rollback(providerTaxProfileBlock) |
312 |
</trigger> |
</trigger> |
313 |
|
|
314 |
<trigger name="printTrigger" type="NAMED"> |
<trigger name="printTrigger" type="NAMED"><![CDATA[ |
315 |
# import os |
import tempfile |
316 |
# os.system("grcvs -D file -d ~/tmp/provider.html --filter html ../report/provider.grd") |
import os |
317 |
# os.system("galeon -w ~/tmp/provider.html") |
|
318 |
</trigger> |
try: |
319 |
|
# gnue version <= 0.4 |
320 |
|
from gnue.forms.GFEvent import GFEvent |
321 |
|
except ImportError: |
322 |
|
# gnue version >= 0.5 |
323 |
|
from gnue.common.events.Event import Event as GFEvent |
324 |
|
|
325 |
|
# busy clock |
326 |
|
self._object.dispatchEvent(GFEvent('beginWAIT')) |
327 |
|
file = tempfile.mktemp('.provider.html') |
328 |
|
psFile = tempfile.mktemp('.providerTmp.html') |
329 |
|
tmpFile = tempfile.mktemp('.providerISO.ps') |
330 |
|
os.system("grcvs -D file -d %s --filter html ../report/provider.grd" % file) |
331 |
|
os.system("iconv -f UTF-8 -t ISO-8859-1 %s > %s " % (file,tmpFile)) |
332 |
|
os.system("html2ps %s > %s " % (tmpFile, psFile)) |
333 |
|
os.system(gConfig('PrintCommand')+" "+(psFile)) |
334 |
|
os.unlink(file) |
335 |
|
os.unlink(psFile) |
336 |
|
os.unlink(tmpFile) |
337 |
|
|
338 |
|
self._object.dispatchEvent(GFEvent('endWAIT')) |
339 |
|
|
340 |
|
]]></trigger> |
341 |
|
|
342 |
<trigger type="NAMED" name="searchTrigger"> |
<trigger type="NAMED" name="searchTrigger"> |
343 |
providerResultBlock.processRollback() |
providerResultBlock.processRollback() |