Skip to content

Commit

Permalink
delete me wip
Browse files Browse the repository at this point in the history
  • Loading branch information
ChasNelson1990 committed Aug 1, 2023
1 parent c46c99f commit 56e31d4
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions ckanext/unaids/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,16 +165,16 @@ def can_validate(self, context, data_dict):
if data_dict.get("schema"):
return True

def after_create(self, context, data_dict):
print("I do this")
logging.info("I do this")
print(data_dict)
logging.info(data_dict)
if data_dict.get("validate_package"):
logging.warning("VALIDATING ENTIRE PACKAGE")
toolkit.get_action("resource_validation_run_batch")(
context, {"dataset_ids": data_dict["package_id"]}
)
# def after_create(self, context, data_dict):
# print("I do this")
# logging.info("I do this")
# print(data_dict)
# logging.info(data_dict)
# if data_dict.get("validate_package"):
# logging.warning("VALIDATING ENTIRE PACKAGE")
# toolkit.get_action("resource_validation_run_batch")(
# context, {"dataset_ids": data_dict["package_id"]}
# )

# IPackageController
def after_update(self, context, pkg_dict):
Expand Down

0 comments on commit 56e31d4

Please sign in to comment.