Re: [xwiki-users] Setup a sepparate space for javascript

2016-05-26 Thread Daniel Ullfig
I was looking around XWiki, and there does not seem to be a Class Page for 
the class JavaScriptExtensionClass, even though it is a class, and there are 
Class Documents for a whole bunch of other xwiki classes. This kinda breaks 
the paradigm, doesn't it? It should at least be some kind of read-only page. 
Because then it would be real simple to add a custom editor for javascript, 
by changing the ClassSheet attached to the JavaScriptExtensionClass page. 
Just an idea.


Dan

-Original Message- 
From: Daniel Ullfig

Sent: Thursday, May 26, 2016 8:57 AM
To: XWiki Users
Subject: Re: [xwiki-users] Setup a sepparate space for javascript

Thanks for the tip! I was in the middle of embedding Ace Editor in a page.
Got it to work. displays javascript beautifully. But now I would have to
work on integrating Rest calls, so that Ace can save the scripts back to the
page.

Isn't there a way of overriding the Object Editor, so that when it sees that
you are opening a JavaScriptExtension, it uses Ace instead of the plain text
field?

Dan

PS.: there's so many questions I  have about xwiki! It's a treasure trove of
functionality, but there's a vast amount of info to wade through. Like, I
don't quite understand the instructions on how to add a webjar to xwiki. Not
every xwiki user is a seasoned web developer ;-)


-Original Message- 
From: Marius Dumitru Florea

Sent: Thursday, May 26, 2016 1:35 AM
To: XWiki Users
Subject: Re: [xwiki-users] Setup a sepparate space for javascript

On Wed, May 25, 2016 at 8:05 PM, dullfig  wrote:


Hello:

I was wondering if anyone else has done this. My application is starting 
to

need a whole bunch of javascript, and I was thinking of setting up a
separate space (maybe call it js) where there is nothing but pages with
javascript objects attached.





That way I could set up a ClassSheet for that
space,



ClassSheets, as their name suggests, are bound to a class not to a space.
So you don't have to move the pages with JSX objects in a separate space.
You can create a new class, with a sheet that embeds ACE, and add an object
of this class to all the pages you want to edit with ACE. But even this is
not needed as there are already some extensions available that provide
syntax highlighting, if that's what you are looking for.

Hope this helps,
Marius



whith an embedded javascript editor (ace editor) to make editing the
javascript easier.

Dan.



--
View this message in context:
http://xwiki.475771.n2.nabble.com/Setup-a-sepparate-space-for-javascript-tp7599647.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users 



___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] internationalisation

2016-05-26 Thread superuser
I think it will be better if I could translate the UI modules separately from
each other, instead of putting all key-value pairs at one place with global
scope. e.g. having one transation page for drawer and other page for say,
menu will be good.
it could allow me to have for example: "greeting=hello" in drawer and
"greeting=hi" in menu.



--
View this message in context: 
http://xwiki.475771.n2.nabble.com/internationalisation-tp7599684p7599686.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Python macro scripting - available packages?

2016-05-26 Thread Marc Mercer
Take a look at the refreshed python_macro page:
http://extensions.xwiki.org/xwiki/bin/view/Extension/Python+Macro

It should be of some help.

-Daemoen

On Thu, May 26, 2016 at 9:01 AM, Sebastian Schafer 
wrote:

> Thank you both for the help. I'll try to play with copying packages in the
> local directory and see whether Jython picks it up, there might be other
> restrictions. If I find anything useful, I'll update the doc site.
>
> Cheers
>
>   Sebastian
>
> -Original Message-
> From: users [mailto:users-boun...@xwiki.org] On Behalf Of Thomas Mortagne
> Sent: Thursday, May 26, 2016 12:34 AM
> To: XWiki Users
> Subject: Re: [xwiki-users] Python macro scripting - available packages?
>
> And same comment as Vincent, if you find a nice trick please don't
> hesitate to share it on
> http://extensions.xwiki.org/xwiki/bin/view/Extension/Python+Macro
>
> On Thu, May 26, 2016 at 9:29 AM, Thomas Mortagne <
> thomas.morta...@xwiki.com> wrote:
> > If you want to see the embedded modules, they are all located in the
> > jython-standalone jar (you can open it as a zip) file in /Lib folder.
> >
> > On Thu, May 26, 2016 at 9:27 AM, Thomas Mortagne
> >  wrote:
> >> Actually Vincent is talking about the ruby macro.
> >>
> >> The python macro implementation is Jython (through JSR223) that you
> >> can find on http://jython.org/.
> >>
> >> Some ideas: It might be enough to just put the egg file of the module
> >> you need directly in WEB-INF/lib since Jython is scanning the
> >> classpath (renaming .egg to .jar might help depending on the
> >> application server). If that does not work then you will need to
> >> create a proper jar (with MANIFEST and all) and put in it whatever
> >> the .egg file contains (that's pretty much what I did for the
> >> Pygments module).
> >>
> >> In any case you should get more accurate information by asking Jython
> guys.
> >>
> >> On Thu, May 26, 2016 at 8:26 AM, Vincent Massol 
> wrote:
> >>> Hi Sebastian,
> >>>
>  On 26 May 2016, at 02:17, Sebastian Schafer 
> wrote:
> 
>  Hi,
>  I'm trying to import some packages into the Python macro on Xwiki
> 7.2, and while standard packages import fine (working with os and re,
> etc.), some (like xlrd) don't.
>  Looking through the scripting guide and macro documentation I could
> not figure out how the Python macro actually works.
>  Is it just a collection of bindings and translates the python script
> into groovy or something else, or is it calling the local Python
> installation? This might sound stupid, but I thought the latter was the
> case and this would limit the available packages (the ones I want to load
> are installed locally).
> >>>
> >>> We’re using jruby through JSR223 (java scripting api).
> >>>
> >>> Maybe https://github.com/jruby/jruby/wiki/ApplicationsAndLibraries
> can help?
> >>>
> >>> Once you find out how to do it, it’ll be interesting if you could
> >>> document it on
> >>> http://extensions.xwiki.org/xwiki/bin/view/Extension/Ruby+Macro
> >>>
> >>> Thanks
> >>> -Vincent
> >>>
>  Thank you
> 
>   Sebastian
> >>>
> >>> ___
> >>> users mailing list
> >>> users@xwiki.org
> >>> http://lists.xwiki.org/mailman/listinfo/users
> >>
> >>
> >>
> >> --
> >> Thomas Mortagne
> >
> >
> >
> > --
> > Thomas Mortagne
>
>
>
> --
> Thomas Mortagne
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] internationalisation

