Dear XWiki Dev,
I try to create a plugin which should reduce the image size to have a kind of
thumbnail feature.
To do that I've created a plugin a part of the code is hereunder.
To call the plugin I've added in xwiki.cfg the complete name of the class (and
also a parameter about the cache size). The plugin uses the cache service.
At runtime my plugin is set by this code :
Plugin imageplugin = (ImagePlugin) context.getWiki().getPlugin("image",
context);
But I don't have the cache service working, the attribute imageCache is null.
It seems that the init method is never called.
Any idea is welcome.
Regards
--
Xavier MOGHRABI - Consortium ObjectWeb
package com.xpn.xwiki.plugin.image;
public class ImagePlugin extends XWikiDefaultPlugin implements
XWikiPluginInterface {
private static String name = "image";
private XWikiCache imageCache;
private int capacity = 50;
private static Log mLogger = LogFactory.getFactory().getInstance(
ImagePlugin.class);
public ImagePlugin(String name, String className, XWikiContext context) {
super(name, className, context);
}
/**
* Allow to get the plugin name
*
* @return plugin name
*/
public String getName() {
return name;
}
public void init(XWikiContext context) {
super.init(context);
try {
String capacityParam = context.getWiki().Param(
"xwiki.plugin.image.cache.capacity");
capacity = Integer.parseInt(capacityParam);
} catch (NumberFormatException e) {
}
imageCache = new OSCacheCache(capacity, true, "temp/imageCache");
}
public void flushCache() {
if (imageCache != null)
imageCache.flushAll();
}
...
}
Hi,
I don't know if you remember it, but a while ago we have decided to
switch from GPL to LGPL.
Changes in headers have never been done. So I start to do it
yesterday. Before I need your opinion on some rules:
• You give you credit to XpertNet. If you give to XpertNet your
credit, it's simple for XpertNet to manage licensing issues. We can't
give the credit to XWiki, because it's not an entity, and I don't
think ObjectWeb accept credit.
• We can use the javadoc tag @author for putting your name on. Or
simply a contributors.txt on the root of the svn, a page on the wiki,
on the Jira's task and the SVN (because you commit it).
More information about why giving your credit to Xpertnet:
http://clirr.sourceforge.net/contributing.html
Jérémi
--
Blog: http://www.jeremi.info
LinkedIn: https://www.linkedin.com/profile?viewProfile=&key=1437724http://www.xwiki.org
skype: jeremi23 -- msn et gtalk : jeremi23(a)gmail.com
Hi All,
It's time to elect the project head. I suggest:
* Ludovic Dubost as the project Leader
* Jérémi Joslin as the project Manager
I know, it's not common to have a leader and a manager, but Ludovic is
busy with the business, so he can't manage the project but he is the
one who know the best XWiki and his skills are better then mine. I
will help him to manage the project.
Only committers can vote. You vote with +1, 0 or -1.
* +1: Yes
* 0: I don't know
* -1: No and explain why.
Like we don't have rules for voting now, I choose this for the first vote:
The vote is over in 72h or when all committers have vote.
Jérémi
--
Blog: http://www.jeremi.info
LinkedIn: https://www.linkedin.com/profile?viewProfile=&key=1437724http://www.xwiki.org
skype: jeremi23 -- msn et gtalk : jeremi23(a)gmail.com
Hi,
Assuming "Always Authenticate on Viewing" is enabled in the wiki
preferences, should XWikiAuthServiceImpl.authenticate(user, password,
context) actually get called on every page view? Or is some cookie
used to prevent this?
I ask because this behaviour seems to have changed on my local xwiki
installation, and I'm not what I've done to cause the change (it used
to get called on every page view, and doesn't any more).
Thanks,
Robin.
Hi,
So, I'm proud to announce the list of XWiki committers:
* Matthew Conway
* Stephane Laurière
* Hans Gerwitz
* Vincent Massol
* Erwann Arzur
* Ludovic Dubost
* Jérémi Joslin
They will help to improve XWiki and will not depend on another people
to patch something. They also can vote for changes on XWiki. Not only
one people take a decision, it's the committers team who take it by
votes. Some rules will be written soon.
Jérémi
--
Blog: http://www.jeremi.info
LinkedIn: https://www.linkedin.com/profile?viewProfile=&key=1437724http://www.xwiki.org
skype: jeremi23 -- msn et gtalk : jeremi23(a)gmail.com
I'm running into an issue with the 200K character limit for
xwikidoc.xwd_archive.
Normally, a diff is generated, so this column doesn't grow too big.
However, if the document is always a single long line, the diff is
just that line everytime, and xwd_archive grows very quickly.
Any thoughts on how I can fix this aside from just increasing the limit?
Matt
Hi,
There is 2 possibilities about the payement:
* first, Someone who propose the bounty is in charge of paying it at the end.
* second, the one who propose the bounty pay first the prize for the
bounty to a paypal account of XWiki.
For me the second one is better, but you have to advance the money.
And with the second possibility several people can make a donation to
a bounty if they are interested in.
some samples of rules :
* http://www.os2world.com/bounties/rules.php
* http://www.morphzone.org/modules/bounty/
* http://www.voip-info.org/wiki/view/Asterisk+bounty
* https://wiki.ubuntu.com/BreezyBounties
What do you think about this? I prefer the morphzone way to do it with
ubuntu rules.
Jérémi
On 1/29/06, Stéphane Laurière <slauriere(a)mandriva.com> wrote:
> Hi Jérémi,
>
> Introducing bounties for XWiki would be great, I think!
>
> Stéphane
>
> jeremi joslin wrote:
> > Hi everyone,
> >
> > What do you think about enabling anyone to suggest bounty on XWiki ?
> >
> > Example:
> > I need a script for listing all the page in the wiki who contain the
> > word "hate". I don't know how to do it. I'm ready to pay 50$ for this.
> >
> > We need to define some rule, but what do you think about this idea?
> >
> > For example, ubuntu:
> > http://www.ubuntulinux.org/community/bounties/
> >
> >
> > Jérémi
> > --
> > Blog: http://www.jeremi.info
> > LinkedIn: https://www.linkedin.com/profile?viewProfile=&key=1437724
> > http://www.xwiki.org
> > skype: jeremi23 -- msn et gtalk : jeremi23(a)gmail.com
> >
> >
> >
> > ------------------------------------------------------------------------
> >
> >
> > --
> > You receive this message as a subscriber of the xwiki-dev(a)objectweb.org mailing list.
> > To unsubscribe: mailto:xwiki-dev-unsubscribe@objectweb.org
> > For general help: mailto:sympa@objectweb.org?subject=help
> > ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>
>
>
>
>
>
> --
> You receive this message as a subscriber of the xwiki-users(a)objectweb.org mailing list.
> To unsubscribe: mailto:xwiki-users-unsubscribe@objectweb.org
> For general help: mailto:sympa@objectweb.org?subject=help
> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>
>
>
--
Blog: http://www.jeremi.info
LinkedIn: https://www.linkedin.com/profile?viewProfile=&key=1437724http://www.xwiki.org
skype: jeremi23 -- msn et gtalk : jeremi23(a)gmail.com
I downloaded xwiki-0.9.840-src.tar and got the error:
tar: A lone zero block at 98831
I used to get this when building tars from Ant - I don't think it
breaks anything but it just looks bad. I take it xwiki isn't tarred
up using gnu tar?
Alistair