Skip to content

Commit 338fd72

Browse files
author
w. Patrick Gale
committed
config update
1 parent 9818790 commit 338fd72

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [v1.0.8] - 2025-03-12
9+
10+
- [x] adding `_cc__` prefix to constant configuration variables to distinguish them from other variables within a configuration
11+
812
## [v1.0.7] - 2025-03-08
913

1014
- [x] Added assumption that no files exist in the Dataverse collection instead of assuming files exist

DvApiMod_pip_package/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ class ObjDvApi:
1515
def __init__(self,objConfig):
1616
self.eventLogger()
1717
self.objConfig = objConfig
18-
self.strDATAVERSE_PARENT_COLLECTION = self.objConfig["strDvApi_PARENT_COLLECTION"]
19-
self.strDATAVERSE_DOMAIN = self.objConfig["strDvApi_DOMAIN"]
20-
self.strDATAVERSE_API_TOKEN = self.objConfig["strDvApi_TOKEN"]
18+
self.strDATAVERSE_PARENT_COLLECTION = self.objConfig["_cc__strDvApi_PARENT_COLLECTION"]
19+
self.strDATAVERSE_DOMAIN = self.objConfig["_cc__strDvApi_DOMAIN"]
20+
self.strDATAVERSE_API_TOKEN = self.objConfig["_cc__strDvApi_TOKEN"]
2121
self.logger.info("Finished ObjDvApi init")
2222

2323

@@ -258,7 +258,7 @@ def addDatasetFile(self, objFile, objParams):
258258

259259
# @title This is needed because curlify does not handle requests for zip files, so we need to disable the commands if they are causing problems.
260260
def outputCurlCmd(self, objRequest):
261-
if self.objConfig["blnSHOW_CURL_COMMANDS"]:
261+
if self.objConfig["_cc__blnSHOW_CURL_COMMANDS"]:
262262
self.logger.info(curlify.to_curl(objRequest))
263263

264264

0 commit comments

Comments
 (0)