Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e307d78

Browse filesBrowse files
committed
Rename AddViewViewModel to AddVideoViewModel (error in spelling/naming there)
1 parent 7209ae8 commit e307d78
Copy full SHA for e307d78

File tree

Expand file treeCollapse file tree

14 files changed

+35
-35
lines changed
Filter options
Expand file treeCollapse file tree

14 files changed

+35
-35
lines changed

‎code/ch4_app/ch4_final_video_collector/viewmodels/videos/add_video_viewmodel.py

Copy file name to clipboardExpand all lines: code/ch4_app/ch4_final_video_collector/viewmodels/videos/add_video_viewmodel.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from viewmodels.shared.viewmodelbase import ViewModelBase
44

55

6-
class AddViewViewModel(ViewModelBase):
6+
class AddVideoViewModel(ViewModelBase):
77
def __init__(self, cat_name: str):
88
super().__init__()
99

‎code/ch4_app/ch4_final_video_collector/views/videos.py

Copy file name to clipboardExpand all lines: code/ch4_app/ch4_final_video_collector/views/videos.py
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from infrastructure.view_modifiers import response
44
from services import video_service
5-
from viewmodels.videos.add_video_viewmodel import AddViewViewModel
5+
from viewmodels.videos.add_video_viewmodel import AddVideoViewModel
66
from viewmodels.videos.category_viewmodel import CategoryViewModel
77
from viewmodels.videos.play_viewmodel import PlayViewModel
88

@@ -26,13 +26,13 @@ def play(video_id: str):
2626
@blueprint.get('/videos/add/<cat_name>')
2727
@response(template_file='videos/partials/add_video_form.html')
2828
def add_get(cat_name: str):
29-
vm = AddViewViewModel(cat_name)
29+
vm = AddVideoViewModel(cat_name)
3030
return vm.to_dict()
3131

3232

3333
@blueprint.post('/videos/add/<cat_name>')
3434
def add_post(cat_name: str):
35-
vm = AddViewViewModel(cat_name)
35+
vm = AddVideoViewModel(cat_name)
3636
vm.restore_from_form()
3737

3838
video_service.add_video(cat_name, vm.id, vm.title, vm.author, vm.view_count)
@@ -43,5 +43,5 @@ def add_post(cat_name: str):
4343
@blueprint.get('/videos/cancel_add/<cat_name>')
4444
@response(template_file='videos/partials/show_add_form.html')
4545
def cancel_add(cat_name: str):
46-
vm = AddViewViewModel(cat_name)
46+
vm = AddVideoViewModel(cat_name)
4747
return vm.to_dict()

‎code/ch5_partials/ch5_final_video_collector/viewmodels/videos/add_video_viewmodel.py

Copy file name to clipboardExpand all lines: code/ch5_partials/ch5_final_video_collector/viewmodels/videos/add_video_viewmodel.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from viewmodels.shared.viewmodelbase import ViewModelBase
44

55

6-
class AddViewViewModel(ViewModelBase):
6+
class AddVideoViewModel(ViewModelBase):
77
def __init__(self, cat_name: str):
88
super().__init__()
99

‎code/ch5_partials/ch5_final_video_collector/views/videos.py

Copy file name to clipboardExpand all lines: code/ch5_partials/ch5_final_video_collector/views/videos.py
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from infrastructure.view_modifiers import response
44
from services import video_service
5-
from viewmodels.videos.add_video_viewmodel import AddViewViewModel
5+
from viewmodels.videos.add_video_viewmodel import AddVideoViewModel
66
from viewmodels.videos.category_viewmodel import CategoryViewModel
77
from viewmodels.videos.play_viewmodel import PlayViewModel
88

@@ -26,13 +26,13 @@ def play(video_id: str):
2626
@blueprint.get('/videos/add/<cat_name>')
2727
@response(template_file='videos/partials/add_video_form.html')
2828
def add_get(cat_name: str):
29-
vm = AddViewViewModel(cat_name)
29+
vm = AddVideoViewModel(cat_name)
3030
return vm.to_dict()
3131

3232

3333
@blueprint.post('/videos/add/<cat_name>')
3434
def add_post(cat_name: str):
35-
vm = AddViewViewModel(cat_name)
35+
vm = AddVideoViewModel(cat_name)
3636
vm.restore_from_form()
3737

3838
video_service.add_video(cat_name, vm.id, vm.title, vm.author, vm.view_count)
@@ -43,5 +43,5 @@ def add_post(cat_name: str):
4343
@blueprint.get('/videos/cancel_add/<cat_name>')
4444
@response(template_file='videos/partials/show_add_form.html')
4545
def cancel_add(cat_name: str):
46-
vm = AddViewViewModel(cat_name)
46+
vm = AddVideoViewModel(cat_name)
4747
return vm.to_dict()

‎code/ch5_partials/ch5_starter_video_collector/viewmodels/videos/add_video_viewmodel.py

Copy file name to clipboardExpand all lines: code/ch5_partials/ch5_starter_video_collector/viewmodels/videos/add_video_viewmodel.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from viewmodels.shared.viewmodelbase import ViewModelBase
44

55

6-
class AddViewViewModel(ViewModelBase):
6+
class AddVideoViewModel(ViewModelBase):
77
def __init__(self, cat_name: str):
88
super().__init__()
99

‎code/ch5_partials/ch5_starter_video_collector/views/videos.py

Copy file name to clipboardExpand all lines: code/ch5_partials/ch5_starter_video_collector/views/videos.py
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from infrastructure.view_modifiers import response
44
from services import video_service
5-
from viewmodels.videos.add_video_viewmodel import AddViewViewModel
5+
from viewmodels.videos.add_video_viewmodel import AddVideoViewModel
66
from viewmodels.videos.category_viewmodel import CategoryViewModel
77
from viewmodels.videos.play_viewmodel import PlayViewModel
88

@@ -26,13 +26,13 @@ def play(video_id: str):
2626
@blueprint.get('/videos/add/<cat_name>')
2727
@response(template_file='videos/partials/add_video_form.html')
2828
def add_get(cat_name: str):
29-
vm = AddViewViewModel(cat_name)
29+
vm = AddVideoViewModel(cat_name)
3030
return vm.to_dict()
3131

3232

3333
@blueprint.post('/videos/add/<cat_name>')
3434
def add_post(cat_name: str):
35-
vm = AddViewViewModel(cat_name)
35+
vm = AddVideoViewModel(cat_name)
3636
vm.restore_from_form()
3737

3838
video_service.add_video(cat_name, vm.id, vm.title, vm.author, vm.view_count)
@@ -43,5 +43,5 @@ def add_post(cat_name: str):
4343
@blueprint.get('/videos/cancel_add/<cat_name>')
4444
@response(template_file='videos/partials/show_add_form.html')
4545
def cancel_add(cat_name: str):
46-
vm = AddViewViewModel(cat_name)
46+
vm = AddVideoViewModel(cat_name)
4747
return vm.to_dict()

‎code/ch6_active_search/ch6_final_video_collector/viewmodels/videos/add_video_viewmodel.py

Copy file name to clipboardExpand all lines: code/ch6_active_search/ch6_final_video_collector/viewmodels/videos/add_video_viewmodel.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from viewmodels.shared.viewmodelbase import ViewModelBase
44

55

6-
class AddViewViewModel(ViewModelBase):
6+
class AddVideoViewModel(ViewModelBase):
77
def __init__(self, cat_name: str):
88
super().__init__()
99

‎code/ch6_active_search/ch6_final_video_collector/views/videos.py

Copy file name to clipboardExpand all lines: code/ch6_active_search/ch6_final_video_collector/views/videos.py
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from infrastructure.view_modifiers import response
44
from services import video_service
5-
from viewmodels.videos.add_video_viewmodel import AddViewViewModel
5+
from viewmodels.videos.add_video_viewmodel import AddVideoViewModel
66
from viewmodels.videos.category_viewmodel import CategoryViewModel
77
from viewmodels.videos.play_viewmodel import PlayViewModel
88
from viewmodels.videos.search_viewmodel import SearchViewModel
@@ -27,13 +27,13 @@ def play(video_id: str):
2727
@blueprint.get('/videos/add/<cat_name>')
2828
@response(template_file='videos/partials/add_video_form.html')
2929
def add_get(cat_name: str):
30-
vm = AddViewViewModel(cat_name)
30+
vm = AddVideoViewModel(cat_name)
3131
return vm.to_dict()
3232

