Skip to content
Snippets Groups Projects
Commit 461d55c5 authored by ptangu01's avatar ptangu01
Browse files

add license and Copyright

git-svn-id: https://redmine.imt-atlantique.fr/svn/xaal/trunk@204 b32b6428-25c9-4566-ad07-03861ab6144f
parent 7125c697
Branches
No related tags found
No related merge requests found
#-*- coding: utf-8 -*-
"""
Copyright 2014 Jerome Colin, Jerome Kerdreux, Philippe Tanguy, Telecom Bretagne.
This file is part of xAAL.
xAAL is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
xAAL is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with xAAL. If not, see <http://www.gnu.org/licenses/>.
"""
import datetime
from collections import deque
......
# -*- coding: utf-8 -*-
"""
Created on Fri Jun 13 14:23:39 2014
Copyright 2014 Jerome Colin, Jerome Kerdreux, Philippe Tanguy, Telecom Bretagne.
@author: jcolin
This file is part of xAAL.
xAAL is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
xAAL is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with xAAL. If not, see <http://www.gnu.org/licenses/>.
"""
from SitePage import SitePage
import cherrypy
try: import ujson as json
......
"""
Copyright 2014 Jerome Colin, Jerome Kerdreux, Philippe Tanguy, Telecom Bretagne.
This file is part of xAAL.
xAAL is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
xAAL is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with xAAL. If not, see <http://www.gnu.org/licenses/>.
"""
from SitePage import SitePage
from DeviceInfo import DeviceInfo
import cherrypy
......
import time
import cherrypy
from SitePage import SitePage
class DumpMessages(SitePage):
def __init__(self):
SitePage.__init__(self,template="DumpMessages")
self.setTitle('Send action')
self.setMenuItem('DumpMessages')
# @cherrypy.expose
# def msg(self):
# cherrypy.response.headers["Content-Type"] = "text/event-stream"
# return "data: " + str(time.time()) + "\n\n"
from pages.SitePage import SitePage
class Home(SitePage):
def __init__(self):
SitePage.__init__(self,template='index')
self.setTitle('Home')
self.setMenuItem('Home')
import cherrypy
from pages.SitePage import SitePage
class SendAction(SitePage):
def __init__(self,xaalBrowser=None):
SitePage.__init__(self,template="SendAction",xaalBrowser=xaalBrowser)
self.setTitle('Send action')
@cherrypy.expose
def sendAction(self,addr=None,action=None):
print "###################################"
print action
print "###################################"
self.xaalBrowser.send(target=addr,action=action,msgtype='request')
"""
Copyright 2014 Jerome Colin, Jerome Kerdreux, Philippe Tanguy, Telecom Bretagne.
This file is part of xAAL.
xAAL is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
xAAL is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with xAAL. If not, see <http://www.gnu.org/licenses/>.
"""
import cherrypy
import string
......
"""
Copyright 2014 Jerome Colin, Jerome Kerdreux, Philippe Tanguy, Telecom Bretagne.
This file is part of xAAL.
xAAL is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
xAAL is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with xAAL. If not, see <http://www.gnu.org/licenses/>.
"""
from SitePage import SitePage
......
"""
Copyright 2014 Jerome Colin, Jerome Kerdreux, Philippe Tanguy, Telecom Bretagne.
This file is part of xAAL.
xAAL is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
xAAL is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with xAAL. If not, see <http://www.gnu.org/licenses/>.
"""
import cherrypy
try: import ujson as json
except ImportError: import json
......
<%inherit file="base.mako"/>
<h3>Dump xAAL messages</h3>
<script>
if(typeof(EventSource) !== "undefined") {
var source = new EventSource("/subscribe/dumpMsg");
source.onmessage = function(event) {
document.getElementById("result").innerHTML += event.data + "\n";
};
} else {
document.getElementById("result").innerHTML = "Sorry, your browser does not support server-sent events...";
}
</script>
<textarea rows="50" cols="50" id="result"></textarea>
<%inherit file="base.mako"/>
<form method="get" action="sendAction">
xAAL address: <input type="text" value="" name="addr" /></br>
Action to send: <input type="text" value="" name="action" /></br>
<button type="submit">Send action now!</button>
</form>
<%inherit file="base.mako"/>
"""
Copyright 2014 Jerome Colin, Jerome Kerdreux, Philippe Tanguy Telecom Bretagne.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
MIXER_PADDING = 10
import os
import ConfigParser
import time
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment