if (do_name() != 'Home') : ?>
endif ?>
Posted by Stefan on May 22, 2009
By "for line in f" you assign line to be a string, so its previous meaning gets overwritten, try "for l in f" or something like that.
Posted by Bryce on May 25, 2009
include("util/comment.php"); ?>
Oh man I feel like a bonehead. Thanks :)
Iterating over a file breaks line()
Posted by Bryce on May 22, 2009Try running this script. The first line is drawn, but the second line gives an error:
Traceback (most recent call last):
File "nodebox/gui/mac/__init__.pyo", line 358, in _execScript
File "/test.py", line 10, in
TypeError: 'str' object is not callable
This is on a fresh copy of 1.9.4.