summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorChristian Goetze <cg@lindenlab.com>2008-08-13 23:49:05 +0000
committerChristian Goetze <cg@lindenlab.com>2008-08-13 23:49:05 +0000
commit1a4b8465588a0c271b2c224f68d0e76e26b4c400 (patch)
tree29339b9cc1892e2c14b5cb8d572a7342c5e1855b /indra/newview
parent63d6bb328408017e1fb3a834d7c1b3c8d87b0afa (diff)
Fixed DEV-19210 - reviewed by josh
Diffstat (limited to 'indra/newview')
-rwxr-xr-xindra/newview/viewer_manifest.py35
1 files changed, 24 insertions, 11 deletions
diff --git a/indra/newview/viewer_manifest.py b/indra/newview/viewer_manifest.py
index caa691a0b4..1c0db83890 100755
--- a/indra/newview/viewer_manifest.py
+++ b/indra/newview/viewer_manifest.py
@@ -106,6 +106,8 @@ class ViewerManifest(LLManifest):
# whether or not this is present
return self.args.get('login_channel')
+ def grid(self):
+ return self.args['grid']
def channel(self):
return self.args['channel']
def channel_unique(self):
@@ -118,22 +120,33 @@ class ViewerManifest(LLManifest):
def flags_list(self):
""" Convenience function that returns the command-line flags
for the grid"""
- channel_flags = ''
+
+ # Set command line flags relating to the target grid
grid_flags = ''
if not self.default_grid():
- if self.default_channel():
- # beta grid viewer
- channel_flags = '--settings settings_beta.xml'
- grid_flags = "--grid %(grid)s --helperuri http://preview-%(grid)s.secondlife.com/helpers/" % {'grid':self.args['grid']}
+ grid_flags = "--grid %(grid)s "\
+ "--helperuri http://preview-%(grid)s.secondlife.com/helpers/" %\
+ {'grid':self.grid()}
- if not self.default_channel():
- # some channel on some grid
- channel_flags = '--settings settings_%s.xml --channel "%s"' % (self.channel_lowerword(), self.channel())
- elif self.login_channel():
+ # set command line flags for channel
+ channel_flags = ''
+ if self.login_channel() and self.login_channel() != self.channel():
# Report a special channel during login, but use default
channel_flags = '--channel "%s"' % (self.login_channel())
-
- return " ".join((channel_flags, grid_flags)).strip()
+ elif not self.default_channel():
+ channel_flags = '--channel "%s"' % self.channel()
+
+ # Deal with settings
+ setting_flags = ''
+ if not self.default_channel() or not self.default_grid():
+ if self.default_grid():
+ setting_flags = '--settings settings_%s.xml'\
+ % self.channel_lowerword()
+ else:
+ setting_flags = '--settings settings_%s_%s.xml'\
+ % (self.grid(), self.channel_lowerword())
+
+ return " ".join((channel_flags, grid_flags, setting_flags)).strip()
class WindowsManifest(ViewerManifest):