MobileBlur

Diff
Login

Differences From Artifact [4537bde179]:

To Artifact [d702443dbf]:


116
117
118
119
120
121
122


123
124
125
126
127



    def __str__(self):
        "stringify me"
        return self.message


def redirect(location, how=303):


    location = location.replace('\r', '%0D').replace('\n', '%0A')
    raise HTTP(how,
               'You are being redirected <a href="%s">here</a>' % location,
               Location=location)










>
>





>
>
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131

    def __str__(self):
        "stringify me"
        return self.message


def redirect(location, how=303):
    if not location:
        return
    location = location.replace('\r', '%0D').replace('\n', '%0A')
    raise HTTP(how,
               'You are being redirected <a href="%s">here</a>' % location,
               Location=location)