Пример #1
0
@author: xuechong
'''
from google.appengine.api import memcache
from Weixin import textReply
import logging
from utils.Commons import randomFromList
from utils.Commons import loadFromMemcache
from utils.Commons import todayStr

client = memcache.Client()
__coderCalenderKey__ = ""
__namespace__ = "coderCalender"

todayKey = lambda: "coderCalender" + str(todayStr())

find = lambda: loadFromMemcache(__namespace__, todayKey(), newContent)


class CoderHandler():
    """
    the coder lao huang li!!! for moegirl wiki
    """
    @staticmethod
    def __helpkey__():
        return __coderCalenderKey__

    @staticmethod
    def __helpcontent__():
        return ""

    def handle(self, handlerChain):
def todayContent():
    return loadFromMemcache("animeList", todayKey(), lambda :formatContent(getContent()))
Пример #3
0
@author: xuechong
'''
from google.appengine.api import memcache
from Weixin import textReply
import logging
from utils.Commons import randomFromList
from utils.Commons import loadFromMemcache
from utils.Commons import todayStr

client = memcache.Client()
__coderCalenderKey__ = ""
__namespace__ = "coderCalender"

todayKey = lambda : "coderCalender" + str(todayStr())

find = lambda: loadFromMemcache(__namespace__, todayKey(), newContent)

class CoderHandler():
    """
    the coder lao huang li!!! for moegirl wiki
    """
    
    @staticmethod
    def __helpkey__ ():
        return __coderCalenderKey__
    
    @staticmethod
    def __helpcontent__():
        return ""
    
    def handle(self,handlerChain):