mickorz / rtmplite

Automatically exported from code.google.com/p/rtmplite
1 stars 0 forks source link

Easy Application override #34

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,

I tried rtmplite with openlaszlo, it works like a charm ! Only one thing. It's 
not nice to have to recreate FlashServer to override application methods.

So, I did a patch to allow user to override Application class and to pass 
"dict" to FlashServer constructor.

So you can do;
 class MyApp(Application):
    pass

 class MyOtherApp(Application):
    pass

And send it to constructor, for example:
 app = FlashServer(dict({'url1': MyApp, 'url2'; MyOtherApp}))

Original issue reported on code.google.com by Metal3d on 19 Feb 2011 at 1:42

Attachments:

GoogleCodeExporter commented 9 years ago
Errata, I mean that you can override "App" class, not "Application"... my patch 
works

Original comment by Metal3d on 19 Feb 2011 at 1:44

GoogleCodeExporter commented 9 years ago
ok, forget my patch... I have read header... sorry... My patch is absolutly 
useless

Original comment by Metal3d on 19 Feb 2011 at 1:48

GoogleCodeExporter commented 9 years ago
Thanks for your patch, and your comments. I will close this issue: as you 
mentioned in your post, the header/comment in rtmp.py describes how to override 
App.

Original comment by voiprese...@gmail.com on 19 Feb 2011 at 7:16