aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/viewer_manifest.py
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:45:37 -0500
committerJacek Antonelli2008-08-15 23:45:37 -0500
commit31ba05810c641f14e8ab5da8ad2aaf527779f6c1 (patch)
treec4b8d635dfb657fa4cfee7c285f8cadbf24afa90 /linden/indra/newview/viewer_manifest.py
parentSecond Life viewer sources 1.19.1.1 (diff)
downloadmeta-impy-31ba05810c641f14e8ab5da8ad2aaf527779f6c1.zip
meta-impy-31ba05810c641f14e8ab5da8ad2aaf527779f6c1.tar.gz
meta-impy-31ba05810c641f14e8ab5da8ad2aaf527779f6c1.tar.bz2
meta-impy-31ba05810c641f14e8ab5da8ad2aaf527779f6c1.tar.xz
Second Life viewer sources 1.19.1.2
Diffstat (limited to 'linden/indra/newview/viewer_manifest.py')
-rwxr-xr-xlinden/indra/newview/viewer_manifest.py22
1 files changed, 17 insertions, 5 deletions
diff --git a/linden/indra/newview/viewer_manifest.py b/linden/indra/newview/viewer_manifest.py
index ef2225d..43734df 100755
--- a/linden/indra/newview/viewer_manifest.py
+++ b/linden/indra/newview/viewer_manifest.py
@@ -93,8 +93,16 @@ class ViewerManifest(LLManifest):
93 self.path("lsl_guide.html") 93 self.path("lsl_guide.html")
94 self.path("gpu_table.txt") 94 self.path("gpu_table.txt")
95 95
96 def login_channel(self):
97 """Channel reported for login and upgrade purposes ONLY; used for A/B testing"""
98 # NOTE: Do not return the normal channel if login_channel is not specified, as
99 # some code may branch depending on whether or not this is present
100 return self.args.get('login_channel')
101
102 def channel(self):
103 return self.args['channel']
96 def channel_unique(self): 104 def channel_unique(self):
97 return self.args['channel'].replace("Second Life", "").strip() 105 return self.channel().replace("Second Life", "").strip()
98 def channel_oneword(self): 106 def channel_oneword(self):
99 return "".join(self.channel_unique().split()) 107 return "".join(self.channel_unique().split())
100 def channel_lowerword(self): 108 def channel_lowerword(self):
@@ -112,7 +120,11 @@ class ViewerManifest(LLManifest):
112 120
113 if not self.default_channel(): 121 if not self.default_channel():
114 # some channel on some grid 122 # some channel on some grid
115 channel_flags = '-settings settings_%s.xml -channel "%s"' % (self.channel_lowerword(), self.args['channel']) 123 channel_flags = '-settings settings_%s.xml -channel "%s"' % (self.channel_lowerword(), self.channel())
124 elif self.login_channel():
125 # Report a special channel during login, but use default channel elsewhere
126 channel_flags = '-channel "%s"' % (self.login_channel())
127
116 return " ".join((channel_flags, grid_flags)).strip() 128 return " ".join((channel_flags, grid_flags)).strip()
117 129
118 def login_url(self): 130 def login_url(self):
@@ -144,7 +156,7 @@ class WindowsManifest(ViewerManifest):
144 else: 156 else:
145 return "SecondLifePreview.exe" 157 return "SecondLifePreview.exe"
146 else: 158 else:
147 return ''.join(self.args['channel'].split()) + '.exe' 159 return ''.join(self.channel().split()) + '.exe'
148 160
149 161
150 def construct(self): 162 def construct(self):
@@ -273,7 +285,7 @@ class WindowsManifest(ViewerManifest):
273 'grid_caps':self.args['grid'].upper(), 285 'grid_caps':self.args['grid'].upper(),
274 # escape quotes becase NSIS doesn't handle them well 286 # escape quotes becase NSIS doesn't handle them well
275 'flags':self.flags_list().replace('"', '$\\"'), 287 'flags':self.flags_list().replace('"', '$\\"'),
276 'channel':self.args['channel'], 288 'channel':self.channel(),
277 'channel_oneword':self.channel_oneword(), 289 'channel_oneword':self.channel_oneword(),
278 'channel_unique':self.channel_unique(), 290 'channel_unique':self.channel_unique(),
279 } 291 }
@@ -395,7 +407,7 @@ class DarwinManifest(ViewerManifest):
395 def package_finish(self): 407 def package_finish(self):
396 channel_standin = 'Second Life' # hah, our default channel is not usable on its own 408 channel_standin = 'Second Life' # hah, our default channel is not usable on its own
397 if not self.default_channel(): 409 if not self.default_channel():
398 channel_standin = self.args['channel'] 410 channel_standin = self.channel()
399 411
400 imagename="SecondLife_" + '_'.join(self.args['version']) 412 imagename="SecondLife_" + '_'.join(self.args['version'])
401 if self.default_channel(): 413 if self.default_channel():