示例#1
0
    def __init__(self):
        super().__init__()
        self.title = 'PyQt5 simple window - pythonspot.com'
        self.left = 10
        self.top = 10
        self.width = 640
        self.height = 480

        self.settings_view = SettingsView(self)
        self.general_view = GeneralView(self)

        self.worker = DriverWorkerObject()
        self.thread = QtCore.QThread()
        self.worker.moveToThread(self.thread)
        self.thread.start()

        self.signal_start_background_job.connect(self.worker.background_job)
        self.signal_start_background_job.emit()

        exchanges = self.settings_view.config['exchange']

        # for i in exchanges:
        #     th = DriverThread(i)
        #     th.start()

        self.worker.sig_balance.connect(self.general_view.slot_update_tree)

        self.initUI()
示例#2
0
from django.conf.urls import patterns, include, url

# Uncomment the next two lines to enable the admin:
from django.contrib import admin
from views import SearchView, QueueView, SettingsView, RegistrationView, TorrentPageView, torrent_form_middleman
from api.utils import create_torrent_record, delete_torrent_record, retrieve_queue, register_client,\
    reset_client_id
from authentication.views import LoginView, logout_view
admin.autodiscover()

urlpatterns = patterns('tpb_mobile.views',
    # Examples:
    url(r'^$', SearchView.as_view(), name='home'),
    url(r'^queue/$', QueueView.as_view(), name='queue'),
    url(r'^settings/$', SettingsView.as_view(), name='settings'),
    url(r'^register/$', RegistrationView.as_view(), name='register'),
#     url(r'^torrent/(?P<created>(.)*)/(?P<user>(.)*)/(?P<seeders>(\d)*)/(?P<leechers>(\d)*)/(?P<url>(.)*)/$', TorrentPageView.as_view(), name='torrent'),
    url(r'^torrent/$', TorrentPageView.as_view(), name='torrent'),
    url(r'^middleman/$', torrent_form_middleman, name='middleman'),

    # Uncomment the next line to enable the admin:
    url(r'^admin/', include(admin.site.urls)),
)

urlpatterns += patterns('api.utils',
    url(r'^api/create_torrent/$', create_torrent_record, name='create_torrent'),
    url(r'^api/delete_torrent/$', delete_torrent_record, name='delete_torrent'),
    url(r'^api/retrieve_queue/$', retrieve_queue, name='retrieve_queue'),
    url(r'^api/register_client/$', register_client, name='register_client'),
    url(r'^api/reset_client_id/$', reset_client_id, name='reset_client_id')
)
from django.conf.urls import url

from views import DebugErrorTemplateView, RaiseExceptionView, \
    SettingsView, DebugEmailView, EnvironmentView, RequestView


urlpatterns = [
    url(r'^environment/$', EnvironmentView.as_view(), name='toolkit_environment'),
    url(r'^request/$', RequestView.as_view(), name='toolkit_request'),
    url(r'^mail/', DebugEmailView.as_view(), name='toolkit_mail'),
    url(r'^error-template/', DebugErrorTemplateView.as_view(), name='toolkit_error_template'),
    url(r'^exception/', RaiseExceptionView.as_view(), name='toolkit_exception'),
    url(r'^settings/', SettingsView.as_view(), name='toolkit_settings'),
]
示例#4
0
from django.conf.urls import patterns, include, url
from django.contrib.auth.decorators import login_required
from views import Login, DashBoard, Logout, HelpView, SettingsView,ResetPassword, ForgotPassword,CanteenList,AddCanteen,\
EditCanteen,DeleteCanteen,SearchCanteen

