DSM

NAVIGATION
CATEGORIES
REFERRENCE
LINKS
  • Legacy Perl code and Zope. A pipe dream?

    6 answers - 1865 bytes - related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

    Lennart Regebro <regebro (AT) gmail (DOT) comwrote:
    10/3/06, Derek Basch <dbasch (AT) yahoo (DOT) comwrote:
    I have about a million lines of Perl code/crap that I would like to refactor to Zope.
    Is this even possible?
    Refactor? No. But it's quite likely that you can redo it quite quickly
    with Zope thanks to all the third-party products.
    What does you perl code/crap do? What type of site is it?
    Thanks for the responses everyone.
    Perhaps refactor wasn't the best choice of words. The site is a very large online gaming website
    (not gambling). The legacy perl code does many, many things (administration, game play,
    accounting, message boards, publishing, mail, etc) and really is around a million lines.
    Rewriting the current perl code in python/zope would take a small eternity even with the rapid
    development that zope permits.
    I saw that the zope-perl project is virtually dead and was hoping that some magical zope to perl
    bridge existed. Something that would allow me to use our existing perl code as an external method
    or someting similar. Forgive me if my zope terminology is a bit off as I haven't worked with zope
    in about three years.
    As it stands it looks like I will need to use a PHP or Perl web application framework.
    PHP because it has decent Perl to PHP support:
    Perl, for obvious reasons. Perhaps something like Catalyst:
    However, neither of the above solutions is as enticing as the joy I am sure I would get from Zope.
    Which way should I go?
    Thanks,
    Derek Basch
    Do You Yahoo!?
    Tired of spam? Yahoo! Mail has the best spam protection around
    http://mail.yahoo.com
    Zope maillist - Zope (AT) zope (DOT) org
    ** No cross posts or HTML encoding! **
    (Related lists -
    )
  • No.1 | | 2321 bytes | |

    Message
    From: "Derek Basch" <dbasch (AT) yahoo (DOT) com>
    To: "Lennart Regebro" <regebro (AT) gmail (DOT) com>; <zope (AT) zope (DOT) org>
    Sent: Tuesday, 03, 2006 1:25 PM
    Subject: Re: [Zope] Legacy Perl code and Zope. A pipe dream?

    Lennart Regebro <regebro (AT) gmail (DOT) comwrote:
    >
    >10/3/06, Derek Basch <dbasch (AT) yahoo (DOT) comwrote:
    >I have about a million lines of Perl code/crap that I would like to
    >refactor to Zope.
    >Is this even possible?
    >>

    >Refactor? No. But it's quite likely that you can redo it quite quickly
    >with Zope thanks to all the third-party products.
    >>

    >What does you perl code/crap do? What type of site is it?
    >

    Thanks for the responses everyone.

    Perhaps refactor wasn't the best choice of words. The site is a very large
    online gaming website
    (not gambling). The legacy perl code does many, many things
    (administration, game play,
    accounting, message boards, publishing, mail, etc) and really is around
    a million lines.
    Rewriting the current perl code in python/zope would take a small eternity
    even with the rapid
    development that zope permits.

    I saw that the zope-perl project is virtually dead and was hoping that
    some magical zope to perl
    bridge existed. Something that would allow me to use our existing perl
    code as an external method
    or someting similar. Forgive me if my zope terminology is a bit off as I
    haven't worked with zope
    in about three years.

    As it stands it looks like I will need to use a PHP or Perl web
    application framework.

    PHP because it has decent Perl to PHP support:

    Perl, for obvious reasons. Perhaps something like Catalyst:

    However, neither of the above solutions is as enticing as the joy I am
    sure I would get from Zope.
    Which way should I go?

    It sounds like you already have a web application (in perl) up and running,
    so what do you want Zope (or anything else) to accomplish for you?

    Jonathan

    Zope maillist - Zope (AT) zope (DOT) org

    ** No cross posts or HTML encoding! **
    (Related lists -

    )
  • No.2 | | 1174 bytes | |

    If I can provide any suggestion, take a look at "Refactoring", by
    Martin Fowler, and start applying the refactorings there provided.
    This is not, I think a Zope/Perl/Python/PHP issue, but rather a
    refactoring/migration problem, and it should be explored in that
    places (just a suggestion, of course).

    Regards
    Marco

    10/3/06, Derek Basch <dbasch (AT) yahoo (DOT) comwrote:
    Jonathan <dev101 (AT) magma (DOT) cawrote:

    Yes, the application is currently deployed but it is the gnarliest mess of ten year old spaghetti
    code you have ever seen. No session handling, no automatic CGI variable parsing, no
    authenticationno fun. I am attempting to find a path towards a proper web application
    framework without having to rewrite every single line of legacy code. For example, all new
    projects would adhere to framework xyz and the legacy code would still play nicely with the
    framework.
    --

    Do You Yahoo!?
    Tired of spam? Yahoo! Mail has the best spam protection around
    http://mail.yahoo.com

    Zope maillist - Zope (AT) zope (DOT) org

    ** No cross posts or HTML encoding! **
    (Related lists -
    )
  • No.3 | | 322 bytes | |

    there is some info in zopebook 2.6 edition in the advanced scripting
    chapter:

    where there are some links in this chapter where it mentions "activestate":

    hth,

    Josh

    Zope maillist - Zope (AT) zope (DOT) org

    ** No cross posts or HTML encoding! **
    (Related lists -

    )
  • No.4 | | 517 bytes | |

    Sorry, just noticed thats already been considered

    04/10/06, Josh Burvill <jburvill (AT) gmail (DOT) comwrote:

    there is some info in zopebook 2.6 edition in the advanced scripting
    chapter:

    --
    where there are some links in this chapter where it mentions
    "activestate":

    hth,

    Josh
    >
    >
    >
    >


    Zope maillist - Zope (AT) zope (DOT) org

    ** No cross posts or HTML encoding! **
    (Related lists -

    )
  • No.5 | | 229 bytes | |

    10/4/06, Derek Basch <dbasch (AT) yahoo (DOT) comwrote:
    Thanks for all the replies everyone! This all certainly helped me in deciding which direction to
    go.
    Well, that's all we can hope for at this point! :)
  • No.6 | | 1316 bytes | |

    Derek Basch wrote:
    [snip]
    I saw that the zope-perl project is virtually dead and was hoping that some magical zope to perl
    bridge existed. Something that would allow me to use our existing perl code as an external method
    or someting similar. Forgive me if my zope terminology is a bit off as I haven't worked with zope
    in about three years.

    As it stands it looks like I will need to use a PHP or Perl web application framework.

    The closest thing right now available that might help you is Python WSGI
    technology. Zope 3 has WSGI support; Zope 2's support is still
    prototypical as far as I know, but Ian Bicking actually mentions work on
    this in the blog entry I link to below too.

    There has been some work done to bridge PHP into WSGI, allowing PHP
    applications can be embedded into Python applications.

    What you might be able to do is write something based on WSGI that
    allows bridging Perl applications into Python applications. This should
    allow you then to embed these Perl applications into a Zope 3 context.

    Anyway, not a ready-made answer, but perhaps it will help.

    Regards,

    Martijn

    Zope maillist - Zope (AT) zope (DOT) org

    ** No cross posts or HTML encoding! **
    (Related lists -

    )

Re: Legacy Perl code and Zope. A pipe dream?


max 4000 letters.
Your nickname that display:
In order to stop the spam: 8 + 7 =
QUESTION ON "DSM"

EMSDN.COM