OOo2eZ library

Author Message

Valerio Saggini

Friday 21 January 2005 3:36:45 am

Hi Bard,

On 09.09.2004 you announced to the Oscom list an integration with OpenOffice and eZ publish. The same thing was also announced in the 20/08/2004 Community newsletter as part of the default eZ publish installation in the 3.5 release.

What are the current plans about that? And do you still think to release it as GPL?

Thanks

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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.