TurboGears uses paste.script for its quickstart command. There was a
request that a file ("sqlobject.txt") is skipped in one template if a
certain variable ("sqlobject") is not set.
How could this be realized? My first idea was to change the file name to
"+sqlobject_txt+" and then set the variable "sqlobject_txt" to an empty
string or None or something starting with a dot, since paste.script
skips files starting with a dot via the should_skip_file method.
But the problem is that "should_skip_file()" is called before
"substitute_filename()" in paste.script.
Can this be changed so that files are skipped if substitute_filename()
renders something that is boolean false?
Or is there a better way to skip individual files?
-- Christoph
_______________________________________________
Paste-users mailing list
[email protected]
http://webwareforpython.org/cgi-bin/mailman/listinfo/paste-users