Re: [xwiki-users] jodatime challenge

2017-01-20 Thread [IDIS Technical Secretariat] Ricardo Rodríguez
Hi!

On Fri, Jan 20, 2017 at 9:06 AM Vincent Massol  wrote:

> Hi,
>
> > On 20 Jan 2017, at 08:27, [IDIS Technical Secretariat] Ricardo Rodríguez
>  wrote:
> >
> > Hi! The same code works fine in an XWiki 7.3 installation...
> >
> > http://portal.idisantiago.es/xwiki/bin/view/ICT/PureDate/
> >
> > Thus, "my" problem is to find where ComparisonDateTool is located in this
> > installation and make it works in a legacy XWiki Enterprise 2.4.30451
> one.
>
> Wow XE 2.4 is really old...
>
> I don’t remember if the $datetool binding was available and it’s possible
> that it wasn’t.
>

I'm afraid I don't understand this. I see that velocity-tools-1.4.jar
included with XE 2.4 includes DateComparisonTools, as it
does velocity-tools-2.0.jar included with XE 7.3. I've replaced both in XE
2.4 with those in XE 7.3 and restarted the container to no avail. DateTool
methods work, but ComparisonDateTool don't.

http://atriumkm.idisantiago.es/bin/ICT/PureDate

I think I don't understand what binding does mean and how could I implement
it.

Have I any option of getting these methods working in my legacy XE 2.4
installation? I do need to do some date comparisons to show several pieces
of information!

Thanks for your help!


>
> FYI it’s located in a java class in the xwiki-velocity*.jar file.
>
> Thanks
> -Vincent
>
> >
> > Any help will be welcome! Thank!
> >
> > On Thu, Jan 19, 2017 at 11:41 PM [IDIS Technical Secretariat] Ricardo
> > Rodríguez  wrote:
> >
> >> Hi! I've been these last days trying to regain access to an ancient
> issue
> >> while dealing with dates. Searching Jira I found this...
> >>
> >> http://jira.xwiki.org/browse/XWIKI-5610?jql=text%20~%20%22datetool%22
> >>
> >> ... and this at XWiki Platforma site...
> >>
> >> http://platform.xwiki.org/xwiki/bin/view/SRD/datetool
> >>
> >> To the best of my understanding ComparisonDateTool is implemented and
> >> accessible through $datetool velocity variable. But I'm not able to get
> it
> >> working.
> >>
> >> On Thu, Jan 19, 2017 at 3:54 PM Hamster  wrote:
> >>
> >> Have you checked the documentation for the  DateTool
> >> <
> >>
> https://velocity.apache.org/tools/devel/apidocs/org/apache/velocity/tools/generic/DateTool.html
> >>>
> >> and the  ComparisonDateTool
> >> <
> >>
> https://velocity.apache.org/tools/devel/apidocs/org/apache/velocity/tools/generic/ComparisonDateTool.html
> >>>
> >> ?
> >>
> >>
> >> Please, check this page...
> >>
> >> http://atriumkm.idisantiago.es/bin/ICT/PureDate
> >>
> >> I'm able to get working the examples at DateTool page, but not those at
> >> ComparisonDateTool page. Please, could anybody point us in the right
> >> direction? Where are we failing?
> >>
> >>
> >> --
> >> View this message in context:
> >>
> http://xwiki.475771.n2.nabble.com/jodatime-challenge-tp7602468p7602489.html
> >> Sent from the XWiki- Users mailing list archive at Nabble.com.
> >>
> >>
> >> Thank you very much for your work!
> >>
> >> Ricardo
> >> --
> >> Ricardo Rodríguez
> >> Research Management and Promotion Technician
> >> Technical Secretariat
> >> Health Research Institute of Santiago de Compostela (IDIS)
> >> http://www.idisantiago.es
> >>
> > --
> > Ricardo Rodríguez
> > Research Management and Promotion Technician
> > Technical Secretariat
> > Health Research Institute of Santiago de Compostela (IDIS)
> > http://www.idisantiago.es
>
> --
Ricardo Rodríguez
Research Management and Promotion Technician
Technical Secretariat
Health Research Institute of Santiago de Compostela (IDIS)
http://www.idisantiago.es


Re: [xwiki-users] File Management Extension

2017-01-20 Thread Marius Dumitru Florea
On Fri, Jan 20, 2017 at 5:35 PM, Paul Pinkerton (ACLCO) 
wrote:

> Wait - update.  I have copied the "FileManager" space into a new space
> (DocLibrary) to work on a document library.  In Chrome, the menu works in
> the FileManager space, but not in my new DocLibrary space.  The menu works
> just fine in other browsers and other functionality seems to be ok in the
> new space.
>
>

>  Any insight would be appreciated.
>

Look for JavaScript errors in the browser console.


>
> Paul Pinkerton
> KnowledgeNow Project/ ACLCO
>
>
> -Original Message-
> From: users [mailto:users-boun...@xwiki.org] On Behalf Of Paul Pinkerton
> (ACLCO)
> Sent: January-20-17 10:32 AM
> To: 'XWiki Users'
> Subject: Re: [xwiki-users] File Management Extension
>
> Thanks for the advice, Marius.  I'm working through it.
>
> I have discovered though that the right-click to access the menu doesn't
> seem to work in Chrome (55.0.2883.87 m).  It does work in Firefox (37.0.2)
> and in Internet Explorer (11.0.9600.18537).  Is this a known bug or
> abnormal behaviour?  Is there a fix?
>
> Paul Pinkerton
> KnowledgeNow Project/ ACLCO
>
> -Original Message-
> From: users [mailto:users-boun...@xwiki.org] On Behalf Of Marius Dumitru
> Florea
> Sent: January-18-17 4:17 AM
> To: XWiki Users
> Subject: Re: [xwiki-users] File Management Extension
>
> On Tue, Jan 17, 2017 at 3:31 PM, Paul Pinkerton (ACLCO)  >
> wrote:
>
> > I am interested in creating an easy to navigate document library.  I
> > was thinking of using the File Manager Extension (as this is what it's
> > built
> > for) - but the documentation is light on some specifics.
> >
> >
>
> > -I am wondering if I can copy this to a new space (currently
> > xwiki/bin/view/FileManager) and run multiple file libraries on the
> > site, each with their own permissions (space based)?  When I copy the
> > FileManager space to a new space, I get the warning that I need to
> > migrate to the new structure.  Will this affect anything other than
> > the specific space it is in?
> >
>
> No, it should affect only the current space. See
> https://github.com/xwiki-contrib/application-filemanager/blob/master/ui/
> src/main/resources/FileManagerCode/Migrator.xml#L80
> .
>
>
> >
> > -Also wondering if I can add a metadata field somehow?  One of the
> > things I liked about using a file library in SP is the ability to list
> > additional fields (ie. notes about why the file is important,
> > contents, etc...) in the grid.  Is this easy to do?
> >
>
> Adding meta data is fairly easy, by adding new properties to the FileClass
> https://github.com/xwiki-contrib/application-filemanager/blob/master/ui/
> src/main/resources/FileManagerCode/FileClass.xml
> . Displaying and editing this meta data directly from the File Manager UI
> is more complex, but you can do it relatively easy from the "file view"
> (what you see when you click on a file from the files live table), by
> editing FileSheet
> https://github.com/xwiki-contrib/application-filemanager/blob/master/ui/
> src/main/resources/FileManagerCode/FileSheet.xml#L258
> .
>
> Hope this helps,
> Marius
>
>
> >
> >
> > Paul Pinkerton
> > ACLCO/ KnowledgeNow
> >
>


Re: [xwiki-users] jodatime challenge

2017-01-20 Thread [IDIS Technical Secretariat] Ricardo Rodríguez
Hi Gerritjan!

Please, allow me to follow this thread to initiate my understanding about
how to deal with date within XWiki! It seems to me that, at least, I'm
missing some basic concept!

On Fri, Jan 20, 2017 at 10:44 AM Gerritjan Koekkoek 
wrote:

> Reading the documentation of the XWiki JoDaTime module (XWiki services
> based)  I feel it holds a lot of value next to $datetool and
> $datecomparisontool (velocity based)
>
>
> But I fail to understand the documentation
>
> http://extensions.xwiki.org/xwiki/bin/view/Extension/Joda+Time+Plugin
>
>
> As the examples are quite easy to read they did not clarify me enough to
> just use date-values stored in XWiki XObjectProperties of type date
>
>
> What default format does the property deliver; Should I use
> $doc.Display(date-property)? , $doc.Display(date-property).value() or
> $object.getProperty(date-property)
>

I've also added a date property to XWikiUsers class, populated it for a
bunch of users by editing objects and using the format described at
creation time and I'm not able to read it. $doc.Display(date-property)
reads something which is shown as an empty string, thus, nothing is shown,
and the the other two string area shown as is, thus they are interpreted as
text strings and are reading nothing from any object property!


>
> What I understand from JoDaTime is that it is great to render dates in
> 'view' mode in the internationally localized format (Dutch Notation vs
> English Notation), but when I switch to 'edit' mode how can I have a
> DateWidget understands that format
>
>
> So my simple question was to calculate the age based on a date-property in
> a wiki object and Now?
>

I've played a bit with those JoDaTime example and do this...

http://portal.idisantiago.es/xwiki/bin/viewrev/ICT/PureTime/WebHome?rev=14.1

And I'm not happy with this as I'm still 51 years old! My birthday will be
next Sunday and my XWiki installation is set to System Default Timezone.
Please, anybody could explain me why XWiki is telling me that I'm already
52 year old? :-( Please, what am I missing?

Thank you so much!



>
>
> Gerritjan Koekkoek
> Vader van Rai Koekkoek (cdls) en voorzitter vereniging CdLS
> Visit our website
> Facebook
> email
>
>
>
> 
> From: users  on behalf of [IDIS Technical
> Secretariat] Ricardo Rodríguez 
> Sent: 20 January 2017 09:36:05
> To: XWiki Users
> Subject: Re: [xwiki-users] jodatime challenge
>
> Thanks Vincent!
>
> On Fri, Jan 20, 2017 at 9:06 AM Vincent Massol  wrote:
>
> > Hi,
> >
> > > On 20 Jan 2017, at 08:27, [IDIS Technical Secretariat] Ricardo
> Rodríguez
> >  wrote:
> > >
> > > Hi! The same code works fine in an XWiki 7.3 installation...
> > >
> > > http://portal.idisantiago.es/xwiki/bin/view/ICT/PureDate/
> > >
> > > Thus, "my" problem is to find where ComparisonDateTool is located in
> this
> > > installation and make it works in a legacy XWiki Enterprise 2.4.30451
> > one.
> >
> > Wow XE 2.4 is really old...
> >
> > I don’t remember if the $datetool binding was available and it’s possible
> > that it wasn’t.
> >
> > FYI it’s located in a java class in the xwiki-velocity*.jar file.
> >
> >
> Yes, XE 2.4 is really a paleoXWiki installation! But it is still solving
> some problems to me here! That pending migration is still a pending
> migration/upgrade... Some notes on this issue in comments here...
>
> http://atriumkm.idisantiago.es/bin/ICT/PureDate
>
> I'll give it a try ASAP!
>
> Cheers!
>
>
> > Thanks
> > -Vincent
> >
> > >
> > > Any help will be welcome! Thank!
> > >
> > > On Thu, Jan 19, 2017 at 11:41 PM [IDIS Technical Secretariat] Ricardo
> > > Rodríguez  wrote:
> > >
> > >> Hi! I've been these last days trying to regain access to an ancient
> > issue
> > >> while dealing with dates. Searching Jira I found this...
> > >>
> > >> http://jira.xwiki.org/browse/XWIKI-5610?jql=text%20~%20%22datetool%22
> > >>
> > >> ... and this at XWiki Platforma site...
> > >>
> > >> http://platform.xwiki.org/xwiki/bin/view/SRD/datetool
> > >>
> > >> To the best of my understanding ComparisonDateTool is implemented and
> > >> accessible through $datetool velocity variable. But I'm not able to
> get
> > it
> > >> working.
> > >>
> > >> On Thu, Jan 19, 2017 at 3:54 PM Hamster  wrote:
> > >>
> > >> Have you checked the documentation for the  DateTool
> > >> <
> > >>
> >
> https://velocity.apache.org/tools/devel/apidocs/org/apache/velocity/tools/generic/DateTool.html
> > >>>
> > >> and the  ComparisonDateTool
> > >> <
> > >>
> >
> https://velocity.apache.org/tools/devel/apidocs/org/apache/velocity/tools/generic/ComparisonDateTool.html
> > >>>
> > >> ?
> > >>
> > >>
> > >> Please, check this page...
> > >>
> > >> 

Re: [xwiki-users] File Management Extension

2017-01-20 Thread Paul Pinkerton (ACLCO)
Wait - update.  I have copied the "FileManager" space into a new space 
(DocLibrary) to work on a document library.  In Chrome, the menu works in the 
FileManager space, but not in my new DocLibrary space.  The menu works just 
fine in other browsers and other functionality seems to be ok in the new space. 

 Any insight would be appreciated.

Paul Pinkerton
KnowledgeNow Project/ ACLCO


-Original Message-
From: users [mailto:users-boun...@xwiki.org] On Behalf Of Paul Pinkerton (ACLCO)
Sent: January-20-17 10:32 AM
To: 'XWiki Users'
Subject: Re: [xwiki-users] File Management Extension

Thanks for the advice, Marius.  I'm working through it.

I have discovered though that the right-click to access the menu doesn't seem 
to work in Chrome (55.0.2883.87 m).  It does work in Firefox (37.0.2) and in 
Internet Explorer (11.0.9600.18537).  Is this a known bug or abnormal 
behaviour?  Is there a fix?

Paul Pinkerton
KnowledgeNow Project/ ACLCO

-Original Message-
From: users [mailto:users-boun...@xwiki.org] On Behalf Of Marius Dumitru Florea
Sent: January-18-17 4:17 AM
To: XWiki Users
Subject: Re: [xwiki-users] File Management Extension

On Tue, Jan 17, 2017 at 3:31 PM, Paul Pinkerton (ACLCO) 
wrote:

> I am interested in creating an easy to navigate document library.  I 
> was thinking of using the File Manager Extension (as this is what it's 
> built
> for) - but the documentation is light on some specifics.
>
>

> -I am wondering if I can copy this to a new space (currently
> xwiki/bin/view/FileManager) and run multiple file libraries on the 
> site, each with their own permissions (space based)?  When I copy the 
> FileManager space to a new space, I get the warning that I need to 
> migrate to the new structure.  Will this affect anything other than 
> the specific space it is in?
>

No, it should affect only the current space. See
https://github.com/xwiki-contrib/application-filemanager/blob/master/ui/src/main/resources/FileManagerCode/Migrator.xml#L80
.


>
> -Also wondering if I can add a metadata field somehow?  One of the 
> things I liked about using a file library in SP is the ability to list 
> additional fields (ie. notes about why the file is important, 
> contents, etc...) in the grid.  Is this easy to do?
>

Adding meta data is fairly easy, by adding new properties to the FileClass 
https://github.com/xwiki-contrib/application-filemanager/blob/master/ui/src/main/resources/FileManagerCode/FileClass.xml
. Displaying and editing this meta data directly from the File Manager UI is 
more complex, but you can do it relatively easy from the "file view"
(what you see when you click on a file from the files live table), by editing 
FileSheet
https://github.com/xwiki-contrib/application-filemanager/blob/master/ui/src/main/resources/FileManagerCode/FileSheet.xml#L258
.

Hope this helps,
Marius


>
>
> Paul Pinkerton
> ACLCO/ KnowledgeNow
>


Re: [xwiki-users] Problem with update from 7.1.2 to 8.4.1

2017-01-20 Thread Vincent Massol

> On 20 Jan 2017, at 09:28, aleksey-s  wrote:
> 
> Hi Vincent,
> 
> I repait it without XAR! 
> 
> I open my subwiki (where admin ui work correctly) page
> /XWiki/XWikiPreferences?editor=object in object editor and open this page in
> my Main wiki. I compare pages and delete all object which not present in
> /XWiki/XWikiPreferences in my subwiki. After this - admin ui works correctly
> on my Main wiki! (I think that some old objects broke admin UI) 

Ok I’m glad you could repair it!

I’m still curious about what happened. Did you voluntarily add some xobjects at 
some point in the XWiki.XWikiPreferences page?

Could you tell us which xobjects you removed?

Thanks
-Vincent

> Thank for help!
> 
> 
> 
> --
> View this message in context: 
> http://xwiki.475771.n2.nabble.com/Problem-with-update-from-7-1-2-to-8-4-1-tp7601982p7602501.html
> Sent from the XWiki- Users mailing list archive at Nabble.com.



Re: [xwiki-users] jodatime challenge

2017-01-20 Thread Gerritjan Koekkoek
Reading the documentation of the XWiki JoDaTime module (XWiki services based)  
I feel it holds a lot of value next to $datetool and $datecomparisontool 
(velocity based)


But I fail to understand the documentation

http://extensions.xwiki.org/xwiki/bin/view/Extension/Joda+Time+Plugin


As the examples are quite easy to read they did not clarify me enough to just 
use date-values stored in XWiki XObjectProperties of type date


What default format does the property deliver; Should I use 
$doc.Display(date-property)? , $doc.Display(date-property).value() or 
$object.getProperty(date-property)


What I understand from JoDaTime is that it is great to render dates in 'view' 
mode in the internationally localized format (Dutch Notation vs English 
Notation), but when I switch to 'edit' mode how can I have a DateWidget 
understands that format


So my simple question was to calculate the age based on a date-property in a 
wiki object and Now?


Gerritjan Koekkoek
Vader van Rai Koekkoek (cdls) en voorzitter vereniging CdLS
Visit our website
Facebook
email




From: users  on behalf of [IDIS Technical Secretariat] 
Ricardo Rodríguez 
Sent: 20 January 2017 09:36:05
To: XWiki Users
Subject: Re: [xwiki-users] jodatime challenge

Thanks Vincent!

On Fri, Jan 20, 2017 at 9:06 AM Vincent Massol  wrote:

> Hi,
>
> > On 20 Jan 2017, at 08:27, [IDIS Technical Secretariat] Ricardo Rodríguez
>  wrote:
> >
> > Hi! The same code works fine in an XWiki 7.3 installation...
> >
> > http://portal.idisantiago.es/xwiki/bin/view/ICT/PureDate/
> >
> > Thus, "my" problem is to find where ComparisonDateTool is located in this
> > installation and make it works in a legacy XWiki Enterprise 2.4.30451
> one.
>
> Wow XE 2.4 is really old...
>
> I don’t remember if the $datetool binding was available and it’s possible
> that it wasn’t.
>
> FYI it’s located in a java class in the xwiki-velocity*.jar file.
>
>
Yes, XE 2.4 is really a paleoXWiki installation! But it is still solving
some problems to me here! That pending migration is still a pending
migration/upgrade... Some notes on this issue in comments here...

http://atriumkm.idisantiago.es/bin/ICT/PureDate

I'll give it a try ASAP!

Cheers!


> Thanks
> -Vincent
>
> >
> > Any help will be welcome! Thank!
> >
> > On Thu, Jan 19, 2017 at 11:41 PM [IDIS Technical Secretariat] Ricardo
> > Rodríguez  wrote:
> >
> >> Hi! I've been these last days trying to regain access to an ancient
> issue
> >> while dealing with dates. Searching Jira I found this...
> >>
> >> http://jira.xwiki.org/browse/XWIKI-5610?jql=text%20~%20%22datetool%22
> >>
> >> ... and this at XWiki Platforma site...
> >>
> >> http://platform.xwiki.org/xwiki/bin/view/SRD/datetool
> >>
> >> To the best of my understanding ComparisonDateTool is implemented and
> >> accessible through $datetool velocity variable. But I'm not able to get
> it
> >> working.
> >>
> >> On Thu, Jan 19, 2017 at 3:54 PM Hamster  wrote:
> >>
> >> Have you checked the documentation for the  DateTool
> >> <
> >>
> https://velocity.apache.org/tools/devel/apidocs/org/apache/velocity/tools/generic/DateTool.html
> >>>
> >> and the  ComparisonDateTool
> >> <
> >>
> https://velocity.apache.org/tools/devel/apidocs/org/apache/velocity/tools/generic/ComparisonDateTool.html
> >>>
> >> ?
> >>
> >>
> >> Please, check this page...
> >>
> >> http://atriumkm.idisantiago.es/bin/ICT/PureDate
> >>
> >> I'm able to get working the examples at DateTool page, but not those at
> >> ComparisonDateTool page. Please, could anybody point us in the right
> >> direction? Where are we failing?
> >>
> >>
> >> --
> >> View this message in context:
> >>
> http://xwiki.475771.n2.nabble.com/jodatime-challenge-tp7602468p7602489.html
> >> Sent from the XWiki- Users mailing list archive at Nabble.com.
> >>
> >>
> >> Thank you very much for your work!
> >>
> >> Ricardo
> >> --
> >> Ricardo Rodríguez
> >> Research Management and Promotion Technician
> >> Technical Secretariat
> >> Health Research Institute of Santiago de Compostela (IDIS)
> >> http://www.idisantiago.es
> >>
> > --
> > Ricardo Rodríguez
> > Research Management and Promotion Technician
> > Technical Secretariat
> > Health Research Institute of Santiago de Compostela (IDIS)
> > http://www.idisantiago.es
>
> --
Ricardo Rodríguez
Research Management and Promotion Technician
Technical Secretariat
Health Research Institute of Santiago de Compostela (IDIS)
http://www.idisantiago.es


Re: [xwiki-users] Inline blog with teaser in a page

2017-01-20 Thread Canny
And what is place to look for the truncation handling and remove of the blog
post creation button?



--
View this message in context: 
http://xwiki.475771.n2.nabble.com/Inline-blog-with-teaser-in-a-page-tp7602494p7602506.html
Sent from the XWiki- Users mailing list archive at Nabble.com.


Re: [xwiki-users] Possible optimisations for xwiki/xwiki-mysql-tomcat docker image

2017-01-20 Thread Vincent Massol
Hi Denis,

> On 20 Jan 2017, at 09:51, Denis GERMAIN  wrote:
> 
> I was confused also about the difference because for me also it shouldn't be 
> 1.6 GB but that's what "docker images" tells me. On dockerhub, it's the 
> "compressed size" so maybe compression could explain this ?
> 
> For the 300 MB, you have to take into account how the docker images are 
> built. In the Dockerfile, each time you write a line, you create a layer. One 
> of the error you made was to write the Dockerfile as you would write an 
> installation procedure. 
> It's more readable, but if you make multiple modifications on the filesystem, 
> you store it each time. The most costly one in this case is "RUN chown -R 
> tomcat8:tomcat8 /var/lib/tomcat8" which just changes the owner on 230 MB 
> worth of data, thus adding 230 MB of nearly identical data as a new layer.
> 
> You can view the impact of each layer here 
> https://microbadger.com/images/xwiki/xwiki-mysql-tomcat (you can also get a 
> html code to get a nice image for you repository).

