| | |
| | | string to write in a file |
| | | </function-arg-description> |
| | | </function-arg-def> |
| | | <function-arg-def name="xlink" type="optional" default="NOT_DEFINED"> |
| | | <function-arg-description> |
| | | if you want the content to be a href of xlink |
| | | </function-arg-description> |
| | | </function-arg-def> |
| | | <function-arg-def name="fileFd" type="required"> |
| | | <function-arg-description> |
| | | file descriptor |
| | |
| | | sys.path.append("%s/phases/log" % TESTS_DIR ) |
| | | from log import htmlTransformation |
| | | content = htmlTransformation(content) |
| | | fileFd.write('<message>%s</message>\n' % content) |
| | | if xlink == NOT_DEFINED: |
| | | str = '<message>' |
| | | else: |
| | | str = '<message xlink:href="%s" xlink:type="simple">' % xlink |
| | | |
| | | str = '%s %s</message>\n' % (str,content) |
| | | fileFd.write(str) |
| | | </script> |
| | | <else> |
| | | <message>content</message> |
| | |
| | | <function-map-args> |
| | | <function-arg-def name="client" type="required"> |
| | | </function-arg-def> |
| | | <function-arg-def name="extraParameters" type="optional" |
| | | default="NOT_DEFINED"> |
| | | <function-arg-description> |
| | | extra parameters to add in the node |
| | | </function-arg-description> |
| | | </function-arg-def> |
| | | <function-arg-def name="fileFd" type="required"> |
| | | <function-arg-description> |
| | | file descriptor |
| | |
| | | str = '%s host=\"%s\"' % (str,client.getHost()) |
| | | str = '%s start=\"%s\"' % (str,client.getStart()) |
| | | str = '%s stop=\"%s\"' % (str,client.getStop()) |
| | | str = '%s dependency=\"%s\">\n' % (str,client.getDependency()) |
| | | str = '%s dependency=\"%s\"' % (str,client.getDependency()) |
| | | if extraParameters != NOT_DEFINED: |
| | | str = '%s %s' % (str,extraParameters) |
| | | str = '%s >\n' % str |
| | | fileFd.write(str) |
| | | </script> |
| | | </if> |