3.9 section assignment on object modification

Author Message

Kristof Coomans

Sunday 20 August 2006 4:15:00 am

I just took a quick look at the eZ publish 3.9 code which allows the modification of the section of an object in the content/edit view.

When the section is changed in the content/edit view, a session variable ShouldNotUpdateSectionID is set to skip some code for section inheritance in the content/publish operation. I wonder if this will work if a pre-publish workflow with an approve event is used, or any other event which defers to the cron, because that will be another session?

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Kristof Coomans

Sunday 20 August 2006 4:37:18 am

I also noticed that the policy for the section module is not respected.

Maybe it's a good idea to add limitation parameters (content class, subtree, current section, new section) to a policy for section assignment, so this feature can be used safely by end users (like editors) too.

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Valentin Doroschuk

Tuesday 22 August 2006 8:15:55 am

Hi Kristof,,
Thanks a lot for your comments...

Fixed in
3.9.0alpha1 (trunk rev. 16689).

Now when an object is created section_id will be set to '0',
when publishing eZContentOperationCollection::updateSectionID() will be called
and sectionID will be updated.

what about limitations...
maybe in subrealeses....

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 31 2025 01:16:17
Script start
Timing: Jan 31 2025 01:16:17
Module start 'layout'
Timing: Jan 31 2025 01:16:17
Module start 'content'
Timing: Jan 31 2025 01:16:17
Module end 'content'
Timing: Jan 31 2025 01:16:17
Script end

Main resources:

Total runtime0.0313 sec
Peak memory usage6,144.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0087 588.2656151.2266
Module start 'layout' 0.00870.0046 739.4922220.7188
Module start 'content' 0.01340.0153 960.2109997.8359
Module end 'content' 0.02870.0026 1,958.046933.9922
Script end 0.0313  1,992.0391 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00309.6528140.0002
Check MTime0.00113.6648140.0001
Mysql Total
Database connection0.00082.597910.0008
Mysqli_queries0.005718.216030.0019
Looping result0.00000.044110.0000
Template Total0.00206.310.0020
Template load0.00134.292610.0013
Template processing0.00061.989210.0006
Override
Cache load0.00082.445010.0008
General
dbfile0.00030.887380.0000
String conversion0.00000.035040.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs