diff options
Diffstat (limited to 'beinc_server.py')
| -rwxr-xr-x | beinc_server.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/beinc_server.py b/beinc_server.py index 906b303..30c8a95 100755 --- a/beinc_server.py +++ b/beinc_server.py | |||
| @@ -133,14 +133,14 @@ class BEINCInstance(object): | |||
| 133 | @property | 133 | @property |
| 134 | def name(self): | 134 | def name(self): |
| 135 | """ | 135 | """ |
| 136 | name-property for the server instance | 136 | name-property for the server instance (read-only) |
| 137 | """ | 137 | """ |
| 138 | return self.__name | 138 | return self.__name |
| 139 | 139 | ||
| 140 | @property | 140 | @property |
| 141 | def queueable(self): | 141 | def queueable(self): |
| 142 | """ | 142 | """ |
| 143 | True if this instance has a queueing capability | 143 | True if this instance has a queueing capability (read-only) |
| 144 | """ | 144 | """ |
| 145 | return bool(self.__queue_size) | 145 | return bool(self.__queue_size) |
| 146 | 146 | ||
| @@ -216,6 +216,9 @@ def beinc_instance_login(method): | |||
| 216 | 216 | ||
| 217 | 217 | ||
| 218 | class WebNotifyServer(object): | 218 | class WebNotifyServer(object): |
| 219 | """ | ||
| 220 | A class representing the entire server | ||
| 221 | """ | ||
| 219 | 222 | ||
| 220 | def __init__(self, config): | 223 | def __init__(self, config): |
| 221 | """ | 224 | """ |
| @@ -244,6 +247,9 @@ class WebNotifyServer(object): | |||
| 244 | 247 | ||
| 245 | @property | 248 | @property |
| 246 | def instances(self): | 249 | def instances(self): |
| 250 | """ | ||
| 251 | a property that returns the instance list (read-only) | ||
| 252 | """ | ||
| 247 | return self.__instances | 253 | return self.__instances |
| 248 | 254 | ||
| 249 | @cherrypy.expose | 255 | @cherrypy.expose |
