Re: [xwiki-users] API/Scripting : create user and attach some files to its profile

2016-12-09 Thread Eduard Moraru
Hi, Did not follow the discussion in depth, but maybe you are interested in adding an EventListener on either DocumentCreatingEvent [1] (before) or DocumentCreatedEvent [2] (after). Other, more specialized, events exist as well, such as XObjectAdded/Updated/DeletedEvent [7][8][9] that allows you

Re: [xwiki-users] API/Scripting : create user and attach some files to its profile

2016-12-08 Thread Hamster
1) I am not cutting any post. I use Nabble. http://xwiki.475771.n2.nabble.com/Re-API-Scripting-create-user-and-attach-some-files-to-its-profile-td7601934.html 2) I think my example shows perfectly what you want to accomplish. You want to attach an PDF to something which does not yet exist. Don't

Re: [xwiki-users] API/Scripting : create user and attach some files to its profile

2016-12-08 Thread m...@ow2.org
Le 08/12/2016 à 10:42, Hamster a écrit : > That sounds a lot like... > > "Here's a file, you should save it in that non-existing folder" > > "But the folder does not exist yet...how am I going to save that file???" When you are turning my request into a non-sense like this, I feel a little scorn

Re: [xwiki-users] API/Scripting : create user and attach some files to its profile

2016-12-08 Thread Hamster
That sounds a lot like... "Here's a file, you should save it in that non-existing folder" "But the folder does not exist yet...how am I going to save that file???" -- View this message in context: http://xwiki.475771.n2.nabble.com/Re-API-Scripting-create-user-and-attach-some-files-to-its-pro

Re: [xwiki-users] API/Scripting : create user and attach some files to its profile

2016-12-07 Thread m...@ow2.org
dd custom velocity code here: > /bin/edit/XWiki/XWikiUserProfileSheet?editor=wiki > (I don't know it it is a clean way, it depend of your use case desired) > > > En date de : Mar 29.11.16, m...@ow2.org a écrit : > > Objet: Re: [xwiki-u

Re: [xwiki-users] API/Scripting : create user and attach some files to its profile

2016-11-29 Thread Pascal BASTIEN
r use case desired) En date de : Mar 29.11.16, m...@ow2.org a écrit : Objet: Re: [xwiki-users] API/Scripting : create user and attach some files to its profile À: "XWiki Users" Date: Mardi 29 novembre 2016, 9h00 Hi Pascal, Thanks for t

Re: [xwiki-users] API/Scripting : create user and attach some files to its profile

2016-11-29 Thread m...@ow2.org
Hi Pascal, Thanks for the tip :) It answers to the "how to add a field" part of my question. But it doesn't answer about attaching file to the profile. The main issue I see here is the account is created on login. Or maybe there might be a hook system so we can trigger something when the account i

Re: [xwiki-users] API/Scripting : create user and attach some files to its profile

2016-11-27 Thread Pascal BASTIEN
Hello, I added some others attributes (I don't know if you can do the same with file) Add some attributes here: /bin/edit/XWiki/XWikiUsers?editor=class e.g. myaddress (disabled it to prevent your user modified it) Add this field "myaddress" on the sheet: /bin/view/XWiki/AdminUserProfileSheet and