Override module in flower eggs?

I want to override method ( assignment_mapping_from_key) in:

eggs/plone.app.portlets-1.1.5.1-py2.4.egg/plone/app/portlets/utils.py

... because when I install the portlet in portlets.xml, I have to use the full path in the attribute key, and I don’t have it (development and development servers have different URLs), I want to use relative. I would like to "override" this module in my personal module.

Is it possible? I cannot update this egg and not have access to the egg on the server.

+3
source share
2 answers

I can’t say I recommend it, but you can see:

, , .

Plone , , ( , ..)

, , ( ), , assign_mapping_from_key.

+4

, ? ( "import_various " ), Python.

, Plone, , , , / Plone.

+1