[pypy-svn] r29340 - pypy/dist/pypy/translator/js/demo/jsdemo

fijal at codespeak.net fijal at codespeak.net
Mon Jun 26 10:05:32 CEST 2006


Author: fijal
Date: Mon Jun 26 10:05:31 2006
New Revision: 29340

Modified:
   pypy/dist/pypy/translator/js/demo/jsdemo/bnb.py
Log:
Session reloading every refresh.


Modified: pypy/dist/pypy/translator/js/demo/jsdemo/bnb.py
==============================================================================
--- pypy/dist/pypy/translator/js/demo/jsdemo/bnb.py	(original)
+++ pypy/dist/pypy/translator/js/demo/jsdemo/bnb.py	Mon Jun 26 10:05:31 2006
@@ -89,7 +89,6 @@
         'get_message' : MethodDesc( [('callback', (lambda : None))] , {'aa':[{'aa':'bb'}]})
     }
     
-    sm = SpriteManager()
     
     def serverMessage(self):
         sessionid = session['_id']
@@ -100,7 +99,9 @@
     @turbogears.expose(html="jsdemo.templates.bnb")
     def index(self):
         import time
+        self._serverMessage[sessionid] = ServerMessage('static/images')
         self.new_sprites = 0
+        self.sm = SpriteManager()
         return dict(now=time.ctime(), onload=self.jsname, code=self.jssource)
     
     def sessionSocket(self, close=False):



More information about the Pypy-commit mailing list