Has any work been done regarding XWiki over an HDFS file system or database?
I saw a mention of Cassandra in an older post in this list, but I'm
unclear on if Cassandra really runs over HDFS.
--
Mark Wallace
Principal Engineer, Semantic Applications
Modus Operandi, Inc.
Hi everyone,
I'd like to propose to add an Image macro that would do the following:
* display a border
* display a caption (if it's defined by the user)
* display a link to see the image full screen
* define default sizes and scale it to the default one but allow specifying other sizes
Basically the idea is to be able to easily display images as on
http://en.wikipedia.org/wiki/Flora_and_fauna_of_Orissa
See also http://jira.xwiki.org/browse/XWIKI-7602
The idea is that we would use it on xwiki.org but I also think it makes it nicer for people who wish to display images in their wikis.
WDYT?
Thanks
-Vincent
Hi devs,
I`ve worked on allowing an admin to more easily customize the information
that is displayed on the user profile, once he has added some new fields to
the XWikiUsers class (like "interests", "hobbies", "favorite books", etc).
The first version is without javascript.
Please have a look at the pull request [1] (and the issue [2]) and cast
your vote whether we can merge it into master for 4.0M2 or not.
Here's my +1.
Thanks,
Eduard
----------
[1] https://github.com/xwiki/xwiki-platform/pull/38
[2] http://jira.xwiki.org/browse/XWIKI-7626
Hi everyone!
I have experimented with the Java security manager to see how it can be
used to divide the XWiki platform into domains with different sets of
privileges.
My initial thought was that a customized security manager would be
necessary, but I now think that the standard security manager is
sufficient. But unless I have missed something, the policy file will
necessarily be complex, because it is not possible to place jar-files in
different subdirectories in a servlet and therefore wildcarding cannot
be used in the policy file. But to simplify the policy management, I
suggest using a tool at build-time to generate the policy file.
More details about my thoughts on this can be found here:
http://dev.xwiki.org/xwiki/bin/view/Drafts/Security+Manager
By enabling the security manager like this, we can allow unprivileged
users to write Groovy and Python scripts as well as reducing the risk
that references to exploitable objects leak to unprivileged velocity
scripts.
I have already started working on a Maven mojo for generating the policy
file, and I will shortly add a feature branch for this.
Please, let me know what you think.
Best Regards,
/Andreas
Hi, all,
I am playing around with the blog post application, when users click on the
create post button, it brings up the inline form for users to put text in,
I
have another requirement, we need to write some code somewhere to
retrieve an image url from a database,, so when the inline form shows up
after
users click create post button, the image automatically shows up in the
inline
form, my question is where should I put the code in? also the BlogPostClass
and
BlogPostTemplate have TextArea objects, which create GWT inline form, this
is
where I need to put image in programmatically, so I am thinking about
accessing
the GWT code to insert image, could you all point me to the right direction
about how to approach this to put image into the inline form
programmatically?
Thanks very much in advance
David
Hi devs,
I see that in several pages we have a use the following:
{{error}}
$error.message
{{/error}}
Where error is an Exception returned by a script service.
This is done in the Scheduler, in the Extension Manager and in the my new IRC Bot application.
The problem is that this will only show the message but not the full stack trace which contains the real problem…
So here's what I propose:
1) Create an internal helper WrappingTextBlockGenerator.generate() class (I'd locate it in the Macro Transformation module for lack of a better place, see point 4 below) and method which returns the XDOM Blocks to do this. Namely two divs with the proper "class" set.
2) Introduce a VelocityTool to help deal with Exceptions. I propose to make ExceptionUtils from commons-lang available as a Velocity Tool: http://commons.apache.org/lang/api/org/apache/commons/lang3/exception/Excep…
3) Modify the Message Macro to support the feature of displaying only the first line of text and hiding subsequent lines and when the user clicks on the text, the rest unrolls. I propose to do this by introducing a new "format" parameter that you would use like this: {{info|warning|error format="compact|normal"}}….{{/info|warning|error}}. By default format would be "normal" which means everything displayed. This feature would use WrappingTextBlockGenerator.generate for the implementation.
4) Update MacroTransformation.generateError() to use WrappingTextBlockGenerator.generate
5) Modify Scheduler, Extension Manager, IRC Bot application to use this new feature.
For example for the IRC Bot application:
#set ($error = $botManager.getLastError())
#if ("$!error" != "")
{{error format="compact"}}
$error.message
$exceptiontool.getMessage($error)
{{/error}}
#end
WWDYT?
Thanks
-Vincent
Hi, all,
I am playing around with the blog post application, when users click the
create post button, it brings up the inline form for users to put text in,
I have another requirement, we need to write some velocity code somewhere
to retrieve an image url from a database, so when the inline form shows up
after users click create post button, the image automatically shows up in
the inline form, users then type in more text, my question is where should
I put the code in? also the BlogPostClass and BlogPostTemplate have
TextArea objects, which create GWT inline form, this is where I need to put
image in programmatically, so I am thinking about accessing the GWT code to
insert image, could anybody point me to the right direction about how to
approach this to put image into the inline form programmatically?
Thanks
David
Hello, my name is Andrey. I became interested in the idea of "Advanced
Email Integration" and "Annotations for images and other content types"
If possible, could you tell us more about these ideas?
Hi,
When the XWiki development team wants to introduce some new features or
when we need some improvements on existing functionality, I sometimes make
proposals on how these features/improvements should look like. You can see
some of my work at
http://incubator.myxwiki.org/xwiki/bin/view/Improvements/WebHome
IMO XWiki is a great tool for developers because they can change anything
they like and make XWiki bend to their will. Also, XWiki talks a lot the
'developer/administrator' language that new users find cryptic. Some also
say that the learning curve for XWiki is steep and that beginners have lots
of problems in understanding the structure, finding the documentation,
navigating, etc.
I'm sure every developer that used XWiki as a base for constructing their
project got into these 'new user' issues and tried to fix them as best as
they could. Although XWiki is an open source project where anyone can
contribute, sometimes time is not on our side and makes it difficult to
contribute back.
I would be very curious on how some 'independent' XWiki developers solved
some of the usability issues XWiki is facing: how they made it more easy to
use, more good looking, more intuitive, more clear, more simple.
Right now I'm thinking on how to improve the homepage, but I would love to
see *screenshots* of any aspect that was improved (profile, administration,
rights, history, comments, anything).
Sharing these screenshots could inspire others make their project better
and would step outside the 'just an idea' mode. Also there is a chance we
could integrate them in the platform so that everyone can benefit.
Thank you for your help,
Caty
Hello XWikiers,
I've just had a demo of pontoon:
https://pontoon-dev.mozillalabs.com/
I wonder how applicable this can be for XWiki based platforms.
It is llkely to generate a bit of trash but the "in-context" adjustment really looks cute and applicable to many cases to me.
paul
Hi,
I'd like to propose adding a module named xwiki-platform-component-script in xwiki-platform.
It would allow a script to get access to the Component Manager (for now, we can imagine other apis later on).
The idea is to replace the ugly static and "deprecated":
com.xpn….Util.getComponentManager()
Of course the script Service will check for Programming Rights before giving back a CM instance.
This follows the strategy of offering script services for each module.
Here's my +1
Thanks
-Vincent
The XWiki development team is proud to announce the availability of
XWiki Commons, XWiki Rendering, XWiki Platform, XWiki Enterprise and
XWiki Enterprise Manager 4.0 Milestone 1.
This release brings reduced document database id collision and quite a
few improvements and bug fixes.
See the full release notes at
http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWikiEnterpris…
for more details.
Thanks
-The XWiki dev team
Hi devs,
Following the discussion on
http://lists.xwiki.org/pipermail/devs/2012-March/049889.html I'd like
to add a JSON Velocity tool that has (for now) just one method:
/**
* Serialize a Java object to the JSON format.
* <p>
* Examples:
* <ul>
* <li>numbers and boolean values: 23, 13.5, true, false</li>
* <li>strings: "one\"two'three" (quotes included)</li>
* <li>arrays and collections: [1, 2, 3]</li>
* <li>maps: {"number": 23, "boolean": false, "string": "value"}</li>
* <li>beans: {"enabled": true, "name": "XWiki"} for a bean that has
#isEnabled() and #getName() getters</li>
* </ul>
*
* @param object the object to be serialized to the JSON format
* @return the JSON-verified string representation of the given object
*/
public String serialize(Object object)
This method is able to do what both of the initially proposed methods
were able and it doesn't expose the JSON library used (so that we can
change it later if we want). I'll use json-lib for the initial
implementation and we can move to Jackson or other JSON library later.
WDYT? I'd like to commit this ASAP.
Thanks,
Marius
Hello fellow developers,
I am working on upgrading our core, based on xwiki 1.5.4 to xwiki 3.2. Quite a jump.
Among the least jump, velocity seems to have jumped from version 1.5 to version 1.7.
Nonetheless, this seems to cause a surprising effect: while macros could redefine the value of parameters they were passed, and that change was honoured after the macro, they cannot anymore.
The following script:
> #macro(redefine $var)
> #set($var="redefined")
> #end
>
> #set($x="original")
>
> x is $x
>
> #redefine($x)
>
> x is $x
gives the following output in a new core:
> x is original
>
> x is original
>
and the following in our old core:
> x is original
>
> x is redefined
>
This has all sorts of consequences including such macros as the navigation not receiving the result of normalizelink...
Did I miss an optional parameter of velocity to revert to the old method?
paul
I want to build a component ,but I didn't get it .I just use the HelloWorld
as a example
interface like this:
@ComponentRole
public interface HelloWorld
{
String sayHello(String name);
}
and script like this :
@Component
@Named("hello")
@Singleton
public class HelloWorldScriptService implements ScriptService
{
@Inject
private HelloWorld helloWorld;
public String greet(String name)
{
return this.helloWorld.sayHello(name);
}
}
aa I use it in xwiki like this :
{{velocity}}
$services.hello.greet("aaa")
{{/velocity}}
but I didn't get the right result,I must make some mistakes at some steps
I'm not clear,can you help me,please .
Hi guys,
Just to let you know that the least 7 mails I've sent to the users and
devs list have not made it apparently... (just realizing now).
I'm trying sending this mail directly from gmail (I usually use a
desktop client).
Thanks
-Vincent
Hi devs,
I would like to upgrade to JGroups 3 (we use it for clustering and
there is lots of (mostly speed) improvements in the 3.x branch). But I
have an issue: JBossCache is incompatible with JGroups 3 (even if
JGroups should be totally useless in the way we use JBossCache).
Here are some other pros removing JBossCache base implementation:
* we don't use it ourself anymore
* JBossCache is dead (replaced by Infinispan)
So WDYT ?
Here is my +1 to retire JBossCache based cache implementation.
--
Thomas Mortagne
Hi devs,
I recently move the classloader module to commons and it was the last
platform dependency of the script macro so I would like to move all
script macro to rendering project.
It's a very nice addition to the rendering project for the people
using it outside of XWiki.
WDYT ?
Here is my +1
--
Thomas Mortagne
I hava solved it , thank you !
2012/3/11 <devs-request(a)xwiki.org>
> Send devs mailing list submissions to
> devs(a)xwiki.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://lists.xwiki.org/mailman/listinfo/devs
> or, via email, send a message with subject or body 'help' to
> devs-request(a)xwiki.org
>
> You can reach the person managing the list at
> devs-owner(a)xwiki.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of devs digest..."
>
>
> Today's Topics:
>
> 1. when i deploy xwiki3.5 on tomcat , some mistakes appeares
> (jinlong liu)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Sun, 11 Mar 2012 15:47:49 +0800
> From: jinlong liu <liujinlong5788(a)gmail.com>
> To: devs(a)xwiki.org
> Subject: [xwiki-devs] when i deploy xwiki3.5 on tomcat , some
> mistakes
> appeares
> Message-ID:
> <CAHt_GbKr_jwN_d4hTU_TOLu6WmQ5_gzqLWhOD2bO1B+x7fc1NA(a)mail.gmail.com
> >
> Content-Type: text/plain; charset=ISO-8859-1
>
> I want to deploy the newest table version of xwiki(xwiki 3.5) on tomcat(I
> have tried both 6 and 7),and I have changed the database to mysql 5 ,but
> after I imported the xwiki-enterprise-ui-all-3.5.xar to the databases
> ,there are somemistakes, Unknown macro: spaces and Unknown macro: tagcloud
> and Unknown macro: activity apperaed in the main page(
> http://localhost:8080/xwiki/bin/view/Main/ ).Can you help me to solve
> this?thank you !
>
>
> ------------------------------
>
> _______________________________________________
> devs mailing list
> devs(a)xwiki.org
> http://lists.xwiki.org/mailman/listinfo/devs
>
>
> End of devs Digest, Vol 57, Issue 22
> ************************************
>
I want to deploy the newest table version of xwiki(xwiki 3.5) on tomcat(I
have tried both 6 and 7),and I have changed the database to mysql 5 ,but
after I imported the xwiki-enterprise-ui-all-3.5.xar to the databases
,there are somemistakes, Unknown macro: spaces and Unknown macro: tagcloud
and Unknown macro: activity apperaed in the main page(
http://localhost:8080/xwiki/bin/view/Main/ ).Can you help me to solve
this?thank you !
Hi devs,
Since I plan to move some stuff from platform to commons I would like
to know what you think of the history in this case.
Pros including history:
* can access easily the whole history of a moved file. But sometimes
changing packages etc make too much difference for git to see it's
actually the same file so you loose it anyway.
Cons including history:
* double the history which make tools like ohloh indicate wrong informations
* it's a lot easier to move without history
WDYT ?
Even if it was looking a bit weird to me at first I'm actually +1 to
not move the history in this case.
Eduard was proposing to include in the first commit of the new
repository the id of the last commit containing the files (basically
the id of the parent of the commit deleting the files) in the old
repository so that it's easier to find it. I'm +1 for this.
--
Thomas Mortagne
Hi devs,
Some time ago Jerome Velociter raised a vote [1] for adding a JSON
Velocity Tool. The vote passed but the tool wasn't committed. I'd like
to do it know (for 4.0M1) with two changes:
1. Use Jackson [2] instead of json-lib [3] because it has a more recent release
2. Add only the toJSON method for now because we can use
$escapetool.javascript to accomplish the same result as toValueString
Reply quickly if you are against it.
Thanks,
Marius
[1] http://www.mail-archive.com/devs@xwiki.org/msg11395.html
[2] http://jackson.codehaus.org/
[3] http://json-lib.sourceforge.net/