3333

3434
@blueprint.post('/videos/add/<cat_name>')
3535
def add_post(cat_name: str):
36-
vm = AddViewViewModel(cat_name)
36+
vm = AddVideoViewModel(cat_name)
3737
vm.restore_from_form()
3838

3939
video_service.add_video(cat_name, vm.id, vm.title, vm.author, vm.view_count)
@@ -44,7 +44,7 @@ def add_post(cat_name: str):
4444
@blueprint.get('/videos/cancel_add/<cat_name>')
4545
@response(template_file='videos/partials/show_add_form.html')
4646
def cancel_add(cat_name: str):
47-
vm = AddViewViewModel(cat_name)
47+
vm = AddVideoViewModel(cat_name)
4848
return vm.to_dict()
4949

5050

‎code/ch6_active_search/ch6_starter_video_collector/viewmodels/videos/add_video_viewmodel.py

Copy file name to clipboardExpand all lines: code/ch6_active_search/ch6_starter_video_collector/viewmodels/videos/add_video_viewmodel.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from viewmodels.shared.viewmodelbase import ViewModelBase
44

55

6-
class AddViewViewModel(ViewModelBase):
6+
class AddVideoViewModel(ViewModelBase):
77
def __init__(self, cat_name: str):
88
super().__init__()
99

‎code/ch6_active_search/ch6_starter_video_collector/views/videos.py

Copy file name to clipboardExpand all lines: code/ch6_active_search/ch6_starter_video_collector/views/videos.py
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from infrastructure.view_modifiers import response
44
from services import video_service
5-
from viewmodels.videos.add_video_viewmodel import AddViewViewModel
5+
from viewmodels.videos.add_video_viewmodel import AddVideoViewModel
66
from viewmodels.videos.category_viewmodel import CategoryViewModel
77
from viewmodels.videos.play_viewmodel import PlayViewModel
88

@@ -26,13 +26,13 @@ def play(video_id: str):
2626
@blueprint.get('/videos/add/<cat_name>')
2727
@response(template_file='videos/partials/add_video_form.html')
2828
def add_get(cat_name: str):
29-
vm = AddViewViewModel(cat_name)
29+
vm = AddVideoViewModel(cat_name)
3030
return vm.to_dict()
3131

3232

3333
@blueprint.post('/videos/add/<cat_name>')
3434
def add_post(cat_name: str):
35-
vm = AddViewViewModel(cat_name)
35+
vm = AddVideoViewModel(cat_name)
3636
vm.restore_from_form()
3737

3838
video_service.add_video(cat_name, vm.id, vm.title, vm.author, vm.view_count)
@@ -43,5 +43,5 @@ def add_post(cat_name: str):
4343
@blueprint.get('/videos/cancel_add/<cat_name>')
4444
@response(template_file='videos/partials/show_add_form.html')
4545
def cancel_add(cat_name: str):
46-
vm = AddViewViewModel(cat_name)
46+
vm = AddVideoViewModel(cat_name)
4747
return vm.to_dict()

‎code/ch7_infinite_scroll/ch7_final_video_collector/viewmodels/videos/add_video_viewmodel.py

Copy file name to clipboardExpand all lines: code/ch7_infinite_scroll/ch7_final_video_collector/viewmodels/videos/add_video_viewmodel.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from viewmodels.shared.viewmodelbase import ViewModelBase
44

55

6-
class AddViewViewModel(ViewModelBase):
6+
class AddVideoViewModel(ViewModelBase):
77
def __init__(self, cat_name: str):
88
super().__init__()
99

‎code/ch7_infinite_scroll/ch7_final_video_collector/views/videos.py

