Commit 0efc3740 authored by Romain Courteaud's avatar Romain Courteaud

[romain_dev] update

parent 4de0fdf7
...@@ -4,19 +4,20 @@ bt5_installation_list = bt5_update_catalog_list + ('erp5_xhtml_style', ...@@ -4,19 +4,20 @@ bt5_installation_list = bt5_update_catalog_list + ('erp5_xhtml_style',
# 'erp5_officejs_ooffice', # 'erp5_officejs_ooffice',
'erp5_upgrader', 'erp5_upgrader',
'erp5_hal_json_style', 'erp5_hal_json_style',
# 'erp5_ods_style', 'erp5_ods_style',
'erp5_odt_style',
# 'erp5_officejs_ui_test', # 'erp5_officejs_ui_test',
# 'erp5_crm_renderjs_ui_test', 'erp5_crm_renderjs_ui_test',
# 'erp5_trade_renderjs_ui_test', 'erp5_trade_renderjs_ui_test',
'erp5_web_renderjs_ui_test', 'erp5_web_renderjs_ui_test',
# 'erp5_pdm_renderjs_ui_test', # 'erp5_pdm_renderjs_ui_test',
# 'erp5_accounting_renderjs_ui_test', # 'erp5_accounting_renderjs_ui_test',
# 'erp5_officejs_ui_test', # 'erp5_officejs_ui_test',
# 'erp5_officejs_support_request_ui_test', 'erp5_officejs_support_request_ui_test',
# 'erp5_calendar', # 'erp5_calendar',
# 'erp5_crm', # 'erp5_crm',
# 'erp5_mrp', # 'erp5_mrp',
# 'erp5_project', 'erp5_project',
# test dependencies # test dependencies
# 'erp5_configurator_standard_trade_template', # 'erp5_configurator_standard_trade_template',
...@@ -29,8 +30,14 @@ bt5_installation_list = bt5_update_catalog_list + ('erp5_xhtml_style', ...@@ -29,8 +30,14 @@ bt5_installation_list = bt5_update_catalog_list + ('erp5_xhtml_style',
# 'erp5_web_jabber_client', # 'erp5_web_jabber_client',
'erp5_web_ui_test', 'erp5_web_ui_test',
'erp5_officejs_afs_directory_ui_test', 'erp5_officejs_afs_directory_ui_test',
'erp5_accounting_ui_test',
# 'erp5_travel_expense', 'erp5_travel_expense_ui_test', # 'erp5_travel_expense', 'erp5_travel_expense_ui_test',
# 'officejs_olapy_demo', 'erp5_officejs_connector' # 'officejs_olapy_demo', 'erp5_officejs_connector'
# 'erp5_discussion' # 'erp5_discussion'
'erp5_hr',
'erp5_item',
'erp5_mrp',
'erp5_payroll',
'erp5_authentication_policy',
) )
return bt5_installation_list, [] return bt5_installation_list, []
portal = context.getPortalObject()
selection = portal.portal_selections.getSelectionFor('person_module_selection')
print selection.checked_uids
print selection.domain_path
print selection.domain_list
if selection.domain is not None:
print selection.domain.asDomainDict()
return printed
for _, obj in portal.portal_skins.ZopeFind(portal.portal_skins.erp5_core, obj_metatypes=('ERP5 Form',), search_sub=1):
if (obj.pt == 'form_view') and (obj.action == '') and ('FieldLibrary' not in obj.id):
print obj.id
return printed
return
portal_object = portal = context.getPortalObject()
module = portal.person_module
i = counter
while i <= min(counter + 100, 80000):
# module.newContent(portal_type='Person', title='test %i' % i)
i += 1
if i != counter:
module.activate(activity='SQLQueue', priority=5).testromain(i)
return 'couscous'
raise NotImplementedError('nutnut')
return '%s\n' % context.absolute_url()
from base64 import urlsafe_b64encode, urlsafe_b64decode
return 'data:text/css;base64,%s' % urlsafe_b64encode('couscous');
kw = {
# 'select_dict': {'count': 'select 1;drop table catalog;', 'portal_type': None},
'select_dict': {'count': 'count(*)', 'portal_type': None},
# 'select_list': ['count(*)', 'portal_type'],
# 'select_list': ['portal_type'],
'limit': None,
'group_by': ["portal_type"],
# 'sort_on': [('portal_type', 'ASC')]
}
print context.portal_catalog(src__=1, **kw)
"""
for x in context.portal_catalog(**kw):
print x.portal_type, x['count']
"""
print '---'
return printed
cp = context.manage_copyObjects(uids=uids)
context.manage_pasteObjects(cb_copy_data=cp)
return "couscous"
"""
result_list = context.portal_catalog.countResults(select_dict={'date': 'DATE_FORMAT(creation_date, "%s")' % sql_format, 'portal_type': None},
portal_type=portal_type_list,limit=None,
owner=reference,
group_by=['DATE_FORMAT(creation_date, "%s")' % sql_format, 'portal_type'],
**count_kw)
"""
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>Script_magic</string> </key>
<value> <int>3</int> </value>
</item>
<item>
<key> <string>_bind_names</string> </key>
<value>
<object>
<klass>
<global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>_asgns</string> </key>
<value>
<dictionary>
<item>
<key> <string>name_container</string> </key>
<value> <string>container</string> </value>
</item>
<item>
<key> <string>name_context</string> </key>
<value> <string>context</string> </value>
</item>
<item>
<key> <string>name_m_self</string> </key>
<value> <string>script</string> </value>
</item>
<item>
<key> <string>name_subpath</string> </key>
<value> <string>traverse_subpath</string> </value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>copy_of_testromain</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
print '---<br>'
for brain in context.getPortalObject().portal_catalog(portal_type='Action Information', sort_on=[['relative_url', 'ASC']]):
action = brain.getObject()
action_type = action.getActionType()
if ('web' in action_type) or ('jio' in action_type) or (action_type in ['object_view', 'object_list', 'object_jump', 'object_sort', 'object_ui']):
continue
if (action_type in ['object_button', 'object_search']):
continue
print action.getParentTitle(), '<a href="%s">%s</a>' % (action.getRelativeUrl(), action.getTitle()), action.getActionType(), '<br>'
return printed
context.getPortalObject().notebook_module.olapy_notebook.edit(title="olapy_notebook.jsmd", reference="olapy_notebook.jsmd") context.getPortalObject().notebook_module.olapy_notebook.edit(title="olapy_notebook.jsmd", reference="olapy_notebook.jsmd")
return "ok" return "ok"
......
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