Re: [Repoze-dev] BFG 0.9.1 / chameleon: render() takes exactly 1 non-keyword argument

2009-06-09 Thread Chris Shenton
Chris McDonough  writes:

> Hmm.  Are you sure?  Ala at the top level of your package:
> find . -name "*.cache"|xargs rm -f
> find . -name "*.pt.py"|xargs rm -f

Yeah, just did the build out on a different box, did finds to make sure,
did find...rm anyway. Same.

I've gotten it to work with slightly older versions of chameleon, but
see it's using the older .cache files.  In my buildout.cfg I used a
[buildout] 'versions' declaration and:

  [versions]
  chameleon.core = 1.0b32
  chameleon.zpt  = 1.0b16

I found it broke for me with .core at 1.0b33 and b34.

Thanks.
___
Repoze-dev mailing list
Repoze-dev@lists.repoze.org
http://lists.repoze.org/listinfo/repoze-dev


[Repoze-dev] Plan for repoze.zodbconn

2009-06-09 Thread Shane Hathaway
Hi all,

I have been working with repoze.zodbconn (in conjunction with repoze.bfg 
and Karl 3) and there have been several times when I wish I could just 
insert some WSGI component that does something with the ZODB connection. 
  Specifically:

- At one point I wanted repoze.who.plugins.zodb to use the same 
connection as the application uses.  We shouldn't have to set up the 
ZODB connection twice on every request.  The cost is low but measurable.

- I wanted to create a WSGI logger that watches how many objects are 
loaded or stored by the handler for a request.

- Right now, I want to fine-tune the contents of the ZODB cache after 
every request.

To make tasks like these easier, I would like to add to repoze.zodbconn 
a WSGI framework component that opens a ZODB connection, puts that 
connection in the WSGI environment, calls the next WSGI app in the 
chain, then closes the same ZODB connection on the way out.  I intend to 
add it myself, but I would like to hear any feedback the group might 
have before I do it.

Shane
___
Repoze-dev mailing list
Repoze-dev@lists.repoze.org
http://lists.repoze.org/listinfo/repoze-dev


Re: [Repoze-dev] Plan for repoze.zodbconn

2009-06-09 Thread Chris McDonough
Tres was after the same thing earlier today so I think it's a good idea.

We could also change the PersistentApplicationFinder to look in the environment 
for an open connection and use it instead of trying to open one itself.

On 6/9/09 4:16 PM, Shane Hathaway wrote:
> Hi all,
>
> I have been working with repoze.zodbconn (in conjunction with repoze.bfg
> and Karl 3) and there have been several times when I wish I could just
> insert some WSGI component that does something with the ZODB connection.
>Specifically:
>
> - At one point I wanted repoze.who.plugins.zodb to use the same
> connection as the application uses.  We shouldn't have to set up the
> ZODB connection twice on every request.  The cost is low but measurable.
>
> - I wanted to create a WSGI logger that watches how many objects are
> loaded or stored by the handler for a request.
>
> - Right now, I want to fine-tune the contents of the ZODB cache after
> every request.
>
> To make tasks like these easier, I would like to add to repoze.zodbconn
> a WSGI framework component that opens a ZODB connection, puts that
> connection in the WSGI environment, calls the next WSGI app in the
> chain, then closes the same ZODB connection on the way out.  I intend to
> add it myself, but I would like to hear any feedback the group might
> have before I do it.
>
> Shane
> ___
> Repoze-dev mailing list
> Repoze-dev@lists.repoze.org
> http://lists.repoze.org/listinfo/repoze-dev
>

___
Repoze-dev mailing list
Repoze-dev@lists.repoze.org
http://lists.repoze.org/listinfo/repoze-dev


Re: [Repoze-dev] Plan for repoze.zodbconn

2009-06-09 Thread Shane Hathaway
Chris McDonough wrote:
> Tres was after the same thing earlier today so I think it's a good idea.

Ok.  I'm happy to let Tres do it if he wants. :-)

> We could also change the PersistentApplicationFinder to look in the 
> environment for an open connection and use it instead of trying to open 
> one itself.

Absolutely.

Shane

___
Repoze-dev mailing list
Repoze-dev@lists.repoze.org
http://lists.repoze.org/listinfo/repoze-dev


Re: [Repoze-dev] Plan for repoze.zodbconn

2009-06-09 Thread Chris McDonough
On 6/9/09 4:25 PM, Chris McDonough wrote:
> Tres was after the same thing earlier today so I think it's a good idea.
>
> We could also change the PersistentApplicationFinder to look in the 
> environment
> for an open connection and use it instead of trying to open one itself.

(FTR, I didn't mean *instead* of opening one itself, I mean as logic that looks 
in the environ for an open one, falling back to opening one itself.)

>
> On 6/9/09 4:16 PM, Shane Hathaway wrote:
>> Hi all,
>>
>> I have been working with repoze.zodbconn (in conjunction with repoze.bfg
>> and Karl 3) and there have been several times when I wish I could just
>> insert some WSGI component that does something with the ZODB connection.
>> Specifically:
>>
>> - At one point I wanted repoze.who.plugins.zodb to use the same
>> connection as the application uses.  We shouldn't have to set up the
>> ZODB connection twice on every request.  The cost is low but measurable.
>>
>> - I wanted to create a WSGI logger that watches how many objects are
>> loaded or stored by the handler for a request.
>>
>> - Right now, I want to fine-tune the contents of the ZODB cache after
>> every request.
>>
>> To make tasks like these easier, I would like to add to repoze.zodbconn
>> a WSGI framework component that opens a ZODB connection, puts that
>> connection in the WSGI environment, calls the next WSGI app in the
>> chain, then closes the same ZODB connection on the way out.  I intend to
>> add it myself, but I would like to hear any feedback the group might
>> have before I do it.
>>
>> Shane
>> ___
>> Repoze-dev mailing list
>> Repoze-dev@lists.repoze.org
>> http://lists.repoze.org/listinfo/repoze-dev
>>
>
> ___
> Repoze-dev mailing list
> Repoze-dev@lists.repoze.org
> http://lists.repoze.org/listinfo/repoze-dev
>

___
Repoze-dev mailing list
Repoze-dev@lists.repoze.org
http://lists.repoze.org/listinfo/repoze-dev