Avoid the setup wizard affecting the entire installation

Author Message

Eirik Alfstad Johansen

Friday 19 March 2004 4:45:46 am

Hi guys,

One of the projects I'm working on will be an ezp ASP running one installation, and with separate siteaccesses for each site and accompanying admin interface.

One of the things that needs to be done is therefore to create a setup wizard that can be run for each site, similar to the default setup process for ezp, but hiding some of the options (like db options which will be set by a preceeding script).

I was hoping that I might be able to modify the setup process to suit my needs, and to test, I setup an ezp installation, created a new siteaccess with some default INI settings and CheckValidity set to enabled.

This ran, of course, the setup process for the new siteaccess, but instead of applying the selected settings to simply this one siteaccess, it reset the settings for the entire installation.

So my question is this:

Is there a setting to ensure that a setup process is only applied to the selected siteaccesses instead of the entire installation?

And if not, where in the kernel should I start looking in order to change this manually?

Thanks in advance !

Sincerely,

Eirik Johansen

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

Eirik Alfstad Johansen

Sunday 02 May 2004 8:44:28 am

Could someone from the ez crew please address this issue?

Thanks in advance !

Sincerely,

Eirik Johansen
http://www.netmaking.no/

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

Paul Forsyth

Sunday 02 May 2004 3:12:29 pm

I assume you have looked in the files within 'kernel/setup'. I think all the rules used are in there, especially with the subdirectory 'steps'.

paul

--
http://www.visionwt.com

Jan Borsodi

Sunday 02 May 2004 11:20:33 pm

The file kernel/setup/steps/ezstep_create_sites.php does the entire site initialization.

--
Amos

Documentation: http://ez.no/ez_publish/documentation
FAQ: http://ez.no/ez_publish/documentation/faq

Eirik Alfstad Johansen

Tuesday 11 May 2004 12:27:49 am

Hi Paul and Jan,

Thanks for your answers!

I have browsed through the files in kernel/setup and kernel/setup/steps. So far I've modified the kernel/setup/steps/ezstep_create_sites.php in order to keep the existing available site accesses in settings/override/site.ini.append from being overwritten (BTW: why is this not the default behaviour?).

My next goal is to hide some of the steps in the setup wizard completely, and others partially and instead provide default values. My first step here was to remove some of the values from the $Steps array at the bottom of kernel/setup/steps/ezstep_data.php, but when I ran the setup wizard again after this, all the steps were still performed (I did clear the cache).

Any other place where the setup wizard steps are defined?

Thanks in advance !

Sincerely,

Eirik Johansen
http://www.netmaking.no/

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

Paul Forsyth

Tuesday 11 May 2004 12:41:37 am

The array $StepTable should be the only place where you need to make changes to remove steps. Have you sprinkled a few print statements around to find out whats happening with the code?

paul

--
http://www.visionwt.com

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 19:22:40
Script start
Timing: Jan 18 2025 19:22:40
Module start 'layout'
Timing: Jan 18 2025 19:22:40
Module start 'content'
Timing: Jan 18 2025 19:22:41
Module end 'content'
Timing: Jan 18 2025 19:22:41
Script end

Main resources:

Total runtime0.8939 sec
Peak memory usage4,096.0000 KB
Database Queries68

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0079 588.1719152.6563
Module start 'layout' 0.00790.0050 740.828139.5078
Module start 'content' 0.01290.8796 780.3359614.6406
Module end 'content' 0.89250.0014 1,394.976616.0938
Script end 0.8939  1,411.0703 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.3911160.0002
Check MTime0.00140.1520160.0001
Mysql Total
Database connection0.00090.098210.0009
Mysqli_queries0.813691.0147680.0120
Looping result0.00080.0929660.0000
Template Total0.850995.220.4255
Template load0.00820.919920.0041
Template processing0.842794.268620.4214
Template load and register function0.00010.011110.0001
states
state_id_array0.00110.126810.0011
state_identifier_array0.00140.159520.0007
Override
Cache load0.00210.2310460.0000
Sytem overhead
Fetch class attribute can translate value0.00080.092730.0003
Fetch class attribute name0.00140.152380.0002
XML
Image XML parsing0.00110.126830.0004
class_abstraction
Instantiating content class attribute0.00000.0024100.0000
General
dbfile0.00090.1043230.0000
String conversion0.00000.001040.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
4content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
6content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
10content/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: 26
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs