--- /dev/null
+<?xml version="1.0"?>
+<object>
+ <default_language value="de"/>
+ <use_path_negotiation value="False"/>
+ <use_cookie_negotiation value="False"/>
+ <use_request_negotiation value="False"/>
+ <use_cctld_negotiation value="False"/>
+ <use_content_negotiation value="False"/>
+ <use_combined_language_codes value="False"/>
+ <display_flags value="False"/>
+ <start_neutral value="False"/>
+ <use_subdomain_negotiation value="False"/>
+ <authenticated_users_only value="False"/>
+ <supported_langs>
+ <element value="de"/>
+ </supported_langs>
+</object>
id = container.invokeFactory(id=id, type_name=type_name, **kw)
ob = getattr(container,id)
event.notify(ObjectInitializedEvent(ob))
- ob.at_post_create_script()
-# if hasattr(aq_base(ob), 'manage_afterPortalFactoryCreate'):
-# ob.manage_afterPortalFactoryCreate()
+ if hasattr(aq_base(ob), 'at_post_create_script'):
+ ob.at_post_create_script()
+ if hasattr(aq_base(ob), 'manage_afterPortalFactoryCreate'):
+ ob.manage_afterPortalFactoryCreate()
wf = getToolByName(container, 'portal_workflow')
if wf.getInfoFor(ob,'review_state','') != 'published':
wf.doActionFor(ob,'publish',comment='site setup')
# Call 'contentSetup' as SITE_OWNER user with a valid REQUEST
req = makerequest(app)
- newSecurityManager(req.REQUEST, app.acl_users.getUser(SITE_OWNER).__of__(app.acl_users))
+ newSecurityManager(req.REQUEST, app.acl_users.getUserById(SITE_OWNER).__of__(app.acl_users))
contentSetup(req)
transaction.commit()
newSecurityManager(None, AccessControl.User.system)