Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9258591
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T12:26:43+00:00 2026-06-18T12:26:43+00:00

I have an old-style product with several classes. In the class, I have defined

  • 0

I have an old-style product with several classes. In the class, I have defined the meta_type and I have also registered them in __init__.py, i.e.:

def initialize(context):
    context.registerClass(
        ClassA.ClassA,
        permission = "Add ClassA",
        constructors = (ClassA.manage_addClassA,
                        ClassA.manage_addClassA),
        icon = 'www/images/ClassA.gif'
    )

This worked fine until I updated my Zope from 2.9 to 2.13. Now in the zmi, in the “Add Products” dropdown list, these meta_types are shown two times each.

I tried to track the source of this error:

  1. ObjectManager.py, filtered_meta_types
  2. ObjectManager.py, all_meta_types
  3. getattr(Products, ‘meta_types’, ())

Now I don’t know where to look next 🙂

It’s only a nuisance, it does not cause any problems in the functionality of the product. Maybe I should update it to a new-style zope product, but I’m curious where this error comes from.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T12:26:45+00:00Added an answer on June 18, 2026 at 12:26 pm

    You need to remove your <five:registerPackage /> registration from the configure.zcml file, because your legacy package is using the Products. namespace.

    The Products. namespace has always been auto-loaded; the initialize(context) function is implicitly being loaded for that namespace since before it was an official namespace.

    When Zope started to support packages outside of the Products. namespace, however, the decision was made (wisely) to make registration explicit instead, and the <five:registerPackage /> was introduced to let you use the old registration hook if you still needed it.

    In your case, however, that means your initialize() function is being called twice; once because it is a Products. package, and once because you explicitly registered it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I know old-style Python classes aren't recommended anymore, especially since Python 3 removes them.
I have a templating system that looks similar to old-style ASP code. I run
I have a set of Java 5 source files with old-style Doclet tags, comments
Most of the software company have old software which continue maintain, and they also
This is what I have so far: def get_concrete_name_of_class(klass): Given a class return the
I have a good old-style LAMP webapp. A week ago I needed to add
I'm used to old-style C and and have just recently started to explore c99
I am currently migrating my code from the old-style enum to enum class. The
I have an old style .NET ASMX (SOAP/XML) webservice that is used to upload
I have application with old - style menu. After changing theme to Holo and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.