__init__.py 976 B

123456789101112131415161718192021222324252627282930313233343536
  1. #!/usr/bin/env python
  2. # DT Home
  3. # Remote
  4. #
  5. # Douglas Thrift
  6. #
  7. # __init__.py
  8. # Copyright 2012 Douglas Thrift
  9. #
  10. # Licensed under the Apache License, Version 2.0 (the "License");
  11. # you may not use this file except in compliance with the License.
  12. # You may obtain a copy of the License at
  13. #
  14. # http://www.apache.org/licenses/LICENSE-2.0
  15. #
  16. # Unless required by applicable law or agreed to in writing, software
  17. # distributed under the License is distributed on an "AS IS" BASIS,
  18. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  19. # See the License for the specific language governing permissions and
  20. # limitations under the License.
  21. class Remote(object):
  22. def __init__(self, *args, **kwargs):
  23. pass
  24. def ir_command(method):
  25. def command(self, *args, **kwargs):
  26. code = method(self, *args, **kwargs)
  27. print code
  28. return command
  29. from remote.vornado import VornadoRemote
  30. from remote.xbox360 import Xbox360Remote