2016-05-26 Thread superuser
i am translating xwiki interface (e.g. login, register, page information,
etc) of my website (www.wikinote.org) into marathi. 
i am doing this as: XWiki.Translations > Bundle in admin >>> etc. it works.
Problem:
it also translates the page content into marathi which is not always
intended. e.g. login word at two places- 1] xwiki drawer; 2] page content
i want only translating login in drawer and not in page content. how to do
the same?
thanks



--
View this message in context: 
http://xwiki.475771.n2.nabble.com/internationalisation-tp7599684.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Twitter Macro

2016-05-26 Thread Paul Pinkerton (ACLCO)
Thanks Silvia, Ludovic and Vincent.  I did exactly what Silvia suggested here 
and created the Twitter widget and used it in an HTML macro.  Working great.  
I'm just playing with some of the surrounding html code to see if I can make it 
a prettier display.

Thanks.

Paul Pinkerton
KnowledgeNow Project/ ACLCO

-Original Message-
From: users [mailto:users-boun...@xwiki.org] On Behalf Of Silvia Macovei
Sent: May-26-16 3:41 AM
To: XWiki Users
Subject: Re: [xwiki-users] Twitter Macro

Hi,

I’ve been using Twitter Widgets + the XWiki HTML macro to display Twitter feeds 
on a wiki page. To create the widget you can follow the instructions on 
https://support.twitter.com/articles/20170071# and then copy/ paste the code 
into the HTML macro.

Hope this helps,
Silvia

On Wed, May 25, 2016 at 7:42 PM, Paul Pinkerton (ACLCO) 
wrote:

> Trying to get this macro to work:
> http://extensions.xwiki.org/xwiki/bin/view/Extension/Twitter+Macro
>
> I seem to be missing something with it.What I really want to do is
> simply display a Twitter feed on a page.
>
> Any help is appreciated!
>
> Paul Pinkerton
> KnowledgeNow Project/ ACLCO
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Missing main menu/navigation bar

2016-05-26 Thread Vincent Massol

> On 26 May 2016, at 18:05, Silvia Macovei  wrote:
> 
> Hi,
> 
> I've made a quick update to the Getting Started page, so it reflects the
> new UI: http://enterprise.xwiki.org/xwiki/bin/view/GettingStarted/

Thanks Silvia!

-Vincent

> 
> Thanks for pointing this out!
> Silvia
> 
> On Tue, May 24, 2016 at 3:52 PM, Lao  wrote:
> 
>> Oh, I see. Thank you!
>> 
>> ps I guess the link to the "Getting Started Guide" should be updated then
>> to
>> prevent such misunderstandings.
>> 
>> 
>> 
>> --
>> View this message in context:
>> http://xwiki.475771.n2.nabble.com/Missing-main-menu-navigation-bar-tp7599587p7599589.html

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Missing main menu/navigation bar

2016-05-26 Thread Silvia Macovei
Hi,

I've made a quick update to the Getting Started page, so it reflects the
new UI: http://enterprise.xwiki.org/xwiki/bin/view/GettingStarted/

Thanks for pointing this out!
Silvia

On Tue, May 24, 2016 at 3:52 PM, Lao  wrote:

> Oh, I see. Thank you!
>
> ps I guess the link to the "Getting Started Guide" should be updated then
> to
> prevent such misunderstandings.
>
>
>
> --
> View this message in context:
> http://xwiki.475771.n2.nabble.com/Missing-main-menu-navigation-bar-tp7599587p7599589.html
> Sent from the XWiki- Users mailing list archive at Nabble.com.
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Python macro scripting - available packages?

2016-05-26 Thread Sebastian Schafer
Thank you both for the help. I'll try to play with copying packages in the 
local directory and see whether Jython picks it up, there might be other 
restrictions. If I find anything useful, I'll update the doc site.

Cheers

  Sebastian

-Original Message-
From: users [mailto:users-boun...@xwiki.org] On Behalf Of Thomas Mortagne
Sent: Thursday, May 26, 2016 12:34 AM
To: XWiki Users
Subject: Re: [xwiki-users] Python macro scripting - available packages?

And same comment as Vincent, if you find a nice trick please don't hesitate to 
share it on http://extensions.xwiki.org/xwiki/bin/view/Extension/Python+Macro

On Thu, May 26, 2016 at 9:29 AM, Thomas Mortagne  
wrote:
> If you want to see the embedded modules, they are all located in the 
> jython-standalone jar (you can open it as a zip) file in /Lib folder.
>
> On Thu, May 26, 2016 at 9:27 AM, Thomas Mortagne 
>  wrote:
>> Actually Vincent is talking about the ruby macro.
>>
>> The python macro implementation is Jython (through JSR223) that you 
>> can find on http://jython.org/.
>>
>> Some ideas: It might be enough to just put the egg file of the module 
>> you need directly in WEB-INF/lib since Jython is scanning the 
>> classpath (renaming .egg to .jar might help depending on the 
>> application server). If that does not work then you will need to 
>> create a proper jar (with MANIFEST and all) and put in it whatever 
>> the .egg file contains (that's pretty much what I did for the 
>> Pygments module).
>>
>> In any case you should get more accurate information by asking Jython guys.
>>
>> On Thu, May 26, 2016 at 8:26 AM, Vincent Massol  wrote:
>>> Hi Sebastian,
>>>
 On 26 May 2016, at 02:17, Sebastian Schafer  wrote:

 Hi,
 I'm trying to import some packages into the Python macro on Xwiki 7.2, and 
 while standard packages import fine (working with os and re, etc.), some 
 (like xlrd) don't.
 Looking through the scripting guide and macro documentation I could not 
 figure out how the Python macro actually works.
 Is it just a collection of bindings and translates the python script into 
 groovy or something else, or is it calling the local Python installation? 
 This might sound stupid, but I thought the latter was the case and this 
 would limit the available packages (the ones I want to load are installed 
 locally).
>>>
>>> We’re using jruby through JSR223 (java scripting api).
>>>
>>> Maybe https://github.com/jruby/jruby/wiki/ApplicationsAndLibraries can help?
>>>
>>> Once you find out how to do it, it’ll be interesting if you could 
>>> document it on 
>>> http://extensions.xwiki.org/xwiki/bin/view/Extension/Ruby+Macro
>>>
>>> Thanks
>>> -Vincent
>>>
 Thank you

  Sebastian
>>>
>>> ___
>>> users mailing list
>>> users@xwiki.org
>>> http://lists.xwiki.org/mailman/listinfo/users
>>
>>
>>
>> --
>> Thomas Mortagne
>
>
>
> --
> Thomas Mortagne



--
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Setup a sepparate space for javascript

2016-05-26 Thread Daniel Ullfig
Thanks for the tip! I was in the middle of embedding Ace Editor in a page. 
Got it to work. displays javascript beautifully. But now I would have to 
work on integrating Rest calls, so that Ace can save the scripts back to the 
page.


Isn't there a way of overriding the Object Editor, so that when it sees that 
you are opening a JavaScriptExtension, it uses Ace instead of the plain text 
field?


Dan

PS.: there's so many questions I  have about xwiki! It's a treasure trove of 
functionality, but there's a vast amount of info to wade through. Like, I 
don't quite understand the instructions on how to add a webjar to xwiki. Not 
every xwiki user is a seasoned web developer ;-)



-Original Message- 
From: Marius Dumitru Florea

Sent: Thursday, May 26, 2016 1:35 AM
To: XWiki Users
Subject: Re: [xwiki-users] Setup a sepparate space for javascript

On Wed, May 25, 2016 at 8:05 PM, dullfig  wrote:


Hello:

I was wondering if anyone else has done this. My application is starting 
to

need a whole bunch of javascript, and I was thinking of setting up a
separate space (maybe call it js) where there is nothing but pages with
javascript objects attached.





That way I could set up a ClassSheet for that
space,



ClassSheets, as their name suggests, are bound to a class not to a space.
So you don't have to move the pages with JSX objects in a separate space.
You can create a new class, with a sheet that embeds ACE, and add an object
of this class to all the pages you want to edit with ACE. But even this is
not needed as there are already some extensions available that provide
syntax highlighting, if that's what you are looking for.

Hope this helps,
Marius



whith an embedded javascript editor (ace editor) to make editing the
javascript easier.

Dan.



--
View this message in context:
http://xwiki.475771.n2.nabble.com/Setup-a-sepparate-space-for-javascript-tp7599647.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users 



___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] xWiki 8.1 ignoring custom skin

2016-05-26 Thread Mahomed Hussein
I'm afraid that makes no difference.

Would it be worth deleting and recreating a new skin?

I have noticed that the "home" icon as well as other icons in the applications 
panel have changed from the font-awesome type to colourful type icons. But I 
still don't have the logo or any of the modifications from the attached .vm 
files.

I have downloaded the .vm files and I don't mind editing them again based on 
the latest files. I just need to know how to create a new skin that I can 
customise and be sure it'll work going forward.

Please could you help me with specific instructions on how to do this if it's 
possible? Thanks.


Kind regards,



Mahomed Hussein
Custodian Data Centre
Email: maho...@custodiandc.com
http://www.CustodianDC.com

-Original Message-
From: users [mailto:users-boun...@xwiki.org] On Behalf Of Vincent Massol
Sent: 26 May 2016 14:14
To: XWiki Users 
Subject: Re: [xwiki-users] xWiki 8.1 ignoring custom skin


> On 26 May 2016, at 15:08, Mahomed Hussein  wrote:
>
> Hi Thomas
>
> Thanks for responding.
>
> The skin is called "CDCSkin". Which is sometimes shown as "Main.CDCSkin".
>
> The URL for it is:
>
> http://xwiki.local:8080/xwiki/bin/view/Main/CDCSkin
>
> The title of the page is simply "Skin" and the breadcrumbs shows "Home > Skin"
>
> I have tried the following URLS and none work:
>
> http://xwiki.local:8080/xwiki/bin/view/Main/?skin=CDCSkin
> http://xwiki.local:8080/xwiki/bin/view/Main/?skin=Main.CDCSkin
> http://xwiki.local:8080/xwiki/bin/view/Main/?skin=Skin

Could it be that your skin  page is a nested page?

Try http://xwiki.local:8080/xwiki/bin/view/Main/?skin=Main.CDCSkin.WebHome

Thanks
-Vincent

> I have also checked in /usr/lib/xwiki/skins and the only directory in there 
> is "flamingo". Though I am pretty sure at some point it was changed so that 
> you didn't have to duplicate the folder, just had to create a "skin" document 
> (not sure document is the right word, but hopefully you know what I mean).
>
> I've tried a search for "CDCSkin" on the server and it doesn't appear to 
> exist on the filesystem.
>
> Please let me know if you need any other info and thanks again for your help.
>
>
>
> Kind regards,
>
>
>
>
> Mahomed Hussein
> Custodian Data Centre
> Email: maho...@custodiandc.com
> http://www.CustodianDC.com
>
> -Original Message-
> From: users [mailto:users-boun...@xwiki.org] On Behalf Of Thomas
> Mortagne
> Sent: 26 May 2016 13:44
> To: XWiki Users 
> Subject: Re: [xwiki-users] xWiki 8.1 ignoring custom skin
>
> The only thing that changed I can think of is that there is a default base 
> skin now in xwiki.cfg. Skin that were not indicated any parent skin used to 
> inherit directly from /templates/, maybe that's you issue.
>
>
> On Thu, May 26, 2016 at 2:41 PM, Thomas Mortagne  
> wrote:
>> ?skin= should always work. What and where is your skin exactly ?
>>
>> On Thu, May 26, 2016 at 2:30 PM, Mahomed Hussein
>>  wrote:
>>> Hi
>>>
>>> It seems that 8.1 is ignoring my custom skin. I can tell because it isn’t 
>>> loading the skin or any of the overriding .vm files.
>>>
>>> Even if I use the “Test this Skin” link which specifically specifies the 
>>> ?skin=CDCSkin, it doesn’t make any difference.
>>>
>>> I have looked through:
>>> http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWiki81
>>> http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Skins
>>> But they weren’t much help.
>>>
>>> Some screenshots:
>>> https://snag.gy/9ZKXN2.jpg
>>> https://snag.gy/oYN3F4.jpg
>>>
>>> Any help would be sincerely appreciated. Thanks.
>>>
>>>
>>> Kind regards,
>>>

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] xWiki 8.1 ignoring custom skin

2016-05-26 Thread Vincent Massol

> On 26 May 2016, at 15:08, Mahomed Hussein  wrote:
> 
> Hi Thomas
> 
> Thanks for responding.
> 
> The skin is called "CDCSkin". Which is sometimes shown as "Main.CDCSkin".
> 
> The URL for it is:
> 
> http://xwiki.local:8080/xwiki/bin/view/Main/CDCSkin
> 
> The title of the page is simply "Skin" and the breadcrumbs shows "Home > Skin"
> 
> I have tried the following URLS and none work:
> 
> http://xwiki.local:8080/xwiki/bin/view/Main/?skin=CDCSkin
> http://xwiki.local:8080/xwiki/bin/view/Main/?skin=Main.CDCSkin
> http://xwiki.local:8080/xwiki/bin/view/Main/?skin=Skin

Could it be that your skin  page is a nested page?

Try http://xwiki.local:8080/xwiki/bin/view/Main/?skin=Main.CDCSkin.WebHome

Thanks
-Vincent

> I have also checked in /usr/lib/xwiki/skins and the only directory in there 
> is "flamingo". Though I am pretty sure at some point it was changed so that 
> you didn't have to duplicate the folder, just had to create a "skin" document 
> (not sure document is the right word, but hopefully you know what I mean).
> 
> I've tried a search for "CDCSkin" on the server and it doesn't appear to 
> exist on the filesystem.
> 
> Please let me know if you need any other info and thanks again for your help.
> 
> 
> 
> Kind regards,
> 
> 
> 
> 
> Mahomed Hussein
> Custodian Data Centre
> Email: maho...@custodiandc.com
> http://www.CustodianDC.com
> 
> -Original Message-
> From: users [mailto:users-boun...@xwiki.org] On Behalf Of Thomas Mortagne
> Sent: 26 May 2016 13:44
> To: XWiki Users 
> Subject: Re: [xwiki-users] xWiki 8.1 ignoring custom skin
> 
> The only thing that changed I can think of is that there is a default base 
> skin now in xwiki.cfg. Skin that were not indicated any parent skin used to 
> inherit directly from /templates/, maybe that's you issue.
> 
> 
> On Thu, May 26, 2016 at 2:41 PM, Thomas Mortagne  
> wrote:
>> ?skin= should always work. What and where is your skin exactly ?
>> 
>> On Thu, May 26, 2016 at 2:30 PM, Mahomed Hussein
>>  wrote:
>>> Hi
>>> 
>>> It seems that 8.1 is ignoring my custom skin. I can tell because it isn’t 
>>> loading the skin or any of the overriding .vm files.
>>> 
>>> Even if I use the “Test this Skin” link which specifically specifies the 
>>> ?skin=CDCSkin, it doesn’t make any difference.
>>> 
>>> I have looked through:
>>> http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWiki81
>>> http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Skins
>>> But they weren’t much help.
>>> 
>>> Some screenshots:
>>> https://snag.gy/9ZKXN2.jpg
>>> https://snag.gy/oYN3F4.jpg
>>> 
>>> Any help would be sincerely appreciated. Thanks.
>>> 
>>> 
>>> Kind regards,
>>> 

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] xWiki 8.1 ignoring custom skin

2016-05-26 Thread Mahomed Hussein
Hi Thomas

Thanks for responding.

The skin is called "CDCSkin". Which is sometimes shown as "Main.CDCSkin".

The URL for it is:

http://xwiki.local:8080/xwiki/bin/view/Main/CDCSkin

The title of the page is simply "Skin" and the breadcrumbs shows "Home > Skin"

I have tried the following URLS and none work:

http://xwiki.local:8080/xwiki/bin/view/Main/?skin=CDCSkin
http://xwiki.local:8080/xwiki/bin/view/Main/?skin=Main.CDCSkin
http://xwiki.local:8080/xwiki/bin/view/Main/?skin=Skin


I have also checked in /usr/lib/xwiki/skins and the only directory in there is 
"flamingo". Though I am pretty sure at some point it was changed so that you 
didn't have to duplicate the folder, just had to create a "skin" document (not 
sure document is the right word, but hopefully you know what I mean).

I've tried a search for "CDCSkin" on the server and it doesn't appear to exist 
on the filesystem.

Please let me know if you need any other info and thanks again for your help.



Kind regards,




Mahomed Hussein
Custodian Data Centre
Email: maho...@custodiandc.com
http://www.CustodianDC.com

-Original Message-
From: users [mailto:users-boun...@xwiki.org] On Behalf Of Thomas Mortagne
Sent: 26 May 2016 13:44
To: XWiki Users 
Subject: Re: [xwiki-users] xWiki 8.1 ignoring custom skin

The only thing that changed I can think of is that there is a default base skin 
now in xwiki.cfg. Skin that were not indicated any parent skin used to inherit 
directly from /templates/, maybe that's you issue.


On Thu, May 26, 2016 at 2:41 PM, Thomas Mortagne  
wrote:
> ?skin= should always work. What and where is your skin exactly ?
>
> On Thu, May 26, 2016 at 2:30 PM, Mahomed Hussein
>  wrote:
>> Hi
>>
>> It seems that 8.1 is ignoring my custom skin. I can tell because it isn’t 
>> loading the skin or any of the overriding .vm files.
>>
>> Even if I use the “Test this Skin” link which specifically specifies the 
>> ?skin=CDCSkin, it doesn’t make any difference.
>>
>> I have looked through:
>> http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWiki81
>> http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Skins
>> But they weren’t much help.
>>
>> Some screenshots:
>> https://snag.gy/9ZKXN2.jpg
>> https://snag.gy/oYN3F4.jpg
>>
>> Any help would be sincerely appreciated. Thanks.
>>
>>
>> Kind regards,
>>
>>
>> Mahomed Hussein
>> Custodian Data Centre
>> Email: maho...@custodiandc.com
>> http://www.CustodianDC.com
>> ___
>> users mailing list
>> users@xwiki.org
>> http://lists.xwiki.org/mailman/listinfo/users
>
>
>
> --
> Thomas Mortagne



--
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] xWiki 8.1 ignoring custom skin

2016-05-26 Thread Thomas Mortagne
The only thing that changed I can think of is that there is a default
base skin now in xwiki.cfg. Skin that were not indicated any parent
skin used to inherit directly from /templates/, maybe that's you
issue.


On Thu, May 26, 2016 at 2:41 PM, Thomas Mortagne
 wrote:
