Subclassing FolderishMember in ArgoUML
by
hedley
—
posted on
May 13, 2009 09:34 AM
—
last modified
May 13, 2009 09:34 AM
ArchgenXML cannot generate classes that subclass Remember's FolderishMember. This page shows you how to do it.
Create a class and give it the <remember> stereotype. On tagged values set base_class to BaseMember and imports to from Products.remember.content.member import FolderishMember as BaseMember. That's it!
Why is this needed? The <remember> stereotype is responsible for AGX generating code to register your content type with membrane_tool, but in the process it assumes BaseMember is the base class. BaseMember is not folderish and no amount of <stub> stereotyped classes can convince it otherwise. By aliasing FolderishMember to BaseMember we can fool AGX.