urlpatterns = patterns(
    '',
    url(r'^login/$', Login.as_view(), name="login"),
    url(r'^logout/$', Logout.as_view(), name="logout"),
    url(r'^forgot_password/$',
        ForgotPassword.as_view(),
        name="forgot_password"),
    url(r'^reset_password/$', ResetPassword.as_view(), name="reset_password"),
    url(r'^canteen/$', CanteenList.as_view(), name="canteen"),
    url(r'^add_canteen/$', AddCanteen.as_view(), name="add_canteen"),
    url(r'^search_canteen/$', SearchCanteen.as_view(), name="add_canteen"),
    url(r'^edit_canteen/$', EditCanteen.as_view(), name="edit_canteen"),
    url(r'^delete_canteen/$', DeleteCanteen.as_view(), name="delete_canteen"),
    url(r'^$',
        login_required(DashBoard.as_view(), login_url='/login/'),
        name="dashboard"),
    url(r'^help/$',
        login_required(HelpView.as_view(), login_url='/login/'),
        name="help"),
    url(r'^settings/$',
        login_required(SettingsView.as_view(), login_url='/login/'),
        name="settings"),
)
示例#5
0
url_names = {
	"signup":"signup",
	"login":"******",
	"logout":"logout",
	"confirm_email":"confirm_email",
	"password":"******",
	"password_reset":"password_reset",
	"settings":"settings",
	"delete":"delete",
}

urlpatterns = patterns("",
    url(r'^signup/$', SignupView.as_view(), name="account_signup"),
    url(r'^login/$', LoginView.as_view(), name="account_login"),
    url(r'^logout/$', LogoutView.as_view(), name="account_logout"),
    # url(r'^confirm_email/$', ConfirmEmailView.as_view(), name="account_confirm_email"),
	url(r"^confirm_email/(?P<key>\w+)/$", ConfirmEmailView.as_view(), name="account_confirm_email"),
    url(r'^password/$', ChangePasswordView.as_view(), name="account_password"),
    url(r'^password_reset/$', PasswordResetView.as_view(), name="account_password_reset"),
    url(r'^password_reset/(?P<uidb36>[0-9A-Za-z]+)-(?P<token>.+)/$', PasswordResetTokenView.as_view(), name="account_password_reset_token"),
    url(r'^settings/$', SettingsView.as_view(), name="account_settings"),
    url(r'^profile/$', ProfileView.as_view(), name="account_profile"),
    url(r'^delete/$', DeleteView.as_view(), name="account_delete"),
    url(r'^image/(?P<content_type>[-\w]+)/(?P<object_id>\d+)/create/$',
        UploadNewAvatarView.as_view(),
        name='upload_new_avatar',
    ),
	url(r'^messages/', include('messages.urls')),
)
示例#6
0
from django.conf.urls import url

from views import DebugErrorTemplateView, RaiseExceptionView, \
    SettingsView, DebugEmailView, EnvironmentView, RequestView

urlpatterns = [
    url(r'^environment/$',
        EnvironmentView.as_view(),
        name='toolkit_environment'),
    url(r'^request/$', RequestView.as_view(), name='toolkit_request'),
    url(r'^mail/', DebugEmailView.as_view(), name='toolkit_mail'),
    url(r'^error-template/',
        DebugErrorTemplateView.as_view(),
        name='toolkit_error_template'),
    url(r'^exception/', RaiseExceptionView.as_view(),
        name='toolkit_exception'),
    url(r'^settings/', SettingsView.as_view(), name='toolkit_settings'),
]
示例#7
0
from django.conf.urls import patterns, include, url
from django.contrib.auth.decorators import login_required
from views import Login, DashBoard, Logout, HelpView, SettingsView, MonthlySalesView, YearWiseSalesView,\
MonthlyStatisticsView, RevenueSplitup, ResetPassword, ForgotPassword, PDCReport

