diff orpg/tools/passtool.py @ 114:bd6ca89e4cbb alpha

Traipse Alpha 'OpenRPG' {091011-00} Traipse is a distribution of OpenRPG that is designed to be easy to setup and go. Traipse also makes it easy for developers to work on code without fear of sacrifice. 'Ornery-Orc' continues the trend of 'Grumpy' and adds fixes to the code. 'Ornery-Orc's main goal is to offer more advanced features and enhance the productivity of the user. Update Summary: Adds Bookmarks (Alpha) with cool Smiley Star and Plus Symbol images! Changes made to the map for increased portability. SnowDog has changes planned in Core, though. Added an initial push to the BCG. Not much to see, just shows off how it is re-writing Main code. Fix to remote admin commands Minor fix to texted based server, works in /System/ folder Some Core changes to gametree to correctly disply Pretty Print, thanks David! Fix to Splitter Nodes not being created. Added images to Plugin Control panel for Autostart feature Fix to massive amounts of images loading; from Core {091011} 00: fix to gsclient so with_statement imports Added 'boot' command to remote admin Prep work in Pass tool for remote admin rankings and different passwords, ei, Server, Admin, Moderator, etc.
author sirebral
date Sun, 11 Oct 2009 16:38:54 -0500
parents c54768cffbd4
children 37d26a98883f
line wrap: on
line diff
--- a/orpg/tools/passtool.py	Fri Oct 09 23:28:33 2009 -0500
+++ b/orpg/tools/passtool.py	Sun Oct 11 16:38:54 2009 -0500
@@ -100,8 +100,18 @@
     def GetSilentPassword( self, type="server", groupid = 0):
         try:
             self.CheckGroupData( groupid )
+            ### Pre-Alpha ### How types will work
+            # Server - top dog
+            # Admin - second in command
+            # Mod - some privileges
+            # Room - You got it, unchanged (passwords the room entry)
+            # Boot - This is the room admin password.
             if type == "admin":
-                if self.groups[int(groupid)].admin != None: return str(self.groups[int(groupid)].admin)
+                try: print self.groups[int(groupid)].admin
+                except: pass
+                try: print str(self.groups[int(groupid)].admin)
+                except: pass
+                if self.groups[int(groupid)].admin != None: print str(self.groups[int(groupid)].admin); return str(self.groups[int(groupid)].admin)
                 else: return None
             elif type == "room":
                 if self.groups[int(groupid)].room != None: return str(self.groups[int(groupid)].room)