Index: openacs-4/packages/acs-subsite/www/user/portrait/upload.xql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-subsite/www/user/portrait/Attic/upload.xql,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/acs-subsite/www/user/portrait/upload.xql 21 Nov 2007 17:01:12 -0000 1.1 @@ -0,0 +1,38 @@ + + + + + + + + + + + + + SELECT live_revision as revision_id, item_id + FROM acs_rels a, cr_items c + WHERE a.object_id_two = c.item_id + AND a.rel_type = 'user_portrait_rel' + AND a.object_id_one = :current_user_id + AND c.live_revision is not NULL + + + + + + select description + from cr_revisions + where revision_id = :revision_id + + + + + + select first_names, last_name + from persons + where person_id=:user_id + + + +