1
0
Fork 0

Module soutenance working with V3

This commit is contained in:
Némunaire 2012-05-30 12:28:46 +02:00
parent 8383668639
commit cc106e2157
2 changed files with 10 additions and 17 deletions

View File

@ -9,9 +9,13 @@ from datetime import date
from datetime import datetime
from datetime import timedelta
from module_state import ModuleState
nemubotversion = 3.0
def getPage ():
conn = http.client.HTTPSConnection("intra.acu.epita.fr")
conn.request("GET", "/intra/sout_liste.html")
conn = http.client.HTTPSConnection(CONF.getNode("server")["ip"])
conn.request("GET", CONF.getNode("server")["url"])
res = conn.getresponse()
data = res.read()
@ -122,14 +126,6 @@ class SiteSoutenances:
return close
def load_module(datas_path):
"""Load this module"""
return
def save_module():
"""Save the module state"""
return
def help_tiny ():
"""Line inserted in the response to the command !help"""
return "EPITA ING1 defenses module"
@ -242,10 +238,3 @@ def parseask (msg):
DELAYED[d].evt.set()
return treat
return False
def parselisten (msg):
return False
def startThread(site):
site.check ()

4
modules/soutenance.xml Normal file
View File

@ -0,0 +1,4 @@
<?xml version="1.0" ?>
<nemubotmodule name="soutenance">
<server ip="intra.acu.epita.fr" url="/intra/sout_liste.html" />
</nemubotmodule>