Esempio n. 1
0
 def GET(self, device=None):
     data = web.input()
     if device:
         if device == "legacy":
             return render.devices(True)
         if device not in devices():
             raise web.seeother('/404/')
         return render.builds(device, find_builds(device))
     return render.devices(False)
Esempio n. 2
0
 def GET(self):
     m = Sitemap()
     m.add_url('http://evervolv.com',priority='1.0')
     m.add_url('http://evervolv.com/about/',priority='0.8')
     m.add_url('http://evervolv.com/chat/',priority='0.3')
     m.add_url('http://evervolv.com/devices/',priority='0.8')
     m.add_url('http://evervolv.com/news/',priority='0.3')
     m.add_url('http://evervolv.com/source/',priority='0.6')
     m.add_url('http://evervolv.com/features/',priority='0.6')
     for d in devices():
         m.add_url('http://evervolv.com/devices/%s' % d,
                 changefreq='daily',priority='0.1')
     return m.write()
Esempio n. 3
0
# -*- coding: utf-8 -*-
"""iohub provides an integrated framework to interact with input and output
devices (from keyboards and mice to eyetrackers and custom hardware) in a 
precise synchronised manner that will not interfere with stimulus presentation
"""

# ioHub Python Module
# .. file: psychopy/iohub/__init__.py
#
# fileauthor: Sol Simpson <*****@*****.**>
#
# Copyright (C) 2012-2014 iSolver Software Solutions
# Distributed under the terms of the GNU General Public License
# (GPL version 3 or any later version).

from __future__ import division

import sys
if sys.platform == 'darwin':
    import objc

from psychopy.clock import MonotonicClock, monotonicClock

try:
    import ujson as json
except Exception:
    import json

try:
    from yaml import load, dump
    from yaml import CLoader as Loader, CDumper as Dumper
Esempio n. 4
0
# -*- coding: utf-8 -*-
"""iohub provides an integrated framework to interact with input and output
devices (from keyboards and mice to eyetrackers and custom hardware) in a 
precise synchronised manner that will not interfere with stimulus presentation
"""

# ioHub Python Module
# .. file: psychopy/iohub/__init__.py
#
# fileauthor: Sol Simpson <*****@*****.**>
#
# Copyright (C) 2012-2014 iSolver Software Solutions
# Distributed under the terms of the GNU General Public License
# (GPL version 3 or any later version).

from __future__ import division

import sys
if sys.platform == 'darwin':
    import objc

from psychopy.clock import  MonotonicClock, monotonicClock

try:
    import ujson as json
except Exception:
    import json

try:
    from yaml import load, dump
    from yaml import CLoader as Loader, CDumper as Dumper