Browse Source

Remove WantDB flag

Vova Tkach 5 years ago
parent
commit
58d122c761
50 changed files with 8 additions and 58 deletions
  1. 0 1
      engine/modules/module_api.go
  2. 0 1
      engine/modules/module_blog.go
  3. 0 1
      engine/modules/module_blog_act_delete.go
  4. 0 1
      engine/modules/module_blog_act_modify.go
  5. 0 1
      engine/modules/module_blog_categories_act_delete.go
  6. 0 1
      engine/modules/module_blog_categories_act_modify.go
  7. 4 5
      engine/modules/module_index.go
  8. 1 2
      engine/modules/module_index_act_cypress.go
  9. 0 1
      engine/modules/module_index_act_delete.go
  10. 1 2
      engine/modules/module_index_act_first_user.go
  11. 0 1
      engine/modules/module_index_act_logout.go
  12. 0 1
      engine/modules/module_index_act_modify.go
  13. 1 2
      engine/modules/module_index_act_mysql_setup.go
  14. 1 2
      engine/modules/module_index_act_signin.go
  15. 0 1
      engine/modules/module_index_act_update_profile.go
  16. 0 1
      engine/modules/module_notify_mail.go
  17. 0 1
      engine/modules/module_settings.go
  18. 0 1
      engine/modules/module_settings_act_api.go
  19. 0 1
      engine/modules/module_settings_act_general.go
  20. 0 1
      engine/modules/module_settings_act_pagination.go
  21. 0 1
      engine/modules/module_settings_act_robots_txt.go
  22. 0 1
      engine/modules/module_settings_act_shop.go
  23. 0 1
      engine/modules/module_settings_act_smtp.go
  24. 0 1
      engine/modules/module_settings_act_thumbnails.go
  25. 0 1
      engine/modules/module_shop.go
  26. 0 1
      engine/modules/module_shop_act_attach_product_search.go
  27. 0 1
      engine/modules/module_shop_act_attach_product_to.go
  28. 0 1
      engine/modules/module_shop_act_delete.go
  29. 0 1
      engine/modules/module_shop_act_detach.go
  30. 0 1
      engine/modules/module_shop_act_duplicate.go
  31. 0 1
      engine/modules/module_shop_act_get_attribute_values.go
  32. 0 1
      engine/modules/module_shop_act_images_reorder.go
  33. 0 1
      engine/modules/module_shop_act_modify.go
  34. 0 1
      engine/modules/module_shop_act_order.go
  35. 0 1
      engine/modules/module_shop_act_order_set_status.go
  36. 0 1
      engine/modules/module_shop_act_upload_delete.go
  37. 0 1
      engine/modules/module_shop_act_upload_image.go
  38. 0 1
      engine/modules/module_shop_attributes_act_delete.go
  39. 0 1
      engine/modules/module_shop_attributes_act_modify.go
  40. 0 1
      engine/modules/module_shop_categories_act_delete.go
  41. 0 1
      engine/modules/module_shop_categories_act_modify.go
  42. 0 1
      engine/modules/module_shop_currencies_act_delete.go
  43. 0 1
      engine/modules/module_shop_currencies_act_modify.go
  44. 0 1
      engine/modules/module_template.go
  45. 0 1
      engine/modules/module_template_act_edit_theme_file.go
  46. 0 1
      engine/modules/module_template_act_restore_file.go
  47. 0 1
      engine/modules/module_template_act_restore_file_all.go
  48. 0 1
      engine/modules/module_users.go
  49. 0 1
      engine/modules/module_users_act_delete.go
  50. 0 1
      engine/modules/module_users_act_modify.go

+ 0 - 1
engine/modules/module_api.go

@@ -12,7 +12,6 @@ import (
 
 func (this *Modules) RegisterModule_Api() *Module {
 	return this.newModule(MInfo{
-		WantDB: true,
 		Mount:  "api",
 		Name:   "Api",
 		Order:  803,

+ 0 - 1
engine/modules/module_blog.go

@@ -16,7 +16,6 @@ import (
 
 func (this *Modules) RegisterModule_Blog() *Module {
 	return this.newModule(MInfo{
-		WantDB: true,
 		Mount:  "blog",
 		Name:   "Blog",
 		Order:  1,

+ 0 - 1
engine/modules/module_blog_act_delete.go

@@ -9,7 +9,6 @@ import (
 
 func (this *Modules) RegisterAction_BlogDelete() *Action {
 	return this.newAction(AInfo{
-		WantDB:    true,
 		Mount:     "blog-delete",
 		WantAdmin: true,
 	}, func(wrap *wrapper.Wrapper) {

+ 0 - 1
engine/modules/module_blog_act_modify.go

@@ -11,7 +11,6 @@ import (
 
 func (this *Modules) RegisterAction_BlogModify() *Action {
 	return this.newAction(AInfo{
-		WantDB:    true,
 		Mount:     "blog-modify",
 		WantAdmin: true,
 	}, func(wrap *wrapper.Wrapper) {

+ 0 - 1
engine/modules/module_blog_categories_act_delete.go

@@ -9,7 +9,6 @@ import (
 
 func (this *Modules) RegisterAction_BlogCategoriesDelete() *Action {
 	return this.newAction(AInfo{
-		WantDB:    true,
 		Mount:     "blog-categories-delete",
 		WantAdmin: true,
 	}, func(wrap *wrapper.Wrapper) {

+ 0 - 1
engine/modules/module_blog_categories_act_modify.go

@@ -167,7 +167,6 @@ func (this *Modules) blog_ActionCategoryUpdate(wrap *wrapper.Wrapper, pf_id, pf_
 
 func (this *Modules) RegisterAction_BlogCategoriesModify() *Action {
 	return this.newAction(AInfo{
-		WantDB:    true,
 		Mount:     "blog-categories-modify",
 		WantAdmin: true,
 	}, func(wrap *wrapper.Wrapper) {

+ 4 - 5
engine/modules/module_index.go

@@ -14,11 +14,10 @@ import (
 
 func (this *Modules) RegisterModule_Index() *Module {
 	return this.newModule(MInfo{
-		WantDB: true,
-		Mount:  "index",
-		Name:   "Pages",
-		Order:  0,
-		Icon:   assets.SysSvgIconPage,
+		Mount: "index",
+		Name:  "Pages",
+		Order: 0,
+		Icon:  assets.SysSvgIconPage,
 		Sub: &[]MISub{
 			{Mount: "default", Name: "List of pages", Show: true, Icon: assets.SysSvgIconList},
 			{Mount: "add", Name: "Add new page", Show: true, Icon: assets.SysSvgIconPlus},

+ 1 - 2
engine/modules/module_index_act_cypress.go

@@ -10,8 +10,7 @@ import (
 
 func (this *Modules) RegisterAction_IndexCypressReset() *Action {
 	return this.newAction(AInfo{
-		WantDB: false,
-		Mount:  "index-cypress-reset",
+		Mount: "index-cypress-reset",
 	}, func(wrap *wrapper.Wrapper) {
 		if !consts.ParamDebug {
 			wrap.Write(`Access denied`)

+ 0 - 1
engine/modules/module_index_act_delete.go

@@ -9,7 +9,6 @@ import (
 
 func (this *Modules) RegisterAction_IndexDelete() *Action {
 	return this.newAction(AInfo{
-		WantDB:    true,
 		Mount:     "index-delete",
 		WantAdmin: true,
 	}, func(wrap *wrapper.Wrapper) {

+ 1 - 2
engine/modules/module_index_act_first_user.go

@@ -7,8 +7,7 @@ import (
 
 func (this *Modules) RegisterAction_IndexFirstUser() *Action {
 	return this.newAction(AInfo{
-		WantDB: true,
-		Mount:  "index-first-user",
+		Mount: "index-first-user",
 	}, func(wrap *wrapper.Wrapper) {
 		pf_first_name := utils.Trim(wrap.R.FormValue("first_name"))
 		pf_last_name := utils.Trim(wrap.R.FormValue("last_name"))

+ 0 - 1
engine/modules/module_index_act_logout.go

@@ -6,7 +6,6 @@ import (
 
 func (this *Modules) RegisterAction_IndexUserLogout() *Action {
 	return this.newAction(AInfo{
-		WantDB:   true,
 		Mount:    "index-user-logout",
 		WantUser: true,
 	}, func(wrap *wrapper.Wrapper) {

+ 0 - 1
engine/modules/module_index_act_modify.go

@@ -9,7 +9,6 @@ import (
 
 func (this *Modules) RegisterAction_IndexModify() *Action {
 	return this.newAction(AInfo{
-		WantDB:    true,
 		Mount:     "index-modify",
 		WantAdmin: true,
 	}, func(wrap *wrapper.Wrapper) {

+ 1 - 2
engine/modules/module_index_act_mysql_setup.go

@@ -11,8 +11,7 @@ import (
 
 func (this *Modules) RegisterAction_IndexMysqlSetup() *Action {
 	return this.newAction(AInfo{
-		WantDB: false,
-		Mount:  "index-mysql-setup",
+		Mount: "index-mysql-setup",
 	}, func(wrap *wrapper.Wrapper) {
 		pf_host := utils.Trim(wrap.R.FormValue("host"))
 		pf_port := utils.Trim(wrap.R.FormValue("port"))

+ 1 - 2
engine/modules/module_index_act_signin.go

@@ -8,8 +8,7 @@ import (
 
 func (this *Modules) RegisterAction_IndexUserSignIn() *Action {
 	return this.newAction(AInfo{
-		WantDB: true,
-		Mount:  "index-user-sign-in",
+		Mount: "index-user-sign-in",
 	}, func(wrap *wrapper.Wrapper) {
 		pf_email := utils.Trim(wrap.R.FormValue("email"))
 		pf_password := utils.Trim(wrap.R.FormValue("password"))

+ 0 - 1
engine/modules/module_index_act_update_profile.go

@@ -7,7 +7,6 @@ import (
 
 func (this *Modules) RegisterAction_IndexUserUpdateProfile() *Action {
 	return this.newAction(AInfo{
-		WantDB:   true,
 		Mount:    "index-user-update-profile",
 		WantUser: true,
 	}, func(wrap *wrapper.Wrapper) {

+ 0 - 1
engine/modules/module_notify_mail.go

@@ -13,7 +13,6 @@ import (
 
 func (this *Modules) RegisterModule_NotifyMail() *Module {
 	return this.newModule(MInfo{
-		WantDB: true,
 		Mount:  "notify-mail",
 		Name:   "Mail notifier",
 		Order:  803,

+ 0 - 1
engine/modules/module_settings.go

@@ -14,7 +14,6 @@ import (
 
 func (this *Modules) RegisterModule_Settings() *Module {
 	return this.newModule(MInfo{
-		WantDB: false,
 		Mount:  "settings",
 		Name:   "Settings",
 		Order:  801,

+ 0 - 1
engine/modules/module_settings_act_api.go

@@ -7,7 +7,6 @@ import (
 
 func (this *Modules) RegisterAction_SettingsApi() *Action {
 	return this.newAction(AInfo{
-		WantDB:    true,
 		Mount:     "settings-api",
 		WantAdmin: true,
 	}, func(wrap *wrapper.Wrapper) {

+ 0 - 1
engine/modules/module_settings_act_general.go

@@ -7,7 +7,6 @@ import (
 
 func (this *Modules) RegisterAction_SettingsGeneral() *Action {
 	return this.newAction(AInfo{
-		WantDB:    true,
 		Mount:     "settings-general",
 		WantAdmin: true,
 	}, func(wrap *wrapper.Wrapper) {

+ 0 - 1
engine/modules/module_settings_act_pagination.go

@@ -9,7 +9,6 @@ import (
 
 func (this *Modules) RegisterAction_SettingsPagination() *Action {
 	return this.newAction(AInfo{
-		WantDB:    true,
 		Mount:     "settings-pagination",
 		WantAdmin: true,
 	}, func(wrap *wrapper.Wrapper) {

+ 0 - 1
engine/modules/module_settings_act_robots_txt.go

@@ -9,7 +9,6 @@ import (
 
 func (this *Modules) RegisterAction_SettingsRobotsTxt() *Action {
 	return this.newAction(AInfo{
-		WantDB:    true,
 		Mount:     "settings-robots-txt",
 		WantAdmin: true,
 	}, func(wrap *wrapper.Wrapper) {

+ 0 - 1
engine/modules/module_settings_act_shop.go

@@ -7,7 +7,6 @@ import (
 
 func (this *Modules) RegisterAction_SettingsShop() *Action {
 	return this.newAction(AInfo{
-		WantDB:    true,
 		Mount:     "settings-shop",
 		WantAdmin: true,
 	}, func(wrap *wrapper.Wrapper) {

+ 0 - 1
engine/modules/module_settings_act_smtp.go

@@ -7,7 +7,6 @@ import (
 
 func (this *Modules) RegisterAction_SettingsSmtp() *Action {
 	return this.newAction(AInfo{
-		WantDB:    true,
 		Mount:     "settings-smtp",
 		WantAdmin: true,
 	}, func(wrap *wrapper.Wrapper) {

+ 0 - 1
engine/modules/module_settings_act_thumbnails.go

@@ -9,7 +9,6 @@ import (
 
 func (this *Modules) RegisterAction_SettingsThumbnails() *Action {
 	return this.newAction(AInfo{
-		WantDB:    true,
 		Mount:     "settings-thumbnails",
 		WantAdmin: true,
 	}, func(wrap *wrapper.Wrapper) {

+ 0 - 1
engine/modules/module_shop.go

@@ -338,7 +338,6 @@ func (this *Modules) shop_GetOrderStatus(status int) string {
 
 func (this *Modules) RegisterModule_Shop() *Module {
 	return this.newModule(MInfo{
-		WantDB: true,
 		Mount:  "shop",
 		Name:   "Shop",
 		Order:  2,

+ 0 - 1
engine/modules/module_shop_act_attach_product_search.go

@@ -66,7 +66,6 @@ func (this *Modules) shop_GetProductsListForAttaching(wrap *wrapper.Wrapper, nam
 
 func (this *Modules) RegisterAction_ShopAttachProductSearch() *Action {
 	return this.newAction(AInfo{
-		WantDB:    true,
 		Mount:     "shop-attach-product-search",
 		WantAdmin: true,
 	}, func(wrap *wrapper.Wrapper) {

+ 0 - 1
engine/modules/module_shop_act_attach_product_to.go

@@ -10,7 +10,6 @@ import (
 
 func (this *Modules) RegisterAction_ShopAttachProductTo() *Action {
 	return this.newAction(AInfo{
-		WantDB:    true,
 		Mount:     "shop-attach-product-to",
 		WantAdmin: true,
 	}, func(wrap *wrapper.Wrapper) {

+ 0 - 1
engine/modules/module_shop_act_delete.go

@@ -9,7 +9,6 @@ import (
 
 func (this *Modules) RegisterAction_ShopDelete() *Action {
 	return this.newAction(AInfo{
-		WantDB:    true,
 		Mount:     "shop-delete",
 		WantAdmin: true,
 	}, func(wrap *wrapper.Wrapper) {

+ 0 - 1
engine/modules/module_shop_act_detach.go

@@ -9,7 +9,6 @@ import (
 
 func (this *Modules) RegisterAction_ShopDetach() *Action {
 	return this.newAction(AInfo{
-		WantDB:    true,
 		Mount:     "shop-detach",
 		WantAdmin: true,
 	}, func(wrap *wrapper.Wrapper) {

+ 0 - 1
engine/modules/module_shop_act_duplicate.go

@@ -10,7 +10,6 @@ import (
 
 func (this *Modules) RegisterAction_ShopDuplicate() *Action {
 	return this.newAction(AInfo{
-		WantDB:    true,
 		Mount:     "shop-duplicate",
 		WantAdmin: true,
 	}, func(wrap *wrapper.Wrapper) {

+ 0 - 1
engine/modules/module_shop_act_get_attribute_values.go

@@ -9,7 +9,6 @@ import (
 
 func (this *Modules) RegisterAction_ShopGetAttributeValues() *Action {
 	return this.newAction(AInfo{
-		WantDB:    true,
 		Mount:     "shop-get-attribute-values",
 		WantAdmin: true,
 	}, func(wrap *wrapper.Wrapper) {

+ 0 - 1
engine/modules/module_shop_act_images_reorder.go

@@ -19,7 +19,6 @@ type Orders struct {
 
 func (this *Modules) RegisterAction_ShopImagesReorder() *Action {
 	return this.newAction(AInfo{
-		WantDB:    true,
 		Mount:     "shop-images-reorder",
 		WantAdmin: true,
 	}, func(wrap *wrapper.Wrapper) {

+ 0 - 1
engine/modules/module_shop_act_modify.go

@@ -11,7 +11,6 @@ import (
 
 func (this *Modules) RegisterAction_ShopModify() *Action {
 	return this.newAction(AInfo{
-		WantDB:    true,
 		Mount:     "shop-modify",
 		WantAdmin: true,
 	}, func(wrap *wrapper.Wrapper) {

+ 0 - 1
engine/modules/module_shop_act_order.go

@@ -11,7 +11,6 @@ import (
 
 func (this *Modules) RegisterAction_ShopOrder() *Action {
 	return this.newAction(AInfo{
-		WantDB:    true,
 		Mount:     "shop-order",
 		WantAdmin: false,
 	}, func(wrap *wrapper.Wrapper) {

+ 0 - 1
engine/modules/module_shop_act_order_set_status.go

@@ -9,7 +9,6 @@ import (
 
 func (this *Modules) RegisterAction_ShopOrderSetStatus() *Action {
 	return this.newAction(AInfo{
-		WantDB:    true,
 		Mount:     "shop-order-set-status",
 		WantAdmin: true,
 	}, func(wrap *wrapper.Wrapper) {

+ 0 - 1
engine/modules/module_shop_act_upload_delete.go

@@ -10,7 +10,6 @@ import (
 
 func (this *Modules) RegisterAction_ShopUploadDelete() *Action {
 	return this.newAction(AInfo{
-		WantDB:    true,
 		Mount:     "shop-upload-delete",
 		WantAdmin: true,
 	}, func(wrap *wrapper.Wrapper) {

+ 0 - 1
engine/modules/module_shop_act_upload_image.go

@@ -19,7 +19,6 @@ import (
 
 func (this *Modules) RegisterAction_ShopUploadImage() *Action {
 	return this.newAction(AInfo{
-		WantDB:    true,
 		Mount:     "shop-upload-image",
 		WantAdmin: true,
 	}, func(wrap *wrapper.Wrapper) {

+ 0 - 1
engine/modules/module_shop_attributes_act_delete.go

@@ -9,7 +9,6 @@ import (
 
 func (this *Modules) RegisterAction_ShopAttributesDelete() *Action {
 	return this.newAction(AInfo{
-		WantDB:    true,
 		Mount:     "shop-attributes-delete",
 		WantAdmin: true,
 	}, func(wrap *wrapper.Wrapper) {

+ 0 - 1
engine/modules/module_shop_attributes_act_modify.go

@@ -10,7 +10,6 @@ import (
 
 func (this *Modules) RegisterAction_ShopAttributesModify() *Action {
 	return this.newAction(AInfo{
-		WantDB:    true,
 		Mount:     "shop-attributes-modify",
 		WantAdmin: true,
 	}, func(wrap *wrapper.Wrapper) {

+ 0 - 1
engine/modules/module_shop_categories_act_delete.go

@@ -9,7 +9,6 @@ import (
 
 func (this *Modules) RegisterAction_ShopCategoriesDelete() *Action {
 	return this.newAction(AInfo{
-		WantDB:    true,
 		Mount:     "shop-categories-delete",
 		WantAdmin: true,
 	}, func(wrap *wrapper.Wrapper) {

+ 0 - 1
engine/modules/module_shop_categories_act_modify.go

@@ -167,7 +167,6 @@ func (this *Modules) shop_ActionCategoryUpdate(wrap *wrapper.Wrapper, pf_id, pf_
 
 func (this *Modules) RegisterAction_ShopCategoriesModify() *Action {
 	return this.newAction(AInfo{
-		WantDB:    true,
 		Mount:     "shop-categories-modify",
 		WantAdmin: true,
 	}, func(wrap *wrapper.Wrapper) {

+ 0 - 1
engine/modules/module_shop_currencies_act_delete.go

@@ -9,7 +9,6 @@ import (
 
 func (this *Modules) RegisterAction_ShopCurrenciesDelete() *Action {
 	return this.newAction(AInfo{
-		WantDB:    true,
 		Mount:     "shop-currencies-delete",
 		WantAdmin: true,
 	}, func(wrap *wrapper.Wrapper) {

+ 0 - 1
engine/modules/module_shop_currencies_act_modify.go

@@ -9,7 +9,6 @@ import (
 
 func (this *Modules) RegisterAction_ShopCurrenciesModify() *Action {
 	return this.newAction(AInfo{
-		WantDB:    true,
 		Mount:     "shop-currencies-modify",
 		WantAdmin: true,
 	}, func(wrap *wrapper.Wrapper) {

+ 0 - 1
engine/modules/module_template.go

@@ -34,7 +34,6 @@ func (this *Modules) template_GetThemeFiles(wrap *wrapper.Wrapper) []string {
 
 func (this *Modules) RegisterModule_Template() *Module {
 	return this.newModule(MInfo{
-		WantDB: false,
 		Mount:  "template",
 		Name:   "Template",
 		Order:  802,

+ 0 - 1
engine/modules/module_template_act_edit_theme_file.go

@@ -10,7 +10,6 @@ import (
 
 func (this *Modules) RegisterAction_TemplateEditThemeFile() *Action {
 	return this.newAction(AInfo{
-		WantDB:    true,
 		Mount:     "template-edit-theme-file",
 		WantAdmin: true,
 	}, func(wrap *wrapper.Wrapper) {

+ 0 - 1
engine/modules/module_template_act_restore_file.go

@@ -11,7 +11,6 @@ import (
 
 func (this *Modules) RegisterAction_TemplateRestoreFile() *Action {
 	return this.newAction(AInfo{
-		WantDB:    true,
 		Mount:     "template-restore-file",
 		WantAdmin: true,
 	}, func(wrap *wrapper.Wrapper) {

+ 0 - 1
engine/modules/module_template_act_restore_file_all.go

@@ -11,7 +11,6 @@ import (
 
 func (this *Modules) RegisterAction_TemplateRestoreFileAll() *Action {
 	return this.newAction(AInfo{
-		WantDB:    true,
 		Mount:     "template-restore-file-all",
 		WantAdmin: true,
 	}, func(wrap *wrapper.Wrapper) {

+ 0 - 1
engine/modules/module_users.go

@@ -12,7 +12,6 @@ import (
 
 func (this *Modules) RegisterModule_Users() *Module {
 	return this.newModule(MInfo{
-		WantDB: true,
 		Mount:  "users",
 		Name:   "Users",
 		Order:  800,

+ 0 - 1
engine/modules/module_users_act_delete.go

@@ -9,7 +9,6 @@ import (
 
 func (this *Modules) RegisterAction_UsersDelete() *Action {
 	return this.newAction(AInfo{
-		WantDB:    true,
 		Mount:     "users-delete",
 		WantAdmin: true,
 	}, func(wrap *wrapper.Wrapper) {

+ 0 - 1
engine/modules/module_users_act_modify.go

@@ -9,7 +9,6 @@ import (
 
 func (this *Modules) RegisterAction_UsersModify() *Action {
 	return this.newAction(AInfo{
-		WantDB:    true,
 		Mount:     "users-modify",
 		WantAdmin: true,
 	}, func(wrap *wrapper.Wrapper) {