Got it! That’s very nice and useful! :) Thanks for pointing this out.

I’ll look into this later this afternoon or over the weekend, unless you wish 
to send a PR which would be awesome! :)

Thanks
-Vincent

> Regards
> 
> 2017-01-19 15:04 GMT+01:00 Vincent Massol :
> Hi Denis,
> 
> > On 18 Jan 2017, at 15:46, Denis GERMAIN  wrote:
> >
> > Hi list,
> >
> > Vincent Massol has asked for code review after official docker image
> > annoncement and though I am no Docker expert, I have found a few leads to
> > reduce image size and might have some suggestions to improve it.
> >
> > With 3 little changes I have gained about 500 MB, but I still have to make
> > sure everything still works.
> > - 200 of those MB where gained by a commonly used trick : adding
> > "--no-install-recommends" option to apt-get.
> > Some packages that are commonly installed with libreoffice might have been
> > skipped and I still have to determine if it's OK or not.
> >
> > - The other 300 MB are safe. Most of it comes from "RUN chown -R
> > tomcat8:tomcat8 /var/lib/tomcat8" being moved inside the same layer as the
> > curl xwiki.war && unzip.
> 
> This is great! Thanks so much for reviewing it and proposing ideas :)
> 
> For my knowledge, could you explain quickly how this wins 300MB (it seems 
> magical :))?
> 
> Also, the image take “only” 900MB (see 
> https://hub.docker.com/r/xwiki/xwiki-mysql-tomcat/tags/) so I don’t 
> understand why it takes 1.6GB for you.
> 
> Thanks a lot
> -Vincent
> 
> >
> > docker images
> > REPOSITORY   TAG IMAGE
> > IDCREATED SIZE
> > xwiki-mysql-tomcat   after
> > b05844c94dd07 seconds ago   1.157 GB
> > xwiki-mysql-tomcat   before
> > 174d549368d52 hours ago 1.689 GB
> >
> > As soon as I have checked this works, I'll do a pull request.
> > In the meantime, code is online on
> > https://github.com/zwindler/docker-xwiki-1/tree/clear_apt
> >
> > Regards
> > Denis GERMAIN
> 
> 



Re: [xwiki-users] Possible optimisations for xwiki/xwiki-mysql-tomcat docker image

2017-01-20 Thread Denis GERMAIN
I was confused also about the difference because for me also it shouldn't
be 1.6 GB but that's what "docker images" tells me. On dockerhub, it's the
"compressed size" so maybe compression could explain this ?

For the 300 MB, you have to take into account how the docker images are
built. In the Dockerfile, each time you write a line, you create a layer.
One of the error you made was to write the Dockerfile as you would write an
installation procedure.
It's more readable, but if you make multiple modifications on the
filesystem, you store it each time. The most costly one in this case is "RUN
chown -R tomcat8:tomcat8 /var/lib/tomcat8" which just changes the owner on
230 MB worth of data, thus adding 230 MB of nearly identical data as a new
layer.

You can view the impact of each layer here
https://microbadger.com/images/xwiki/xwiki-mysql-tomcat (you can also get a
html code to get a nice image for you repository).

