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 is created( ie, to
attach files to the profile) ?

Cheers,

Le 28/11/2016 à 08:46, Pascal BASTIEN a écrit :
> 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 finally add it in xwiki.cfg:
> #-# retrieve the following fields from LDAP and store them in the XWiki user 
> object (xwiki-attribute=ldap-attribute)
> xwiki.authentication.ldap.fields_mapping=last_name=sn,first_name=givenName,email=xcut,myaddress=street
> and choose a value for this setting:
> #-# On every login update the mapped attributes from LDAP to XWiki otherwise 
> this happens only once when the XWiki
> #-# account is created.
> #-# - 0: only when creating user
> #-# - 1: at each authentication
> #-# The default is 0
> xwiki.authentication.ldap.update_user=1
> 
> 
> (eventually add a XWiki.TranslationDocumentClass to translate myaddress 
> attribute)
> 
> 
> Pascal BASTIEN
> 
> 
> En date de : Ven 25.11.16, m...@ow2.org  a écrit :
> 
>  Objet: [xwiki-users] API/Scripting : create user and attach some files to
> its profile
>  À: "XWiki Users" 
>  Date: Vendredi 25 novembre 2016, 12h37
>  
>  Hi,
>  
>  I'm working on a registration system around xwiki.
>  
>  The basic workflow is the user is created in a LDAP
>  directory at
>  registration time. Then the user can login to xwiki.
>  It's only upon the first successful login to xwiki that the
>  user's xwiki
>  profile is created in xwiki database.
>  
>  Now here is my point : how could I prepare the user profile
>  *before* he
>  gets connected ? For example I would be able to attach some
>  files to
>  XWiki. and why not some others attributes.
>  
>  Is anyone already achieved this ?
>  
>  Cheers
>  ___
>  users mailing list
>  users@xwiki.org
>  http://lists.xwiki.org/mailman/listinfo/users
>  
> 



Re: [xwiki-users] [ANN] XWiki 8.2.2 released

2016-11-29 Thread Mario
The downloadlink has not been updated yet?

BR



--
View this message in context: 
http://xwiki.475771.n2.nabble.com/ANN-XWiki-8-2-2-released-tp7601945p7601963.html
Sent from the XWiki- Users mailing list archive at Nabble.com.


Re: [xwiki-users] [ANN] XWiki 8.2.2 released

2016-11-29 Thread Ecaterina Moraru (Valica)
You can download using this link:
http://www.xwiki.org/xwiki/bin/view/Download/DownloadVersion/?projectVersion=8.2.2

Thanks,
Caty

On Tue, Nov 29, 2016 at 2:23 PM, Mario 
wrote:

> The downloadlink has not been updated yet?
>
> BR
>
>
>
> --
> View this message in context: http://xwiki.475771.n2.nabble.
> com/ANN-XWiki-8-2-2-released-tp7601945p7601963.html
> Sent from the XWiki- Users mailing list archive at Nabble.com.
>


Re: [xwiki-users] [ANN] XWiki 8.2.2 released

2016-11-29 Thread Vincent Massol
Hi Mario,

> On 29 Nov 2016, at 13:23, Mario  wrote:
> 
> The downloadlink has not been updated yet?

This is bug fix release for a not supported branch (see 
http://www.xwiki.org/xwiki/bin/view/Main/Support#HCommunitySupport). That’s why 
you don’t see it advertised on the download page.

However you can access it from there by clicking on the "more versions” link in 
small letter at the bottom of the page ;)

We recommend that you use 8.4.1 or if you wish a LTS, then 7.4.5.

Thanks
-Vincent

> BR
> View this message in context: 
> http://xwiki.475771.n2.nabble.com/ANN-XWiki-8-2-2-released-tp7601945p7601963.html



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

2016-11-29 Thread Pascal BASTIEN
You must tell us what is this file?
A custom file per user? where did this file come from? Do you want this file 
attached to profile user?
Etc.
Your file is in your ldap ilike users photo:?
#-# [Since 8.1M2, XWikiLDAPAuthServiceImpl]
#-# On every login update photo from LDAP to XWiki avatar otherwise photo will 
not be updated.
#-# - 0: never
#-# - 1: at each authentication
#-# The default is 0
# xwiki.authentication.ldap.update_photo=0

Anyway you can add 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-users] API/Scripting : create user and attach some files to 
its profile
 À: "XWiki Users" 
 Date: Mardi 29 novembre 2016, 9h00
 
 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 is created( ie, to
 attach files
 to the profile) ?
 
 Cheers,
 
 Le
 28/11/2016 à 08:46, Pascal BASTIEN a écrit :
 > 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 finally add it in xwiki.cfg:
 > #-# retrieve the following fields from
 LDAP and store them in the XWiki user object
 (xwiki-attribute=ldap-attribute)
 >
 
xwiki.authentication.ldap.fields_mapping=last_name=sn,first_name=givenName,email=xcut,myaddress=street
 > and choose a value for this setting:
 > #-# On every login update the mapped
 attributes from LDAP to XWiki otherwise this happens only
 once when the XWiki
 > #-# account is
 created.
 > #-# - 0: only when creating
 user
 > #-# - 1: at each authentication
 > #-# The default is 0
 >
 xwiki.authentication.ldap.update_user=1
 >
 
 > 
 > (eventually add
 a XWiki.TranslationDocumentClass to translate myaddress
 attribute)
 > 
 > 
 > Pascal BASTIEN
 > 
 >
 
 > En date de : Ven 25.11.16, m...@ow2.org  a écrit
 :
 > 
 >  Objet:
 [xwiki-users] API/Scripting : create user and attach some
 files to    its profile
 >  À:
 "XWiki Users" 
 >  Date: Vendredi 25 novembre 2016,
 12h37
 >  
 >  Hi,
 >  
 >  I'm working
 on a registration system around xwiki.
 >  
 >  The basic
 workflow is the user is created in a LDAP
 >  directory at
 > 
 registration time. Then the user can login to xwiki.
 >  It's only upon the first successful
 login to xwiki that the
 >  user's
 xwiki
 >  profile is created in xwiki
 database.
 >  
 >  Now
 here is my point : how could I prepare the user profile
 >  *before* he
 >  gets
 connected ? For example I would be able to attach some
 >  files to
 > 
 XWiki. and why not some others
 attributes.
 >  
 > 
 Is anyone already achieved this ?
 >  
 >  Cheers
 > 
 ___
 >  users mailing list
 >  users@xwiki.org
 >  http://lists.xwiki.org/mailman/listinfo/users
 >  
 > 
 
 


[xwiki-users] code macro/jython-standalone-2.7.0-xwiki-3.jar problem

2016-11-29 Thread Pascal BASTIEN
Hello,

I try to deploy xwiki 8.4 on Tomcat 8.0.32/ java 1.8.0_74 on our datacenter but 
I have a issue with the code macro:
{{code}}
My code
{{/code}}

The page displayed: "Failed to execute the [code] macro. Cause: [String index 
out of range: 3]. Click on this message for details.".
I pasted the details here: http://pastebin.ca/3743091

