i use
class osdwindow:
    def GET(self, path):
        print 'get osd page-------------------------'
        if path in ('volume', 'volume/'):
            return render.volume(volume=osddata.volume)

app.add_mapping("/osd/(.*)", "my.ui.osddisplay.osdwindow")

first , i startup the webkit browser it works .
below is the log of webserver:
___________________log____begin________________________
osd open: http://127.0.0.1:8080/osd/volume/
open path environ is : /osd/volume/
get osd page-------------------------
127.0.0.1:52464 - - [25/May/2009 17:47:31] "HTTP/1.1 GET /osd/volume/"
- 200 OK
open path environ is : /static/js/local.js
Path is : /static/js/local.js
file is : <cStringIO.StringO object at 0xa984ac0>
127.0.0.1:52463 - - [25/May/2009 17:47:31] "HTTP/1.1 GET /static/js/
local.js" - 200
open path environ is : /static/js/jquery.js
Path is : /static/js/jquery.js
file is : <cStringIO.StringO object at 0xa984e00>
127.0.0.1:52464 - - [25/May/2009 17:47:31] "HTTP/1.1 GET /static/js/
jquery.js" - 200
open path environ is : /static/image/sound0.gif
Path is : /static/image/sound0.gif
file is : <cStringIO.StringO object at 0xa984ac0>
127.0.0.1:52463 - - [25/May/2009 17:47:31] "HTTP/1.1 GET /static/image/
sound0.gif" - 200
open path environ is : /static/image/bgvolume.gif
__________________log___end__________________________


but , after some second i visit the url http://127.0.0.1:8080/osd/volume/
the log is below ,and there is nothing to show .
__________________log_____begin________________________
osd open: http://127.0.0.1:8080/osd/volume/
load_finished .... 2
load_and_show
__________________log______end________________________

it seems like the it dosen`t pass through the osdwindow class . why .

is there any problem between
app.add_mapping("/osd/(.*)", "my.ui.osddisplay.osdwindow")
and
urls = (
  "/blank/(.*)","hello",
  "/sorry/(.*)", "comeon",
  "/osd/(.*)", "freevo.ui.plugins.osddisplay.osdwindow"
)


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web.py" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to