-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add beta store search heading (#1673)
- Loading branch information
Showing
3 changed files
with
31 additions
and
7 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,30 @@ | ||
import talisker.requests | ||
from canonicalwebteam.store_base.app import create_app | ||
from canonicalwebteam.store_api.stores.charmstore import CharmStore, CharmPublisher | ||
from canonicalwebteam.store_api.stores.charmstore import ( | ||
CharmStore, | ||
CharmPublisher, | ||
) | ||
from canonicalwebteam.candid import CandidClient | ||
|
||
from webapp_beta.charmhub_bp import charmhub_bp | ||
from webapp.handlers import charmhub_utility_processor | ||
from webapp.decorators import login_required | ||
|
||
# beta charmhub configiuration | ||
app = create_app( | ||
"charmhub_beta", | ||
login_required, | ||
store_bp=charmhub_bp, | ||
utility_processor=charmhub_utility_processor, | ||
) | ||
|
||
app.name = "charmhub_beta" | ||
app.static_folder=charmhub_bp.static_folder | ||
app.template_folder=charmhub_bp.template_folder | ||
app.static_url_path=charmhub_bp.static_url_path | ||
app.static_folder = charmhub_bp.static_folder | ||
app.template_folder = charmhub_bp.template_folder | ||
app.static_url_path = charmhub_bp.static_url_path | ||
app.store_api = CharmStore(session=talisker.requests.get_session()) | ||
|
||
|
||
|
||
request_session = talisker.requests.get_session() | ||
candid = CandidClient(request_session) | ||
publisher_api = CharmPublisher(request_session) |