Beispiel #1
0
 def __iter__(self):
     self.start(
         '302 Found',  # '301 Moved Permanently',
         [('Content-Type', 'text/html'), ('Location', '/')])
     ARTICLES.pop(self.index)
     yield ''
Beispiel #2
0
 def __iter__(self):
     self.start('302 Found',  # '301 Moved Permanently',
                [('Content-Type', 'text/html'),
                 ('Location', '/')])
     ARTICLES.pop(self.index)
     yield ''
Beispiel #3
0
 def __iter__(self):
     self.start("302 Found", [("Content-Type", "text/html"), ("Location", "/")])  # '301 Moved Permanently',
     ARTICLES.pop(self.index)
     yield ""
Beispiel #4
0
 def response(self):
     ARTICLES.pop(self.index)
     return Response(status=302, location='/')
Beispiel #5
0
 def response(self):
     from webob import Response
     ARTICLES.pop(self.index)
     return Response(status=302, location='/')
Beispiel #6
0
 def response(self):
     from webob import Response
     ARTICLES.pop(self.index)
     return Response(status=302, location='/')