This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 1 | |
def __init__(self, request=None, reply=None, headers={}, | |
cookies=None, status_code=None): | |
# 2 | |
response = HTTPResponse( | |
headers=self._response_header,status_code=HTTPStatusCode.OK) | |
# 3 | |
return reply( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# candidate 1 | |
widgets = { | |
'title': TextInput(attrs={'class':'form-control'}), | |
'url': TextInput(attrs={'class':'form-control'}), | |
'desc': Textarea(attrs={ | |
'class':'form-control', | |
'style':'resize:none;width:100%;height:100px;'}) | |
} | |
# candidate 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" candidate 1 """ | |
class Voca(object) : | |
def get(self, book_id) : | |
return Voca.objects.filter(book.id=book_id) | |
class Quiz (object) : | |
@classmethod | |
def logout(cls, request) : | |
logout(request) |
NewerOlder