Regards

2017-01-19 15:04 GMT+01:00 Vincent Massol :

> Hi Denis,
>
> > On 18 Jan 2017, at 15:46, Denis GERMAIN  wrote:
> >
> > Hi list,
> >
> > Vincent Massol has asked for code review after official docker image
> > annoncement and though I am no Docker expert, I have found a few leads to
> > reduce image size and might have some suggestions to improve it.
> >
> > With 3 little changes I have gained about 500 MB, but I still have to
> make
> > sure everything still works.
> > - 200 of those MB where gained by a commonly used trick : adding
> > "--no-install-recommends" option to apt-get.
> > Some packages that are commonly installed with libreoffice might have
> been
> > skipped and I still have to determine if it's OK or not.
> >
> > - The other 300 MB are safe. Most of it comes from "RUN chown -R
> > tomcat8:tomcat8 /var/lib/tomcat8" being moved inside the same layer as
> the
> > curl xwiki.war && unzip.
>
> This is great! Thanks so much for reviewing it and proposing ideas :)
>
> For my knowledge, could you explain quickly how this wins 300MB (it seems
> magical :))?
>
> Also, the image take “only” 900MB (see https://hub.docker.com/r/
> xwiki/xwiki-mysql-tomcat/tags/) so I don’t understand why it takes 1.6GB
> for you.
>
> Thanks a lot
> -Vincent
>
> >
> > docker images
> > REPOSITORY   TAG IMAGE
> > IDCREATED SIZE
> > xwiki-mysql-tomcat   after
> > b05844c94dd07 seconds ago   1.157 GB
> > xwiki-mysql-tomcat   before
> > 174d549368d52 hours ago 1.689 GB
> >
> > As soon as I have checked this works, I'll do a pull request.
> > In the meantime, code is online on
> > https://github.com/zwindler/docker-xwiki-1/tree/clear_apt
> >
> > Regards
> > Denis GERMAIN
>
>


Re: [xwiki-users] [myxwiki] new wiki request

2017-01-20 Thread Thomas Mortagne
You can access your new wiki on http://rtcbnu.myxwiki.org.

Enjoy !

On Thu, Jan 19, 2017 at 7:09 PM, Guilherme Sautner  wrote:
> Description: Prototype an extension to manage ADM on Rotaract Club de
> Blumenau.
> Owner: sautner
> Wiki: rtcbnu.myxwiki.org
>
> Thanks!



-- 
Thomas Mortagne


Re: [xwiki-users] jodatime challenge

2017-01-20 Thread [IDIS Technical Secretariat] Ricardo Rodríguez
Thanks Vincent!

On Fri, Jan 20, 2017 at 9:06 AM Vincent Massol  wrote:

> Hi,
>
> > On 20 Jan 2017, at 08:27, [IDIS Technical Secretariat] Ricardo Rodríguez
>  wrote:
> >
> > Hi! The same code works fine in an XWiki 7.3 installation...
> >
> > http://portal.idisantiago.es/xwiki/bin/view/ICT/PureDate/
> >
> > Thus, "my" problem is to find where ComparisonDateTool is located in this
> > installation and make it works in a legacy XWiki Enterprise 2.4.30451
> one.
>
> Wow XE 2.4 is really old...
>
> I don’t remember if the $datetool binding was available and it’s possible
> that it wasn’t.
>
> FYI it’s located in a java class in the xwiki-velocity*.jar file.
>
>
Yes, XE 2.4 is really a paleoXWiki installation! But it is still solving
some problems to me here! That pending migration is still a pending
migration/upgrade... Some notes on this issue in comments here...

