This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"context" | |
"database/sql" | |
"fmt" | |
"io" | |
"log" | |
"math/rand" | |
"net/http" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"database/sql" | |
"fmt" | |
"io" | |
"log" | |
"math/rand" | |
"net/http" | |
"time" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import unittest | |
from zope.interface import providedBy | |
from pyramid import testing | |
from pyramid.interfaces import IRequest, ITraverser | |
from pyramid_contextroutes import ( | |
ContextRoutes, route, ContextRoutesTraverser, IContextRoutes) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
from zope.interface import Interface, implementer | |
from pyramid.interfaces import ITraverser | |
from pyramid.urldispatch import Route | |
from pyramid.traversal import traversal_path_info | |
ROUTES_ATTRS = "__routes__" |