<< Unconferencing behind the corporate firewall | Home | Thoughts on Java 5 features >>
Twitter RSS feed for Simon Brown [Twitter] simonbrown: wondering whether Adobe's commercial approach to Flex Builder will limit adoption of Flex ... which will be a shame, because I quite like it

Coding the Architecture RSS feed for Simon Brown [Coding the Architecture] As mentioned before, we were speakers at, and community sponsors of the Software Architect 2008 conference (3rd-5th June 2008, London). This is the first dedicated software architecture conference that I've been to and the majority of the ...

Pebble 2.0.0-RC2 available

Just a quick note to say that Pebble 2.0.0-RC2 is up on SourceForge and you can download it from here. This release contains a handful of bug fixes, a first cut of all documentation and some basic user admin features for admin users. Speaking of which, the ROLE_PEBBLE_ADMIN role has been renamed to ROLE_BLOG_ADMIN, so you'll need to change any references as appropriate. If you're using the out-of-the-box security realm implementation, this will mean modifying the properties files underneath the realm subdirectory of your Pebble data directory. Thanks to everybody that has provided feedback. :-)



Re: Pebble 2.0.0-RC2 available

Simon,
I'm writing a content management system on top of Pebble 2.0 and since it needs to handle additional file types apart from images, files and themes I'm considering refactoring the FileManager and the FileMetaData classes to support additional types so I can leverage existing actions etc.

Would you be inclined to patch the current source code if I send you a patch or should I rather reimplement the classes myself since you wont patch anyways?

Thanks.

Re: Pebble 2.0.0-RC2 available

I'm more than happy to take patches. :-)

Re: Pebble 2.0.0-RC2 available

As always updating to a new version of Pebble was very easy. I really like the new block of administration links. They significantly decrease the effort it takes to add new users and will help keep the admin time down to a minimum. The addition of those links was more than enough to convince me to deploy the new version on my 'production' machine (i.e. my server) rather than merely on the 'development' machine (i.e. my laptop).

I do have one minor question: how do I get the 'pebble' theme to show up on the front page of my multi-blog deployment? I have several blogs hosted on one server and I reset the theme on each individual blog to match my preference. However, I don't see an interface for so updating the http://domain/pebble/ page. I presume this page is supposed to use a 'default' theme. In fact, it is using the theme I see displayed on your blog right now. However, I really like the 'pebble' theme and would like to see it even when I am merely doing administrative fiddling with the blogs.

Re: Pebble 2.0.0-RC2 available

The easiest way to do this is to copy across the following files from /themes/pebble to /themes/_pebble :
  • screen.css
  • images/*
Leave the JSP files as they are, since they are setup slightly differently.

Re: Pebble 2.0.0-RC2 available

Simon,

I have patched Pebble 2.0RC2 to make it possible to handle additional filetypes using the core Pebble framework. I have done it by modifying the net.sourceforge.pebble.domain.FileMetaData and moving the information about the possible filetypes to an enum (net.sourceforge.pebble.domain.TypeEnum). This enum may be subclassed in my application to provide support for additional filetypes. I have used the enum from Jakarta Commons Lang because Java 5 enums doesn't support subclassing.

The filetypes usable by the Pebble instance is configured using a factory (net.sourceforge.pebble.domain.TypeEnumFactory) which is instantiated and set in the net.sourceforge.pebble.Configuration object using the applicationContext-pebble.xml file. The actual bean set is configured from the included pebble_import_factories.xml file since I need to replace the factory easily from my build.xml. I also need to replace the FileDAOFactory so that bean definition has been moved to the xml-file as well.

The applicationContext-acegi-security.xml has been modified as well to import a bean instance from pebble_import_acegi.xml since I also need to be able to easily add something here from my build.

I have put the patch file itself on my blog for downloading (http://lekkimworld.com/files/pebble_patches/pebble2.0RC2_filetypes_04092006.patch). I have also put a modified Pebble build on my blog for download (http://lekkimworld.com/files/pebble_patches/hrm_pebble_04092006.war) where you can see how the final result looks like with an added filetype (Polar HRM Files). As you might notice I have also added the possibility of specifying whether the individual filetypes may be managed and whether new directories may be added to the containing filetype directory by the user.

Let me know what you think.

Re: Pebble 2.0.0-RC2 available

Simon,

not to rush you in any way but I am continuing to look at the FileManager and FileMetaData classes and patching away to make it easier to add custom filetypes. I just added the possibility to decide on a per filetype basis how the uploaded files should be stored in the filesystem. For example - my custom files should be stored in a <year>\<month> subdirectory based on the filename.

I have made an example of how that could be implemented by extending the TypeEnum with a FilenameStrategy interface which is then used from the UploadFileAction class.

While doing this I have also made some touch-ups on the FileMetaData class to fix the getParent() method and make it consistant what the getPath() method returns and what the getAbsolutePath() method returns.

What is the best way to sending you these patches? Via comments or via e-mail?

Thanks.

Re: Pebble 2.0.0-RC2 available

Hi Mikkel - sorry, I've not had a chance to look through this yet. I want to get 2.0 out and then start incorporating additional functionality like this. E-mail for patches would be great, although the JIRA instance is back up again if you want to use that. :-)

Re: Pebble 2.0.0-RC2 available

Hi Simon, thank for your great work.  One minor question - where should I specify the name of the smtp server e.g. mail.netvigator.com if I want Pebble to automatically send an email notification whenever there is new comment added?  I am using Tomcat 5.5

Re: Pebble 2.0.0-RC2 available

Thanks Herman. You can find more information about e-mail configuration here.

Re: Pebble 2.0.0-RC2 available

I have a question in regard to running Pebble in multi-blog mode. Is it possible to have Pebble answer to different URLs, ie. www.abc.com/blog and www.xyz.com/blog? I have set up Apache with JK, and it will answer the request correctly, although all of the links remain wedded to the initial URL Pebble was deployed under. Is there a way to simply use the webapp context (eg.'pebble' or 'blog') or does it need to be tied to the URL? Or am I just doing something stupid,..

Re: Pebble 2.0.0-RC2 available

I needed to do this recently but ended up splitting the blogs into two single-user blogs instead og one multi-user blog.

I think what you are asking can be done but at present you need to use Apache and a module like mod_html to fixup the HTML returned by Pebble.

Add a comment Send a TrackBack