Skip to content

Commit

Permalink
new ssl version
Browse files Browse the repository at this point in the history
  • Loading branch information
joamag committed Jul 8, 2016
1 parent a6ae34c commit a6b7605
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/appier_extras/parts/admin/part.py
Expand Up @@ -102,6 +102,7 @@ def load(self):
self.owner.lib_loaders["pymongo"] = self._pymongo_loader
self.owner.lib_loaders["redis"] = self._redis_loader
self.owner.lib_loaders["jinja2"] = self._jinja2_loader
self.owner.lib_loaders["ssl"] = self._ssl_loader

self.logger.debug("Generating admin interfaces ...")
for model_c in self.models_r:
Expand Down Expand Up @@ -1282,6 +1283,12 @@ def _jinja2_loader(self, module):
versions.append(("Jinja2", module.__version__))
return versions

def _ssl_loader(self, module):
versions = []
if hasattr(module, "OPENSSL_VERSION"):
versions.append(("SSL", module.OPENSSL_VERSION))
return versions

def _attached(self, models):
return [model for model in models if model.is_attached()]

Expand Down

0 comments on commit a6b7605

Please sign in to comment.