urlpatterns = patterns('',
	url(r'^login/$', Login.as_view(), name="login"),
	url(r'^logout/$', Logout.as_view(), name="logout"),
	url(r'^forgot_password/$', ForgotPassword.as_view(), name="forgot_password"),
	url(r'^reset_password/$', ResetPassword.as_view(), name="reset_password"),
	url(r'^$', login_required(DashBoard.as_view(), login_url='/login/'), name="dashboard"),
	url(r'^help/$', login_required(HelpView.as_view(), login_url='/login/'), name="help"),
	url(r'^settings/$', login_required(SettingsView.as_view(), login_url='/login/'), name="settings"),
	url(r'^monthly_sales/$', login_required(MonthlySalesView.as_view(), login_url='/login/'), name="monthly_sales"),
	url(r'^year_wise_sales/$', login_required(YearWiseSalesView.as_view(), login_url='/login/'), name="year_wise_sales"),
	url(r'^monthly_statistics/$', login_required(MonthlyStatisticsView.as_view(), login_url='/login/'), name="monthly_statistics"),
	url(r'^revenue_splitup/$', login_required(RevenueSplitup.as_view(), login_url='/login/'), name="revenue_splitup"),
	url(r'^pdc_report/$', login_required(PDCReport.as_view(), login_url='/login/'), name="pdc_report"),
)
示例#8
0
from django.conf.urls import patterns, url
from views import HomePageView, PayView, ShipView, SettingsView
from views import EditProduct, CreateProduct
from views import FinishedOrderList
# Uncomment the next two lines to enable the admin:
#from django.contrib import admin
#admin.autodiscover()

urlpatterns = patterns(
    '',
    url(r'^$', HomePageView.as_view(), name='shop-home'),
    url(r'^paid/', PayView.as_view(), name='order-paid'),
    url(r'^ship/', ShipView.as_view(), name='order-ship'),
    url(r'^product/(?P<pk>\d+)/edit/',
        EditProduct.as_view(),
        name='product-edit'),
    url(r'^product/add/(?P<content_type_id>\d+)',
        CreateProduct.as_view(),
        name='product-add'),
    url(r'^order/', FinishedOrderList.as_view(), name='order-list'),
    url(r'^settings/', SettingsView.as_view(), name='shop-settings'),
)
示例#9
0
文件: urls.py 项目: grnet/e-science
from django.conf.urls import patterns, include, url
from django.contrib import admin
from views import SessionView, StatusView, JobsView, HdfsView, MainPageView, SettingsView, \
StatisticsView, NewsView, FaqView, OrkaImagesView, VreServerView, VreImagesView, DslView
admin.site.site_header = "GRNET e-Science Administration"
admin.site.site_title = admin.site.site_header
admin.site.index_title = ''

urlpatterns = patterns('', url(r'^$', MainPageView.as_view()),
                       url(r'^api/statistics', StatisticsView.as_view()),
                       url(r'^api/newsitems', NewsView.as_view()),
                       url(r'^api/faqitems', FaqView.as_view()),
                       url(r'^api/orkaimages', OrkaImagesView.as_view()),
                       url(r'^api/vreimages', VreImagesView.as_view()),
                       url(r'^admin', include(admin.site.urls)),
                       url(r'^api/users', SessionView.as_view()),
                       url(r'^api/clusters', StatusView.as_view()),
                       url(r'^api/clusterchoices', StatusView.as_view()),
                       url(r'^api/jobs', JobsView.as_view()),
                       url(r'^api/vreservers', VreServerView.as_view()),
                       url(r'^api/dsls', DslView.as_view()),
                       url(r'^api/hdfs', HdfsView.as_view()),
                       url(r'^api/settings', SettingsView.as_view()),
                       )

# if settings.DEBUG:
#     import debug_toolbar
#     urlpatterns += patterns('',
#         url(r'^__debug__/', include(debug_toolbar.urls)),
#     )
示例#10
0
文件: urls.py 项目: rosscdh/cartvine
from django.conf import settings
from django.conf.urls import patterns, include, url
from django.core.urlresolvers import reverse

from cartvine.utils import login_required
from cartvine.decorators import shop_login_required

from views import SettingsView, DesignView


urlpatterns = patterns('',
    url(r'^settings/$', login_required(SettingsView.as_view()), name='settings'),
    url(r'^design/$', login_required(DesignView.as_view()), name='design'),
)