Re: Abspeichern von listen mit Referenzen und Neustartproblem

Andreas Jung <[email protected]>
Newsgroups gmane.comp.web.zope.german
Organization ZOPYX Ltd & Co. KG
Message-ID <[email protected]>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

transaction.commit() vergessen?

- -aj

Vladislav Vorobiev wrote:
> Hallo,
>
> Ich versuche listen mit Referenzen abzuspeichern
>
> object.refList=getattr([self.context.pfad, 'object'],
> [self.context.pfad, 'object1'])
>
> nach dem hinzufügen funktioniert alles wie gewünscht. Ich kann auf die
> Referenzen zugreifen.
>
> meinObject.refList
> [<MeinType at object>]
>
> meinObject.refList[0].objectValues()[0].getPhysicalPath()
> ('', 'pfad', 'object')
>
> meinObject.refList[0].objectValues()[0].absolute_url()
> http://localhost/pfad/object
>
>
> Wenn die Instance **neugestartet** wird, ändern sich die werte
> unterscheiden sich die ergebnisse
>
> meinObject.refList
> [<MeinType at object>]
>
> meinObject.refList[0].objectValues()[0].getPhysicalPath()
> ('object',)
>
> meinObject.refList[0].objectValues()[0].absolute_url()
> ist leer
>
> Dagegen funktionieren die Referenzen ohne list object.ref=
> objectreferenz einwandfrei.
>
> Ähnlich verhalten sich Set und PersistentList. Hat jemand eine Idee dazu?
>
> Unterstützt db keine Listen oder ist es ein Bug? Bzw. was mache ich falsch?
>
> Zope2.12, python2.6
>
> Gruß
> Vlad
>
> ----------------------------------------------------------------------
>
>
>
> _______________________________________________
> zope mailing list
> [email protected]
> https://mail.dzug.org/mailman/listinfo/zope


- -- 
ZOPYX Limited              \ zopyx group
Charlottenstr. 37/1         \ The full-service network for your
D-72070 Tübingen             \ Python, Zope and Plone projects
www.zopyx.com, [email protected] \ www.zopyxgroup.com
- ------------------------------------------------------------------------
E-Publishing, Python, Zope & Plone development, Consulting


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAktgZUEACgkQCJIWIbr9KYxtIgCgm0rkXTLOSGKIyLcPV2dzHkvt
4ZgAoOGZCzHhX+WOCuEpTiKSIEU8hHTX
=DjGp
-----END PGP SIGNATURE-----



_______________________________________________
zope mailing list
[email protected]
https://mail.dzug.org/mailman/listinfo/zope
lists.vcf (text/x-vcard, 331 B)
begin:vcard
fn:Andreas Jung
n:Jung;Andreas
org:ZOPYX Ltd. & Co. KG
adr;quoted-printable:;;Charlottenstr. 37/1;T=C3=BCbingen;;72070;Germany
email;internet:[email protected]
title:CEO
tel;work:+49-7071-793376
tel;fax:+49-7071-7936840
tel;home:+49-7071-793257
x-mozilla-html:FALSE
url:www.zopyx.com
version:2.1
end:vcard
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.