Move things from routing.py to tools/routing.py
This stops a cyclic import. Move add_route, mount and endpoint_to_controller into tools/routing.py and change all callers.
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
# You should have received a copy of the GNU Affero General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
from mediagoblin.routing import add_route
|
||||
from mediagoblin.tools.routing import add_route
|
||||
|
||||
add_route('mediagoblin.submit.start',
|
||||
'/submit/', 'mediagoblin.submit.views:submit_start')
|
||||
|
||||
Reference in New Issue
Block a user