Changeset f0d422acbda246e55b7545f2904fdc8b000f59e0


Ignore:
Timestamp:
30.07.2013 14:36:22 (8 years ago)
Author:
Stanislaw Klekot <dozzie@…>
Branches:
b66903eafbcb1d49112014abc82c8bf683413db0
Children:
ee81e3e97dc6d6dbcd5cb9b21a95673095c9fa71
Parents:
0a2fe79095ede35b211050194bf7d7a99097524b
git-author:
Stanislaw Klekot <dozzie@…> (30.07.2013 14:36:22)
git-committer:
Stanislaw Klekot <dozzie@…> (30.07.2013 14:36:22)
Message:

Fixed case for no URL for ResourceCache?.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • dashwiki/resource_cache/cache.py

    r0a2fe7 rf0d422  
    11#!/usr/bin/python 
    22 
    3 from dashwiki.logging import getLogger, message as log 
    43import uuid 
    54import os 
    65 
     6from dashwiki.logging import getLogger, message as log 
    77logger = getLogger(__name__) 
    88 
     
    4040    self._cache_id   = cache_id 
    4141    self._store_root = store_root 
    42     self._url_root   = url_root.rstrip('/') 
    4342    self._cache_path_part = '/'.join(ResourceCache.make_hash(cache_id)) 
     43    if url_root != None: 
     44      self._url_root = url_root.rstrip('/') 
     45    else: 
     46      self._url_root = None 
    4447 
    4548  @staticmethod 
Note: See TracChangeset for help on using the changeset viewer.