Plone: Object-Reihenfolge im Ordner veränder n

Jens Nachtigall <[email protected]>
Newsgroups gmane.comp.web.zope.german
Message-ID <[email protected]>
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)

print "Done: Moved %s by pos %s" % (obj_id, pos)
return printed


Merci,
Jens


_______________________________________________
zope mailing list
[email protected]
https://mail.dzug.org/mailman/listinfo/zope
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.