> ?skin= should always work. What and where is your skin exactly ?
>
> On Thu, May 26, 2016 at 2:30 PM, Mahomed Hussein
>  wrote:
>> Hi
>>
>> It seems that 8.1 is ignoring my custom skin. I can tell because it isn’t 
>> loading the skin or any of the overriding .vm files.
>>
>> Even if I use the “Test this Skin” link which specifically specifies the 
>> ?skin=CDCSkin, it doesn’t make any difference.
>>
>> I have looked through:
>> http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWiki81
>> http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Skins
>> But they weren’t much help.
>>
>> Some screenshots:
>> https://snag.gy/9ZKXN2.jpg
>> https://snag.gy/oYN3F4.jpg
>>
>> Any help would be sincerely appreciated. Thanks.
>>
>>
>> Kind regards,
>>
>>
>> Mahomed Hussein
>> Custodian Data Centre
>> Email: maho...@custodiandc.com
>> http://www.CustodianDC.com
>> ___
>> users mailing list
>> users@xwiki.org
>> http://lists.xwiki.org/mailman/listinfo/users
>
>
>
> --
> Thomas Mortagne



-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] xWiki 8.1 ignoring custom skin

2016-05-26 Thread Thomas Mortagne
?skin= should always work. What and where is your skin exactly ?

On Thu, May 26, 2016 at 2:30 PM, Mahomed Hussein
 wrote:
> Hi
>
> It seems that 8.1 is ignoring my custom skin. I can tell because it isn’t 
> loading the skin or any of the overriding .vm files.
>
> Even if I use the “Test this Skin” link which specifically specifies the 
> ?skin=CDCSkin, it doesn’t make any difference.
>
> I have looked through:
> http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWiki81
> http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Skins
> But they weren’t much help.
>
> Some screenshots:
> https://snag.gy/9ZKXN2.jpg
> https://snag.gy/oYN3F4.jpg
>
> Any help would be sincerely appreciated. Thanks.
>
>
> Kind regards,
>
>
> Mahomed Hussein
> Custodian Data Centre
> Email: maho...@custodiandc.com
> http://www.CustodianDC.com
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users



-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] xWiki 8.1 ignoring custom skin

2016-05-26 Thread Mahomed Hussein
Hi

It seems that 8.1 is ignoring my custom skin. I can tell because it isn’t 
loading the skin or any of the overriding .vm files.

Even if I use the “Test this Skin” link which specifically specifies the 
?skin=CDCSkin, it doesn’t make any difference.

I have looked through:
http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWiki81
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Skins
But they weren’t much help.

Some screenshots:
https://snag.gy/9ZKXN2.jpg
https://snag.gy/oYN3F4.jpg

Any help would be sincerely appreciated. Thanks.


Kind regards,


Mahomed Hussein
Custodian Data Centre
Email: maho...@custodiandc.com
http://www.CustodianDC.com
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Help configuring Email Sending for User verification

2016-05-26 Thread superuser
a step ahead.. now the status of mail sending is "prepare_success".
but the mail is not sent yet. what could be the reason? pls help



--
View this message in context: 
http://xwiki.475771.n2.nabble.com/Help-configuring-Email-Sending-for-User-verification-tp7599610p7599671.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] REST API ignores type parameter

2016-05-26 Thread Marius Dumitru Florea
On Wed, May 25, 2016 at 3:00 PM, Mark Sack 
wrote:

> You're right - I was missing the wiki name. But, for some reason, I still
> can't get the queries to work. Here is what I've found so far.
>
> There is only one wiki - confirmed by the following REST call:
> http://10.1.16.192/wiki/rest/wikis/ which returns
>
> http://10.1.16.192:8080/wiki/rest/wikis/query";
> rel="http://www.xwiki.org/rel/query"/> href="http://10.1.16.192:8080/wiki/rest/wikis/xwiki/spaces";
> rel="http://www.xwiki.org/rel/spaces"/> href="http://10.1.16.192:8080/wiki/rest/wikis/xwiki/classes";
> rel="http://www.xwiki.org/rel/classes"/> href="http://10.1.16.192:8080/wiki/rest/wikis/xwiki/modifications";
> rel="http://www.xwiki.org/rel/modifications"/> href="http://10.1.16.192:8080/wiki/rest/wikis/xwiki/search";
> rel="http://www.xwiki.org/rel/search"/> href="http://10.1.16.192:8080/wiki/rest/wikis/xwiki/query";
> rel="http://www.xwiki.org/rel/query
> "/>xwikixwiki
>
> I can get some information about the wiki using
> http://10.1.16.192/wiki/rest/wikis/xwiki/ which returns
>
> http://10.1.16.192:8080/wiki/rest/wikis/xwiki/spaces";
> rel="http://www.xwiki.org/rel/spaces"/> href="http://10.1.16.192:8080/wiki/rest/wikis/xwiki/classes";
> rel="http://www.xwiki.org/rel/classes"/> href="http://10.1.16.192:8080/wiki/rest/wikis/xwiki/modifications";
> rel="http://www.xwiki.org/rel/modifications"/> href="http://10.1.16.192:8080/wiki/rest/wikis/xwiki/search";
> rel="http://www.xwiki.org/rel/search"/> href="http://10.1.16.192:8080/wiki/rest/wikis/xwiki/query";
> rel="http://www.xwiki.org/rel/query
> "/>xwikixwiki
>
> I can get a list of spaces in the wiki using
> http://10.1.16.192/wiki/rest/wikis/xwiki/spaces/
> I won't reproduce the results as it is quite long but it looks correct and
> includes those that I've added.
>
> But if I try to do a simple query such as
>
>
> .../rest/wikis/xwiki/query?q=select+obj.first_name+from+Document+doc%2C+doc.object%28XWiki.XWikiUsers%29+as+obj&type=xwql
>
> the result is
>
>  template="
> http://10.1.16.192:8080/wiki/rest/wikis/xwiki/query?q={query}(&type={type})(&number={number})(&start={start})(&orderField={fieldname}(&order={asc|desc}))(&distinct=1)(&prettyNames={false|true})(&wikis={wikis})(&className={classname})
> "/>
>
> whereas the same query executed in velocity (without the URL encoding)
> returns the correct result.
>

