Mercurial > traipse_dev
comparison orpg/networking/meta_server_lib.py @ 232:53ae14747ba7 alpha
Traipse Alpha 'OpenRPG' {100615-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 (Closed)
New Features:
New to Map, can re-order Grid, Miniatures, and Whiteboard layer draw order
New to Server GUI, can now clear log
Fixes:
Fix to InterParse that was causing an Infernal Loop with Namespace Internal
Fix to XML data, removed old Minidom and switched to Element Tree
Fix to Server that was causing eternal attempt to find a Server ID, in Register Rooms thread
Fix to metaservers.xml file not being created
Fix to Single and Double quotes in Whiteboard text
Fix to Background images not showing when using the Image Server
Fix to Duplicate chat names appearing
Fix to Server GUI's logging output
Fix to FNB.COLORFUL_TABS bug.
author | sirebral |
---|---|
date | Tue, 15 Jun 2010 14:28:22 -0500 |
parents | cc7629ab526d |
children |
comparison
equal
deleted
inserted
replaced
231:cc7629ab526d | 232:53ae14747ba7 |
---|---|
421 "server_data[name]":self.name, | 421 "server_data[name]":self.name, |
422 "server_data[port]":self.port, | 422 "server_data[port]":self.port, |
423 "server_data[version]":PROTOCOL_VERSION, | 423 "server_data[version]":PROTOCOL_VERSION, |
424 "server_data[num_users]":self.num_users, | 424 "server_data[num_users]":self.num_users, |
425 "act":"register"} ) | 425 "act":"register"} ) |
426 for path in getMetaServerList(): | 426 try: # this POSTS the request and returns the result |
427 try: # this POSTS the request and returns the result | 427 etreeEl = get_server_dom(data, self.path) |
428 etreeEl = get_server_dom(data, path.get('url')) | 428 except Exception, e: |
429 except Exception, e: | 429 if META_DEBUG: print "Problem talking to server. Setting interval for retry ..." |
430 if META_DEBUG: print "Problem talking to server. Setting interval for retry ..." | 430 if META_DEBUG: print data |
431 if META_DEBUG: print data | 431 if META_DEBUG: print e |
432 if META_DEBUG: print e | 432 self.interval = 0 |
433 self.interval = 0 | 433 """ |
434 """ | 434 If we are in the registerThread thread, then setting interval to 0 |
435 If we are in the registerThread thread, then setting interval to 0 | 435 will end up causing a retry in about 6 seconds (see self.run()) |
436 will end up causing a retry in about 6 seconds (see self.run()) | 436 If we are in the main thread, then setting interval to 0 will do one |
437 If we are in the main thread, then setting interval to 0 will do one | 437 of two things: |
438 of two things: | 438 1) Do the same as if we were in the registerThread |
439 1) Do the same as if we were in the registerThread | 439 2) Cause the next, normally scheduled register() call to use the values |
440 2) Cause the next, normally scheduled register() call to use the values | 440 provided in this call. |
441 provided in this call. | 441 |
442 | 442 Which case occurs depends on where the registerThread thread is when |
443 Which case occurs depends on where the registerThread thread is when | 443 the main thread calls register(). |
444 the main thread calls register(). | 444 """ |
445 """ | 445 return 0 # indicates that it was okay to call, not that no errors occurred |
446 return 0 # indicates that it was okay to call, not that no errors occurred | |
447 | 446 |
448 # If there is a DOM returned .... | 447 # If there is a DOM returned .... |
449 if etreeEl != None: | 448 if etreeEl != None: |
450 # If there's an error, echo it to the console | 449 # If there's an error, echo it to the console |
451 if etreeEl.get("errmsg") != None: | 450 if etreeEl.get("errmsg") != None: |