Commit b019e1da authored by Gabriel Monnerat's avatar Gabriel Monnerat

- Add new Domain and move the script to create temporary domains for this...

- Add new Domain and move the script to create temporary domains for this Domain, because it will create subdomains only for this domain

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@42040 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a01c9441
...@@ -44,7 +44,9 @@ ...@@ -44,7 +44,9 @@
</item> </item>
<item> <item>
<key> <string>domain_generator_method_id</string> </key> <key> <string>domain_generator_method_id</string> </key>
<value> <string>WebPageModule_generateDomain</string> </value> <value>
<none/>
</value>
</item> </item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
...@@ -52,7 +54,7 @@ ...@@ -52,7 +54,7 @@
</item> </item>
<item> <item>
<key> <string>last_id</string> </key> <key> <string>last_id</string> </key>
<value> <string>28</string> </value> <value> <string>30</string> </value>
</item> </item>
<item> <item>
<key> <string>portal_type</string> </key> <key> <string>portal_type</string> </key>
......
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="Domain" module="erp5.portal_type"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_identity_criterion</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>_range_criterion</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>domain_generator_method_id</string> </key>
<value> <string>WebPageModule_generateDomain</string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>by_subject</string> </value>
</item>
<item>
<key> <string>int_index</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>membership_criterion_category</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>portal_type</string> </key>
<value> <string>Domain</string> </value>
</item>
<item>
<key> <string>string_index</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>test_method_id</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>By Subject</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
...@@ -50,9 +50,10 @@ ...@@ -50,9 +50,10 @@
</item> </item>
<item> <item>
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>"""\n <value> <string encoding="cdata"><![CDATA[
"""\n
This script generates a sections list to filter the document on UNG Docs.\n This script generates a sections list to filter the document on UNG Docs.\n
XXX - The generation of domains should be more dynamic because some domains is create manually.\n
"""\n """\n
\n \n
def getAvailableSubjectList(subject_list=()):\n def getAvailableSubjectList(subject_list=()):\n
...@@ -93,28 +94,28 @@ def appendTempDomain(id, \n ...@@ -93,28 +94,28 @@ def appendTempDomain(id, \n
for key, value in property_dict.items():\n for key, value in property_dict.items():\n
domain.setCriterion(key, value)\n domain.setCriterion(key, value)\n
\n \n
return domain\n domain_list.append(domain)\n
\n \n
domain_list = []\n domain_list = []\n
validation_state_list = [\'draft\', \'published\', \'shared\']\n
\n \n
subject_domain = appendTempDomain(\'by_subject\',\n if depth > 1:\n
\'By Subject\',\n return domain_list\n
dict(validation_state=validation_state_list))\n
\n \n
domain_list.append(subject_domain)\n validation_state_list = [\'draft\', \'published\', \'shared\']\n
\n \n
for subject in getAvailableSubjectList():\n for subject in getAvailableSubjectList():\n
appendTempDomain("subject_" + subject,\n appendTempDomain("subject_" + subject,\n
subject.capitalize(),\n subject.capitalize(),\n
dict(subject=subject),\n dict(subject=subject),\n
subject_domain,\n parent,\n
("by_subject",),\n ("by_subject",),\n
("by_subject",))\n ("by_subject",))\n
\n \n
\n \n
return domain_list\n return domain_list\n
</string> </value>
]]></string> </value>
</item> </item>
<item> <item>
<key> <string>_params</string> </key> <key> <string>_params</string> </key>
......
149 150
\ No newline at end of file \ No newline at end of file
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