Re: [Repoze-dev] removing the lxml dependency from bfg

2009-04-27 Thread Chris Rossi
On Mon, Apr 27, 2009 at 1:37 PM, Malthe Borch mbo...@gmail.com wrote: 2009/4/27 Martin Aspeli optilude+li...@gmail.comoptilude%2bli...@gmail.com : I've never once written a web app that didn't need templating, because I've never written one that only responds with text/plain and writing

Re: [Repoze-dev] removing the lxml dependency from bfg

2009-04-27 Thread Chris Rossi
On Mon, Apr 27, 2009 at 4:48 PM, Wichert Akkerman wich...@wiggy.net wrote: Previously Malthe Borch wrote: 2009/4/27 Reed O'Brien r...@reedobrien.com: +0 I think it is OK to have a default one. Think hello world. Devil's advocate here, but: print htmlbodyHello world/body/html

Re: [Repoze-dev] removing the lxml dependency from bfg

2009-04-27 Thread Chris Rossi
Sorry. Just pretend like it really did end there. ;) Chris On Mon, Apr 27, 2009 at 8:20 PM, Martin Aspeli optilude+li...@gmail.comoptilude%2bli...@gmail.com wrote: Tres Seaver wrote: Amen. Or should that be So say we all! :) Not any longer... (sniff) Martin -- Author of

Re: [Repoze-dev] repoze.plugin documentation

2009-04-28 Thread Chris Rossi
On Tue, Apr 28, 2009 at 3:01 AM, Malthe Borch mbo...@gmail.com wrote: 2009/4/27 Chris McDonough chr...@plope.com: Answering myself with the kind of navel-gazing which is sure to drive Tres nuts ;-): Not answering anything, but this thread is as good a place as any: I think the issue of

Re: [Repoze-dev] repoze.bfg trunk C-free

2009-05-02 Thread Chris Rossi
On Sat, May 2, 2009 at 3:15 PM, Chris McDonough chr...@plope.com wrote: On 5/2/09 2:38 PM, Carlos de la Guardia wrote: No hacks, just repackaged the eggs in a GAE friendly manner (also, a zip file was needed to accommodate for the 1000 file limit) and added fake parser and compiler modules

Re: [Repoze-dev] repoze grok comparison

2009-05-07 Thread Chris Rossi
On Thu, May 7, 2009 at 7:01 PM, Chris McDonough chr...@plope.com wrote: People are often confused about the duality of zope.interface Interface objects being used as markers during adaptation as well as being used as a mechanism to describe an API. Personally, I think it should be possible

Re: [Repoze-dev] [chameleon] magic?

2009-05-15 Thread Chris Rossi
On Fri, May 15, 2009 at 11:36 AM, Malthe Borch mbo...@gmail.com wrote: 2009/5/15 Chris Rossi ch...@archimedeanco.com: While I think you're probably right, I know for a fact there are plenty of templates in the wild that assume you can use attribute syntax for dictionary lookup. At least

Re: [Repoze-dev] repoze.zope2 - what's up on trunk

2009-05-16 Thread Chris Rossi
On Sat, May 16, 2009 at 10:47 AM, Chris McDonough chr...@plope.com wrote: On 5/16/09 6:58 AM, Hanno Schlichting wrote: Tres Seaver wrote: +lots to calling this something other than 'repoze.zope2', which has always been about bending over backward to provide full BBB for Zope2 apps.

Re: [Repoze-dev] bfg docs

2009-06-02 Thread Chris Rossi
On Tue, Jun 2, 2009 at 9:29 AM, Chris McDonough chr...@plope.com wrote: On 6/2/09 8:08 AM, Reed O'Brien wrote: Finished a once over the API docs. Possible nit: location.html#repoze.bfg.location.locate I don't like locate as the name for the function as I expect it to find me

[Repoze-dev] repoze.curry

2009-06-03 Thread Chris Rossi
Hi Malthe, Just read over the repoze.curry docs--looks really cool! I was glad to see at the end that you had a static decorator on the to-do list. I had thought of that while reading your docs and was going to suggest it anyway. I was wondering, though, if const might be a better name for it.

Re: [Repoze-dev] unifying url dispatch and traversal

2009-06-05 Thread Chris Rossi
On Fri, Jun 5, 2009 at 11:33 AM, Chris McDonough chr...@plope.com wrote: - If a factory is specified on a route, it will need to point at a function that had the same call/response convention as a traversal root factory. This will break code. Context factories accept key/value pairs

Re: [Repoze-dev] unifying url dispatch and traversal

2009-06-05 Thread Chris Rossi
On Fri, Jun 5, 2009 at 11:44 AM, Chris Rossi ch...@archimedeanco.comwrote: On Fri, Jun 5, 2009 at 11:33 AM, Chris McDonough chr...@plope.com wrote: - If a factory is specified on a route, it will need to point at a function that had the same call/response convention as a traversal

Re: [Repoze-dev] unifying url dispatch and traversal

2009-06-05 Thread Chris Rossi
On Fri, Jun 5, 2009 at 12:01 PM, Tres Seaver tsea...@palladion.com wrote: I'm assuming that we would fix anything in our repository; it should even be possible to do so in a BBB-compatible way, e.g.:: def context_factory(environ=None, **kw): match_dict = kw.copy() if

Re: [Repoze-dev] unifying url dispatch and traversal

2009-06-08 Thread Chris Rossi
On Mon, Jun 8, 2009 at 10:19 AM, Stephan Altmueller step...@klaravision.com wrote: I would also like to throw in my suggestion for a function signature (based on Chris Rossi's): def context_factory(request, routes_match=None): I like that one. +1 Chris

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

2009-06-12 Thread Chris Rossi
On Fri, Jun 12, 2009 at 12:28 PM, Tres Seaver tsea...@palladion.com wrote: +1 from me. +1 from me. Also +1 for managing the transaction at this level, if feasible. Chris ___ Repoze-dev mailing list Repoze-dev@lists.repoze.org

Re: [Repoze-dev] repoze.component and repoze.configuration

2009-06-22 Thread Chris Rossi
FWIW, when/if I end up trying to introduce component architecture ideas and practices to projects or groups not already using Zope or BFG, chances are I will start here, rather than than with the zope.* equivalents. While I don't have any particular opinion about XML vs YAML, I have found the

Re: [Repoze-dev] bfg vs buildout

2009-06-24 Thread Chris Rossi
On Wed, Jun 24, 2009 at 9:16 AM, Chris Withers ch...@simplistix.co.ukwrote: Also, how do you wire running tests, particularly running them with nose, into this? bin/nosetests path/to/src Chris ___ Repoze-dev mailing list

Re: [Repoze-dev] page directive sci-fi

2009-09-13 Thread Chris Rossi
/need to identify the template used much later in the process, so for me baking the template name in the view directive is certainly not what I want T On Mon, Sep 14, 2009 at 1:59 AM, Chris Rossi ch...@archimedeanco.com wrote: This looks reasonable. I think it would also be reasonable

Re: [Repoze-dev] doc question

2009-11-23 Thread Chris Rossi
On Sun, Nov 22, 2009 at 9:08 PM, Chris McDonough chr...@plope.com wrote: Iain Duncan wrote: Am I missing something terribly obvious, or is that not just a regular instance method in the example? Or am I misunderstanding the point? Perhaps this part could be clearer, it's confused me at any

Re: [Repoze-dev] Use case of view predicate xhr and json renderer

2010-01-22 Thread Chris Rossi
Hi George, In this case it really doesn't make much difference. There just happens to be more than way to skin the cat. You have a context, an instance of ITextEdit, and you're trying to configure BFG in such a way that it can call different views based on the request. You've already done this

Re: [Repoze-dev] how to get the response

2010-04-27 Thread Chris Rossi
Ciao Davide, There is not a response already attached to the request, but your instance of HTTPFound *is* a response, so you would just set your cookie there: ppp = HTTPFound(location=request.application_url) ppp.set_cookie('fb_user', value=value, ...) return ppp Chris On Tue, Apr 27,

Re: [Repoze-dev] threadpooling things

2010-04-29 Thread Chris Rossi
This currently lives in a specific project but I have considered pulling it out and making it more general: http://bfg.repoze.org/pastebin/715 The main thing you would need to do to make it a general purpose ResourcePool would be to pass a resource_factory callable into the constructor and,

Re: [Repoze-dev] imperative configuration prevents application extension?

2010-05-05 Thread Chris Rossi
On Wed, May 5, 2010 at 1:34 PM, Chris McDonough chr...@plope.com wrote: On Wed, 2010-05-05 at 19:19 +0200, Charlie Clark wrote: Am 05.05.2010, 02:18 Uhr, schrieb Chris McDonough chr...@plope.com: Relying on scan ordering is like relying on import ordering to do configuration in an

Re: [Repoze-dev] imperative configuration prevents application extension?

2010-05-06 Thread Chris Rossi
On Thu, May 6, 2010 at 4:14 AM, Charlie Clark charlie.cl...@clark-consulting.eu wrote: Am 06.05.2010, 10:10 Uhr, schrieb Chris Withers ch...@simplistix.co.uk: This is spot on, and would, in theory, allow an app to override a library that overrides a framework. Cue lots of Jim like wooah!

Re: [Repoze-dev] imperative configuration prevents application extension?

2010-05-06 Thread Chris Rossi
On Thu, May 6, 2010 at 10:49 AM, Chris McDonough chr...@plope.com wrote: On Thu, 2010-05-06 at 10:36 -0400, Chris Rossi wrote: On Thu, May 6, 2010 at 4:14 AM, Charlie Clark charlie.cl...@clark-consulting.eu wrote: Am 06.05.2010, 10:10 Uhr, schrieb Chris Withers ch...@simplistix.co.uk

Re: [Repoze-dev] repoze.folder API weirdness

2010-06-17 Thread Chris Rossi
On Thu, Jun 17, 2010 at 10:08 AM, Tim Hoffman zutes...@gmail.com wrote: I would be concerned if you tried to __setitem__ a new page to replace the existing folder of the same name thus blowing away a whole heap of subfolders and documents in the process. Very bad ;-( I would tend to think

Re: [Repoze-dev] Chameleon vs. jQuery templating, round one

2010-10-12 Thread Chris Rossi
I suspect you're going to want to store client side template separately from the ZPT and inject it at render time. Does this work? In Python: jstemplate = blah blah blah % some expression % blah blah rendered = render_template(template.pt, jstemplate=jstemplate) In ZPT: blah blah div

Re: [Repoze-dev] repoze.catalog clear

2010-11-08 Thread Chris Rossi
On Mon, Nov 8, 2010 at 10:10 AM, Wichert Akkerman wich...@wiggy.net wrote: On 11/8/10 16:09 , Chris Rossi wrote: The document_map, while sometimes stored on the catalog, is not known to the catalog. If you want to clear it, you need to do so explicitly. This is because r.catalog makes

Re: [Repoze-dev] Generating http/https links from the application

2010-11-10 Thread Chris Rossi
I would just have a middleware look for that header and rewrite wsgi.url_scheme appropriately in the environment. You could use repoze.vhm to do that, but since you only need that one tweak, a few lines of middleware should really be all you need. Chris class RewriteURLSchemeMiddleware(object):

Re: [Repoze-dev] catalog oddness

2011-01-14 Thread Chris Rossi
On Fri, Jan 14, 2011 at 5:20 AM, Wichert Akkerman wich...@wiggy.net wrote: This may already be different in the trunk of repoze.catalog, but I just stumbled over this: when you do a catalog search and ask it to order by an empty index you get an empty result set. I was expecting the result to

Re: [Repoze-dev] catalog oddness

2011-01-14 Thread Chris Rossi
On Fri, Jan 14, 2011 at 10:21 AM, Wichert Akkerman wich...@wiggy.netwrote: The object did have a value, but it was None which the indexed apparently ignores. The fact that it was always None was a bug in my code that has been fixed now - it should be either None or a date (it was a