Some strange ..

Author Message

Philippe VINCENT-ROYOL

Tuesday 22 April 2008 12:34:26 am

Hello,

I've finally create a import file but i've a strange think.
When i create object and node, default language is eng-GB. I've checked my siteaccess but local, regionalsettings are "fre-FR"
Can i specify the defaut language on eZScript classes? or are they an other solution?

thanks in advance.

Philippe

Certified Developer (4.1): http://auth.ez.no/certification/verify/272607
Certified Developer (4.4): http://auth.ez.no/certification/verify/377321

G+ : http://plus.tl/dspe
Twitter : http://twitter.com/dspe

Philippe VINCENT-ROYOL

Wednesday 23 April 2008 1:48:32 am

find solution..

just add before $script->initialise,

$script->setUseSiteAccess( $mysiteaccess );

Certified Developer (4.1): http://auth.ez.no/certification/verify/272607
Certified Developer (4.4): http://auth.ez.no/certification/verify/377321

G+ : http://plus.tl/dspe
Twitter : http://twitter.com/dspe

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

Main resources:

Total runtime0.0297 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.0056 587.7891152.6094
Module start 'layout' 0.00560.0050 740.398439.3984
Module start 'content' 0.01060.0159 779.796989.4141
Module end 'content' 0.02650.0031 869.210930.3047
Script end 0.0296  899.5156 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00268.6290140.0002
Check MTime0.00113.6978140.0001
Mysql Total
Database connection0.00061.961410.0006
Mysqli_queries0.004013.590730.0013
Looping result0.00000.124510.0000
Template Total0.00217.110.0021
Template load0.00082.780210.0008
Template processing0.00134.276310.0013
Override
Cache load0.00061.930810.0006
General
dbfile0.00031.177280.0000
String conversion0.00000.044240.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