You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@roller.apache.org by Alex Florentino <fl...@gmail.com> on 2008/08/19 19:48:15 UTC
Roller problem
Hi all,
I think that did find a problem at roller I was working at
ThemeManagerImpl.java :
public void initialize() throws InitializationException {
log.debug("Initializing Theme Manager");
if(themeDir != null) {
// rather than be lazy we are going to load all themes from
// the disk preemptively and cache them
this.themes = loadAllThemesFromDisk();
log.info("Loaded "+this.themes.size()+" themes from disk.");
}
}
but the this.themes = loadAllThemesFromDisk();
would verify if the cache.sitewide.enabled is true because otherwise for
development new theme(site front) I need always restart tomcat,
it is very bad.
thanks
RE: Roller problem
Posted by Brian Levine <le...@hotmail.com>.
Sounds like you're using a different encoding (not UTF-8) to save your template.
> Date: Fri, 5 Sep 2008 15:05:00 -0300
> From: florentino.alex@gmail.com
> To: dev@roller.apache.org
> Subject: Re: Roller problem
>
> Hi Allen,
>
> How to developer theme at db ? You mean using Design tabs in apache roller
> ? where I can find more about this ?
>
> another thing is :
>
> org.apache.roller.weblogger.business.themes.SharedThemeFromDir
> 330 InputStreamReader reader = new InputStreamReader(stream, "UTF-8");
>
> the "UTF-8" options is problem because if my template have by sample an
> "ção" I get weird character when show in browser
>
> thanks,
>
> Alex
>
>
>
> On Tue, Aug 19, 2008 at 3:10 PM, Allen Gilliland <Al...@sun.com>wrote:
>
> > The ThemeManager is designed with a production system in mind, not with
> > development. In production it would be far slower to physically load each
> > template off the disk over and over again, especially considering the
> > templates wouldn't likely be changing.
> >
> > If you are a code developer you can relatively easy provide an alternate
> > Theme implementation which loads the files from disk and doesn't cache them.
> >
> > Or, what is probably the easiest thing to do is to develop new themes
> > directly in the db rather than on disk and once they are ready you copy them
> > to disk and package them. I know this isn't ideal, but it's as far as the
> > theme management was developed.
> >
> > -- Allen
> >
> >
> >
> > Alex Florentino wrote:
> >
> >> Hi all,
> >>
> >> I think that did find a problem at roller I was working at
> >> ThemeManagerImpl.java :
> >>
> >> public void initialize() throws InitializationException {
> >>
> >> log.debug("Initializing Theme Manager");
> >>
> >> if(themeDir != null) {
> >> // rather than be lazy we are going to load all themes from
> >> // the disk preemptively and cache them
> >> this.themes = loadAllThemesFromDisk();
> >>
> >> log.info("Loaded "+this.themes.size()+" themes from disk.");
> >> }
> >> }
> >>
> >> but the this.themes = loadAllThemesFromDisk();
> >> would verify if the cache.sitewide.enabled is true because otherwise for
> >> development new theme(site front) I need always restart tomcat,
> >> it is very bad.
> >>
> >>
> >>
> >> thanks
> >>
> >>
_________________________________________________________________
See how Windows connects the people, information, and fun that are part of your life.
http://clk.atdmt.com/MRT/go/msnnkwxp1020093175mrt/direct/01/
Re: Roller problem
Posted by Alex Florentino <fl...@gmail.com>.
Hi Allen,
How to developer theme at db ? You mean using Design tabs in apache roller
? where I can find more about this ?
another thing is :
org.apache.roller.weblogger.business.themes.SharedThemeFromDir
330 InputStreamReader reader = new InputStreamReader(stream, "UTF-8");
the "UTF-8" options is problem because if my template have by sample an
"ção" I get weird character when show in browser
thanks,
Alex
On Tue, Aug 19, 2008 at 3:10 PM, Allen Gilliland <Al...@sun.com>wrote:
> The ThemeManager is designed with a production system in mind, not with
> development. In production it would be far slower to physically load each
> template off the disk over and over again, especially considering the
> templates wouldn't likely be changing.
>
> If you are a code developer you can relatively easy provide an alternate
> Theme implementation which loads the files from disk and doesn't cache them.
>
> Or, what is probably the easiest thing to do is to develop new themes
> directly in the db rather than on disk and once they are ready you copy them
> to disk and package them. I know this isn't ideal, but it's as far as the
> theme management was developed.
>
> -- Allen
>
>
>
> Alex Florentino wrote:
>
>> Hi all,
>>
>> I think that did find a problem at roller I was working at
>> ThemeManagerImpl.java :
>>
>> public void initialize() throws InitializationException {
>>
>> log.debug("Initializing Theme Manager");
>>
>> if(themeDir != null) {
>> // rather than be lazy we are going to load all themes from
>> // the disk preemptively and cache them
>> this.themes = loadAllThemesFromDisk();
>>
>> log.info("Loaded "+this.themes.size()+" themes from disk.");
>> }
>> }
>>
>> but the this.themes = loadAllThemesFromDisk();
>> would verify if the cache.sitewide.enabled is true because otherwise for
>> development new theme(site front) I need always restart tomcat,
>> it is very bad.
>>
>>
>>
>> thanks
>>
>>
Re: Roller problem
Posted by Allen Gilliland <Al...@Sun.COM>.
The ThemeManager is designed with a production system in mind, not with
development. In production it would be far slower to physically load
each template off the disk over and over again, especially considering
the templates wouldn't likely be changing.
If you are a code developer you can relatively easy provide an alternate
Theme implementation which loads the files from disk and doesn't cache them.
Or, what is probably the easiest thing to do is to develop new themes
directly in the db rather than on disk and once they are ready you copy
them to disk and package them. I know this isn't ideal, but it's as far
as the theme management was developed.
-- Allen
Alex Florentino wrote:
> Hi all,
>
> I think that did find a problem at roller I was working at
> ThemeManagerImpl.java :
>
> public void initialize() throws InitializationException {
>
> log.debug("Initializing Theme Manager");
>
> if(themeDir != null) {
> // rather than be lazy we are going to load all themes from
> // the disk preemptively and cache them
> this.themes = loadAllThemesFromDisk();
>
> log.info("Loaded "+this.themes.size()+" themes from disk.");
> }
> }
>
> but the this.themes = loadAllThemesFromDisk();
> would verify if the cache.sitewide.enabled is true because otherwise for
> development new theme(site front) I need always restart tomcat,
> it is very bad.
>
>
>
> thanks
>