-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathiRepository.py
More file actions
27 lines (24 loc) · 1.25 KB
/
iRepository.py
File metadata and controls
27 lines (24 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
class iRepository(object):
sType = None;
sb0RepositoryURL = None;
sb0ProductDetailsJSONURL = None;
sb0LatestVersionZipURL = None;
def foGetLatestProductDetails(oSelf):
assert oSelf.sb0ProductDetailsJSONURL is not None, \
"Cannot get latest product details because sb0ProductDetailsJSONURL is None";
return cProductDetails.foConstructFromJSONString(
sbJSON = fsbGetHTTPResponseData(
sbURL = oSelf.sb0ProductDetailsJSONURL,
sURLNameInException = "The product details in the %s repository at %s" % (oSelf.__class__.sType, str(oSelf.sb0RepositoryURL, "ascii", "strict")),
),
sDataNameInError = str(oSelf.sb0ProductDetailsJSONURL, "ascii", "strict")
);
def fsGetLatestVersionZipFileContent(oSelf):
assert oSelf.sb0LatestVersionZipURL is not None, \
"Cannot get latest product version zip file content because sb0LatestVersionZipURL is None";
return fsbGetHTTPResponseData(
sbURL = oSelf.sb0LatestVersionZipURL,
sURLNameInException = "The latest product version .zip file in the %s repository at %s" % (oSelf.__class__.sType, str(oSelf.sb0RepositoryURL, "ascii", "strict")),
);
from .cProductDetails import cProductDetails;
from .fsbGetHTTPResponseData import fsbGetHTTPResponseData;