Lines Matching refs:fnode
11 fnode = FileNode.new_node(h5file, where='/', name='fnode_test') variable
17 print("This is a test text line.", file=fnode)
18 print("And this is another one.", file=fnode)
19 print(file=fnode)
20 fnode.write("Of course, file methods can also be used.")
22 fnode.seek(0) # Go back to the beginning of file.
24 for line in fnode:
28 fnode.close()
29 print(fnode.closed)
33 fnode = FileNode.open_node(node, 'a+') variable
34 print(repr(fnode.readline()))
35 print(fnode.tell())
36 print("This is a new line.", file=fnode)
37 print(repr(fnode.readline()))
40 fnode.seek(0)
41 for line in fnode:
45 fnode.attrs.content_type = 'text/plain; charset=us-ascii'
48 fnode.attrs.author = "Ivan Vilata i Balaguer"
49 fnode.attrs.creation_date = '2004-10-20T13:25:25+0200'
50 fnode.attrs.keywords_en = ["FileNode", "test", "metadata"]
51 fnode.attrs.keywords_ca = ["FileNode", "prova", "metadades"]
52 fnode.attrs.owner = 'ivan'
53 fnode.attrs.acl = {'ivan': 'rw', '@users': 'r'}
56 fnode.close()