AW: Compound/ArrayField
Michael Graf <[email protected]>
| Newsgroups | gmane.comp.web.zope.german |
|---|---|
| Message-ID | <[email protected]> |
Wie gesagt, CMFEditions hab ich zwar drinnen (wirft ja mehr Fehler, wenn ichs löschen) aber nicht aktiviert.
Ja, CompoundField ist installiert, auch schon mehrmals reinstalliert ;-)
Das Problem tauch immer auf, wenn ich meinen CT erstellen will. Also übers "add new.." Dropdown, dann erscheint der nette Text "Since you are a admin..."
Traceback:
---------------------------------------------------------------
Time 2009/04/28 13:09:53.658 GMT+2
User Name (User Id) admin (admin)
Request URL http://localhost:8080/Plone/portal_factory/Nachricht/nachricht.2009-04-28.9910046089/base_edit
Exception Type AttributeError
Exception Value Macro EnhancedArrayWidget does not exist for <Nachricht at nachricht.2009-04-28.9910046089>
Warning: Macro expansion failed
Warning: exceptions.KeyError: 'macro'
.
.
.
* Module zope.tales.tales, line 696, in evaluate
URL: file:C:\Server\plone\Data\Products\CMFEditions\skins/CMFEditions\edit_macros.pt
Line 46, Column 18
Expression: <PythonExpr here.widget(field.getName(), mode='edit')>
Names:
{'container': <PloneSite at /Plone>,
'context': <Nachricht at /Plone/portal_factory/Nachricht/nachricht.2009-04-28.9910046089 used for /Plone>,
'default': <object object at 0x009AC528>,
'here': <Nachricht at /Plone/portal_factory/Nachricht/nachricht.2009-04-28.9910046089 used for /Plone>,
'loop': {u'field': <Products.PageTemplates.Expressions.PathIterator object at 0x073C98D0>,
u'fieldset': <Products.PageTemplates.Expressions.PathIterator object at 0x07473250>},
'nothing': None,
'options': {'args': (),
'state': <Products.CMFFormController.ControllerState.ControllerState object at 0x06BCCE10>},
'repeat': <Products.PageTemplates.Expressions.SafeMapping object at 0x06B09C38>,
'request': <HTTPRequest, URL=http://localhost:8080/Plone/portal_factory/Nachricht/nachricht.2009-04-28.9910046089/base_edit>,
'root': <Application at >,
'template': <FSControllerPageTemplate at /Plone/base_edit used for /Plone/portal_factory/Nachricht/nachricht.2009-04-28.9910046089>,
'traverse_subpath': [],
'user': <PropertiedUser 'admin'>}
* Module Products.PageTemplates.ZRPythonExpr, line 49, in __call__
__traceback_info__: here.widget(field.getName(), mode='edit')
* Module PythonExpr, line 1, in <expression>
* Module Products.Archetypes.BaseObject, line 287, in widget
* Module Products.Archetypes.Renderer, line 24, in render
* Module Products.Archetypes.generator.widget, line 147, in __call__
AttributeError: Macro EnhancedArrayWidget does not exist for <Nachricht at nachricht.2009-04-28.9910046089>
---------------------------------------------------------------
Der betreffende Code in CMFEditions\skins\CMFEditions\edit_macros.pt
---------------------------------------------------------------
<tal:fields repeat="field python:schematas[fieldset].editableFields(here, visible_only=True)">
<metal:fieldMacro use-macro="python:here.widget(field.getName(), mode='edit')" />
</tal:fields>
---------------------------------------------------------------
Michael Graf
Webmaster
IMC Fachhochschule Krems
University of Applied Sciences Krems
A-3500 Krems, Austria, Europe
Office:
Campus Krems, Trakt G, Room 4.08
T: +43-(0)2732-802- ext. 519
F: +43-(0)2732-802-4
E-Mail: [email protected]
-----Ursprüngliche Nachricht-----
Von: [email protected] [mailto:[email protected]] Im Auftrag von Jens W. Klein
Gesendet: Dienstag, 28. April 2009 12:55
An: Deutschsprachige Zope-Benutzer-Liste
Betreff: Re: [dzug-zope] Compound/ArrayField
Hallo,
also ich hab das Compoundfield von 2.5 bis 3.3 im Einsatz ohne Probleme.
Zugegebenermassen ohne Versionierung, weil ich da im Allgemeinen die Finger von lasse, siehe Andreas Antwort.
Bloede Frage: Du hast das Compoundfield schon via "Zusatzprodukte"
installiert?
Ansonsten hilft auch ein Code-Schnipsel weiter, der das Problem auslöst.
gruss
Jens
Am Dienstag, den 28.04.2009, 12:33 +0200 schrieb Michael Graf:
> Hallo Liste,
>
> hat hier schon jemand das „CompoundField“ auf Plone 3.1.7+
> installiert?
>
>
>
> Ich bekomme bei jeder Anwendung (Also mein eigenes CT mit einem
> ArrayField) folgenden Error – wenn ich das CT erstellen will
> (portalFactory):
>
>
>
>
>
> Time 2009/04/28 12:21:01.642 GMT+2
>
> User Name (User Id) admin (admin)
>
> Request URL
> http://localhost:8080/Plone/portal_factory/NestedArrayFieldTest/nested
> arrayfieldtest.2009-04-28.0607213030/base_edit
>
> Exception Type AttributeError
>
> Exception Value Macro EnhancedArrayWidget does not
> exist for <NestedArrayFieldTest at
> nestedarrayfieldtest.2009-04-28.0607213030>
> .
> .
> .
> Warning: Macro expansion failed
>
> Warning: exceptions.KeyError: 'macro'.
> .
> .
> # Module zope.tal.talinterpreter, line 346, in interpret
>
> # Module zope.tal.talinterpreter, line 870, in do_useMacro
>
> # Module zope.tales.tales, line 696, in evaluate
> URL: file:C:\Server\plone\Data\Products\CMFEditions\skins/CMFEditions
> \edit_macros.pt
>
> Line 46, Column 18
>
> Expression: <PythonExpr here.widget(field.getName(), mode='edit')>
>
> .
>
> .
>
> .
>
> * Module Products.Archetypes.generator.widget, line 147, in __call__
>
>
>
> AttributeError: Macro EnhancedArrayWidget does not exist for
> <NestedArrayFieldTest at nestedarrayfieldtest.2009-04-28.0607213030>
>
>
>
>
>
> Soviel ich verstehe, kommt die Versionierung (CMFEditions) mit dem
> Feld einfach nicht klar – lt. Plone.org Webseite wurde es aber mit
> plone 3.1 getestet…
>
>
>
> Hat hier jemand eine Idee, wie ich diesen Fehler beheben kann…
>
>
>
> lg
> Michi
>
> Michael Graf
> Webmaster
>
> IMC Fachhochschule Krems
> University of Applied Sciences Krems
> A-3500 Krems, Austria, Europe
>
> Office:
> Campus Krems, Trakt G, Room 4.08
> T: +43-(0)2732-802- ext. 519
> F: +43-(0)2732-802-4
> E-Mail: [email protected]
>
>
>
>
> ______________________________________________________________________
> Diese Nachricht erhalten Sie von einem IMC Mitarbeiter.
> Allfallige angehängte Dokumente sind vertraulich und nur für den/die
> Adressaten bestimmt. Sollten Sie nicht der beabsichtigte Adressat
> sein, ist jede Offenlegung, Weiterleitung oder sonstige Verwendung
> dieser Information nicht gestattet. In diesem Fall bitten wir, den
> Absender zu verstandigen und die Information zu vernichten. Für
> Übermittlungsfehler oder sonstige Irrtumer bei Übermittlung besteht
> keine Haftung.
>
> This message is being transmitted by an IMC employee.
> Any attached files are confidential and intended solely for the
> addressee(s). Any publication, transmission or other use of the
> information by a person or entity other than the intended addressee is
> prohibited. If you receive this in error please contact the sender and
> delete the material. The sender does not accept liability for any
> errors or omissions as a result of the transmission.
>
> Informationspflicht nach §14 UGB:
>
> IMC Fachhochschule Krems GmbH
> Piaristengasse 1, A-3500 Krems
> Austria, Europe
> ATU: 37552304
> Firmenbuchnummer: 79297 p
> Firmenbuchgericht: Landesgericht Krems an der Donau
> DVR: 0798771
> Fachgruppe Unternehmensberatung
>
> _______________________________________________
> zope mailing list
> [email protected]
> https://mail.dzug.org/mailman/listinfo/zope
--
Jens Klein
Software Architect
Managing Director, General Partner
+43 512 890077
BlueDynamics Alliance WEB APPLICATIONS, ZOPE, PLONE, HOSTING
Klein & Partner KEG production: concept, development, design
http://bluedynamics.com consulting: analysis, coaching, training
http://zoplo.com management: projects, process, community
Diese Nachricht erhalten Sie von einem IMC Mitarbeiter.
Allfallige angehängte Dokumente sind vertraulich und nur für den/die Adressaten bestimmt. Sollten Sie nicht der beabsichtigte Adressat sein, ist jede Offenlegung, Weiterleitung oder sonstige Verwendung dieser Information nicht gestattet. In diesem Fall bitten wir, den Absender zu verstandigen und die Information zu vernichten. Für Übermittlungsfehler oder sonstige Irrtumer bei Übermittlung besteht keine Haftung.
This message is being transmitted by an IMC employee.
Any attached files are confidential and intended solely for the addressee(s). Any publication, transmission or other use of the information by a person or entity other than the intended addressee is prohibited. If you receive this in error please contact the sender and delete the material. The sender does not accept liability for any errors or omissions as a result of the transmission.
Informationspflicht nach §14 UGB:
IMC Fachhochschule Krems GmbH
Piaristengasse 1, A-3500 Krems
Austria, Europe
ATU: 37552304
Firmenbuchnummer: 79297 p
Firmenbuchgericht: Landesgericht Krems an der Donau
DVR: 0798771
Fachgruppe Unternehmensberatung
_______________________________________________
zope mailing list
[email protected]
https://mail.dzug.org/mailman/listinfo/zope