[Sputnik-list] Patch: NOCREATE flag on node_defaults

pierre pracht pierre.pracht at gmail.com
Wed Mar 5 09:25:12 GMT+2 2008


Le 5 mars 08 à 11:56, Jim Whitehead II a écrit :

> I've submitted the following ticket
> (http://sputnik.freewisdom.org/en/Ticket:000018) that allows for a
> NOCREATE flag on any node_default.  This flag would stop the page from
> being saved in the versium repository when pulled as a node default.

When versium would be brake in part, it would be more simple.
I have made some test code

repo.versium = versium.open{
        storage = "versium.storage.simple_compose",
        params = {
           params_write_store = {
              storage = "versium.storage.simple",
              params = initial_config.VERSIUM_PARAMS,
           },
           params_default_store = {
              storage = "versium.storage.simple_node_defaults",
              params = {base_module="sputnik.node_defaults."},
           }
        }
    }

versium.storage.simple_node_defaults : read default node (from modules)
versium.storage.simple : not changed
versium.storage.simple_compose : compose two storage
   - first : read-write
   - second : read-only
When a node is read, it is take from first if present. If not it is  
read from second.
When a node is write, it is write to first.

> but in a development environment it makes testing and
> deploying new default files rather difficult.

Yes, I agree.

- pierre

-------------- next part --------------
A non-text attachment was scrubbed...
Name: versium.zip
Type: application/zip
Size: 23877 bytes
Desc: not available
Url : http://lists.luaforge.net/pipermail/sputnik-list/attachments/20080305/34ad07b6/versium-0001.zip
-------------- next part --------------



More information about the Sputnik-list mailing list