[Zope] Going to 3.0

2006-01-09 Thread Fernando Lujan
We use a Psycopg connection, and Z SQL Objects... We don't have any
programs written in python that use zope interfaces and so on.

We have a entire site written in DTML in Zope 2.x. Now, after some
discuss here We want to migrate it to Zope3.x. and start to develop
using the zope 3 facilities and OO and ZPT.

I already install Zope 3.1.0 and try to copy the Data.fs. But it
produces a lot of erros. How can I handle this?

Will exist a way to migrate from Zope 2.x to Zope 3.x?

Thanks in advance.

Fernando Lujan
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Going to 3.0

2006-01-09 Thread Lennart Regebro
On 1/9/06, Fernando Lujan [EMAIL PROTECTED] wrote:
 We use a Psycopg connection, and Z SQL Objects... We don't have any
 programs written in python that use zope interfaces and so on.

 We have a entire site written in DTML in Zope 2.x. Now, after some
 discuss here We want to migrate it to Zope3.x. and start to develop
 using the zope 3 facilities and OO and ZPT.

 I already install Zope 3.1.0 and try to copy the Data.fs. But it
 produces a lot of erros. How can I handle this?

 Will exist a way to migrate from Zope 2.x to Zope 3.x?

Zope 3 is not backwards compatible with Zope 2. There will probably
not exist an *easy* way to migrate as such. People are slowly
working on merging the frameworks so that it will be possible to run
both Zope 2 and Zope 3 programs on the same server, but we are not
there yet. Migration will be an application level affair, meaning that
if you have a custom Zope 2 application, you will have to make the
migration yourself.

Sorry for this negative sounding answer. Zope 3 is super cool, but it
is a super cool development platform. Zope 2 was super cool too, and
Zope 3 is even super cooler. But moving to Zope 3 is at the moment a
lot of development work (you basically need to rewrite your
applictaion completely) and unless you plan on doing that anyway, you
should probably just stick with Zope 2 for the time being. :)

--
Lennart Regebro, Nuxeo http://www.nuxeo.com/
CPS Content Management http://www.cps-project.org/
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Going to 3.0

2006-01-09 Thread Lennart Regebro
Oh, I forgot:

http://blogs.nuxeo.com/sections/blogs/lennart_regebro/2005_10_04_zope2-vs-zope3-faq
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Going to 3.0

2006-01-09 Thread Andreas Jung



--On 9. Januar 2006 12:41:46 -0200 Fernando Lujan [EMAIL PROTECTED] wrote:



I already install Zope 3.1.0 and try to copy the Data.fs.



From where to where?



But it
produces a lot of erros. How can I handle this?


Which errors?

-aj

pgp3kkoNEODbX.pgp
Description: PGP signature
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Going to 3.0

2006-01-09 Thread Paul Winkler
On Mon, Jan 09, 2006 at 12:41:46PM -0200, Fernando Lujan wrote:
 We use a Psycopg connection, and Z SQL Objects... We don't have any
 programs written in python that use zope interfaces and so on.
 
 We have a entire site written in DTML in Zope 2.x. Now, after some
 discuss here We want to migrate it to Zope3.x. and start to develop
 using the zope 3 facilities and OO and ZPT.
 
 I already install Zope 3.1.0 and try to copy the Data.fs. But it
 produces a lot of erros. How can I handle this?

Zope 3 is not backward-compatible to Zope 2.
You can not copy a Data.fs between them.
 
 Will exist a way to migrate from Zope 2.x to Zope 3.x?

In general the migration path looks like:

1) Rewrite your app gradually using Zope 2.8, 2.9, 2.10 (when it comes
out) and gradually leverage more and more features of zope 3 via the
Five compatibility layer.  (This is likely to be much harder if you
have significant dependencies on third-party code.)

2) ??? 

3) export your data from zope 2 somehow, and re-import into zope 3. You
may have to write some of your own serialization code.

Step 2 is not well defined at this point in time :=)

-- 

Paul Winkler
http://www.slinkp.com
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Going to 3.0

2006-01-09 Thread Fernando Lujan
2006/1/9, Andreas Jung [EMAIL PROTECTED]:
  I already install Zope 3.1.0 and try to copy the Data.fs.
 From where to where?

From /home/zope/zope2.0/var/Data.fs to /home/zope/zope3.0/var/



 But it
  produces a lot of erros. How can I handle this?

 Which errors?

Hi Andreas,

Thanks for the reply. :)

This behavior is intriguer since we only use DTML with logic and
stuff... Nothing special as our own products etc... We sure have some
products, but it should not crash the main system.

Oh, and now I tried now Zope 3.2.0.

2006-01-09T17:15:19 WARNING ZODB.FileStorage Ignoring index for
/home/flujan/tmp/zinstance/var/Data.fs
Traceback (most recent call last):
 File ./runzope, line 48, in ?
   run()
 File ./runzope, line 44, in run
   main([-C, CONFIG_FILE] + sys.argv[1:])
 File /home/flujan/tmp/zope/zope3.2.0/lib/python/zope/app/twisted/main.py,
line 74, in main
   service = setup(load_options(args))
 File /home/flujan/tmp/zope/zope3.2.0/lib/python/zope/app/twisted/main.py,
line 143, in setup
   notify(zope.app.appsetup.interfaces.DatabaseOpened(db))
 File /home/flujan/tmp/zope/zope3.2.0/lib/python/zope/event/__init__.py,
line 23, in notify
   subscriber(event)
 File 
/home/flujan/tmp/zope/zope3.2.0/lib/python/zope/app/event/dispatching.py,
line 66, in dispatch
   for ignored in subscribers(event, None):
 File /home/flujan/tmp/zope/zope3.2.0/lib/python/zope/component/__init__.py,
line 181, in subscribers
   return sitemanager.subscribers(objects, interface)
 File /home/flujan/tmp/zope/zope3.2.0/lib/python/zope/component/site.py,
line 89, in subscribers
   return self.adapters.subscribers(required, provided)
 File /home/flujan/tmp/zope/zope3.2.0/lib/python/zope/interface/adapter.py,
line 481, in subscribers
   subscribers = [subscription(*objects)
 File 
/home/flujan/tmp/zope/zope3.2.0/lib/python/zope/app/appsetup/bootstrap.py,
line 135, in bootStrapSubscriber
   db, connection, root, root_folder = getInformationFromEvent(event)
 File 
/home/flujan/tmp/zope/zope3.2.0/lib/python/zope/app/appsetup/bootstrap.py,
line 120, in getInformationFromEvent
   root_folder = root.get(ZopePublication.root_name, None)
AttributeError: 'PersistentMapping' object has no attribute 'get'
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Going to 3.0

2006-01-09 Thread Fernando Lujan
2006/1/9, Fernando Lujan [EMAIL PROTECTED]:
 2006/1/9, Andreas Jung [EMAIL PROTECTED]:

  Which errors?

Hi Andreas,

Thanks for the reply. :)

This behavior is intriguer since we only use DTML with logic and
stuff... Nothing special as our own products etc... We sure have some
products, but it should not crash the main system.

Oh, and now I tried now Zope 3.2.0.

2006-01-09T17:15:19 WARNING ZODB.FileStorage Ignoring index for
/home/flujan/tmp/zinstance/var/Data.fs
Traceback (most recent call last):
 File ./runzope, line 48, in ?
   run()
 File ./runzope, line 44, in run
   main([-C, CONFIG_FILE] + sys.argv[1:])
 File /home/flujan/tmp/zope/zope3.2.0/lib/python/zope/app/twisted/main.py,
line 74, in main
   service = setup(load_options(args))
 File /home/flujan/tmp/zope/zope3.2.0/lib/python/zope/app/twisted/main.py,
line 143, in setup
   notify(zope.app.appsetup.interfaces.DatabaseOpened(db))
 File /home/flujan/tmp/zope/zope3.2.0/lib/python/zope/event/__init__.py,
line 23, in notify
   subscriber(event)
 File 
/home/flujan/tmp/zope/zope3.2.0/lib/python/zope/app/event/dispatching.py,
line 66, in dispatch
   for ignored in subscribers(event, None):
 File /home/flujan/tmp/zope/zope3.2.0/lib/python/zope/component/__init__.py,
line 181, in subscribers
   return sitemanager.subscribers(objects, interface)
 File /home/flujan/tmp/zope/zope3.2.0/lib/python/zope/component/site.py,
line 89, in subscribers
   return self.adapters.subscribers(required, provided)
 File /home/flujan/tmp/zope/zope3.2.0/lib/python/zope/interface/adapter.py,
line 481, in subscribers
   subscribers = [subscription(*objects)
 File 
/home/flujan/tmp/zope/zope3.2.0/lib/python/zope/app/appsetup/bootstrap.py,
line 135, in bootStrapSubscriber
   db, connection, root, root_folder = getInformationFromEvent(event)
 File 
/home/flujan/tmp/zope/zope3.2.0/lib/python/zope/app/appsetup/bootstrap.py,
line 120, in getInformationFromEvent
   root_folder = root.get(ZopePublication.root_name, None)
AttributeError: 'PersistentMapping' object has no attribute 'get'
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )