Example #1
0
from libs.perm.perm import *
from core.union import route, reg_tpl_global

reg_tpl_global('has_perm', user_has_permission, need_request=True)
reg_tpl_global('is_admin', is_admin, need_request=True)
reg_tpl_global('is_logged', user_is_logged_in, need_request=True)

route('GET', '/settings/group_perm', group_perm, 'group_perm')
route('POST', '/settings/group_perm', group_perm_post, 'group_perm_post')
route('GET', '/settings/users_group', users_group, 'users_group')
route('POST', '/settings/users_group', users_group_post, 'users_group_post')
route('POST', '/users_group/update_cell', users_group_uc_post,
      'users_group_uc_post')
route('POST', '/group_perm/update_cell', group_perm_uc_post,
      'group_perm_uc_post')
Example #2
0
from libs.files.files import *
from core.union import route

route('GET', '/img/{proc_id}/{doc_id}', img, 'img_')
route('GET', '/img/{proc_id}/{doc_id}/{img}/{action}', img, 'img')

route('POST', '/get_file_names', get_file_names_post, 'get_file_names')
route('POST', '/add_files', add_files_post, 'add_files')
route('POST', '/del_files', del_files_post, 'del_files')
route('POST', '/set_def_img', set_def_img, 'set_def_img')
route('POST', '/file/link_upload', link_upload_post, 'link_upload')

#	'get_name_files': 		('/get_name_files', 			get_name_files_post, 	'POST')
Example #3
0
from libs.table.table import  *
from libs.contents.contents import table_get_field_post
from core.union import route



# route('GET' ,   '/table/data/{proc_id}',		table_data,				  'table_data'     		    )
route('GET' ,   '/table/in/{proc_id}',		    table_data,			      'table_data'			    )
route('POST',   '/table/data/{proc_id}',		table_data_post,		  'table_data_post'	        )
route('POST',   '/table/add_row',	            table_add_row_post,		  'table_add_row'		    )
route('POST',   '/table/update_cell/{proc_id}', table_update_cell_post,	  'table_update_cell'	    )
route('POST',   '/table/del_row',               table_del_row_post,		  'table_del_row' 		    )
route('POST',   '/table/get_row',				table_get_row_post,		  'table_get_row'		    )
route('POST',   '/table/transfer',         	    table_transfer_post,	  'table_transfer'		    )
route('POST',   '/table/preedit_row',	        table_preedit_row_post,	  'table_preedit_row'       )
route('POST',   '/table/edit_row/{proc_id}',	table_update_row_post,	  'table_edit_row'		    )
route('POST',   '/table/del_field',			    table_del_field_post,	  'table_del_field'	        )
route('POST',   '/table/add_field',			    table_add_field_post,	  'table_add_field'	        )
route('POST',   '/table/edit_field', 			table_edit_field_post,	  'table_edit_field'	    )
route('POST',   '/table/get_field', 			table_get_field_post,	  'table_get_field'	        )
route('POST',   '/table/sort_columns', 		    table_sort_columns_post,  'table_sort_columns'	    )
route('POST',   '/table/copy/doc', 		        table_copy_doc,           'table_copy_doc'	        )
route('POST',   '/get_des_field', 				get_des_field_post, 	  'get_des_field' 		    )
route('POST',   '/list/field',					get_field_post,			  'list_field'			    )
route('POST',   '/table/sort/date',			    table_sort_post,		  'sort_date' 			    )


Example #4
0
from libs.mongo.mongo import *
from core.union import route

route('GET', '/mongodb/{db_id}', mongodb, 'mongo_db')
route('GET', '/mongodb', mongodb_, 'mongodb')
route('POST', '/mongodb/{db_id}/del_db', del_db, 'del_db')
route('POST', '/mongodb/login', db_login_post, 'db_login_post')
route('GET', '/mongodb/login/{db_id}', db_login, 'db_login')
route('POST', '/mongo/get_coll', get_docs, 'get_coll')
route('POST', '/mongo/get_doc', get_doc_mongo, 'get_doc_mongo')
route('POST', '/mongo/search_docs', search_docs, 'search_docs')
route('POST', '/mongo/edit_key', edit_key_post, 'edit_key_post')
route('POST', '/mongo/edit_val', edit_val_post, 'edit_val_post')
route('POST', '/mongo/del_doc', del_doc_post, 'del_doc_post')
route('POST', '/mongo/import_db', import_db_post, 'import_db_post')
route('GET', '/mongo/exported/{db_id}', get_exp_file, 'import_db')
route('POST', '/mongo/export_db', export_db_post, 'export_db_post')
route('POST', '/mongo/import_doc', import_doc_post, 'import_doc_post')
route('POST', '/mongo/export_doc', export_doc_post, 'export_doc_post')
route('POST', '/mongo/create_doc', create_doc_post, 'create_doc_post')
route('POST', '/mongo/edit_doc', edit_doc_post, 'edit_doc_post')
route('POST', '/mongo/get_docm', get_docm_post, 'get_doc_post')
Example #5
0
from apps.app.view import  *
from core.union import route