I checked the code and it seems you are not allowed to use full statements
(i.e. that start with 'select'). You have to use instead:

,  where ...

or

where ...

Unfortunately using a short query is not enough for XWQL. It seems the code
doesn't do anything special for XWQL query type and it treats it as HQL. So
for now you'll have to rely on HQL. See
http://extensions.xwiki.org/xwiki/bin/view/Extension/Query+Module .

You should probably report a bug regarding the fact that XWQL cannot be
used.

Hope this helps,
Marius


>
> This is again probably some simple item I've overlooked. I appreciate your
> help in resolving this problem.
>
> Regards
> Mark Sack
>
>
>
>
>
> --
> View this message in context:
> http://xwiki.475771.n2.nabble.com/REST-API-ignores-type-parameter-tp7599586p7599636.html
> Sent from the XWiki- Users mailing list archive at Nabble.com.
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Setup a sepparate space for javascript

2016-05-26 Thread Marius Dumitru Florea
On Wed, May 25, 2016 at 8:05 PM, dullfig  wrote:

> Hello:
>
> I was wondering if anyone else has done this. My application is starting to
> need a whole bunch of javascript, and I was thinking of setting up a
> separate space (maybe call it js) where there is nothing but pages with
> javascript objects attached.
>


> That way I could set up a ClassSheet for that
> space,


ClassSheets, as their name suggests, are bound to a class not to a space.
So you don't have to move the pages with JSX objects in a separate space.
You can create a new class, with a sheet that embeds ACE, and add an object
of this class to all the pages you want to edit with ACE. But even this is
not needed as there are already some extensions available that provide
syntax highlighting, if that's what you are looking for.

Hope this helps,
Marius


> whith an embedded javascript editor (ace editor) to make editing the
> javascript easier.
>
> Dan.
>
>
>
> --
> View this message in context:
> http://xwiki.475771.n2.nabble.com/Setup-a-sepparate-space-for-javascript-tp7599647.html
> Sent from the XWiki- Users mailing list archive at Nabble.com.
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Twitter Macro

2016-05-26 Thread Silvia Macovei
Hi,

I’ve been using Twitter Widgets + the XWiki HTML macro to display Twitter
feeds on a wiki page. To create the widget you can follow the instructions
on https://support.twitter.com/articles/20170071# and then copy/ paste the
code into the HTML macro.

Hope this helps,
Silvia

On Wed, May 25, 2016 at 7:42 PM, Paul Pinkerton (ACLCO) 
wrote:

> Trying to get this macro to work:
> http://extensions.xwiki.org/xwiki/bin/view/Extension/Twitter+Macro
>
> I seem to be missing something with it.What I really want to do is
> simply display a Twitter feed on a page.
>
> Any help is appreciated!
>
> Paul Pinkerton
> KnowledgeNow Project/ ACLCO
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Python macro scripting - available packages?

2016-05-26 Thread Thomas Mortagne
And same comment as Vincent, if you find a nice trick please don't
hesitate to share it on
http://extensions.xwiki.org/xwiki/bin/view/Extension/Python+Macro

On Thu, May 26, 2016 at 9:29 AM, Thomas Mortagne
 wrote:
> If you want to see the embedded modules, they are all located in the
> jython-standalone jar (you can open it as a zip) file in /Lib folder.
>
> On Thu, May 26, 2016 at 9:27 AM, Thomas Mortagne
>  wrote:
>> Actually Vincent is talking about the ruby macro.
>>
>> The python macro implementation is Jython (through JSR223) that you
>> can find on http://jython.org/.
>>
>> Some ideas: It might be enough to just put the egg file of the module
>> you need directly in WEB-INF/lib since Jython is scanning the
>> classpath (renaming .egg to .jar might help depending on the
>> application server). If that does not work then you will need to
>> create a proper jar (with MANIFEST and all) and put in it whatever the
>> .egg file contains (that's pretty much what I did for the Pygments
>> module).
>>
>> In any case you should get more accurate information by asking Jython guys.
>>
>> On Thu, May 26, 2016 at 8:26 AM, Vincent Massol  wrote:
>>> Hi Sebastian,
>>>
 On 26 May 2016, at 02:17, Sebastian Schafer  wrote:

 Hi,
 I'm trying to import some packages into the Python macro on Xwiki 7.2, and 
 while standard packages import fine (working with os and re, etc.), some 
 (like xlrd) don't.
 Looking through the scripting guide and macro documentation I could not 
 figure out how the Python macro actually works.
 Is it just a collection of bindings and translates the python script into 
 groovy or something else, or is it calling the local Python installation? 
 This might sound stupid, but I thought the latter was the case and this 
 would limit the available packages (the ones I want to load are installed 
 locally).
