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

All Samples(9)  |  Call(9)  |  Derive(0)  |  Import(0)

src/t/w/TweetHit-HEAD/tweethit/handlers/main.py   TweetHit(Download)
def create_template_data(locale,frequency,date,request,**kwargs):
 
  current_date = time_util.today()
  current_period_flag = False
  query_cache_expiration = 0
  def get(self):
    date = time_util.today()
    locale = 'us'
    template_dict = create_template_data(locale, DAILY, date,self.request)
    self.response.headers["Cache-Control"]="public; max-age=300;"
  def get(self,locale):
    date = time_util.today()
    self.response.headers["Cache-Control"]="public; max-age=300;"
    template_dict = create_template_data(locale, 'daily', date,self.request)
    return self.template('ranking_daily.html', template_dict)
  def get(self,locale):
    date = time_util.today()
    template_dict = create_template_data(locale, 'daily', date,self.request)
    self.response.headers["Cache-Control"]="public; max-age=300;"
    return self.template('ranking_daily.html', template_dict)  
 
class CurrentWeekHandler(helipad.Handler):
  def get(self,locale):
    date = time_util.today()

src/t/w/TweetHit-HEAD/tweethit/handlers/cron.py   TweetHit(Download)
 
 
yesterday = lambda : time_util.today()-timedelta(days=1)
 
class CounterUpdate(helipad.Handler):
  def get(self):
    enqueue_renderer_update(DAILY,time_util.today())
 
class DailyCleanup(helipad.Handler):
  def get(self):

src/t/w/TweetHit-HEAD/tweethit/handlers/taskworker.py   TweetHit(Download)
  def post(self):
    from collections import defaultdict
    payload_string = self.request.get('payload')
    counter_targets = Payload.deserialize(payload_string)
    today = time_util.today()