Mercurial > p > roundup > code
diff roundup/cgi/client.py @ 5613:0a8f0fddc2ae
Support non-ASCII prefixes in instance config for finding static files (issue2551022).
| author | Cédric Krier <cedric.krier@b2ck.com> |
|---|---|
| date | Sat, 16 Feb 2019 17:48:36 +0000 |
| parents | 5df309febe49 |
| children | 14e176b5cd90 |
line wrap: on
line diff
--- a/roundup/cgi/client.py Wed Feb 13 06:32:47 2019 -0500 +++ b/roundup/cgi/client.py Sat Feb 16 17:48:36 2019 +0000 @@ -48,7 +48,7 @@ from email.mime.multipart import MIMEMultipart import roundup.anypy.email_ -from roundup.anypy.strings import s2b, b2s, uchr +from roundup.anypy.strings import s2b, b2s, uchr, is_us def initialiseSecurity(security): '''Create some Permissions and Roles on the security object @@ -1511,7 +1511,7 @@ prefix = self.instance.config[dir_option] if not prefix: continue - if type(prefix) is str: + if is_us(prefix): # prefix can be a string or list depending on # option. Make it a list to iterate over. prefix = [ prefix ]
