def get(self, keystr):
   posting = Posting.get(keystr)
   template_values = {
     'posting': posting,
     'user': users.get_current_user(),
   }
   self.response.out.write(doTemplate("edit", template_values, self.request))
Beispiel #2
0
 def get(self, keystr):
     posting = Posting.get(keystr)
     template_values = {
         'posting': posting,
         'user': users.get_current_user(),
     }
     self.response.out.write(
         doTemplate("edit", template_values, self.request))
  def get(self):
    (postings, olderLink, newerLink) = paged_query(
        model=Posting,
        orderProp="dateModified",
        baseURL="/",
        pageSize=10,
        before=self.request.get("before"),
        after=self.request.get("after"))

    template_values = {
      'postings': postings,
      'newer': newerLink,
      'older': olderLink,
    }

    self.response.out.write(doTemplate("index", template_values, self.request))
Beispiel #4
0
    def get(self):
        (postings, olderLink,
         newerLink) = paged_query(model=Posting,
                                  orderProp="dateModified",
                                  baseURL="/",
                                  pageSize=10,
                                  before=self.request.get("before"),
                                  after=self.request.get("after"))

        template_values = {
            'postings': postings,
            'newer': newerLink,
            'older': olderLink,
        }

        self.response.out.write(
            doTemplate("index", template_values, self.request))
Beispiel #5
0
 def get(self):
     self.response.out.write(cb_common.doTemplate("admin", {},
                                                  self.request))
Beispiel #6
0
 def get(self):
   self.response.out.write(cb_common.doTemplate(
     "admin", {}, self.request))