Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(66)  |  Call(0)  |  Derive(42)  |  Import(24)

src/m/e/merlin-HEAD/Arthur/views/home.py   merlin(Download)
from Arthur.context import menu, render
from Arthur.errors import page_not_found
from Arthur.loadable import loadable, load, require_user
 
bot = Config.get("Connection","nick")
class login(loadable):
    def execute(self, request, user):
        from Arthur.views.dashboard import dashboard
        if user.is_member():
            return dashboard.execute(request, user, dashuser=user)
class home(loadable):
    def execute(self, request, user):
 
        planet, galaxy = (user.planet, user.planet.galaxy,) if user.planet else (Planet(), Galaxy(),)
 
class links(loadable):
    def execute(self, request, user, link):
        link = {
                "game"        : Config.get("URL","game"),
                "forums"      : "http://pirate.planetarion.com",
class guide(loadable):
    def execute(self, request, user):
        return render("guide.tpl", request, bot=Config.get("Connection","nick"), alliance=name)
 

src/m/e/merlin-HEAD/Arthur/views/scans/request.py   merlin(Download)
from Core.robocop import push
from Arthur.context import menu, render
from Arthur.loadable import loadable, load, require_user
 
urlpatterns = patterns('Arthur.views.scans.request',
class request(loadable):
    access = Config.get("Arthur", "scans")
    def execute(self, request, user, x, y, z, type, dists):
        from Arthur.views.scans.list import scans
        tick = Updates.current_tick()
class cancel(loadable):
    access = Config.get("Arthur", "scans")
    def execute(self, request, user, id):
        req = Request.load(id)
        if req is None:
class blocks(loadable):
    access = Config.get("Arthur", "scans")
    def execute(self, request, user, id, dists):
        req = Request.load(id)
        if req is None:
class requests(loadable):
    access = Config.get("Arthur", "scans")
    def execute(self, request, user, message=None):
        tick = Updates.current_tick()
 

src/m/e/merlin-HEAD/Arthur/views/scans/list.py   merlin(Download)
from Core.maps import Updates, Planet, Scan, Request
from Arthur.context import menu, render
from Arthur.loadable import loadable, load, require_user
 
@menu("Scans")
@load
@require_user
class scans(loadable):
class group(loadable):
    access = Config.get("Arthur", "scans")
 
    def execute(self, request, user, id):
        Q = session.query(Planet, Scan)
class tick(loadable):
    access = Config.get("Arthur", "scans")
 
    def execute(self, request, user, tick):
        Q = session.query(Planet, Scan)

src/m/e/merlin-HEAD/Arthur/views/attack/book.py   merlin(Download)
from Core.maps import Updates, Planet, Target, Attack
from Arthur.context import render
from Arthur.loadable import loadable, load, require_user
 
@load
@require_user
class book(loadable):
class unbook(loadable):
    access = "half"
 
    def execute(self, request, user, id, x, y, z, when):
        planet = Planet.load(x,y,z)

src/m/e/merlin-HEAD/Arthur/views/exiles/exiles.py   merlin(Download)
from Core.maps import Galaxy, Planet, PlanetExiles
from Arthur.context import menu, render
from Arthur.loadable import loadable, load
 
@menu("Tracker")
@load
class exiles(loadable):
class galaxy(loadable):
    def execute(self, request, user, x, y, through):
        galaxy = Galaxy.load(x,y)
        if galaxy is None:
            return HttpResponseRedirect(reverse("exiles"))
class planet(loadable):
    def execute(self, request, user, x, y, z, through):
        planet = Planet.load(x,y,z)
        if planet is None:
            return HttpResponseRedirect(reverse("exiles"))

src/m/e/merlin-HEAD/Arthur/views/scans/planet.py   merlin(Download)
from Core.maps import Planet, Scan
from Arthur.context import render
from Arthur.loadable import loadable, load
 
@load
class planet(loadable):
class id(loadable):
    access = Config.get("Arthur", "scans")
 
    def execute(self, request, user, tick, id):
        Q = session.query(Scan)
class scan(loadable):
    access = Config.get("Arthur", "scans")
 
    def execute(self, request, user, x, y, z, type):
        planet = Planet.load(x,y,z)
class types(loadable):
    access = Config.get("Arthur", "scans")
 
    def execute(self, request, user, x, y, z, types):
        types = types.upper()

src/m/e/merlin-HEAD/Arthur/views/members/members.py   merlin(Download)
from Core.maps import Updates, Planet, User, PhoneFriend, Channel
from Arthur.context import menu, render
from Arthur.loadable import loadable, load
bot = Config.get("Connection","nick")
 
@menu(bot, "Members")
@load
class members(loadable):
class galmates(loadable):
    access = "member"
    def execute(self, request, user, sort=None):
 
        levels = [] + User.levels
class channels(loadable):
    access = "member"
    def execute(self, request, user, sort=None):
 
        levels = [] + User.levels

src/m/e/merlin-HEAD/Arthur/views/scans/galaxy.py   merlin(Download)
from Core.maps import Galaxy, Scan
from Arthur.context import render
from Arthur.loadable import loadable, load
 
@load
class galaxy(loadable):
class types(loadable):
    access = Config.get("Arthur", "scans")
 
    def execute(self, request, user, x, y, types):
        types = types.upper()

src/m/e/merlin-HEAD/Arthur/views/attack/attack.py   merlin(Download)
from Core.maps import Updates, Planet, Target, Attack
from Arthur.context import menu, render
from Arthur.loadable import loadable, load
 
@menu("Attacks")
@load
class attack(loadable):
class view(loadable):
    access = "half"
 
    def execute(self, request, user, id, message=None):
        attack = Attack.load(id)

src/m/e/merlin-HEAD/Arthur/views/planet/planets.py   merlin(Download)
from Core.maps import Planet, Alliance, Intel
from Arthur.context import menu, render
from Arthur.loadable import loadable, load
 
@menu("Rankings", "Planets")
@load
class planets(loadable):

  1 | 2 | 3  Next