Reset owner user when original owner user has been deleted

Author Message

Tony Wood

Thursday 29 July 2004 9:36:11 am

Hi,

Is there a clean way of setting the "owner" of a class. We have content in site that was created by a user that no longer existing in the system.
Are there any script that exist that can whip cleaning through the DB and replace the old owner with a new owner?

Thanks in advance

--Tony

Tony Wood : twitter.com/tonywood
Vision with Technology
Experts in eZ Publish consulting & development

Power to the Editor!

Free eZ Training : http://www.VisionWT.com/training
eZ Future Podcast : http://www.VisionWT.com/eZ-Future

Björn Dieding@xrow.de

Monday 02 August 2004 3:23:16 am

This shouldn't be much of a hack. Try yourself :-P.

Looking for a new job? http://www.xrow.com/xrow-GmbH/Jobs
Looking for hosting? http://hostingezpublish.com
-----------------------------------------------------------------------------
GMT +01:00 Hannover, Germany
Web: http://www.xrow.com/

Tony Wood

Monday 02 August 2004 3:42:49 am

It doesn't hurt to ask ;-)

Tony Wood : twitter.com/tonywood
Vision with Technology
Experts in eZ Publish consulting & development

Power to the Editor!

Free eZ Training : http://www.VisionWT.com/training
eZ Future Podcast : http://www.VisionWT.com/eZ-Future

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 19 2025 11:49:50
Script start
Timing: Jan 19 2025 11:49:50
Module start 'layout'
Timing: Jan 19 2025 11:49:50
Module start 'content'
Timing: Jan 19 2025 11:49:50
Module end 'content'
Timing: Jan 19 2025 11:49:50
Script end

Main resources:

Total runtime0.0175 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0062 589.4141152.6563
Module start 'layout' 0.00620.0042 742.070339.5078
Module start 'content' 0.01040.0048 781.578189.3984
Module end 'content' 0.01510.0024 870.976634.3047
Script end 0.0175  905.2813 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002916.6961140.0002
Check MTime0.00116.3121140.0001
Mysql Total
Database connection0.00084.352210.0008
Mysqli_queries0.003419.244930.0011
Looping result0.00000.097910.0000
Template Total0.002011.610.0020
Template load0.00126.707810.0012
Template processing0.00084.830910.0008
Override
Cache load0.00063.553810.0006
General
dbfile0.00031.682480.0000
String conversion0.00000.062640.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