web2py/web2py — pull request #562 by timnyborg (2014-12-16 12:12:20+00:00)
Title: Enable map_hyphen to work for application names

1) Set self.map_hyphen early in map_app(), so the first call to harg0 properly replaces hyphens with underscores. Without this, the rewriter can't find the application, and reverts to the default

2) Disable hyphen mapping of the application when producing /static URLs. Without this, the generated URL will be to a non-existent folder.