Doesn't work for me either. With attached .leo file:

- select "write" node, (contains your write file code), press Ctrl-B
- look at file "nosent.txt" on disk, it contains "Line 1, Line 2" as
expected.
- select @nosent node, r-click >> Refresh from disk: error "can not refresh
from disk".
- body pane of @nosent node remains empty

Log output:

Leo Log Window
Leo 5.0-final, build 20141124101406, Mon Nov 24 10:14:06 CST 2014
Not running from a git repo
Python 2.7.4, PyQt version 4.7.1
Windows 7 AMD64 (build 6.1.7601) SP1
reading: D:\temp\test.leo
wrote nosent.txt
can not refresh from disk
@nosent nosent.txt

Leo file:

<?xml version="1.0" encoding="utf-8"?>
<!-- Created by Leo: http://leoeditor.com/leo_toc.html -->
<?xml-stylesheet ekr_test?>
<leo_file xmlns:leo="http://leoeditor.com/namespaces/leo-python-editor/1.1";
>
<leo_header file_format="2"/>
<vnodes>
<v t="maphew.20150208162717.3" a="E"><vh>Test Nosent</vh>
<v t="maphew.20150208161841.4"><vh>write to nosent.txt</vh></v>
<v t="maphew.20150208161841.3"><vh>@nosent nosent.txt</vh></v>
</v>
</vnodes>
<tnodes>
<t tx="maphew.20150208161841.3"></t>
<t tx="maphew.20150208161841.4">@language python
with file('nosent.txt', 'w') as f:
  f.write('Line1\nLine2')
g.es('wrote nosent.txt')</t>
<t tx="maphew.20150208162717.3"></t>
</tnodes>
</leo_file>

Matt

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.

Reply via email to