[Grok-dev] Re: Template directories
Sebastian Ware
sebastian at urbantalk.se
Thu Jun 26 08:09:21 EDT 2008
26 jun 2008 kl. 14.03 skrev Martijn Faassen:
> Brandon Craig Rhodes wrote:
> [snip]
>> Which, incidentally, we do not have in Grok today; from one Grok
>> app to
>> another, there's no way to predict which files define the Models,
>> which
>> files define Views (sometimes with the corresponding Models,
>> sometimes
>> separate), where the Indexes have been declared (you have to
>> therefore
>> search the entire code base to see for which Models there are
>> indexes),
>> and where all of the Traversers are that make URLs work if the ZODB
>> is
>> not beneath a particular container or objects
> [snip]
>
> This is true, we don't have that in Grok today. I'm not sure whether
> it's a good idea, though I've seen it work reasonably well in
> projects like TurboGears.
In my use case it is very useful to keep everything related to a
specific class in the same file because it simplifies code reuse, but
in other cases I can imagine there are benefits of "horizontal
integration". I think it is good not to enforce a certain layout.
Mvh Sebastian
More information about the Grok-dev
mailing list