Share » Forums » General » OOo2eZ library

OOo2eZ library

OOo2eZ library

Friday 21 January 2005 3:36:45 am - 13 replies

Author Message

Bård Farstad

Friday 21 January 2005 6:45:03 am

Hi Valerio,

you can grab a copy of this extension here (just released in alpha):
http://ez.no/community/contribs/import_export/openoffice_org_extension

It is released in the the GPL license and the eZ publish professional license.

--bård

Documentation: http://ez.no/doc

Valerio Saggini

Friday 21 January 2005 7:34:36 am

Many thanks Bard.

Valerio

Gabriel Ambuehl

Sunday 23 January 2005 3:13:37 am

Doesn't seem to work much for me at all. I tried importing a document containing lorem ipsum once with Times, once Arial and bold. Shows all as Arial. And Export creates empty files it seems.

Visit http://triligon.org

Łukasz Serwatka

Sunday 23 January 2005 3:22:59 am

Hi,

Keep in mind that this is a alpha release, so there is probadly a lot of things to do ... If you find a bug just report it to Bård.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Gabriel Ambuehl

Sunday 23 January 2005 3:46:29 am

Yeah I know. But I was wondering if it might be something I did? So, does it work for you?

Visit http://triligon.org

Bård Farstad

Sunday 23 January 2005 7:20:50 am

There are quite some issues which needs to be resolved. Try testing import/export of the supplied example documents.

Fonts, colors and styles are simply ignored in this extension. It does only focus on the actual content, since that is the principle in eZ publish.

I'm happy to test documents which fails import/export so I can solve those issues. Feel free to add a bugreport with sample documents ( as small as possible ) which reproduces a specific problem.

--bård

Documentation: http://ez.no/doc

Gabriel Ambuehl

Sunday 23 January 2005 10:36:58 am

I tried importing article.sxw in the example dir. That seemed to work. But reexporting it still got me an empty document...

Visit http://triligon.org

Łukasz Serwatka

Sunday 23 January 2005 11:10:19 am

Hi

Fatal error: Call to a member function on a non-object in 
e:\public_html\development\extension\oo\modules\oo\ezooimport.php 
on line 77
Fatal error: eZ publish did not finish its request

The execution of eZ publish was abruptly ended, the debug output is present below.
//line 77
$sectionNodeArray =& $dom->elementsByNameNS( 'section', 'http://openoffice.org/2000/text' );

You can reproduce this error in this way

1. Create folder in main node for example called "Import"
2. Import article.sxw from "examples" in to this folder in admin area

Apache 1.3.33 Win2k Pro PHP 4.3.10 (mod_php) MySQL 4.1.7

Edit:
Yes, there is export problem too. I ve create new article from default article class and then I export this article to *.sxw file and file was 0 size. Just was empty.

Edit:
Small design issue under Firefox 1.0
http://serwatka.net/ezoo.jpg

Edit:
ezooimport.php
line 468

default:
                {
                    print( "Unsupported top node " . $node->name() . "<br/" ); //invalid markup
                }

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Ekkehard Dörre

Monday 24 January 2005 3:23:12 pm

Hi,

the problem is
exec( "unzip -o $file -d var/cache/oo", $unzipResult );

you need unzip.exe for windows http://www.info-zip.org/pub/infozip/UnZip.html

or this patch, which will be added soon (if it has ez-standard):

In oo/modules/oo/ezooimport.php line 70 there is the use of unzip via exec.
A better way without exec:
- exec( "unzip -o $file -d var/cache/oo", $unzipResult );

+ require_once('extension/oo/lib/pclzip.lib.php');
+ $archive = new PclZip($file);
+ $list = $archive->extract(PCLZIP_OPT_PATH, "var/cache/oo");

Put into oo/lib/pclzip.lib.php from
http://www.phpconcept.net/pclzip/

for export to in ezooconverter.php too, not yet fixed be me, sorry ;-)

Greetings, ekke

http://www.coolscreen.de - Over 40 years of certified eZ Publish know-how: http://www.cjw-network.com
CJW Newsletter: http://projects.ez.no/cjw_newsletter - http://cjw-network.com/en/ez-publ...w-newsletter-multi-channel-marketing

Łukasz Serwatka

Monday 24 January 2005 11:34:33 pm

Hi Ekkehard,

I found the problem too. You have right. Without unzip for windows eZ pub crashes.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Bård Farstad

Monday 24 January 2005 11:49:32 pm

The next version of the OOo extesion will not use the unzip command line to be more compatible and simpler to install.

--bård

Documentation: http://ez.no/doc

Bård Farstad

Wednesday 26 January 2005 5:01:46 am

If you download the svn version of this extension now you can use it without having the zip and unzip command lines available. However you do need to have the zlib extension in PHP, this comes by default in the Windows version of PHP. The zip and unzip command lines are still used as fallbacks.

--bård

Documentation: http://ez.no/doc

Tony Wood

Wednesday 26 January 2005 5:35:22 am

SVN location for this is http://zev.ez.no/svn/extensions/oo/. if incase you missed it like me

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

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu