Hi,
I think this can be avoided if the sheet type is determined in the
userfactory plugin (PlonePAS/plugins/ufactory.py) rather than
directly in the plugin.
That is certainly the wrong approach. User factories do not know
anything about properties and should not know anything about them.
The user factory plugin is where the we get to customise the sort of
propertysheet to add: indeed, it seems that is one of the reasons why
PlonePAS provides it's own userfactory plugin.
If so that was the wrong thing to do. I consider this a PAS bug:
PropertiedUser should support IPropertySheet instances as well as
dictionaries. I will fix that for the upcoming PAS 1.5 release.
Great! I will keep my eyes peeled ...
Let me know if you need any assistance/additional testing.
Miles
_______________________________________________
Product-Developers mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/product-developers