Arnochy

Work is love made visible. - Kihlal Gibran
  1. Multiple Releases

    I have released the following versions of the following packages over the last few days. Documentation is a little behind as I switch strategies for providing it whilst also migrating everything to Mercurial. More on that and the updated docs on everything will be arriving shortly.

    Static needed a security fix for root path checking on Windows. Yaro now supports decoration of instance methods. RIP dependencies are pegged (to Barrel 0.1.2 for instance) and it can now be considered frozen (R.I.P. RIP, though I will still fix bugs, of course) in favor of its forthcoming successor. Barrel now defaults to Beaker compatibility instead of Flup, since that middleware is no more.

    published: 2008-07-10 14:15:16 | updated: 2008-07-10 14:15:16 | posted by: Luke Arno
  2. Yaro 0.6.2 Released

    WRT the possibility of lazy attributes in Yaro, which I have discussed here previously, I am still determined to preserve simplicity, but surely folks want to do this:

    
    @Yaro
    def somewhere_in_the_stack(req):
        ...
        req.my_stuff = {...some stuff...}
        ...
    
    @Yaro 
    def somewhere_else_in_the_stack(req):
        ...
        use_stuff(req.my_stuff)
        ...
    

    In order to support this, Yaro now caches unexpected members of yaro.Request, as well as the yaro.Response in Request.res and Request.start_response_called. It does not cache the attributes added through extra_props. Cached attributes are stashed in a dict in environ['yaro.cached_attrs']. Though users will hardly ever need to call them, caching is controlled through Request.save_to_environ() and Request.load_from_environ().

    Also, another small bug was corrected in the URI construction code. Thanks to Zach Seifts for catching this.

    published: 2001-04-19 12:09:45 | updated: 2007-04-19 12:09:45 | posted by: Luke Arno
  3. Yaro 0.6.1 Released

    I have fixed a small bug in the way new absolute URIs are generated by Yaro when parts of PATH_INFO have been rolled into SCRIPT_NAME.

    Also note that yaro is now licensed under the LGPL.

    published: 2007-02-28 18:35:05 | updated: 2007-02-28 18:35:05 | posted by: Luke Arno
  4. Yaro 0.6.0 Released

    I have done some soul searching about which direction to take Yaro in. I decided to keep it simple. I was tempted to make everything evaluate lazily so that yaro request objects would not "go stale" as environ or start_response are changed in WSGI middleware. I may continue to toy with the idea of lazy attributes, but for now I feel that it is much more elegant and useful to keep the scope tight. Instead of trying to accommodate creeping complexity, I have ripped it out at the root.

    A yaro request object is a representation of the WSGI environment at a point in time. If changes are made to the environment, you simply need a fresh request object. For this reason, the caching of yaro request objects has been removed.

    Many thanks to Wesley Augur.

    published: 2007-02-14 05:05:03 | updated: 2007-02-14 05:05:03 | posted by: Luke Arno