forked from orbit-oss/flask
Untangle logic a bit
This commit is contained in:
parent
0748e2daac
commit
94a3968d69
1 changed files with 3 additions and 4 deletions
|
|
@ -802,11 +802,10 @@ class _PackageBoundObject(object):
|
||||||
del _get_static_folder, _set_static_folder
|
del _get_static_folder, _set_static_folder
|
||||||
|
|
||||||
def _get_static_url_path(self):
|
def _get_static_url_path(self):
|
||||||
if self._static_url_path is None:
|
if self._static_url_path is not None:
|
||||||
if self.static_folder is None:
|
return self._static_url_path
|
||||||
return None
|
if self.static_folder is not None:
|
||||||
return '/' + os.path.basename(self.static_folder)
|
return '/' + os.path.basename(self.static_folder)
|
||||||
return self._static_url_path
|
|
||||||
def _set_static_url_path(self, value):
|
def _set_static_url_path(self, value):
|
||||||
self._static_url_path = value
|
self._static_url_path = value
|
||||||
static_url_path = property(_get_static_url_path, _set_static_url_path)
|
static_url_path = property(_get_static_url_path, _set_static_url_path)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue