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

All Samples(60)  |  Call(36)  |  Derive(0)  |  Import(24)

src/m/e/merlin-HEAD/Arthur/views/home.py   merlin(Download)
from Core.db import session
from Core.maps import Updates, Galaxy, Planet, Alliance
from Arthur.context import menu, render
from Arthur.errors import page_not_found
from Arthur.loadable import loadable, load, require_user
        dup = lambda l,o,c=True: l+[o] if o in session and c and o not in l else l
 
        return render("index.tpl", request,
                     topplanets = dup(planets.order_by(asc(Planet.score_rank))[:20], 
                                      planet),
    def execute(self, request, user):
        return render("guide.tpl", request, bot=Config.get("Connection","nick"), alliance=name)
 

src/m/e/merlin-HEAD/Arthur/views/search.py   merlin(Download)
from Core.db import session
from Core.maps import Galaxy, Planet, Alliance, Intel
from Arthur.context import menu, render
from Arthur.loadable import loadable, load
 
        results = Q.all() if query else None
 
        return render("search.tpl", request, planets=results, sort=search["order1"],
                                showsort=showsort, s=search, params=params,
                                offset=offset, pages=pages, page=page)

src/m/e/merlin-HEAD/Arthur/views/alliance/palliance.py   merlin(Download)
from Core.db import session
from Core.maps import Planet, Alliance, Intel
from Arthur.context import render
from Arthur.loadable import loadable, load
 
            Q = Q.order_by(o)
        Q = Q.limit(50).offset(offset)
        return render("palliance.tpl", request, alliance=alliance, members=alliance.intel_members, planets=Q.all(), offset=offset, pages=pages, page=page, sort=sort, race=race)
 

src/m/e/merlin-HEAD/Arthur/views/scans/list.py   merlin(Download)
from Core.db import session
from Core.maps import Updates, Planet, Scan, Request
from Arthur.context import menu, render
from Arthur.loadable import loadable, load, require_user
 
        scans = Q[:25]
 
        return render("scans/scans.tpl", request, anonscans=Config.getboolean("Misc", "anonscans"), types=Request._requestable, open=open, completed=completed, scans=scans, message=message, planet=planet)
 
@load
            scans.append(scan)
 
        return render("scans/group.tpl", request, group=group, scans=scans)
 
@load
                group[-1][1].append(scan)
 
        return render("scans/tick.tpl", request, tick=tick, group=group)
 

src/m/e/merlin-HEAD/Arthur/views/planet/planets.py   merlin(Download)
from Core.db import session
from Core.maps import Planet, Alliance, Intel
from Arthur.context import menu, render
from Arthur.loadable import loadable, load
 
            Q = Q.order_by(o)
        Q = Q.limit(50).offset(offset)
        return render("planets.tpl", request, planets=Q.all(), offset=offset, pages=pages, page=page, sort=sort, race=race)
 

src/m/e/merlin-HEAD/Arthur/views/dashboard.py   merlin(Download)
from Core.db import session
from Core.maps import User
from Arthur.context import menu, render
from Arthur.loadable import loadable, load
name = Config.get("Alliance", "name")
        phonefriend = user == dashuser or user in dashuser.phonefriends
 
        return render("dashboard.tpl", request, dashuser=dashuser, planet=dashuser.planet, gimps=gimps, mums=mums, ships=ships, phonefriend=phonefriend)
 

src/m/e/merlin-HEAD/Arthur/views/planet/planet.py   merlin(Download)
from Core.db import session
from Core.maps import Updates, Planet, PlanetHistory, PlanetIdles, PlanetValueDrops, PlanetLandings, PlanetLandedOn
from Arthur.context import render
from Arthur.loadable import loadable, load
 
            hsummary = None
 
        return render(["planet.tpl",["hplanet.tpl","hsplanet.tpl"][hs]][h or hs],
                        request,
                        planet = planet,

src/m/e/merlin-HEAD/Arthur/views/galaxy/galaxy.py   merlin(Download)
from Core.db import session
from Core.maps import Updates, Galaxy, GalaxyHistory, Planet, Alliance, Intel
from Arthur.context import render
from Arthur.loadable import loadable, load
 
            hsummary = None
 
        return render(["galaxy.tpl",["hgalaxy.tpl","hsgalaxy.tpl"][hs]][h or hs],
                        request,
                        galaxy = galaxy,

src/m/e/merlin-HEAD/Arthur/views/attack/attack.py   merlin(Download)
from Core.db import session
from Core.maps import Updates, Planet, Target, Attack
from Arthur.context import menu, render
from Arthur.loadable import loadable, load
 
                scans.append(planet.scan("J"))
 
        return render("attacks.tpl", request, message=message, attacks=attacks, bookings=bookings, scans=scans)
 
@load
                group[-1][2].append((tick, bookings.get(tick) or (False if show_jgps else None),))
 
        return render("attack.tpl", request, attack=attack, message=message, waves=waves, group=group, scans=scans)
 

src/m/e/merlin-HEAD/Arthur/views/scans/request.py   merlin(Download)
from Core.maps import Updates, Planet, Request
from Core.robocop import push
from Arthur.context import menu, render
from Arthur.loadable import loadable, load, require_user
 
        everyone = Q.all()
 
        return render("scans/requests.tpl", request, anonscans=Config.getboolean("Misc", "anonscans"), types=Request._requestable, mine=mine, everyone=everyone, message=message)
 

  1 | 2 | 3  Next