[Erp5-dev] Base_viewFieldLibrary question
Tomasz Brzezina
tomasz at brzezina.pl
Mon Mar 3 16:13:35 CET 2008
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'
--
Tomasz Brzezina
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3327 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://mail.tiolive.com/pipermail/erp5-dev/attachments/20080303/cbe3dff4/attachment.bin>
More information about the Erp5-dev
mailing list