예제 #1
0
 def __iter__(self):
     self.start(
         '302 Found',  # '301 Moved Permanently',
         [('Content-Type', 'text/html'), ('Location', '/')])
     ARTICLES.pop(self.index)
     yield ''
예제 #2
0
파일: views.py 프로젝트: IYism/lectures.www
 def __iter__(self):
     self.start('302 Found',  # '301 Moved Permanently',
                [('Content-Type', 'text/html'),
                 ('Location', '/')])
     ARTICLES.pop(self.index)
     yield ''
예제 #3
0
파일: views.py 프로젝트: renta/lectures.www
 def __iter__(self):
     self.start("302 Found", [("Content-Type", "text/html"), ("Location", "/")])  # '301 Moved Permanently',
     ARTICLES.pop(self.index)
     yield ""
예제 #4
0
 def response(self):
     ARTICLES.pop(self.index)
     return Response(status=302, location='/')
예제 #5
0
 def response(self):
     from webob import Response
     ARTICLES.pop(self.index)
     return Response(status=302, location='/')
예제 #6
0
파일: views.py 프로젝트: IYism/lectures.www
 def response(self):
     from webob import Response
     ARTICLES.pop(self.index)
     return Response(status=302, location='/')