Re: New stable release coming up.

will <[email protected]>
Newsgroups gmane.comp.web.pyblosxom.user
Message-ID <[email protected]>
Oops--I just realized I was copying the users list on all of this.  Not 
that it's a big big deal, but I'm sort of off topic.  Sorry guys.

/will


On Sun, 2 Feb 2003, will wrote:

> On Mon, 3 Feb 2003, Wari Wahab wrote:
> > 
> > >I'd be up for Ted's idea for using defaults and then an example-config.py.  
> > >Though I should note that if you add a:
> > >
> > >   sys.insert(0, "/path/to/dir/with/config/")
> > >
> > >to the top of your pyblosxom.cgi script, then you can put your config.py 
> > >wherever you like as well.
> > >  
> > >
> > Where and what could we put in as defaults? One thing about defaults is 
> > that when you install pyblosxom, it will still not work the first time 
> > as you have to at least point your datadir somewhere in the first place 
> > or place in a reasonable default ('../blog').
> 
> You put the default values in where you use the dict item.  So instead of 
> doing:
> 
>   value = py["blogdir"]
> 
> you'd do:
> 
>   value = py.get("blogdir", None)
>   if value == None:
>     print "You need to set the blogdir--refer to documentation."
>     sys.exit(1)
> 
> For most non-critical things it's easier.  Then they only have to add the
> items to config.py that they're looking for.
> 
> /will
> 
> 
> 

-- 
whatever it is, you can find it at http://www.bluesock.org/~willg/
except Will--you can only see him in real life.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.