Locking Object in content tree

Author Message

Gurudutt Verma

Friday 08 December 2006 4:36:12 am

Hello,

I guess we should make some kind of lock for each object, and after
the object is locked then it will not be allowed to delete the node without
unlocking it by admin.

Any how it should be possible to edit the object.

It is because several sites we are creating several nodes and in the template
we use the node_id of several nodes, for e.g. top menu or contact info or left menu etc.

In some cases where we have to use the node_id in template to fetch content or
sub tree but after handingover the site to customer it is possible to delete
those nodes and create newone, in that case the site dosen't works because of
missing node_id in content tree.

If we can lock such objects and add some info in text box why that is locked
then that will be easier for future enhancement to developer and also to
admin/editors to understand it why they can't delete that object and why it is locked.

Also in admin interface all locked objects should display little different.

I guess it is a future enhancement request.

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 18 2025 11:09:07
Script start
Timing: Jan 18 2025 11:09:07
Module start 'layout'
Timing: Jan 18 2025 11:09:07
Module start 'content'
Timing: Jan 18 2025 11:09:07
Module end 'content'
Timing: Jan 18 2025 11:09:07
Script end

Main resources:

Total runtime0.5690 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0075 587.9141152.6250
Module start 'layout' 0.00750.0034 740.539139.4453
Module start 'content' 0.01090.5564 779.9844443.3594
Module end 'content' 0.56730.0017 1,223.34388.1641
Script end 0.5690  1,231.5078 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.6167160.0002
Check MTime0.00160.2790160.0001
Mysql Total
Database connection0.00120.209710.0012
Mysqli_queries0.524192.1089460.0114
Looping result0.00040.0745440.0000
Template Total0.535694.120.2678
Template load0.00210.371720.0011
Template processing0.533593.757820.2667
Template load and register function0.00010.022510.0001
states
state_id_array0.00160.284510.0016
state_identifier_array0.00090.163520.0005
Override
Cache load0.00170.3047200.0001
Sytem overhead
Fetch class attribute can translate value0.00120.211310.0012
Fetch class attribute name0.00070.121620.0003
XML
Image XML parsing0.00050.087010.0005
class_abstraction
Instantiating content class attribute0.00000.000820.0000
General
dbfile0.00080.1398160.0000
String conversion0.00000.001240.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 13
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs