Skip to content
This repository was archived by the owner on Jul 16, 2021. It is now read-only.

Commit cb0ec49

Browse files
committed
Libs is a better name for third-party libraries wrappers.
1 parent a57ab67 commit cb0ec49

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

bookshelf/implemented.py

+8-8
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
usecases = Package("bookshelf.usecases")
88
repositories = Package("bookshelf.repositories")
9-
functions = Package("bookshelf.functions")
9+
libs = Package("bookshelf.libs")
1010

1111

1212
class BuySubscription(Injector):
@@ -18,8 +18,8 @@ class BuySubscription(Injector):
1818
decrease_balance = repositories.decrease_balance
1919
current_date = django.utils.timezone.now
2020
create_subscription = repositories.create_subscription
21-
send_notification = functions.SendNotification.do
22-
messages = functions.Messages
21+
send_notification = libs.SendNotification.do
22+
messages = libs.Messages
2323
create_notification = repositories.create_notification
2424

2525

@@ -28,21 +28,21 @@ class PutMoneyIntoAccount(Injector):
2828
put = usecases.PutMoneyIntoAccount.put
2929
load_profile = repositories.load_profile
3030
add_balance = repositories.add_balance
31-
send_notification = functions.SendNotification.do
32-
messages = functions.Messages
31+
send_notification = libs.SendNotification.do
32+
messages = libs.Messages
3333
create_notification = repositories.create_notification
3434

3535

3636
class SignUp(Injector):
3737

3838
register_user = usecases.SignUp.register_user
39-
validate_password = functions.validate_password
39+
validate_password = libs.validate_password
4040
create_user = repositories.create_user
4141
save_password = repositories.save_password
4242
create_profile = repositories.create_profile
4343
# FIXME: Don't pass request object to the view. Inject it is the
4444
# Store class.
4545
store_user_in_session = django.contrib.auth.login
46-
send_notification = functions.SendNotification.do
47-
messages = functions.Messages
46+
send_notification = libs.SendNotification.do
47+
messages = libs.Messages
4848
create_notification = repositories.create_notification
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)