>>>
>>> We’re using jruby through JSR223 (java scripting api).
>>>
>>> Maybe https://github.com/jruby/jruby/wiki/ApplicationsAndLibraries can help?
>>>
>>> Once you find out how to do it, it’ll be interesting if you could document 
>>> it on http://extensions.xwiki.org/xwiki/bin/view/Extension/Ruby+Macro
>>>
>>> Thanks
>>> -Vincent
>>>
 Thank you

  Sebastian
>>>
>>> ___
>>> users mailing list
>>> users@xwiki.org
>>> http://lists.xwiki.org/mailman/listinfo/users
>>
>>
>>
>> --
>> Thomas Mortagne
>
>
>
> --
> Thomas Mortagne



-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Python macro scripting - available packages?

2016-05-26 Thread Thomas Mortagne
If you want to see the embedded modules, they are all located in the
jython-standalone jar (you can open it as a zip) file in /Lib folder.

On Thu, May 26, 2016 at 9:27 AM, Thomas Mortagne
 wrote:
> Actually Vincent is talking about the ruby macro.
>
> The python macro implementation is Jython (through JSR223) that you
> can find on http://jython.org/.
>
> Some ideas: It might be enough to just put the egg file of the module
> you need directly in WEB-INF/lib since Jython is scanning the
> classpath (renaming .egg to .jar might help depending on the
> application server). If that does not work then you will need to
> create a proper jar (with MANIFEST and all) and put in it whatever the
> .egg file contains (that's pretty much what I did for the Pygments
> module).
>
> In any case you should get more accurate information by asking Jython guys.
>
> On Thu, May 26, 2016 at 8:26 AM, Vincent Massol  wrote:
>> Hi Sebastian,
>>
>>> On 26 May 2016, at 02:17, Sebastian Schafer  wrote:
>>>
>>> Hi,
>>> I'm trying to import some packages into the Python macro on Xwiki 7.2, and 
>>> while standard packages import fine (working with os and re, etc.), some 
>>> (like xlrd) don't.
>>> Looking through the scripting guide and macro documentation I could not 
>>> figure out how the Python macro actually works.
>>> Is it just a collection of bindings and translates the python script into 
>>> groovy or something else, or is it calling the local Python installation? 
>>> This might sound stupid, but I thought the latter was the case and this 
>>> would limit the available packages (the ones I want to load are installed 
>>> locally).
>>
>> We’re using jruby through JSR223 (java scripting api).
>>
>> Maybe https://github.com/jruby/jruby/wiki/ApplicationsAndLibraries can help?
>>
>> Once you find out how to do it, it’ll be interesting if you could document 
>> it on http://extensions.xwiki.org/xwiki/bin/view/Extension/Ruby+Macro
>>
>> Thanks
>> -Vincent
>>
>>> Thank you
>>>
>>>  Sebastian
>>
>> ___
>> users mailing list
>> users@xwiki.org
>> http://lists.xwiki.org/mailman/listinfo/users
>
>
>
> --
> Thomas Mortagne



-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Python macro scripting - available packages?

2016-05-26 Thread Thomas Mortagne
Actually Vincent is talking about the ruby macro.

The python macro implementation is Jython (through JSR223) that you
can find on http://jython.org/.

Some ideas: It might be enough to just put the egg file of the module
you need directly in WEB-INF/lib since Jython is scanning the
classpath (renaming .egg to .jar might help depending on the
application server). If that does not work then you will need to
create a proper jar (with MANIFEST and all) and put in it whatever the
.egg file contains (that's pretty much what I did for the Pygments
module).

In any case you should get more accurate information by asking Jython guys.

On Thu, May 26, 2016 at 8:26 AM, Vincent Massol  wrote:
> Hi Sebastian,
>
>> On 26 May 2016, at 02:17, Sebastian Schafer  wrote:
>>
>> Hi,
>> I'm trying to import some packages into the Python macro on Xwiki 7.2, and 
>> while standard packages import fine (working with os and re, etc.), some 
>> (like xlrd) don't.
>> Looking through the scripting guide and macro documentation I could not 
>> figure out how the Python macro actually works.
>> Is it just a collection of bindings and translates the python script into 
>> groovy or something else, or is it calling the local Python installation? 
>> This might sound stupid, but I thought the latter was the case and this 
>> would limit the available packages (the ones I want to load are installed 
>> locally).
>
> We’re using jruby through JSR223 (java scripting api).
>
> Maybe https://github.com/jruby/jruby/wiki/ApplicationsAndLibraries can help?
>
> Once you find out how to do it, it’ll be interesting if you could document it 
> on http://extensions.xwiki.org/xwiki/bin/view/Extension/Ruby+Macro
>
> Thanks
> -Vincent
>
>> Thank you
>>
>>  Sebastian
>
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users



-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users