caspia.homeserver.views package¶
Submodules¶
caspia.homeserver.views.base module¶
-
class
caspia.homeserver.views.base.View(services, loop)[source]¶ Bases:
sanic.views.HTTPMethodView-
classmethod
as_view(*class_args, **class_kwargs)¶ Return view function for use with the routing system, that dispatches request to appropriate handler method.
-
decorators= [<function authorized.<locals>.decorator>]¶
-
dispatch_request(request, *args, **kwargs)¶
-
property
meadow_service¶
-
property
tile_service¶
-
property
user_service¶
-
property
wall_service¶
-
classmethod
caspia.homeserver.views.meadow module¶
-
class
caspia.homeserver.views.meadow.CharacteristicValueView(services, loop)[source]¶ Bases:
caspia.homeserver.views.base.View-
classmethod
as_view(*class_args, **class_kwargs)¶ Return view function for use with the routing system, that dispatches request to appropriate handler method.
-
decorators= [<function authorized.<locals>.decorator>]¶
-
dispatch_request(request, *args, **kwargs)¶
-
error_response(status, message)¶
-
async
get_characteristic(service_name, characteristic_name) → caspia.meadow.services.characteristic.Characteristic[source]¶
-
property
meadow_service¶
-
options(request, *args, **kwargs)¶
-
static
parse_value_and_extra(payload, characteristic: caspia.meadow.services.characteristic.Characteristic)[source]¶
-
property
tile_service¶
-
property
user_service¶
-
property
wall_service¶
-
classmethod
-
class
caspia.homeserver.views.meadow.NotificationsView(services, loop)[source]¶ Bases:
caspia.homeserver.views.base.View-
classmethod
as_view(*class_args, **class_kwargs)¶ Return view function for use with the routing system, that dispatches request to appropriate handler method.
-
property
consumer_conn¶
-
decorators= [<function authorized.<locals>.decorator>]¶
-
dispatch_request(request, *args, **kwargs)¶
-
error_response(status, message)¶
-
property
meadow_service¶
-
options(request, *args, **kwargs)¶
-
property
tile_service¶
-
property
user_service¶
-
property
wall_service¶
-
classmethod
-
class
caspia.homeserver.views.meadow.ServiceView(services, loop)[source]¶ Bases:
caspia.homeserver.views.base.View-
classmethod
as_view(*class_args, **class_kwargs)¶ Return view function for use with the routing system, that dispatches request to appropriate handler method.
-
decorators= [<function authorized.<locals>.decorator>]¶
-
dispatch_request(request, *args, **kwargs)¶
-
error_response(status, message)¶
-
property
meadow_service¶
-
options(request, *args, **kwargs)¶
-
property
tile_service¶
-
property
user_service¶
-
property
wall_service¶
-
classmethod
-
class
caspia.homeserver.views.meadow.ServicesView(services, loop)[source]¶ Bases:
caspia.homeserver.views.base.View-
classmethod
as_view(*class_args, **class_kwargs)¶ Return view function for use with the routing system, that dispatches request to appropriate handler method.
-
decorators= [<function authorized.<locals>.decorator>]¶
-
dispatch_request(request, *args, **kwargs)¶
-
error_response(status, message)¶
-
property
meadow_service¶
-
options(request, *args, **kwargs)¶
-
property
tile_service¶
-
property
user_service¶
-
property
wall_service¶
-
classmethod
caspia.homeserver.views.tile module¶
-
class
caspia.homeserver.views.tile.TileView(services, loop)[source]¶ Bases:
caspia.homeserver.views.base.View-
classmethod
as_view(*class_args, **class_kwargs)¶ Return view function for use with the routing system, that dispatches request to appropriate handler method.
-
decorators= [<function authorized.<locals>.decorator>]¶
-
dispatch_request(request, *args, **kwargs)¶
-
error_response(status, message)¶
-
property
meadow_service¶
-
options(request, *args, **kwargs)¶
-
property
tile_service¶
-
property
user_service¶
-
property
wall_service¶
-
classmethod
-
class
caspia.homeserver.views.tile.TilesView(services, loop)[source]¶ Bases:
caspia.homeserver.views.base.View-
classmethod
as_view(*class_args, **class_kwargs)¶ Return view function for use with the routing system, that dispatches request to appropriate handler method.
-
decorators= [<function authorized.<locals>.decorator>]¶
-
dispatch_request(request, *args, **kwargs)¶
-
error_response(status, message)¶
-
property
meadow_service¶
-
options(request, *args, **kwargs)¶
-
property
tile_service¶
-
property
user_service¶
-
property
wall_service¶
-
classmethod
caspia.homeserver.views.wall module¶
-
class
caspia.homeserver.views.wall.WallView(services, loop)[source]¶ Bases:
caspia.homeserver.views.base.View-
classmethod
as_view(*class_args, **class_kwargs)¶ Return view function for use with the routing system, that dispatches request to appropriate handler method.
-
decorators= [<function authorized.<locals>.decorator>]¶
-
dispatch_request(request, *args, **kwargs)¶
-
error_response(status, message)¶
-
property
meadow_service¶
-
options(request, *args, **kwargs)¶
-
property
tile_service¶
-
property
user_service¶
-
property
wall_service¶
-
classmethod
-
class
caspia.homeserver.views.wall.WallsView(services, loop)[source]¶ Bases:
caspia.homeserver.views.base.View-
classmethod
as_view(*class_args, **class_kwargs)¶ Return view function for use with the routing system, that dispatches request to appropriate handler method.
-
decorators= [<function authorized.<locals>.decorator>]¶
-
dispatch_request(request, *args, **kwargs)¶
-
error_response(status, message)¶
-
property
meadow_service¶
-
options(request, *args, **kwargs)¶
-
property
tile_service¶
-
property
user_service¶
-
property
wall_service¶
-
classmethod