Must Love Zope

Found some lovely piece of code deep into the FTP parts of Zope 2 last
saturday, one of them is truely ugly. It’s listing the contents of
the current and parent folders for no apparent reason (or at least, it
didn’t make sense either to me or Chris McDonough).

The code in question is in the manage_FTPstat method of
OFS.ObjectManager. Tracing back the source of this code, it seems
to have been (surprisingly) introduced by Jim Fulton, back in
1999. Here’s part of Jim’s checkin.

Later on, Amos Latteier changed part of the code (namely,
manage_FTPlist) to use a slightly more friendlier, yet equally
confusing is_acquired method. Here’s part of Amos’ checkin.

I’m now sitting here, trying to make sense of this code and wondering
what was the original intention in the first place. Would anyone have
a clue?

3 thoughts on “Must Love Zope

  1. Maybe there is no reason
    I think life is too short to worry overmuch about what crazy old code is doing. If something looks like junk, maybe it’s just junk.

    This attitude saves a lot of time and aggravation :)

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s