All pastes #291879 Raw Edit

Someone

public python v1 · immutable
#291879 ·published 2006-12-25 21:48 UTC
rendered paste body
class Village:        def __init__(self, name, id, loc):                self.name = name                self.id = id                self.location = loc        def getSummary(self):                # request the summary 1 page (dorf1.php) from travian                # pass it to the summary page 1 pareser object                pageSum1 = travianClient.requestPage(self.pageVillageSum1)                sum1 = t3_parsers.summaryPage1                sum1.feed(pageSum1)                self.getStores = sum1.getStores()                self.production = sum1.getResourceProduction()                self.inboundAttacks = sum1.getInboundAttacks()                self.outboundAttacks = sum1.getOutboundAttacks()                self.inboundReinforce = sum1.getInboundReinforce()                self.outboundReinforce = sum1.getOutboundReinforce()                self.buildQ = sum1.getBuildQ()