import via conversion csv=>package

Author Message

Andrei Barhatov

Tuesday 01 February 2005 7:56:06 pm

I want to export my excel data to ez and I'm about creation of utlity for converting csv file to ez package. Some small questions:

1) is it correct way on the whole?

2) are all xml elements in objects' definition necessary? e.g. in exported package objects are defined in such complicated manner:

<object... ezremote:section_id="5" ezremote:owner_id="14" ezremote:class_id="25" ezremote:published="Tue, 01 Feb 2005 07:51:28 GMT" ezremote:modified="Tue, 01 Feb 2005 08:03:07 GMT" remote_id="af6f3dfe6fc092e12e8a3d0f45da2c9d" class_remote_id="f0c83bf5cdca61f885e89e180f741c71" ezremote:class_identifier="edu_institution">...

I'm going to substitute it by:

<object xmlns:ezremote="http://ez.no/ezobject" ezremote:class_id="$CLASS_ID" ezremote:class_identifier="$CLASS_IDENTIFIER">

Is it correct? Experimentally it will be verified later, but maybe anybody can suggest something about it right now?

Andrei Barhatov

Wednesday 02 February 2005 9:07:21 pm

1) seems work %]
2) some fields are really essential, but some are not

Later maybe I post my code to "contributions" section. The prog is coded in Perl, tested on Windows, seems work...

gabriele francescotto

Wednesday 13 July 2005 2:02:43 am

Hi Andrei, what you implemented sounds really interesting, it would be useful for some tests I'm doing in this period, exporting and importing data between an excel file and ez publish.
I would be happy to test your application too, if you will post it.

www.opencontent.it
via Verdi 19, 38100 Trento

Fraser Hore

Tuesday 01 November 2005 1:59:39 am

This utility would be really useful! Could you please provide an update on the status and post it to the contributions section?

Cheers,

Fraser

Jorge estévez

Wednesday 24 September 2008 4:48:35 am

Hello!

Is it already at the contributions section?

I need a link

Thanks,

Diseño Web Cuba
Web Design Cuba
www.elfosdesign.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 15:01:08
Script start
Timing: Jan 18 2025 15:01:08
Module start 'layout'
Timing: Jan 18 2025 15:01:08
Module start 'content'
Timing: Jan 18 2025 15:01:08
Module end 'content'
Timing: Jan 18 2025 15:01:08
Script end

Main resources:

Total runtime0.0171 sec
Peak memory usage4,096.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0050 589.0469152.6250
Module start 'layout' 0.00500.0038 741.671939.4453
Module start 'content' 0.00880.0063 781.117293.3047
Module end 'content' 0.01510.0020 874.421934.3047
Script end 0.0170  908.7266 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002615.4757140.0002
Check MTime0.00106.1537140.0001
Mysql Total
Database connection0.00095.375210.0009
Mysqli_queries0.003218.916630.0011
Looping result0.00000.075510.0000
Template Total0.00169.510.0016
Template load0.00095.011810.0009
Template processing0.00084.426210.0008
Override
Cache load0.00063.516410.0006
General
dbfile0.00137.909080.0002
String conversion0.00000.041940.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