NavTree: Fehlende Kindelemente nach Plone Update von 4.0.7 auf 4.1.6
Markus Richter <[email protected]> Fri, 11 Jan 2013 13:41:46 +0100
| Newsgroups | gmane.comp.web.zope.german |
|---|---|
| Message-ID | <[email protected]> |
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--===============1377111543==
Content-Type: multipart/signed; micalg=pgp-sha1;
protocol="application/pgp-signature";
boundary="----enig2EFBVMQENGJJEGGIUXNKB"
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
------enig2EFBVMQENGJJEGGIUXNKB
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Hallo,
Ich bin gerade dabei unsere Plone/Zope Instanz auf eine neuere Version
zu bringen:
Plone 4.0.7 -> 4.1.6
Zope 2.12.18 -> 2.13.15
Wir haben ein eigens programmiertes variables Hauptmen=C3=BC welches im
Grunde nur die im RootPath liegenden Folder usw. durchgeht, diese als
Hauptpunkte ausw=C3=A4hlt und ein Level tiefer die Objekte als Submen=C3=BC=
punkte
anzeigt.
Nach der Durchf=C3=BChrung der Migrierung werden jedoch von den Men=C3=BC=
punkten
keine Kindelemente mehr gefunden.
Konkret sieht das so aus:
Im View habe ich folgenden Code:
> def getChildrenOfNode(self, selected_id):
> tabObj =3D getattr(self.getNavRoot(), selected_id)
> strategy =3D getMultiAdapter((tabObj, self.data), INavtreeStrat=
egy)
> queryBuilder =3D NavtreeQueryBuilder(tabObj)
> query =3D queryBuilder()
> query['depth'] =3D 1
> data =3D buildFolderTree(tabObj, obj=3Dself.context, query=3Dqu=
ery, strategy=3Dstrategy)
selected_id entspricht dem Hauptmen=C3=BCpunkt-ID z.b. "news"
tabObj ist dann <ATFolder at news>
self.data ist plone.app.portlets.portlets.navigation.Assignment()
self.context ist der aktuelle Standpunkt z.b. <ATFolder at services>
Das Query wird wie folgt generiert:
> {'Language': ['en', ''], 'portal_type': ['Alias', 'Collage', 'Document'=
, 'Event', 'EyecatcherFolder', 'EyecatcherItem', 'Folder', 'FormFolder', =
'Link', 'News Item', 'RichDocument', 'Seminar Folder', 'Topic'], 'sort_on=
': 'getObjPositionInParent', 'depth': 1, 'sort_order': 'asc', 'is_default=
_page': [True, False, None], 'path': {'navtree': 1, 'query': '/en/news'}}=
Vor der Migration bekomme ich als Kindelement-Array
(data.get('children', [])) die entsprechenden darunterliegenden Folders,
Dokumente usw. zur=C3=BCck.
Generell das gesamte data-Objekt besitzt umfangreiche Informationen =C3=BC=
ber
das Hauptfolder usw.
Nach der Migration ist das Array jedoch leer (Das Query bleibt gleich).
Die Variable data besteht nur noch aus: {'children': []}
Hat sich beim Wechsel von Plone 4.0 auf 4.1 etwas ge=C3=A4ndert?
Ich habe bereits m=C3=B6gliche Changelogs und Foren durchf=C3=BChlt, habe=
aber
leider bisher nichts entsprechendes gefunden.
Jegliche Hilfe oder Denkanst=C3=B6=C3=9Fe sind sehr willkommen.
Viele Gr=C3=BC=C3=9Fe,
mr
------enig2EFBVMQENGJJEGGIUXNKB
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
iQEcBAEBAgAGBQJQ8AiKAAoJEN2TrfCiAHDM9LoH+wRQYKvw/h5DmoXYGc2A+1BA
KeRG7W3CsxEzeJqqsFr+7CJfD/4rYuDw9CrwBoLCY3sKZwSnOxD/thINTTht3A37
fmSAcBvN8Olj9OJ3/4Sw/HeSyu2m29ZB5mziggiKZzoXPOGnphEAr/y67RkIxT5n
H67MQgeoH2vVjXqwkWwDqB7DWWqpxbCRg/cPpDG7Xdu8blooPoOrCGBWR+6DOPAw
+cCI5sXJIk3Tq1+xt3r2NCwD0b5Jy8SpdgFRo3HGPbgbpFOQuYO0414gp7HUob9/
GNo9YTvwrs207hXe32a1b26QKPslkh99mdLhOgweVhFo4IHgVyvyE0bc6bLBJZ8=
=Bqah
-----END PGP SIGNATURE-----
------enig2EFBVMQENGJJEGGIUXNKB--
--===============1377111543==
Content-Type: text/plain; charset="iso-8859-1"
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
_______________________________________________
zope mailing list
[email protected]
https://mail.dzug.org/mailman/listinfo/zope
--===============1377111543==--