[sldev-commits] r1622 - projects/2008/pyogp/pyogp.interop/trunk/pyogp/interop/tests

enus.linden at svn.secondlife.com enus.linden at svn.secondlife.com
Mon Jan 5 22:35:01 PST 2009


Author: enus.linden
Date: 2009-01-06 00:35:01 -0600 (Tue, 06 Jan 2009)
New Revision: 1622

Modified:
   projects/2008/pyogp/pyogp.interop/trunk/pyogp/interop/tests/test_region_connect.py
Trac: http://svn.secondlife.com/trac/linden/changeset/1622
Log:
small update, shows Region.connect() is spawning coroutines that release back to the main script

Modified: projects/2008/pyogp/pyogp.interop/trunk/pyogp/interop/tests/test_region_connect.py
===================================================================
--- projects/2008/pyogp/pyogp.interop/trunk/pyogp/interop/tests/test_region_connect.py	2009-01-06 06:33:09 UTC (rev 1621)
+++ projects/2008/pyogp/pyogp.interop/trunk/pyogp/interop/tests/test_region_connect.py	2009-01-06 06:35:01 UTC (rev 1622)
@@ -24,6 +24,8 @@
 import time
 import uuid
 
+from eventlet import api
+
 from pyogp.lib.base.agent import Agent
 from pyogp.lib.base.message.udpdispatcher import UDPDispatcher
 from pyogp.lib.base.message.message import Message, Block
@@ -57,9 +59,11 @@
         self.firstname = config.get(test_setup_config_name, 'firstname')
         self.lastname = config.get(test_setup_config_name, 'lastname')
         self.password = config.get(test_setup_config_name, 'password')
-        self.login_uri = config.get(test_setup_config_name, 'login_uri')        
-        self.start_region_uri = config.get('test_interop_regions', 'start_region_uri')        
-        
+        #self.login_uri = config.get(test_setup_config_name, 'login_uri')        
+        self.login_uri = "https://login.aditi.lindenlab.com/cgi-bin/login.cgi"
+        #self.start_region_uri = config.get('test_interop_regions', 'start_region_uri')        
+        self.start_region_uri = "Ahern"
+
         #don't need a port, not sure why we have it there yet
         self.messenger = UDPDispatcher()
         self.host = None
@@ -79,6 +83,10 @@
         self.session_id = self.agent.region.details['session_id']
 
         self.agent.region.connect()
+
+        while True:
+            print 'Back in main'
+            api.sleep(0)
         '''
         #begin UDP communication
         self.host = Host((self.agent.region.details['sim_ip'],
@@ -107,6 +115,10 @@
                       )
         self.messenger.send_message(msg, self.host)
 
+        self.messenger.send_message(msg, self.host)
+
+        self.messenger.send_message(msg, self.host)
+
         self.send_agent_update(self.agent_id, self.session_id)
 
         #print "Entering loop"
@@ -197,6 +209,7 @@
 
         self.messenger.send_message(msg, self.host)
 
+    
 def test_suite():
     from unittest import TestSuite, makeSuite
     suite = TestSuite()



More information about the sldev-commits mailing list