On Wed, Aug 24, 2016 at 4:18 PM, Tom Hayward <tom@tomh.us> wrote:
> On Sat, Mar 30, 2013 at 2:15 PM, Dan Smith <dsmith@danplanet.com> wrote:
>>
>> > # HG changeset patch
>> > # User Dan Smith <dsmith@danplanet.com>
>> > # Date 1364678018 25200
>> > # Node ID bf1c92a33bfd4c730dcc49095ff9a737b30c33c0
>> > # Parent  ede5a4ccfd6efbaed4883c86d93be92509fde8da
>> > [RFC] Abstract Bank and BankModel to MemoryMapping and MappingModel
>>
>> Tom, I think this should let you easily add your scan lists by adding a
>> few teensy subclasses to bankedit and then a few lines to editorset.
>> Let me know if anything is missing here. I can rename bankedit after
>> you add non-bank stuff to it.
>
> This isn't usable yet, is it? I'd like to add scan lists, as was the
> original use case. I imagine an interface like:
>
>     def get_bank_model(self):
>         return [BankModel(self), ScanlistModel(self), GrouplistModel(self)]
>
> I'm guessing the changes to bankedit and editorset to support this
> were never made?

I have partially answered my question. I have multiple MemoryMappings now:

    def get_mapping_models(self):
        return [MD380ZoneModel(self, "Zones"),
                MD380ScanlistModel(self, "Scan Lists"),
                MD380GrouplistModel(self, "Group Lists")]

They all work independently, but when all three are active, only the last one works. I'm guessing this means the changes to editorset were never made.

Last entry working:
https://dl.dropboxusercontent.com/u/8174/Screenshot%20from%202016-08-24%2016-53-53.png


Preceding entries broken:
https://dl.dropboxusercontent.com/u/8174/Screenshot%20from%202016-08-24%2017-01-41.png


No errors printed.


Tom KD7LXL