On Jun 24, 2010, at 3:34 AM, Wichert Akkerman wrote:

> On 6/24/10 09:28 , Chris Withers wrote:
>> Hi All,
>> I've registered a static view with:
>>      config.add_static_view('static','mypackage:templates/static')
>> Which, if I read the docs, means I should be able to build urls such as:
>> /@@static/some.css
> I can't remember seeing any use of @@ in BFG docs. Where did you see that?


The traversal algorithm exposes two special cases:

        • If any path segment element begins with the special characters @@ 
(think of them as goggles), the value of that segment minus the goggle 
characters is considered the view name immediately and traversal stops there. 
This allows you to address views that may have the same names as model instance 
names in the graph unambiguously.

Repoze-dev mailing list

Reply via email to