Using the current trunk (but also some earlier versions, both with and
without my tinkering):

I've got a pretty trivial outline: an empty @chapters, a node titled
path that contains "@path /home/sps/Foo" and child of the path node
with the headline "@shadow CHANGELOG" and no contents.  I then try to
"File->Read/Write->Read @shadow nodes", and the content of CHANGELOG
appears in the node, but the .leo_shadow directory does not get
created, and I get the following traceback:

reading: @shadow CHANGELOG
exception executing command
Traceback (most recent call last):
  File "/usr/local/lib/leo/core/leoCommands.py", line 319, in
doCommand
    val = command(event)
  File "/usr/local/lib/leo/core/leoCommands.py", line 1241, in
readAtShadowNodes
    c.atFileCommands.readAtShadowNodes(p)
  File "/usr/local/lib/leo/core/leoAtFile.py", line 655, in
readAtShadowNodes
    at.readOneAtShadowNode (fileName,p)
  File "/usr/local/lib/leo/core/leoAtFile.py", line 683, in
readOneAtShadowNode
    at.writeOneAtShadowNode(p,toString=False,force=True)
  File "/usr/local/lib/leo/core/leoAtFile.py", line 2587, in
writeOneAtShadowNode
    at.writeOpenFile(root,nosentinels=not
sentinels,toString=False,atAuto=False)
  File "/usr/local/lib/leo/core/leoAtFile.py", line 2841, in
writeOpenFile
    at.putBody(root,fromString=fromString)
  File "/usr/local/lib/leo/core/leoAtFile.py", line 2913, in putBody
    at.putCodeLine(s,i)
  File "/usr/local/lib/leo/core/leoAtFile.py", line 3136, in
putCodeLine
    if g.match(s,k,self.startSentinelComment + '@'):
TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'

If I save the outline at that point, it contains the following:

<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet ekr_test?>
<leo_file>
<leo_header file_format="2" tnodes="0" max_tnode_index="0"
clone_windows="0"/>
<globals body_outline_ratio="0.4">
        <global_window_position top="20" left="20" height="600"
width="800"/>
        <global_log_window_position top="0" left="0" height="0"
width="0"/>
</globals>
<preferences/>
<find_panel_settings/>
<vnodes>
<v t="sps.20081023030401.1" str_leo_pos="1,0"><vh>@chapters</vh></v>
<v t="sps.20081023030401.3" a="E"><vh>path</vh>
<v t="sps.20081023030401.2"><vh>@shadow CHANGELOG</vh></v>
</v>
</vnodes>
<tnodes>
<t tx="sps.20081023030401.1"></t>
<t tx="sps.20081023030401.3">@path /home/sps/Foo
</t>
</tnodes>
</leo_file>

The contents of the CHANGELOG file are pretty unimpressive after I
removed all but the top entry during debugging:

0.25.?
    Fixing #1168 for REST -- all ssl classes downcase their names.
    This is a much cleaner fix than the xmlrpc version, thankfully. :)

    Added a boolean 'crl' default value.  Now we have a location for
    the CA CRL and the host CRL, and then a setting for configuring
    whether we should even use a CRL.  This way we aren't trying to
    set file paths to 'false' to disable the CRL.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to