Commit c33e36b8 authored by Koen Martens's avatar Koen Martens

Add OneMoreGrid

parent a5612e64
import requests
from lib.event import Event
from fetcher.icalfetcher import IcalFetcher
import icalendar
from lib.category import Category
from helper.helper import Helper
class OneMoreGridFetcher(IcalFetcher):
def __init__(self, eventlist, webcache=None):
self.webcache = webcache
self.minexpiry = 1000
self.maxexpirty = 1800
if __name__=='__main__':
from lib.webcache import WebCache
from lib.eventlist import EventList
eventlist = EventList()
cache = WebCache("data/test_omg.cache")
f = OneMoreGridFetcher(eventlist, cache)
for ev in eventlist:
print str(ev)
......@@ -128,6 +128,7 @@
case "digiworldz": rv = "DigiWorldz"; break;
case "refuge": rv = "Refuge Grid"; break;
case "narasnook": rv = "Nara's Nook"; break;
case "onemoregrid": rv = "OneMoreGrid"; break;
case "jog": rv = "Japan Open Grid"; break;
case "arcana": rv = "Arcana"; break;
case "thirdlife": rv = "3rdLifeGrid"; break;
......@@ -13,6 +13,7 @@
<span id="headerHYP">HYP</span><span id="headerEvents">Events</span>
<div class="mainrow" id="news">
<div class="newsitem">2017-01-24: Added's event calendar</div>
<div class="newsitem">2016-11-04: Added Island Oasis Grid events</div>
<div class="newsitem">2016-10-29: New version of in-world board, 0.8, released</div>
<div class="newsitem">2016-09-19: Added calendar from 3rdLifeGrid</div>
......@@ -103,6 +104,7 @@ If, for some reason, an ical feed or json provider is not an option (or there is
<li><a href="">Metropolis</a></li>
<li><a href="">Naras Nook</a></li>
<li><a href="">Nextlife-World</a></li>
<li><a href="">OneMoreGrid</a></li>
<li><a href="">OpenSimWorld</a></li>
<li><a href="">Phaandoria grid</a></li>
<li><a href="">Pirates Atoll (Digiworldz)</a></li>
......@@ -50,6 +50,7 @@ fetchers = [
("nextlifefetcher", "NextLifeFetcher", 0),
("piratesatollfetcher", "PiratesAtollFetcher", 0),
("narasnookfetcher", "NarasNookFetcher", 0),
("omgfetcher", "OneMoreGridFetcher", 0),
("miscfetcher", "MiscFetcher", 0),
("opensimworldfetcher", "OpenSimWorldFetcher", 0),
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment