2019 Spring 網際內容管理期末報告示範網站

  • Home
    • Site Map
    • reveal
    • blog
  • 各組期末報告說明
  • 近端配置與管理
    • 網路連線設定
    • 配置可攜程式環境
  • 倉儲改版
  • 系統開發
    • 程式開發要件
    • Mobile 網站內容
      • CMSimfly 架構
      • bs4 應用
      • 套用模板一
    • Virtual Host
    • CMSimfly 問題
  • 期末報告
Virtual Host << Previous Next >> 期末報告

CMSimfly 問題

CMSimfly 使用相關問題, 請提供在此, 目前已知問題:

當刪除最後一頁全部內容後, ssavePage 函式存檔後將會出現錯誤畫面, 重新回到系統後即恢復正常.

錯誤訊息為:

File "Y:\tmp\scrum1\wcm2019\flaskapp.py", line 2220, in ssavePage
if original_head_title == head[int(page_order)]:
IndexError: list index out of range

處理方式如下:

    # 嘗試避免因最後一個標題刪除儲存後產生 internal error 問題
    if original_head_title is None:
        return redirect("/")
    try:
        if original_head_title == head[int(page_order)]:
            edit_url = "/get_page/" + original_head_title + "/1"
            return redirect(edit_url)
        else:
            return redirect("/")
    except:
        return redirect("/")


Virtual Host << Previous Next >> 期末報告

Copyright © All rights reserved | This template is made with by Colorlib