Working with latest pyramid 1.3

Issue #108 new
Ralph Bean
created an issue

We should test that tw2 works fine with pyramid 1.3.

We should also update our tutorials off of http://tw2core.rtfd.org to reflect the latest version of pyramid.

Comments (4)

  1. Anonymous

    Hi Ralph, I believe I have a fix for this issue. In tw2.core/tw2/core/resources.py at line 332, if you replace the line:

    if path.startswith(d):
    

    with:

    if path.startswith(d.replace("\\","/")):
    

    it should resolve issues for windows users. The join to produce self._dirs creates path strings like this:

    'tw2.jqplugins.ui/static\\jquery/ui/1.8.17/js'
    

    which is the cause of the problem as far as I can tell on the Windows environments I am using for development.

  2. Log in to comment