Re: Plone: Object-Reihenfolge im Ordner veränd ern

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



Jens Nachtigall wrote:
> Hallo,
> 
> ich möchte via etwas wie myplone.org/folder/object/moveto?pos=3 das
> "object" an die dritte Stelle im "folder" bewegen. Hier mein Skript, 
> leider funktioniert weder moveObjectToPosition noch
> moveObjectsByDelta, d.h. es scheint rein gar nichts zu passieren. Wie
> macht man das?
> 
> request = container.REQUEST
> 
> # test if the given parameter ist really given try: pos =
> int(request.pos) except: print "problem with pos, is it a number" 
> return printed
> 
> obj_id = context.getId() parent = context.aq_parent 
> #parent.moveObjectToPosition(obj_id, pos) 
> parent.moveObjectsByDelta(obj_id, pos)

parent[obj_id].reindexObject()

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

iQGUBAEBAgAGBQJOaLolAAoJEADcfz7u4AZjyfMLwNKQewF7e4j6YhH+LNy8E19l
gSykFjCXhTGdgEZCkrhXH3B9/BQ99P0+OzkdouLJMHmN5cksjlyitIRvDqkw35Iu
9MdiCkF6m44ly+a6+U94y38qcrTEBsNcffmeJjPaebYhwfxsk7y1T2SCJ4Jc4B/m
FADa+ULk9xXxvThDQsGZV/zuqaSKb05qWN6NLzDSIFwLpJDrXmKudtDngmry8ZyT
oSiTyTv0r4EPlR/Tb15i7CChfYrp+yB26ibiQQB4x/oSBTjVRNg+TW9/VhvbSVIC
s7mxJUIh04+SkEic05yJWao1Xd0QKjPpX8T4vkgLcgLJ81neycNhuPDcP6hUfccS
vDvU82sexcmoMKnpZxj1LCWmr43IiejyFD4tZ0vimoMNBF/94I/yXuTlyFJ30etg
fxqMeKkWuAahfWxKIWuWmHQiXGNgdzLktdmGEPJNb9wOeKhrP8fm+dTCA8CsCxka
U2Q2QEn8tDr1vvYgMeQiBcNccWPHUig=
=BZJw
-----END PGP SIGNATURE-----



_______________________________________________
zope mailing list
[email protected]
https://mail.dzug.org/mailman/listinfo/zope
lists.vcf (text/x-vcard, 310 B)
begin:vcard
fn:Andreas Jung
n:Jung;Andreas
org:ZOPYX Limited
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.