Commit 56ff2c06 authored by Boxiang Sun's avatar Boxiang Sun

Template tool debugging

parent 4ed6c3f3
...@@ -34,6 +34,8 @@ import os ...@@ -34,6 +34,8 @@ import os
import shutil import shutil
import sys import sys
_print = sys.stderr.write
from Acquisition import Implicit, Explicit from Acquisition import Implicit, Explicit
from AccessControl import ClassSecurityInfo from AccessControl import ClassSecurityInfo
from AccessControl.SecurityInfo import ModuleSecurityInfo from AccessControl.SecurityInfo import ModuleSecurityInfo
...@@ -992,6 +994,14 @@ class TemplateTool (BaseTool): ...@@ -992,6 +994,14 @@ class TemplateTool (BaseTool):
template_item_list = [] template_item_list = []
# First of all, filter Business Templates in repositories. # First of all, filter Business Templates in repositories.
template_item_dict = {} template_item_dict = {}
_print("Print the repository list")
_print("=============================")
_print("=============================")
_print("=============================")
_print(str(self.repository_dict.items()))
_print("=============================")
_print("=============================")
_print("=============================")
for repository, property_dict_list in self.repository_dict.items(): for repository, property_dict_list in self.repository_dict.items():
for property_dict in property_dict_list: for property_dict in property_dict_list:
title = property_dict['title'] title = property_dict['title']
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment