[Erp5-dev] Base_viewFieldLibrary question

bartek bartek at erp5.pl
Mon Mar 3 16:20:08 CET 2008


Tomasz Brzezina wrote:
> bartek pisze:
>> Tomasz Brzezina wrote:
>>> bartek pisze:
>>>> This is normal :)
>>>>
>>>> If you want to test a form, do it in some "real" context, 
>>>> appropriate for the form.
>>> (in real context it won't work neither)
>>
>> Ok, try this:
>>
>> - in "custom" skin, create an ERP5 Form, name it "Person_test"
>>
>> - in the form, add a ProxyField, give it an id "my_gender"
>>
>> - in the field configuraion set "Form ID" to Base_viewFieldLibrary and 
>> "Field ID" to my_category
>>
>> - view Person_test in context of a Person object (to make it work for 
>> real you have to add some categories to portal_categories/gender base 
>> category)
>>
>> - edit Person_view.my_gender field so that Field ID is my_category_list
>>
>> - see what has changed
> Yes, I can see a difference:
> 
> In first case: I can see combobox with Male Female - as expected
> 
> In second case:
> 
> Site Error
> 
> An error was encountered while publishing this resource.
> 
> Error Type: AttributeError
> Error Value: 'NoneType' object has no attribute 'set'

Works for me, but I'm currently on 18850. Can somebody running HEAD have 
a look?

B.

> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Erp5-dev mailing list
> Erp5-dev at erp5.org
> http://mail.nexedi.com/mailman/listinfo/erp5-dev


-- 
"feelings affect productivity. (...) unhappy people write worse 
software, and less of it."
Karl Fogel, "Producing Open Source Software"



More information about the Erp5-dev mailing list