why use zc.recipe.filestorage?

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

why use zc.recipe.filestorage?

by Chris Withers :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi All,

I'm wondering what the point of this recipe is?

Why use:

[storage]
recipe = zc.recipe.filestorage

[zeo]
recipe = zc.zodbrecipes:server
zeo.conf =
     <filestorage 1>
     path ${storage:path}
     </filestorage>

...when you could just use:

[zeo]
recipe = zc.zodbrecipes:server
zeo.conf =
     <filestorage 1>
     path ${buildout:directory}/databases/Data.fs
     </filestorage>

I feel like I'm missing something...

Chris

--
Simplistix - Content Management, Batch Processing & Python Consulting
            - http://www.simplistix.co.uk
_______________________________________________
For more information about ZODB, see the ZODB Wiki:
http://www.zope.org/Wikis/ZODB/

ZODB-Dev mailing list  -  ZODB-Dev@...
https://mail.zope.org/mailman/listinfo/zodb-dev

Re: why use zc.recipe.filestorage?

by Jim Fulton :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Fri, Oct 30, 2009 at 5:01 AM, Chris Withers <chris@...> wrote:

> Hi All,
>
> I'm wondering what the point of this recipe is?
>
> Why use:
>
> [storage]
> recipe = zc.recipe.filestorage
>
> [zeo]
> recipe = zc.zodbrecipes:server
> zeo.conf =
>     <filestorage 1>
>     path ${storage:path}
>     </filestorage>
>
> ...when you could just use:
>
> [zeo]
> recipe = zc.zodbrecipes:server
> zeo.conf =
>     <filestorage 1>
>     path ${buildout:directory}/databases/Data.fs
>     </filestorage>
>
> I feel like I'm missing something...

You aren't missing anything. The benefit is very small.

Jim

--
Jim Fulton
_______________________________________________
For more information about ZODB, see the ZODB Wiki:
http://www.zope.org/Wikis/ZODB/

ZODB-Dev mailing list  -  ZODB-Dev@...
https://mail.zope.org/mailman/listinfo/zodb-dev

Re: why use zc.recipe.filestorage?

by Chris Withers :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Jim Fulton wrote:

>> [zeo]
>> recipe = zc.zodbrecipes:server
>> zeo.conf =
>>     <filestorage 1>
>>     path ${buildout:directory}/databases/Data.fs
>>     </filestorage>
>>
>> I feel like I'm missing something...
>
> You aren't missing anything. The benefit is very small.

Excellent. I shall not feel guilty about not using it then :-)

Chris

--
Simplistix - Content Management, Batch Processing & Python Consulting
            - http://www.simplistix.co.uk
_______________________________________________
For more information about ZODB, see the ZODB Wiki:
http://www.zope.org/Wikis/ZODB/

ZODB-Dev mailing list  -  ZODB-Dev@...
https://mail.zope.org/mailman/listinfo/zodb-dev