-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bf298ef
commit 06cce3b
Showing
18 changed files
with
680 additions
and
634 deletions.
There are no files selected for viewing
Empty file.
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
31 changes: 0 additions & 31 deletions
31
galaxy/coralsnp_reports/lib/galaxy/webapps/coralsnp_reports/controllers/__init__.py
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,32 +1 @@ | ||
"""Galaxy coralsnp reports controllers.""" | ||
import logging | ||
|
||
from galaxy import util | ||
|
||
log = logging.getLogger(__name__) | ||
|
||
|
||
class BaseController(object): | ||
""" | ||
Base class for CoralSNP Reports web application controllers. | ||
""" | ||
|
||
def __init__(self, app): | ||
"""Initialize an interface for application 'app'""" | ||
self.app = app | ||
self.sa_session = app.model.context | ||
|
||
|
||
class BaseUIController(BaseController): | ||
|
||
def get_object(self, trans, id, class_name, check_ownership=False, check_accessible=False, deleted=None): | ||
try: | ||
return BaseController.get_object(self, trans, id, class_name, check_ownership=check_ownership, | ||
check_accessible=check_accessible, deleted=deleted) | ||
except Exception: | ||
log.exception("Exception in get_object check for %s %s:", class_name, str(id)) | ||
raise Exception('Server error retrieving %s id ( %s ).' % (class_name, str(id))) | ||
|
||
def message_exception(self, trans, message, sanitize=True): | ||
trans.response.status = 400 | ||
return {'err_msg': util.sanitize_text(message) if sanitize else message} |
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
Oops, something went wrong.