[jifty-devel] Moniker name restrictions
jesse at bestpractical.com
Sat Jul 28 19:15:53 EDT 2007
On Jul 27, 2007, at 1:21 AM, Mikko Lipasti wrote:
> Hello list,
> 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
> 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.
I've updated the action. Now Jifty will warn you when you use a dash
or semicolon in an action and also will correct it to an _.
The glossary better tells you what not to do.
The issue you're actually running into with 0- is something else.
Actions can optionally take a run-order. When composing the action
name in the webform, that's prepended to the moniker as 123456-. So
I think I'll update the moniker code to look for a non-numperic
character first and scream if you don't do that. Does that seem
> Test results: (using Jifty::Test::WWW::Mechanize)
> "0_bottom": ok
> "0-bottom": silent failure
> "0;bottom": ok (surprise!)
> - Mikko
> jifty-devel mailing list
> jifty-devel at lists.jifty.org
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 186 bytes
Desc: This is a digitally signed message part
Url : http://lists.bestpractical.com/pipermail/jifty-devel/attachments/20070728/469060c2/PGP.pgp
More information about the jifty-devel