__author__ = 'magus0219'
import handlers
from tornado.web import RedirectHandler

URLS = [
            # Core Entity
            (r'/event', handlers.DeployHandler),
            (r'/repo/(.*)/rollback/(.*)/(.*)', handlers.RollbackHandler),
            (r'/repo/(.*)/(.*)', handlers.OperationHandler),
            (r'/repo/(.*)', handlers.IndexHandler),
            (r'/repo', RedirectHandler, {"url": "/deploy/repo/zqhua_server"}),
            (r'/login', handlers.LoginHandler),
            (r'/logout', handlers.LogoutHandler),
            (r'/register', handlers.RegisterHandler),
            (r'/chpwd', handlers.ChangePasswordHandler)
        ]
@@ -73,16 +73,52 @@
 tHandler
+%0Afrom core.deploy_manager import dms
 %0A%0AURLS =
@@ -448,21 +448,35 @@
 epo/
-zqhua_server%22
+%7Brepo%7D%22.format(repo=dms%5B0%5D)
 %7D),%0A

change url for default repo