Commit b7f4e954 authored by Rafael Monnerat's avatar Rafael Monnerat

Base.log is deprecated. Using ERPType.Log.log instead.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@22058 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ba2b8d86
......@@ -66,8 +66,9 @@
<item>
<key> <string>_body</string> </key>
<value> <string># Create new ERP5 objects In Activity from OOo document\n
context.log(\'object_list\',object_list)\n
context.log(\'kw\',kw)\n
from Products.ERP5Type.Log import log\n
log(\'object_list\',object_list)\n
log(\'kw\',kw)\n
for (module_url, per_portal_type_data) in object_list.items():\n
for (portal_type, new_object_list) in per_portal_type_data.items():\n
for new_object_property_dict in new_object_list:\n
......@@ -144,9 +145,10 @@ for (module_url, per_portal_type_data) in object_list.items():\n
<tuple>
<string>object_list</string>
<string>kw</string>
<string>_getattr_</string>
<string>context</string>
<string>Products.ERP5Type.Log</string>
<string>log</string>
<string>_getiter_</string>
<string>_getattr_</string>
<string>module_url</string>
<string>per_portal_type_data</string>
<string>portal_type</string>
......@@ -154,6 +156,7 @@ for (module_url, per_portal_type_data) in object_list.items():\n
<string>new_object_property_dict</string>
<string>None</string>
<string>ptype_object</string>
<string>context</string>
<string>module</string>
<string>allowed_ptype</string>
<string>ptype_name</string>
......
......@@ -75,13 +75,14 @@ return stat_line\n
\n
\n
# XXX example of another way to get the stat line but this is slower\n
from Products.ERP5Type.Log import log\n
from Products.PythonScripts.standard import Object\n
from Products.ZSQLCatalog.SQLCatalog import Query\n
request = container.REQUEST\n
from_date = request.get(\'from_date\', None)\n
to_date = request.get(\'at_date\', None)\n
aggregation_level = request.get(\'aggregation_level\', None)\n
context.log("in stat method", "")\n
log("in stat method", "")\n
# build document portal type list\n
portal_type_list = []\n
extend = portal_type_list.extend\n
......@@ -191,6 +192,8 @@ return [obj,]\n
<string>RESPONSE</string>
<string>None</string>
<string>stat_line</string>
<string>Products.ERP5Type.Log</string>
<string>log</string>
<string>Products.PythonScripts.standard</string>
<string>Object</string>
<string>Products.ZSQLCatalog.SQLCatalog</string>
......@@ -198,10 +201,10 @@ return [obj,]\n
<string>from_date</string>
<string>to_date</string>
<string>aggregation_level</string>
<string>context</string>
<string>portal_type_list</string>
<string>extend</string>
<string>_getiter_</string>
<string>context</string>
<string>title</string>
<string>path</string>
<string>document_type_list</string>
......
354
\ No newline at end of file
355
\ 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