[jifty-devel] Moniker name restrictions
mikko.lipasti at polarcom.fi
Fri Jul 27 02:21:31 EDT 2007
I was surprised to find my template/action silently fail when using monikers with a dash, e.g. "01-something". Replacing the dash with an underscore fixed the problem.
"A moniker is an arbitrary-length nonempty string containing no semicolons."
This should be updated to forbid dashes.
Moreover, Jifty->web->new_action should warn (or die even) if moniker name contains forbidden characters. Currently, there's no warning, the action(s) just don't run.
Test results: (using Jifty::Test::WWW::Mechanize)
"0-bottom": silent failure
"0;bottom": ok (surprise!)
More information about the jifty-devel