route( '/',         page,				'GET', 'page'       )
route( '/db',       test_db,			'GET', 'test_db'    )

route( '/ws',       ws,					'GET', 'ws'         )
route( '/wsh',      ws_handler,			'GET', 'ws_handler' )




Example #6
0
from libs.table.table import *
from libs.contents.contents import table_get_field_post
from core.union import route

# route('GET' ,   '/table/data/{proc_id}',		table_data,				  'table_data'     		    )
route('GET', '/table/in/{proc_id}', table_data, 'table_data')
route('POST', '/table/data/{proc_id}', table_data_post, 'table_data_post')
route('POST', '/table/add_row', table_add_row_post, 'table_add_row')
route('POST', '/table/update_cell/{proc_id}', table_update_cell_post,
      'table_update_cell')
route('POST', '/table/del_row', table_del_row_post, 'table_del_row')
route('POST', '/table/get_row', table_get_row_post, 'table_get_row')
route('POST', '/table/transfer', table_transfer_post, 'table_transfer')
route('POST', '/table/preedit_row', table_preedit_row_post,
      'table_preedit_row')
route('POST', '/table/edit_row/{proc_id}', table_update_row_post,
      'table_edit_row')
route('POST', '/table/del_field', table_del_field_post, 'table_del_field')
route('POST', '/table/add_field', table_add_field_post, 'table_add_field')
route('POST', '/table/edit_field', table_edit_field_post, 'table_edit_field')
route('POST', '/table/get_field', table_get_field_post, 'table_get_field')
route('POST', '/table/sort_columns', table_sort_columns_post,
      'table_sort_columns')
route('POST', '/table/copy/doc', table_copy_doc, 'table_copy_doc')
route('POST', '/get_des_field', get_des_field_post, 'get_des_field')
route('POST', '/list/field', get_field_post, 'list_field')
route('POST', '/table/sort/date', table_sort_post, 'sort_date')
Example #7
0
from libs.chat.chat import  *
from core.union import route
# import asyncio

route('GET',  	'/online',		online,			'online'      )

# chat_task()

route('GET', '/chat',   ws,		    'w_s'  )
route('GET', '/wsh',    ws_handler,	'ws_h' )

asyncio.ensure_future( ping_chat_task() )
asyncio.ensure_future( check_online_task() )

# asyncio.ensure_future( test("A") )
# asyncio.ensure_future( test("B") )
# asyncio.ensure_future( test("C") )


# route('POST', 	'/check_room',	check_room,		'check_room')
# route('GET',  	'/babylon',		babylon,		'babylon'   )
# route('GET',  	'/game_handler',game_handler,	'g_h'       )






Example #8
0
from libs.clip.clip import  *
from core.union import route


route( 'POST',  '/add/clip/{doc_id}',                       add_clip,	       'add_clip'           )
# route( 'POST',      '/add/clip',                       add_clip,	      'add_clip'    )

route( 'POST',  '/down/clip/{doc_id}',                      down_clip,	       'down_clip'          )
# route(  'POST',      '/down/clip',                      down_clip,	      'down_clip'   )

