[Grok-dev] megrok.traject
Christian Klinger
cklinger at novareto.de
Thu Dec 3 09:59:33 EST 2009
Am 03.12.09 13:08, schrieb Martijn Faassen:
> Hi there,
>
> Christian Klinger wrote:
>> Base = declarative_base()
>> class User(Base, grok.Model):
>> ...
>>
>>
>> This works, but i am not sure if it's the right direction?
>>
>> Is this ok to do this way?
>
> It's probably not a good idea to mix Persistent with SQLAlchemy's Base,
> as both involve meta classes. If you want to do this you're better off
> pulling in grokcore.component.Context.
>
> That said, I have absolutely no idea what your problem is so I don't
> understand the solution either. :) I don't understand why changing the
> base class of User would have anything to do with traject.
Hi Martijn,
i can not access the index View for User without the grok.Model
Mixin.
I think this is because the User object has no ILocation settings...
Christian
>
> By the way, you can get rid of all that declarative stuff if you were to
> use megrok.rdb's Model.
>
> Regards,
>
> Martijn
More information about the Grok-dev
mailing list