toString() prefixes items with space

Author Message

zurgutt -

Saturday 04 October 2008 4:45:08 am

Issue http://issues.ez.no/IssueView.php?Id=13708&activeItem=1

ezkeyword attribute->toString() prefixes comma separated list items with space. This does not match description in the doc:

ezkeyword
coma separated list of keywords

and is generally undesirable and confusing, because this list is usually used programmatically, typically converted to item array with explode() and having spaces necessitates trimming these spaces before values can be used.

Probably the same applies to toString format of some other datatypes, I haven't checked others.

Certified eZ developer looking for projects.
zurgutt at gg.ee

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 04:32:42
Script start
Timing: Jan 18 2025 04:32:42
Module start 'layout'
Timing: Jan 18 2025 04:32:42
Module start 'content'
Timing: Jan 18 2025 04:32:43
Module end 'content'
Timing: Jan 18 2025 04:32:43
Script end

Main resources:

Total runtime1.0356 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.0067 589.0547152.6250
Module start 'layout' 0.00670.0025 741.679739.4453
Module start 'content' 0.00921.0239 781.1250464.2188
Module end 'content' 1.03310.0025 1,245.34388.1563
Script end 1.0356  1,253.5000 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.3212160.0002
Check MTime0.00140.1373160.0001
Mysql Total
Database connection0.00190.185010.0019
Mysqli_queries0.993495.9201460.0216
Looping result0.00050.0448440.0000
Template Total1.000396.620.5002
Template load0.00230.221620.0011
Template processing0.998096.368520.4990
Template load and register function0.00010.008110.0001
states
state_id_array0.00080.080010.0008
state_identifier_array0.00240.227420.0012
Override
Cache load0.00150.1487100.0002
Sytem overhead
Fetch class attribute can translate value0.00050.051410.0005
Fetch class attribute name0.00060.061320.0003
XML
Image XML parsing0.00050.043610.0005
class_abstraction
Instantiating content class attribute0.00000.000320.0000
General
dbfile0.00100.0956170.0001
String conversion0.00000.000840.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
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/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: 7
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs