fnp
/
wolnelektury.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Better experiments management.
[wolnelektury.git]
/
src
/
experiments
/
experiments.py
1
import re
2
from .base import Experiment
3
4
5
class NewLayout(Experiment):
6
slug = 'layout'
7
name = 'Nowy layout strony'
8
9
def qualify(self, request):
10
if re.search(
11
'iphone|mobile|androidtouch',
12
request.META['HTTP_USER_AGENT'],
13
re.IGNORECASE):
14
return False
15
16
17
experiments = [
18
NewLayout,
19
]