route( 'GET' ,  '/list/clips',                              list_clips,	   'clip_list'              )
route( 'GET' ,  '/edit/clip/{doc_id}',                      clip_page,	       'edit_clip'          )
route( 'POST',  '/clip/del/fragment/{doc_id}',              del_fragment,     'del_fragment'        )
route( 'POST',  '/clip/drag/fragment/{doc_id}',             drag_fragment,    'drag_fragment'       )
route( 'POST',  '/clip/add/fragment/{doc_id}',              add_fragment,     'add_fragment'        )
route( 'POST',  '/clip/edit/fragment/{doc_id}',             edit_fragment,    'edit_fragment'       )
route( 'POST',  '/rolik/pub/{doc_id}',                      rolik_pub,	       'pub_rolik'          )
route( 'POST',  '/clip/pub/{doc_id}',                       clip_pub,	       'pub_clip'           )
route( 'POST',  '/rolik/add',                               add_rolik,	       'add_rolik'          )
route( 'POST',  '/rolik/del/{doc_id}',                      del_rolik,	       'del_rolik'          )
route( 'POST',  '/rolik/get/status/{doc_id}',               get_status,	   'get_status'             )
route( 'POST',  '/clip/add/descr/{doc_id}',                 add_descr,	       'add_descr'          )
route( 'POST',  '/clip/add/file/{doc_id}',                  upload_clip,      'add_file'            )
route( 'POST',  '/clip/add/img/{doc_id}',                   draw_img,	       'add_img'            )
route( 'POST',  '/clip/upload/{doc_id}',                    clip_upload,      'add_soc'             )



Example #9
0
from libs.contents.contents import *
from core.union import route

route('POST', '/list/cascad_doc', get_list_cascad_doc_post, 'list_cascad_doc')
route('POST', '/get/doc', get_doc_post, 'get_doc')
route('POST', '/list/doc', get_list_doc_post, 'list_doc')
route('POST', '/list/rb', get_list_rb_post, 'list_rb')
route('POST', '/list/branch/{proc_id}', get_list_branch_post, 'list_branch')
route('POST', '/list/conf_docs', get_list_conf_docs_post, 'list_conf_docs')
route('POST', '/switch_lang', switch_lang, 'switch_lang')

route('GET', '/add_func', add_func, 'add_func_post')
route('POST', '/add_func', add_func_post, 'add_func')
route('GET', '/sandbox', sandbox, 'test_test')
route('POST', '/sandbox', sandbox_post, 'sandbox_post')

# route( 'POST', 	'/get/event',				get_event_post,			 'get_event_f'	)
# route( 'POST', 	'/get/func',				get_func_text_post,		 'get_func_text')
# route( 'POST', 	'/list/func',				get_list_func_post,		 'list_func'	)
Example #10
0
from libs.auth.auth import *
from core.union import route, reg_tpl_global

# reg_tpl_global( 'short_text',    short_text,    need_request=False )

route('GET', '/oauth_vk', oauth_vk, 'oauth_vk')
route('GET', '/oauth_fb', oauth_fb, 'oauth_fb')
route('GET', '/oauth_ok', oauth_ok, 'oauth_ok')
route('GET', '/oauth_tw', oauth_tw, 'oauth_tw')
route('GET', '/oauth_tw_login', oauth_tw_login, 'oauth_tw_login')

route('GET', '/oauth_gl', oauth_gl, 'oauth_gl')
route('GET', '/oauth_gl_login', oauth_gl_login, 'oauth_gl_login')

route('GET', '/oauth_ya', oauth_ya, 'oauth_ya')
route('GET', '/oauth_ya_login', oauth_ya_login, 'oauth_ya_login')
route('POST', '/oauth_action', oauth_action_post, 'oauth_action')

route('GET', '/login', login, 'login')
route('GET', '/signup', signup, 'signup')
route('POST', '/login', login_post, 'login_post')
route('POST', '/signup', signup_post, 'signup_post')
route('GET', '/logout', logout_get, 'logout')
route('POST', '/user/ban', user_ban, 'ban')
Example #11
0
from libs.admin.admin import  *
from core.union import route


route( 'POST',  '/get_data_slot',		get_data_slot,	         'get_data_slot'		)
route( 'POST',  '/save_slot',      		save_slot,	             'save_slot'		    )
route( 'GET' ,  '/recover',        		recover,	             'recover'  			)
route( 'POST',  '/recover',        		recover_post,            'recover_post'  		)
route( 'GET' ,  '/add_rb', 				add_rb,    			     'add_ref'				)
route( 'POST',  '/add_ref',				add_ref_post,			 'add_ref_post'		    )
route( 'GET' ,  '/del_rb',	    		del_rb,    			     'del_ref'				)
route( 'POST',  '/del_ref',				del_ref_post,			 'del_ref_post'		    )
route( 'GET' ,  '/conf_rb_doc',			edit_conf,  			 'edit_conf'    		)
route( 'POST',  '/conf_rb_doc',			edit_conf_post,			 'edit_conf_post'		)
route( 'GET' ,  '/conf',				show_conf,				 'conf'				    )
route( 'GET' ,  '/conf/',				show_conf,				 'conf_'				)
route( 'GET' ,  '/conf_templ',			conf_templ,				 'conf_templ'			)
route( 'POST',  '/conf_templ',			save_templ_conf,		 'conf_templ_post'		)
route( 'GET' ,  '/edit_templ',			get_list_templ,		     'edit_templ'			)
route( 'POST',  '/get_templ',			get_templ_post,			 'get_templ'			)
route( 'POST',  '/save_templ',			save_templ_post,		 'save_templ'			)
route( 'POST',  '/meal',				save_templ_post,		 'meal_post'			)


Example #12
0
from libs.admin.admin import *
from core.union import route

route('POST', '/get_data_slot', get_data_slot, 'get_data_slot')
route('POST', '/save_slot', save_slot, 'save_slot')
route('GET', '/recover', recover, 'recover')
route('POST', '/recover', recover_post, 'recover_post')
route('GET', '/add_rb', add_rb, 'add_ref')
route('POST', '/add_ref', add_ref_post, 'add_ref_post')
route('GET', '/del_rb', del_rb, 'del_ref')
route('POST', '/del_ref', del_ref_post, 'del_ref_post')
route('GET', '/conf_rb_doc', edit_conf, 'edit_conf')
route('POST', '/conf_rb_doc', edit_conf_post, 'edit_conf_post')
route('GET', '/conf', show_conf, 'conf')
route('GET', '/conf/', show_conf, 'conf_')
route('GET', '/conf_templ', conf_templ, 'conf_templ')
route('POST', '/conf_templ', save_templ_conf, 'conf_templ_post')
route('GET', '/edit_templ', get_list_templ, 'edit_templ')
route('POST', '/get_templ', get_templ_post, 'get_templ')
route('POST', '/save_templ', save_templ_post, 'save_templ')
route('POST', '/meal', save_templ_post, 'meal_post')
Example #13
0
from libs.blog.blog import *
from core.union import route

route('GET', '/u/{u}', user, 'user')
route('POST', '/add/mess', add_mess, 'add_mess')
route('POST', '/add/fr', add_fr, 'add_fr')
route('POST', '/add/sub', add_sub, 'add_sub')
route('POST', '/main_page_signup', main_page_signup, 'tw_signup')
route('POST', '/main_page_login', main_page_login, 'tw_login')
route('GET', '/signup/in/{mail}/{code}', signup_in, 'signup_in')
route('GET', '/add_email', add_email, 'add_email')
route('POST', '/add_email', add_email_post, 'add_email_')
route('GET', '/list/users', list_users, 'list_users')

route('GET', '/subscribe', subscribe, 'subscribe')
route('POST', '/subscribe', subscribe_post, 'subscribe_post')
route('POST', '/subscribe/new', subscribe_new, 'subscribe_new')
route('GET', '/subscribe/in/{mail}/{code}', subscribe_in, 'subscribe_in')
route('GET', '/subscribe/out/{mail}/{code}', subscribe_out, 'subscribe_out')
Example #14
0
from libs.auth.auth import  *
from core.union import route, reg_tpl_global

# reg_tpl_global( 'short_text',    short_text,    need_request=False )


route(	'GET' ,   '/oauth_vk',					oauth_vk,			'oauth_vk'		    )
route(	'GET' ,   '/oauth_fb',					oauth_fb,   		'oauth_fb'			)
route(	'GET' ,   '/oauth_ok',					oauth_ok,   		'oauth_ok'			)
route(	'GET' ,   '/oauth_tw',					oauth_tw,   		'oauth_tw'			)
route(	'GET' ,   '/oauth_tw_login',			oauth_tw_login,		'oauth_tw_login'	)

route(	'GET' ,   '/oauth_gl',					oauth_gl,   		'oauth_gl'			)
route(	'GET' ,   '/oauth_gl_login',			oauth_gl_login,		'oauth_gl_login'	)

route(	'GET' ,   '/oauth_ya',					oauth_ya,   		'oauth_ya'			)
route(	'GET' ,   '/oauth_ya_login',			oauth_ya_login,		'oauth_ya_login'	)
route(	'POST',   '/oauth_action',				oauth_action_post,	'oauth_action'		)

route(	'GET' ,   '/login',						login,				'login'				)
route(	'GET' ,   '/signup',					signup,				'signup'			)
route(	'POST',   '/login',						login_post,			'login_post'		)
route(	'POST',   '/signup',					signup_post,		'signup_post'		)
route(	'GET' ,   '/logout',					logout_get,			'logout'			)
route(	'POST',   '/user/ban',				    user_ban,			'ban'				)

Example #15
0
from libs.blog.blog import  *
from core.union import route


route( 'GET' , 	'/u/{u}',     		                 user,       		 'user'     	  )
route( 'POST', 	'/add/mess',     		             add_mess,       	 'add_mess'    	  )
route( 'POST', 	'/add/fr',     		                 add_fr,       		 'add_fr'     	  )
route( 'POST', 	'/add/sub',     		             add_sub,       	 'add_sub'     	  )
route( 'POST', 	'/main_page_signup',     		     main_page_signup,   'tw_signup'      )
route( 'POST', 	'/main_page_login',     		     main_page_login,    'tw_login'       )
route( 'GET' ,  '/signup/in/{mail}/{code}',          signup_in,          'signup_in'      )
route( 'GET' ,  '/add_email',                        add_email,          'add_email'      )
route( 'POST',  '/add_email',                        add_email_post,     'add_email_'     )
route( 'GET' ,  '/list/users',                       list_users,         'list_users'     )

route( 'GET' ,  '/subscribe',                        subscribe,          'subscribe'      )
route( 'POST',  '/subscribe',                        subscribe_post,     'subscribe_post' )
route( 'POST',  '/subscribe/new',                    subscribe_new,      'subscribe_new'  )
route( 'GET' ,  '/subscribe/in/{mail}/{code}',       subscribe_in,       'subscribe_in'   )
route( 'GET' ,  '/subscribe/out/{mail}/{code}',      subscribe_out,      'subscribe_out'  )





Example #16
0
from libs.shop.shop import  *
from core.union import route

route( 	'POST',   '/basket', 					    show_basket_post, 		'show_basket' )
route( 	'GET' ,   '/class/{cls}', 				    list_class, 		'class_list'     )
route( 	'GET' ,   '/class/{cls}/filter/{filters}/',	list_filters, 		'filter'     )
route( 	'GET' ,   '/ware/{doc_id}', 				ware_page, 		    'ware_page'     )
route( 	'POST',   '/basket/order', 				    make_order_post, 	'make_order'	 )
route( 	'POST',   '/basket/add_order', 			    add_order_web_post, 'add_order'	 )
route( 	'POST',   '/basket/add', 				    add_basket_post, 		'add_basket' )
route( 	'GET' ,   '/list/basket', 				    list_basket, 		'list_basket'     )
route( 	'POST',   '/basket/clean', 				    wares_clean, 		'clean_basket'     )
route(  'POST',   '/callback',                      callback_post,	        'callback'    )
route(  'GET' ,   '/list/orders',                   list_orders,	        'list_orders' )

Example #17
0
import settings
from libs.sites.sites import *
from core.union import route, reg_tpl_global

reg_tpl_global('short_text', short_text, need_request=False)
reg_tpl_global('get_slot', get_slot, need_request=True)
reg_tpl_global('get_full_user', get_full_user, need_request=True)
reg_tpl_global('get_tags', get_tags, need_request=True)
reg_tpl_global('wiki', wiki, need_request=True)

if settings.reg_routes['sites']:
    route('GET', '/', show_main_page, 'index')

route('*', '/user_status', user_status_post, 'soc_u_post')
route('GET', '/posts/{user_id}', user_posts, 'user_post')
route('GET', '/comments/{user_id}', user_posts, 'user_comments')
route('GET', '/profile/{u}', user_profile, 'user_profile')
route('GET', '/news/{doc_id}/print', print_web_doc, 'print')
route('GET', '/news/{doc_id}', show_obj, 'show_obj')
route('GET', '/add/news/{proc_id}', add_news, 'news_add')
route('POST', '/news/accept', news_accept_post, 'news_accept_post')
route('GET', '/wiki/add', add_news, 'news_add_wiki')
route('GET', '/news/edit/{doc_id}', news_edit, 'news_edit')
route('GET', '/wiki/{title}', show_wiki, 'doc_wiki')
route('GET', '/arhiv/{date}', show_list, 'list1')
# route( 'GET',   '/blogs/',                           blogs,    	        'blogs'       	  )
# route( 'GET',   '/wiki/',                            wiki_,    	        'wiki'       	  )
# route( 'GET',   '/wiki',                             wiki_,    	        'wiki1'       	  )
route('GET', '/news/', news, 'news')
route('GET', '/sitemap.xml', get_sitemap, 'sitemap')
route('GET', '/chat/{doc_id}', chat, 'chat')
Example #18
0
from apps.app.view import *
from core.union import route

route('GET', '/', page, 'page')
route('GET', '/test_db', test_db, 'test_db')
route('GET', '/chat', ws, 'ws')
route('GET', '/chat/h', ws_handler, 'ws_handler')
Example #19
0
from libs.game.game import *
from core.union import route

route('GET', '/pregame', pregame, 'pregame')
route('GET', '/game', game, 'game')
route('POST', '/check_room', check_room, 'check_room')
route('GET', '/babylon', babylon, 'babylon')
route('GET', '/game_handler', game_handler, 'g_h')
route('GET', '/test/mesh', test_mesh, 'test_mesh')
Example #20
0
from libs.game.game import  *
from core.union import route


route('GET',  	'/pregame',		pregame,		'pregame'   )
route('GET',  	'/game',		game,			'game'      )
route('POST', 	'/check_room',	check_room,		'check_room')
route('GET',  	'/babylon',		babylon,		'babylon'   )
route('GET',  	'/game_handler',game_handler,	'g_h'       )
route('GET',  	'/test/mesh',	test_mesh,		'test_mesh' )




Example #21
0
from libs.mongo.mongo import  *
from core.union import route

route( 'GET' , 	'/mongodb/{db_id}',         mongodb,			'mongo_db'      	)
route( 'GET' , 	'/mongodb',		            mongodb_,			'mongodb'      	    )
route( 'POST', 	'/mongodb/{db_id}/del_db',  del_db,			    'del_db'            )
route( 'POST', 	'/mongodb/login',  		    db_login_post,		'db_login_post'   	)
route( 'GET' , 	'/mongodb/login/{db_id}',	db_login,		    'db_login'      	)
route( 'POST', 	'/mongo/get_coll',  	    get_docs,		    'get_coll'      	)
route( 'POST', 	'/mongo/get_doc',  	        get_doc_mongo,		'get_doc_mongo'	    )
route( 'POST', 	'/mongo/search_docs', 	    search_docs,	    'search_docs'     	)
route( 'POST',  '/mongo/edit_key', 		    edit_key_post,		'edit_key_post'     )
route( 'POST',  '/mongo/edit_val', 		    edit_val_post,		'edit_val_post'     )
route( 'POST', 	'/mongo/del_doc', 		    del_doc_post,       'del_doc_post'     	)
route( 'POST',  '/mongo/import_db', 	    import_db_post,     'import_db_post'    )
route( 'GET' ,  '/mongo/exported/{db_id}',  get_exp_file,       'import_db'        	)
route( 'POST',  '/mongo/export_db',         export_db_post,     'export_db_post'    )
route( 'POST',  '/mongo/import_doc', 	    import_doc_post,    'import_doc_post'   )
route( 'POST',  '/mongo/export_doc', 	    export_doc_post,    'export_doc_post'   )
route( 'POST',  '/mongo/create_doc', 	    create_doc_post,    'create_doc_post'   )
route( 'POST',  '/mongo/edit_doc', 		    edit_doc_post,    	'edit_doc_post'     )
route( 'POST', 	'/mongo/get_docm', 	        get_docm_post,    	'get_doc_post'      )





Example #22
0
from libs.tree.tree import  *
from core.union import route


route('POST', 	'/tree/data/{proc_id}',		tree_post,				'tree_data_post'	)
route('POST', 	'/tree/add_vote',  			add_vote_comm_post,		'add_vote_comm_post')
route('POST', 	'/comments/accept/pre',		accept_comm_post,		'comm_accept_post'	)
route('POST', 	'/comm/add',				add_comm_post,			'comm_add_post'		)
route('POST', 	'/comm/del',				del_comm_post,			'comm_del_post'		)
route('POST', 	'/comm/edit',				edit_comm_post,			'comm_edit_post'	)
route('POST', 	'/comm/ban',				ban_comm_post,			'comm_ban_post'		)
# route('POST', 	'/menu/iface', 				left_menu_post,			'left_menu1'		)
route('GET' , 	'/menu/{action}',			conf_menu_get,		    'menu' 			    )
Example #23
0
from apps.app.view import  *
from core.union import route


route('GET', '/',          page,		 'page'       )
route('GET', '/test_db',   test_db,		 'test_db'    )
route('GET', '/chat',      ws,			 'ws'         )
route('GET', '/chat/h',    ws_handler,	 'ws_handler' )