adjust to map field (#5668)
This commit is contained in:
parent
7012efed26
commit
ace1cdcda4
|
@ -828,6 +828,10 @@ class AlternateRootDirectory(OldRootDirectory):
|
|||
dirname = os.path.join(get_publisher().data_dir, 'qommon', 'auquotidien')
|
||||
return StaticDirectory(dirname, follow_symlinks = True)
|
||||
|
||||
# maps /leaflet/ to the directory provided by the libjs-openlayers package
|
||||
if component == 'leaflet':
|
||||
return StaticDirectory('/usr/share/javascript/leaflet')
|
||||
|
||||
if component in ('css','images'):
|
||||
return OldRootDirectory._q_lookup(self, component)
|
||||
|
||||
|
|
Reference in New Issue