#2 — Error with more than one form

by Fabien Moret last modified Jul 20, 2011 05:23 AM
State Postponed
Version: 1.0
Area Functionality
Issue type Bug
Severity Medium
Submitted by Fabien Moret
Submitted on Jan 12, 2011
Responsible Nathan Van Gheem
Target release:
Hello!

I don't really know the progress of this product but I'm having an error when creating two forms with different fields each one with a d2c adapter.

the error is:
...
Module zope.tales.tales, line 696, in evaluate
URL: file:/home/Plone4/buildout-cache/eggs/Products.Archetypes-1.6.1-py2.6.egg/Products/Archetypes/skins/archetypes/widgets/selection.pt
Line 23, Column 12
Expression: <PythonExpr field.Vocabulary(context)>
Names:
{'container': <PloneSite at /Plone>,
 'context': <FormSaveData2ContentEntry at /Plone/tata/dada/2011-01-12.6759904732>,
 'default': <object object at 0x7f62e64cca00>,
 'here': <FormSaveData2ContentEntry at /Plone/tata/dada/2011-01-12.6759904732>,
 'loop': {u'field': <Products.PageTemplates.Expressions.PathIterator object at 0xb9c96d0>},
 'nothing': None,
 'options': {'args': ()},
 'repeat': <Products.PageTemplates.Expressions.SafeMapping object at 0xba767e0>,
 'request': <HTTPRequest, URL=http://192.168.15.236:7080/[…]/base_view>,
 'root': <Application at >,
 'template': <FSPageTemplate at /Plone/base_view used for /Plone/tata/dada/2011-01-12.6759904732>,
 'traverse_subpath': [],
 'user': <PropertiedUser 'admin'>}
Module Products.PageTemplates.ZRPythonExpr, line 49, in __call__
__traceback_info__: field.Vocabulary(context)
Module PythonExpr, line 1, in <expression>
Module Products.PloneFormGen.content.fieldsBase, line 433, in Vocabulary
AttributeError: 'NoneType' object has no attribute 'getFgTVocabulary'

More generally if I add a new field in the form, the new field is not added in the d2c adapter. Only the fields that was there the first time the d2c was created are in the content.
I've tried to delete and recreate the d2c but nothing happens, it keeps the old fields.

Otherwise it's a very very promising product!

Thanks

Fabien Moret
Added by Nathan Van Gheem on Jul 20, 2011 05:23 AM
Issue state: UnconfirmedPostponed
Responsible manager: (UNASSIGNED)vangheem
Which version of d2c are you using. This seems like very odd behavior and should not be happening.

Can you give the latest a try. I apologize for not responding sooner--I dont' seem to get email notifications on issues...

No responses can be added.