I tested this way http://jira.xwiki.org/browse/XWIKI-7984
(open jython-standalon jar/extract everything in Lib/* and put this in a new 
jar at the root of the jar/put the new ) but it doesn't work.

Do you have an idea what this problem coming from?

(It seem that someone else have same problem: 
https://demon.aeto.net/Macro/CitationBox)

Thxs for any help

Pascal BASTIEN


Re: [xwiki-users] code macro/jython-standalone-2.7.0-xwiki-3.jar problem

2016-11-29 Thread Thomas Mortagne
The error you pasted have nothing to do with
http://jira.xwiki.org/browse/XWIKI-7984 plus XWIKI-7984 is specific to
Jboss AS.

The code macro works well with Tomcat and the setup you indicated is
pretty standard for XWiki. It's probably a Jython or Pygments bug with
the specific content you tried.

Does the macro work with some very simple content like:

{{code}}
test
{{/code}}

?

If it work with other content then please create a jira issue with the
content that reproduce the error and we will try to reproduce it and
understand where it come from exactly.

On Tue, Nov 29, 2016 at 3:55 PM, Pascal BASTIEN  wrote:
> Hello,
>
> I try to deploy xwiki 8.4 on Tomcat 8.0.32/ java 1.8.0_74 on our datacenter 
> but I have a issue with the code macro:
> {{code}}
> My code
> {{/code}}
>
> The page displayed: "Failed to execute the [code] macro. Cause: [String index 
> out of range: 3]. Click on this message for details.".
> I pasted the details here: http://pastebin.ca/3743091
>
> I tested this way http://jira.xwiki.org/browse/XWIKI-7984
> (open jython-standalon jar/extract everything in Lib/* and put this in a new 
> jar at the root of the jar/put the new ) but it doesn't work.
>
> Do you have an idea what this problem coming from?
>
> (It seem that someone else have same problem: 
> https://demon.aeto.net/Macro/CitationBox)
>
> Thxs for any help
>
> Pascal BASTIEN



-- 
Thomas Mortagne


[xwiki-users] New installation - top menu bar missing?

2016-11-29 Thread Patrick M . Hausen
Hi, all

I'm new to XWiki. Just finished a fresh installation of 8.4.1
with Tomcat any MySQL, which went absolutely smooth - great!

I intend to migrate the wiki of a small not-for-profit organisation
from Confluence to XWiki, so my first two questions are

- how do I create spaces?
- how do I get a hierachical navigation tree of all pages in a space
  on the left?

I wouldn't be bothering you without doing some research first,
so I found this documentation about spaces:

http://platform.xwiki.org/xwiki/bin/view/Features/Spaces#HSpacecreation

Unfortunately my XWiki doesn't have that menu bar with the "Home | Main | 
WebHome | Add"
at all! What am I missing here?
Completely dumbfounded - the docs say "click Add -> Space" ...

Second there seems to be a "Document Tree Macro 8.4.1" extension
already installed. How do I get this - and only this - into the left menu 
column?

Thanks a lot for any hints. RTFM perfectly welcome with a pointer to the correct
fine manual. Search engine hasn't been of much help, but possibly my google-fu
is leaving me ;-)

Kind regards,
Patrick




Re: [xwiki-users] New installation - top menu bar missing?

2016-11-29 Thread Patrick M. Hausen
Hi,

> Am 29.11.2016 um 21:36 schrieb Patrick M. Hausen :
> Second there seems to be a "Document Tree Macro 8.4.1" extension
> already installed. How do I get this - and only this - into the left menu 
> column?

Sorry about that one! It's already there ... silly me.

Patrick

[xwiki-users] [myxwiki] new wiki request

2016-11-29 Thread Gomez, Luis (North & Central Florida)
I am looking to use xwiki as a communication tool for my volunteer leadership 
team for a campaign for the Leukemia and Lymphoma Society. I am the LLS Man and 
Woman of the Year Campaign Manager.


Owner name: Luis Gomez

Wiki name: mwoyorlando



Thank you,



Luis Gomez

Man & Woman of the Year Campaign Manager, Orlando

Leukemia and Lymphoma Society

407-965-6575

NOTICE: This message, including all attachments transmitted with it, is for the 
use of the addressee only. It may contain proprietary, confidential and/or 
legally privileged information. No confidentiality or privilege is waived or 
lost by any mistransmission. If you are not the intended recipient, you must 
not, directly or indirectly, use, disclose, distribute, print or copy any part 
of this message. If you believe you have received this message in error, please 
delete it and all copies of it from your system and notify the sender 
immediately by reply email. Thank you.