[Grok-dev] Re: releasing 0.12.1

Raphael Ritz r.ritz at biologie.hu-berlin.de
Wed Jun 4 09:37:43 EDT 2008


Philipp von Weitershausen wrote:
> On 4 Jun 2008, at 15:25 , Sebastian Ware wrote:
>> Could someone show me what a module alias looks like? I have googled 
>> but not found any example.
> 
> 
> import the.new.module
> sys.modules['old.module'] = the.new.module

And if you do migrate your content as advised you need
the alias only for the migration.

If you have to keep it around for whatever reason
you can easily end up with something like

http://svn.plone.org/svn/collective/CMFBibliographyAT/tags/release-0.9.0b1/__init__.py

(which I can give a bad example because I wrote this
after some heavy package restructuring)

Raphael



More information about the Grok-dev mailing list