Copy file name to clipboardExpand all lines: code/ch7_infinite_scroll/ch7_final_video_collector/views/videos.py
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from infrastructure.view_modifiers import response
44
from services import video_service
5-
from viewmodels.videos.add_video_viewmodel import AddViewViewModel
5+
from viewmodels.videos.add_video_viewmodel import AddVideoViewModel
66
from viewmodels.videos.category_viewmodel import CategoryViewModel
77
from viewmodels.videos.play_viewmodel import PlayViewModel
88
from viewmodels.videos.search_viewmodel import SearchViewModel
@@ -27,13 +27,13 @@ def play(video_id: str):
2727
@blueprint.get('/videos/add/<cat_name>')
2828
@response(template_file='videos/partials/add_video_form.html')
2929
def add_get(cat_name: str):
30-
vm = AddViewViewModel(cat_name)
30+
vm = AddVideoViewModel(cat_name)
3131
return vm.to_dict()
3232

3333

3434
@blueprint.post('/videos/add/<cat_name>')
3535
def add_post(cat_name: str):
36-
vm = AddViewViewModel(cat_name)
36+
vm = AddVideoViewModel(cat_name)
3737
vm.restore_from_form()
3838

3939
video_service.add_video(cat_name, vm.id, vm.title, vm.author, vm.view_count)
@@ -44,7 +44,7 @@ def add_post(cat_name: str):
4444
@blueprint.get('/videos/cancel_add/<cat_name>')
4545
@response(template_file='videos/partials/show_add_form.html')
4646
def cancel_add(cat_name: str):
47-
vm = AddViewViewModel(cat_name)
47+
vm = AddVideoViewModel(cat_name)
4848
return vm.to_dict()
4949

5050

‎code/ch7_infinite_scroll/ch7_starter_video_collector/viewmodels/videos/add_video_viewmodel.py

Copy file name to clipboardExpand all lines: code/ch7_infinite_scroll/ch7_starter_video_collector/viewmodels/videos/add_video_viewmodel.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from viewmodels.shared.viewmodelbase import ViewModelBase
44

55

6-
class AddViewViewModel(ViewModelBase):
6+
class AddVideoViewModel(ViewModelBase):
77
def __init__(self, cat_name: str):
88
super().__init__()
99

‎code/ch7_infinite_scroll/ch7_starter_video_collector/views/videos.py

Copy file name to clipboardExpand all lines: code/ch7_infinite_scroll/ch7_starter_video_collector/views/videos.py
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from infrastructure.view_modifiers import response
44
from services import video_service
5-
from viewmodels.videos.add_video_viewmodel import AddViewViewModel
5+
from viewmodels.videos.add_video_viewmodel import AddVideoViewModel
66
from viewmodels.videos.category_viewmodel import CategoryViewModel
77
from viewmodels.videos.play_viewmodel import PlayViewModel
88
from viewmodels.videos.search_viewmodel import SearchViewModel
@@ -27,13 +27,13 @@ def play(video_id: str):
2727
@blueprint.get('/videos/add/<cat_name>')
2828
@response(template_file='videos/partials/add_video_form.html')
2929
def add_get(cat_name: str):
30-
vm = AddViewViewModel(cat_name)
30+
vm = AddVideoViewModel(cat_name)
3131
return vm.to_dict()
3232

3333

3434
@blueprint.post('/videos/add/<cat_name>')
3535
def add_post(cat_name: str):
36-
vm = AddViewViewModel(cat_name)
36+
vm = AddVideoViewModel(cat_name)
3737
vm.restore_from_form()
3838

3939
video_service.add_video(cat_name, vm.id, vm.title, vm.author, vm.view_count)
@@ -44,7 +44,7 @@ def add_post(cat_name: str):
4444
@blueprint.get('/videos/cancel_add/<cat_name>')
4545
@response(template_file='videos/partials/show_add_form.html')
4646
def cancel_add(cat_name: str):
47-
vm = AddViewViewModel(cat_name)
47+
vm = AddVideoViewModel(cat_name)
4848
return vm.to_dict()
4949

5050

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.