[Grok-dev] Re: Recipe for "egg-like" reuse?

Martijn Faassen faassen at startifact.com
Wed Apr 9 11:20:50 EDT 2008


Uli Fouquet wrote:
> Hi there,
> 
> Martijn Faassen wrote:
> 
>>> I have come to the point where I can create an instance of my MasterApp 
>>> in the grok admin interface. However, the application won't find the 
>>> views I have in my AddApp, eventhough the application class of MasterApp 
>>> has inherited from a class of AddApp for which these views should be 
>>> registered (through grok.context).
>> I don't see evidence of this in your example: the Edit view is attached 
>> to the ProtonCMS model, which doesn't inherit from Navicast at all.
> 
> Yes, but that's okay, isn't it? I mean the requirement should be that
> Navicast inherits from ProtonCMS (not the other way round), which is the
> case here.

Ah, wait, I didn't read it correctly. I had assumed AddApp was the 
extension to MasterApp, but it's really that MasterApp builds on top of 
AddApp.

Regards,

Martijn




More information about the Grok-dev mailing list