[z3-five] Question about skins usage

Maciej Wiśniowski maciej.wisniowski at coig.katowice.pl
Tue Jul 25 15:08:41 CEST 2006


>Will they get different domains? Then you can use rewrite rules:
>
>  www.car-shop.com  ->  http://localhost:8080/++skin++CarShop/carshop
>  www.usedcars.com  ->  http://localhost:8080/++skin++UsedCars/usedcars
>
>If they are part of the same domain, use traversal hooks as described
>above (www.car-shop.com vs. www.car-shop.com/usecars).
>  
>
We have many environments for our applications (developement, testing, 
learning etc.)
so I think traversal hooks are better choice. I've never played with 
them but
seems that I have to add  something like:

def __before_publishing_traverse__(self, object, REQUEST):
    """ Pre-traversal hook.
    """
    # check if there is no skin already and
    # add/modify a skin to REQUEST['TraversalRequestNameStack'] or 
REQUEST.path

I'll look for more examples of this. Thanks.

-- 
Maciej Wisniowski


More information about the z3-five mailing list