def __init__(self, user): self.memberHome = QtWidgets.QMainWindow() self.ui = Ui_memberMainWindow() self.ui.setupUi(self.memberHome) self.ui.logoutButton.clicked.connect(self.logout) self.confirm = confirmView.ConfirmView() self.error = errorView.ErrorView() self.notification = notificationView.NotificationView() self.userController = UserController() self.bookController = BookController() self.loanController = LoanController() self.loanController.update_fines() self.ui.searchButton.clicked.connect(self.search_books) self.ui.waitingListButton.clicked.connect(self.add_to_waiting_list) self.ui.checkoutButton.clicked.connect(self.checkout_book) self.ui.cancelSelected.clicked.connect(self.cancel_waiting) self.ui.returnBookButton.clicked.connect(self.return_operation) self.ui.payFineButton.clicked.connect(self.payment_operation) self.ui.resetButton.clicked.connect(self.reset_book_filters) self.ui.waitingListWidget.cellDoubleClicked.connect(self.show_book_info_waiting) self.ui.viewBookWidget.cellDoubleClicked.connect(self.show_book_info_view) self.ui.searchBookWidget.cellDoubleClicked.connect(self.show_book_info_search) self.currentUser = user self.payment = paymentView.PaymentView(0) self.prepare_scene() self.current_book_queries = ["", "", ""] self.update_lists() self.update_scene() self.set_button_effects() self.book_info = None self.check_notifications()
UserView, UserDetail, EmailSubscription, MessageNotificationView, NotificationView, ClassSettingsView, StudentClassSettingsView, ClassgroupStatsView, RatingView, ResourceAuthorView, ResourceView, ResourceDetail, SkillView, SkillDetail, SectionView, SectionDetail, GradingQueueView) urlpatterns = patterns('', url(r'^users/$', UserView.as_view()), url(r'^users/(?P<pk>[0-9]+)/$', UserDetail.as_view()), url(r'^classes/$', ClassgroupView.as_view(), name="class_list"), url(r'^classes/(?P<classgroup>[0-9A-Za-z]+)/$', ClassgroupDetailView.as_view(), name='class_detail'), url(r'^classes/(?P<classgroup>[0-9A-Za-z]+)/settings/$', ClassSettingsView.as_view(), name="class_settings"), url(r'^classes/(?P<classgroup>[0-9A-Za-z]+)/student_settings/$', StudentClassSettingsView.as_view(), name="student_class_settings"), url(r'^classes/(?P<classgroup>[0-9A-Za-z]+)/stats/$', ClassgroupStatsView.as_view(), name="class_stats"), url(r'^classes/(?P<classgroup>[0-9A-Za-z]+)/grading_queue/$', GradingQueueView.as_view(), name="grading_queue"), url(r'^messages/$', MessageView.as_view(), name="messages"), url(r'^ratings/$', RatingView.as_view(), name="ratings"), url(r'^messages/(?P<pk>[0-9]+)/$', MessageDetailView.as_view(), name="message_detail"), url(r'^messages/notifications/$', MessageNotificationView.as_view(), name="message_notifications"), url(r'^subscribe/$', EmailSubscription.as_view()), url(r'^notifications/$', NotificationView.as_view(), name="notifications"), url(r'^resources/author/$', ResourceAuthorView.as_view(), name="resource_author"), url(r'^resources/$', ResourceView.as_view(), name='resources'), url(r'^resources/(?P<pk>[0-9]+)/$', ResourceDetail.as_view(), name="resource_detail"), url(r'^skills/$', SkillView.as_view(), name="skills"), url(r'^skills/(?P<pk>[0-9]+)/$', SkillDetail.as_view(), name="skill_detail"), url(r'^sections/$', SectionView.as_view(), name="sections"), url(r'^sections/(?P<pk>[0-9]+)/$', SectionDetail.as_view(), name="section_detail"), )
from django.conf.urls import url from views import LoginView, OTPView, ContactView, FeedView, UserView, ProfileRequestView, \ BlockMuteView, NotificationView, InviteView, ShareContactView, InterestView, SocialProfileView urlpatterns = [ url(r'login/', LoginView.as_view()), url(r'otp/', OTPView.as_view()), url(r'social_profile/', SocialProfileView.as_view()), url(r'interest/', InterestView.as_view()), url(r'user/', UserView.as_view()), url(r'profile_request/', ProfileRequestView.as_view()), url(r'contact/', ContactView.as_view()), url(r'block_mute/', BlockMuteView.as_view()), url(r'invite/', InviteView.as_view()), url(r'share/', ShareContactView.as_view()), url(r'feed/', FeedView.as_view()), url(r'notification/', NotificationView.as_view()) ]
from django.conf.urls import patterns, url from views import SuccessReturnView, ErrorReturnView, CancelReturnView, NotificationView urlpatterns = patterns('', url(r'success-return/$', SuccessReturnView.as_view(), name='trustpay_success_return'), url(r'error-return/$', ErrorReturnView.as_view(), name='trustpay_error_return'), url(r'cancel-return/$', CancelReturnView.as_view(), name='trustpay_cancel_return'), url(r'notification/$', NotificationView.as_view(), name='trustpay_notification'), )