Skip to content

Commit

Permalink
Add debug log
Browse files Browse the repository at this point in the history
  • Loading branch information
jlorrain authored and ClementHector committed Feb 7, 2022
1 parent 8b9851f commit cbee6f9
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 3 deletions.
1 change: 0 additions & 1 deletion openpype/modules/default_modules/shotgrid/lib/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ def check_batch_settings(
) -> bool:
module_url = _format_url(settings_lib.get_module_server_url())
api_url = "/".join([module_url, "batch", "check"])
print(api_url)
params = {
"shotgrid_url": url,
"shotgrid_project_id": project_id,
Expand Down
16 changes: 14 additions & 2 deletions openpype/modules/default_modules/shotgrid/manager/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,13 @@
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

<!-- Bootstrap CSS -->
<!-- CDN -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootswatch@4.5.2/dist/darkly/bootstrap.min.css">

<!-- LOCAL
<link rel="stylesheet" href="node_modules/bootstrap/dist/css/bootstrap.min.css">
<link rel="stylesheet" href="css/bootstrap.min.css">
-->

<link rel="icon" href="../../../../resources/app_icons/favicon.png">

Expand Down Expand Up @@ -119,11 +124,18 @@
</div>
<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<!-- CDN -->
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>

<!-- LOCAL
<script src="node_modules/jquery/dist/jquery.slim.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"
integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1"
integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1
crossorigin="anonymous"></script>
<script src="node_modules/bootstrap/dist/js/bootstrap.bundle.min.js"></script>
<script src="node_modules/bootstrap/dist/js/bootstrap.bundle.min.js"></script>-->

<script src="js/manager.js"></script>

</body>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ function onBatchSelectorChange(event) {
function onBatchSubmit(event) {
batchWorking();
checkBatchValues().then((project_name) => {
console.log("check OK")
SendBatch(project_name).then(() => {
console.log("batch OK")
printInfo("Batch sent successfully");
batchEndWorking();
event.stopPropagation()
Expand Down Expand Up @@ -93,6 +95,7 @@ function fillProjectsSelector(projectList) {

function checkBatchValues() {
infos = getBatchInfos();
console.log("check batch")
return new Promise((success, failure) => {
window.pywebview.api.checkProjectSettings(
infos['url'],
Expand All @@ -116,6 +119,7 @@ function SendBatch(projectName) {
if (!newProject) {
projectName = infos['project']
}
console.log("send batch")
return new Promise((success, failure) => {
var fieldsMapping;
try {
Expand Down

0 comments on commit cbee6f9

Please sign in to comment.