[Grok-dev] grok.url() requiring a request object a bit	inconvenient
    Sebastian Ware 
    sebastian at urbantalk.se
       
    Mon Nov  2 13:29:05 EST 2009
    
    
  
And this is an inconvenience because I have to figure out how to get  
the request object, and then repeat that code whenever I use  
gork.url()...
I would rather have
    grok.url(object, request=None, **other_options)
where it gets the request object (like in a view) if I don't provide  
one myself.
Mvh Sebastian
2 nov 2009 kl. 14.25 skrev Jan-Wijbrand Kolman:
> Sylvain Viollon wrote:
>>  I am all +1 to have a method:
>>
>>     grok.url(object, request, **other_options)
>
> This already is the case :)
>
>   http://zope3.pov.lt/trac/browser/grok/trunk/src/grok/__init__.py#L39
>
> regards,
> jw
>
> _______________________________________________
> Grok-dev mailing list
> Grok-dev at zope.org
> https://mail.zope.org/mailman/listinfo/grok-dev
    
    
More information about the Grok-dev
mailing list