Created
March 10, 2012 03:41
-
-
Save Kronos11/2009970 to your computer and use it in GitHub Desktop.
Test Python Service
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #this represents a simple Python Test Service | |
| print('test service') | |
| from py_swganh import BaseService | |
| class TestService(BaseService): | |
| def __init__(self, kernel_): | |
| print('test service initialized') | |
| BaseService.start() | |
| def onStart(self): | |
| print('on start do stuff') | |
| def onStop(self): | |
| print('on stop do stuff') | |
| t = TestService(kernel) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment