[html-formfu] [PATCH] bug with multiple config_file_path in _load_config

Adam Prime aprime at oanda.com
Thu Nov 4 16:45:37 GMT 2010


If you have a form object with multiple config_file_paths, =

load_config_file (etc) don't behave in the same way as TT does when it =

has multiple directories in it's INCLUDE_PATH.  I assume, possibly =

incorrectly, that that it should.  What it does right now is take the =

list of directories, iterate through them attempting to load your config =

file, and if it does it happily continues through the list of paths, so =

if it finds another one, it'll use that one instead.  TT uses the first =

one it finds, which allows you to have customized version of shared =

templates by customizing INCLUDE_PATH.  We need to do the same thing =

with FormFu at $work, which is how we've run into this problem.

Attached is an svn diff for a new test which fails in the current =

version, and the corresponding fix for the problem.

Let me know if you need any clarification, or anything else, and thanks =

for the great package, it's save us tremendous amounts of time.

Adam
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ff.patch
Type: text/x-patch
Size: 1417 bytes
Desc: not available
Url : http://lists.scsys.co.uk/pipermail/html-formfu/attachments/20101104/1=
89ba72a/ff.bin


More information about the HTML-FormFu mailing list