(Development question) Initialization - mkdirs - on first install

View: New views
1 Messages — Rating Filter:   Alert me  

(Development question) Initialization - mkdirs - on first install

by Olaf Kock :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I believe this is mainly a question directly for Simon, but maybe
someone else has been digging through the code or contributed something
in these areas:

I've noted some errors and exceptions being logged upon first start of
the current development version and have attempted to dig deeper but got
stopped by the very nice weather here in Hamburg. :)

What I've found is that the "re"structuring of static pages will always
fail on new installations, because the directory is not there yet. This
is covered by the attached patch.

Upon digging deeper I found that some more directories are not created
before they are first used - the lucene directories among them.

This got me wondering about where to put the directory-creation stuff.
It currently seems to be distributed across several places, which makes
sense, given that everything is pluggable - you might not need Lucene
directories after all, if you didn't plug in Lucene :)

Simon - I'm offering to debug this and add directory creation on first
time creation of a blog, but first I'd like to know your opinion on
this. Should it rather be one big block of mkdirs or distributed across
all single components? After all, the startup set of plugins is also
hardcoded, it wouldn't hurt much to also hardcode the required directory
structure.

Benefit of this would be quieter startup on first installation, thus a
better way to identify real problems, especially for first time users.

Additionally, there should be an (at least) empty print.css in
web/themes/default/, as this is referenced from page.tag and this
directory will be copied to be the initial blog theme. (no patch
attached). This is also a major exception stacktrace source in my
installation.

Cheers,
Olaf


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Pebble-user mailing list
Pebble-user@...
https://lists.sourceforge.net/lists/listinfo/pebble-user

pebble-patch-staticpagerestructuring.txt.gz (620 bytes) Download Attachment
LightInTheBox - Buy quality products at wholesale price