On Mar 2, 11:23 pm, "Karl Guertin" <[EMAIL PROTECTED]> wrote:
> I just put in a big commit. Notes are on the commit, but I didn't want
> to dump my driver/test script into the repo because it's a hack. I'm
> posting it here so the kids at home can play along. Note that the
> widgets are being built with validators and the data values shown are
> due to a hard-coded provider.get(1) in render().
>
> I'll probably be doing some more hacking throughout the weekend. Let
> me know if I'm stepping on toes.
>
Right know I'm refactoring the Provider API as well as the
DictProvider. After that I'll merge your changes before making some
Arectecture changes.
I plan to make the following changes
* Rename SubView to DataConfig
* Rename SubViewDesigner to DataView and move the render method that
was part of SubView to DataView
* Rename the remainder of the SubViewDesigner sub classes
* add a generateConfig method to the DataView Classes to generate a
ViewConfig object. The ViewConfig object will hold the state for an
individual view
* The processors class attribute of DataView class will be named to
defaultProcessors
* The DataConfig (was SubView) class will be attached one or more
named DataViews and will be responsible for running the processors
instead of the DataView (was SubViewDesigner)
* DataConfig will have some flags to manage the processors so that
processors are only run when needed
* DataConfig will have a render method to render the default view
associated the DataConfig object, a renderView method to render a
particular view that is attached, a renderViews method to render a
list of views, and a renderAll method that will render all attached
views. The reason for all these render methods is to minimize the
number of hits to the DataProvider and to minimize the running of
processors.
* A new class will be added to maintain a list of processors and their
priorties. So the DataViews will no longer control the priority of
the processors.
* Some of the processors will likely be deleted and it will be the
responsibility of the Provider to perform the appropriate actions
during database queries/updates. I'm not likely to make this change
this weekend.
After I make these changes I will upload a new class diagram.
John
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears Trunk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/turbogears-trunk?hl=en
-~----------~----~----~----~------~----~------~--~---