http://atriumkm.idisantiago.es/bin/ICT/PureDate

I'll give it a try ASAP!

Cheers!


> Thanks
> -Vincent
>
> >
> > Any help will be welcome! Thank!
> >
> > On Thu, Jan 19, 2017 at 11:41 PM [IDIS Technical Secretariat] Ricardo
> > Rodríguez  wrote:
> >
> >> Hi! I've been these last days trying to regain access to an ancient
> issue
> >> while dealing with dates. Searching Jira I found this...
> >>
> >> http://jira.xwiki.org/browse/XWIKI-5610?jql=text%20~%20%22datetool%22
> >>
> >> ... and this at XWiki Platforma site...
> >>
> >> http://platform.xwiki.org/xwiki/bin/view/SRD/datetool
> >>
> >> To the best of my understanding ComparisonDateTool is implemented and
> >> accessible through $datetool velocity variable. But I'm not able to get
> it
> >> working.
> >>
> >> On Thu, Jan 19, 2017 at 3:54 PM Hamster  wrote:
> >>
> >> Have you checked the documentation for the  DateTool
> >> <
> >>
> https://velocity.apache.org/tools/devel/apidocs/org/apache/velocity/tools/generic/DateTool.html
> >>>
> >> and the  ComparisonDateTool
> >> <
> >>
> https://velocity.apache.org/tools/devel/apidocs/org/apache/velocity/tools/generic/ComparisonDateTool.html
> >>>
> >> ?
> >>
> >>
> >> Please, check this page...
> >>
> >> http://atriumkm.idisantiago.es/bin/ICT/PureDate
> >>
> >> I'm able to get working the examples at DateTool page, but not those at
> >> ComparisonDateTool page. Please, could anybody point us in the right
> >> direction? Where are we failing?
> >>
> >>
> >> --
> >> View this message in context:
> >>
> http://xwiki.475771.n2.nabble.com/jodatime-challenge-tp7602468p7602489.html
> >> Sent from the XWiki- Users mailing list archive at Nabble.com.
> >>
> >>
> >> Thank you very much for your work!
> >>
> >> Ricardo
> >> --
> >> Ricardo Rodríguez
> >> Research Management and Promotion Technician
> >> Technical Secretariat
> >> Health Research Institute of Santiago de Compostela (IDIS)
> >> http://www.idisantiago.es
> >>
> > --
> > Ricardo Rodríguez
> > Research Management and Promotion Technician
> > Technical Secretariat
> > Health Research Institute of Santiago de Compostela (IDIS)
> > http://www.idisantiago.es
>
> --
Ricardo Rodríguez
Research Management and Promotion Technician
Technical Secretariat
Health Research Institute of Santiago de Compostela (IDIS)
http://www.idisantiago.es


Re: [xwiki-users] Problem with update from 7.1.2 to 8.4.1

2017-01-20 Thread aleksey-s
Hi Vincent,

I repait it without XAR! 

I open my subwiki (where admin ui work correctly) page
/XWiki/XWikiPreferences?editor=object in object editor and open this page in
my Main wiki. I compare pages and delete all object which not present in
/XWiki/XWikiPreferences in my subwiki. After this - admin ui works correctly
on my Main wiki! (I think that some old objects broke admin UI) 


Thank for help!



--
View this message in context: 
http://xwiki.475771.n2.nabble.com/Problem-with-update-from-7-1-2-to-8-4-1-tp7601982p7602501.html
Sent from the XWiki- Users mailing list archive at Nabble.com.


Re: [xwiki-users] Inline blog with teaser in a page

2017-01-20 Thread Vincent Massol

> On 20 Jan 2017, at 09:18, Canny  wrote:
> 
> Is there a way to access the appropriate XWiki.DocumentSheetBinding
> configuration, as it is used xwiki.org.
> I miss to corrent entry point to go deep in this topic to help myself
> instead of asking any step. Do you have any suggestions?

There’s no “source” view for xobjects but you can get all the info from the XML 
view:
http://www.xwiki.org/xwiki/bin/view/Main/News?xpage=xml

Thanks
-Vincent

> 
> 
> 
> --
> View this message in context: 
> http://xwiki.475771.n2.nabble.com/Inline-blog-with-teaser-in-a-page-tp7602494p7602499.html
> Sent from the XWiki- Users mailing list archive at Nabble.com.



Re: [xwiki-users] Inline blog with teaser in a page

2017-01-20 Thread Canny
Is there a way to access the appropriate XWiki.DocumentSheetBinding
configuration, as it is used xwiki.org.
I miss to corrent entry point to go deep in this topic to help myself
instead of asking any step. Do you have any suggestions?



