From fc9e46f8f27aaceecd2825cd90409451c3974159 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Beno=C3=AEt=20Pin?= Date: Thu, 28 Oct 2010 00:19:02 +0200 Subject: [PATCH] Retour des uids des portfolios. --- skins/lrservice.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/skins/lrservice.py b/skins/lrservice.py index d41d355..fdebcad 100644 --- a/skins/lrservice.py +++ b/skins/lrservice.py @@ -12,7 +12,7 @@ fg = context.REQUEST.form.get method = fg('method') if method == 'normaliseAndCreatePath' : - normalizedPath = [] + normalizedPath, uids = [], [] o = portal path = fg('path', '').split(' ') # séparateur : 0x09 (tabulation) for part in path : @@ -24,8 +24,10 @@ if method == 'normaliseAndCreatePath' : id = o.invokeFactory('Portfolio', validId, title=part) o = o[id] normalizedPath.append(id) + uid = uidtool.register(o) + uids.append(uid) - return '/'.join(normalizedPath) + return '%s\n%s' % ('/'.join(normalizedPath), ' '.join([str(uid) for uid in uids])) elif method == 'uploadPhoto' : path = fg('normalizedPath') -- 2.20.1