--
View this message in context: 
http://xwiki.475771.n2.nabble.com/Inline-blog-with-teaser-in-a-page-tp7602494p7602499.html
Sent from the XWiki- Users mailing list archive at Nabble.com.


Re: [xwiki-users] Inline blog with teaser in a page

2017-01-20 Thread Vincent Massol

> On 20 Jan 2017, at 09:10, Canny  wrote:
> 
> Hi Vincent,
> 
> adding the "Blog.BlogClass" class leads to losing the embedded mode. The
> hole page is now the blog overview page. Try to edit the page opens the blog
> overview edit page, no change to access the original content of the page
> where i try to embed the blog inline. I noticed that the blog entries are
> not teasered and the create button for a new blog post is displayed. How to
> get the embedding and style as on xwiki.org?

Right, you also need to add an xobject of type  XWiki.DocumentSheetBinding to 
override the class sheet binding you get from the BlogClass itself :)

Thanks
-Vincent
 
> Thanks,
> 
> Canny
> 
> 
> 
> --
> View this message in context: 
> http://xwiki.475771.n2.nabble.com/Inline-blog-with-teaser-in-a-page-tp7602494p7602497.html
> Sent from the XWiki- Users mailing list archive at Nabble.com.



Re: [xwiki-users] Inline blog with teaser in a page

2017-01-20 Thread Canny
Hi Vincent,

adding the "Blog.BlogClass" class leads to losing the embedded mode. The
hole page is now the blog overview page. Try to edit the page opens the blog
overview edit page, no change to access the original content of the page
where i try to embed the blog inline. I noticed that the blog entries are
not teasered and the create button for a new blog post is displayed. How to
get the embedding and style as on xwiki.org?

Thanks,

Canny



--
View this message in context: 
http://xwiki.475771.n2.nabble.com/Inline-blog-with-teaser-in-a-page-tp7602494p7602497.html
Sent from the XWiki- Users mailing list archive at Nabble.com.


Re: [xwiki-users] jodatime challenge

2017-01-20 Thread Vincent Massol
Hi,

> On 20 Jan 2017, at 08:27, [IDIS Technical Secretariat] Ricardo Rodríguez 
>  wrote:
> 
> Hi! The same code works fine in an XWiki 7.3 installation...
> 
> http://portal.idisantiago.es/xwiki/bin/view/ICT/PureDate/
> 
> Thus, "my" problem is to find where ComparisonDateTool is located in this
> installation and make it works in a legacy XWiki Enterprise 2.4.30451 one.

Wow XE 2.4 is really old...

I don’t remember if the $datetool binding was available and it’s possible that 
it wasn’t.

FYI it’s located in a java class in the xwiki-velocity*.jar file.

Thanks
-Vincent

> 
> Any help will be welcome! Thank!
> 
> On Thu, Jan 19, 2017 at 11:41 PM [IDIS Technical Secretariat] Ricardo
> Rodríguez  wrote:
> 
>> Hi! I've been these last days trying to regain access to an ancient issue
>> while dealing with dates. Searching Jira I found this...
>> 
>> http://jira.xwiki.org/browse/XWIKI-5610?jql=text%20~%20%22datetool%22
>> 
>> ... and this at XWiki Platforma site...
>> 
>> http://platform.xwiki.org/xwiki/bin/view/SRD/datetool
>> 
>> To the best of my understanding ComparisonDateTool is implemented and
>> accessible through $datetool velocity variable. But I'm not able to get it
>> working.
>> 
>> On Thu, Jan 19, 2017 at 3:54 PM Hamster  wrote:
>> 
>> Have you checked the documentation for the  DateTool
>> <
>> https://velocity.apache.org/tools/devel/apidocs/org/apache/velocity/tools/generic/DateTool.html
>>> 
>> and the  ComparisonDateTool
>> <
>> https://velocity.apache.org/tools/devel/apidocs/org/apache/velocity/tools/generic/ComparisonDateTool.html
>>> 
>> ?
>> 
>> 
>> Please, check this page...
>> 
>> http://atriumkm.idisantiago.es/bin/ICT/PureDate
>> 
>> I'm able to get working the examples at DateTool page, but not those at
>> ComparisonDateTool page. Please, could anybody point us in the right
>> direction? Where are we failing?
>> 
>> 
>> --
>> View this message in context:
>> http://xwiki.475771.n2.nabble.com/jodatime-challenge-tp7602468p7602489.html
>> Sent from the XWiki- Users mailing list archive at Nabble.com.
>> 
>> 
>> Thank you very much for your work!
>> 
>> Ricardo
>> --
>> Ricardo Rodríguez
>> Research Management and Promotion Technician
>> Technical Secretariat
>> Health Research Institute of Santiago de Compostela (IDIS)
>> http://www.idisantiago.es
>> 
> -- 
> Ricardo Rodríguez
> Research Management and Promotion Technician
> Technical Secretariat
> Health Research Institute of Santiago de Compostela (IDIS)
> http://www.idisantiago.es