Re: [Repoze-dev] Chameleon issue and Testing Question

2010-01-22 Thread Chris McDonough
Kevin J. Kalupson wrote: Hi All, I'm having an issue with chameleon.zpt templates and macros. I've create two templates, one with a macro and slots and one that is used to fill the slots in my main template. Both templates have an xml and DOCTYPE declaration. The issue is that the final

[Repoze-dev] repoze.bfg 1.2b2 released

2010-01-21 Thread Chris McDonough
repoze.bfg 1.2b2 has been released Install via: easy_install -i http://dist.repoze.org/bfg/1.2/simple repoze.bfg Or via PyPI. The changelog follows. 1.2b2 (2010-01-21) == Bug Fixes - - When the ``Configurator`` is passed an instance of

Re: [Repoze-dev] Trouble with repoze.bfg.restrequest

2010-01-21 Thread Chris McDonough
r.b.restrequest is no longer supported or required. Instead use the built-in BFG request_method feature: view view=.my.get_view request_method=GET/ view view=.my.post_view request_method=POST/ See also the other predicates of the view directive:

Re: [Repoze-dev] Trouble with repoze.bfg.restrequest

2010-01-21 Thread Chris McDonough
request_method=POST / .. and so on. - C Thanks, Steve --- On Thu, 1/21/10, Chris McDonough chr...@plope.com wrote: From: Chris McDonough chr...@plope.com Subject: Re: [Repoze-dev] Trouble with repoze.bfg.restrequest To: Steve Schmechel steveschmec...@yahoo.com Cc: repoze-dev

[Repoze-dev] repoze.bfg 1.2b1 released

2010-01-18 Thread Chris McDonough
repoze.bfg 1.2b1 has been released. It is available via: easy_install -i http://dist.repoze.org/bfg/1.2/simple repoze.bfg Or via PyPI. The docs at http://docs.repoze.org/bfg/1.2 have been updated. The changelog follows: 1.2b1 (2010-01-18) == Bug Fixes - - In

[Repoze-dev] Near-final revision of BFG Book

2010-01-18 Thread Chris McDonough
Here's a near-final revision of what will be sent to the printer for printing as a book entitled The repoze.bfg Web Application Framework: http://plope.com/static/bfg-1.2b1dev.pdf If anyone has any last-minute comments I'd appreciate hearing them; this will go in for printing by tomorrow. - C

Re: [Repoze-dev] repoze.bfg 1.2b1 released

2010-01-18 Thread Chris McDonough
Shane Hathaway wrote: Chris McDonough wrote: repoze.bfg 1.2b1 has been released. It is available via: easy_install -i http://dist.repoze.org/bfg/1.2/simple repoze.bfg Or via PyPI. The docs at http://docs.repoze.org/bfg/1.2 have been updated. Yay! :-) I've been following BFG 1.2

Re: [Repoze-dev] Near-final revision of BFG Book

2010-01-18 Thread Chris McDonough
lot of work went into it. Congrats! -Casey On Jan 17, 2010, at 7:43 PM, Chris McDonough wrote: Here's a near-final revision of what will be sent to the printer for printing as a book entitled The repoze.bfg Web Application Framework: http://plope.com/static/bfg-1.2b1dev.pdf

Re: [Repoze-dev] repoze.bfg 1.2b1 released

2010-01-18 Thread Chris McDonough
Shane Hathaway wrote: Chris McDonough wrote: - App developers can use get_current_registry() to get the registry and thus get access to utilities and such, e.g. get_current_registry().getUtility(...) Ah-ha, that's what I was missing. For some reason, I failed to find that bit

Re: [Repoze-dev] repoze.plone use with plone versions 3.1?

2010-01-17 Thread Chris McDonough
Hanno Schlichting wrote: On Sun, Jan 17, 2010 at 10:51 AM, Wichert Akkerman wich...@wiggy.net wrote: There is something to consider: I suspect more things are started to require the new publisher events from Zope2, either directly or via one of the backport packages for Zope 2.10. I'm not sure

Re: [Repoze-dev] Licensing of sourcecodegen and Chameleon

2010-01-12 Thread Chris McDonough
Brian Sutherland wrote: I'm making an attempt at packaging sourcecodegen and Chameleon for Debian, but I've immediately stumbled over licensing issues. AFAIKT all code in the repoze repository shares the same license, so I plan on copying the version from

Re: [Repoze-dev] chameleon and appengine

2010-01-10 Thread Chris McDonough
Miuler wrote: Hi, will work chameleon on google appengine? No. in future? Sorry, unknown. - C ___ Repoze-dev mailing list Repoze-dev@lists.repoze.org

Re: [Repoze-dev] configurator add_route usage

2010-01-08 Thread Chris McDonough
Wichert Akkerman wrote: The current bfg docs do not seem to explain add_route very well. The URL dispatch section briefly mentions its existance, but does not show anything beyond a very trivial usage. Trying to use it it seems that you have to pass a Python callable directly as view

Re: [Repoze-dev] [Repoze-checkins] r7852 - in repoze.bfg/branches/wichert-paster: . repoze/bfg repoze/bfg/paster_templates/alchemy repoze/bfg/paster_templates/alchemy/+package+ repoze/bfg/paster_templ

2010-01-06 Thread Chris McDonough
Details aside, we've decided to do middleware configuration via PasteDeploy, not in the BFG app factory. I don't see any reason to change that. Thanks for this work BTW! I'll take a look shortly... - C Wichert Akkerman wrote: On 2010-1-6 21:43, Tres Seaver wrote: -BEGIN PGP SIGNED

Re: [Repoze-dev] [Repoze-checkins] r7852 - in repoze.bfg/branches/wichert-paster: . repoze/bfg repoze/bfg/paster_templates/alchemy repoze/bfg/paster_templates/alchemy/+package+ repoze/bfg/paster_templ

2010-01-06 Thread Chris McDonough
fixes if you want this to make it in. Thanks, - C Chris McDonough wrote: Details aside, we've decided to do middleware configuration via PasteDeploy, not in the BFG app factory. I don't see any reason to change that. Thanks for this work BTW! I'll take a look shortly... - C Wichert

Re: [Repoze-dev] Fwd: Jython Support on 1.2

2010-01-05 Thread Chris McDonough
, Jan 4, 2010 at 5:31 PM, Chris McDonough chr...@plope.com mailto:chr...@plope.com wrote: Diaz, Eduardo wrote: Ok, that worked! Great! For the record, I installed Jython in the meantime, and I just fixed the repoze/bfg/paster.py Jython bug on the trunk. I'm

[Repoze-dev] PyCon 2010 BFG Tutorial

2010-01-05 Thread Chris McDonough
Carlos de la Guardia will be giving a tutorial at this year's PyCon entitled Your First BFG Application. http://us.pycon.org/2010/tutorials/delaguardia_bfg/ If you're going to PyCon, you may want to sign up. I think today might be the last day for early bird signup. - C

[Repoze-dev] repoze.bfg 1.2a11 released

2010-01-05 Thread Chris McDonough
repoze.bfg 1.2a11 has been released Install via: easy_install -i http://dist.repoze.org/bfg/1.2/simple repoze.bfg Or via PyPI. The documentation at http://docs.repoze.org/bfg/1.2 has been updated. This release provides Jython compatibility (zope.configuration 3.7.1 and zope.schema 3.6.1

[Repoze-dev] repoze.bfg 1.2a10 released...

2010-01-04 Thread Chris McDonough
repoze.bfg 1.2a10 has been released. The documentation at http://docs.repoze.org/bfg/1.2 has been updated. It is installable via: easy_install -i http://dist.repoze.org/bfg/1.2/simple repoze.bfg Or via PyPI. The changelog follows. 1.2a10 (2010-01-04) === Features

Re: [Repoze-dev] Jython Support on 1.2

2010-01-04 Thread Chris McDonough
Diaz, Eduardo wrote: Ok, I think I know why this is happening, the exception raises in the _validate method of the Orderable class, this is where it happends: if self.max is not None and value self.max: raise TooBig(value, self.max) Here, max is a ValidatedProperty it has a

Re: [Repoze-dev] new to bfg

2010-01-04 Thread Chris McDonough
Hi, Elliot, Elliot Gage wrote: Good morning, I’ve been looking at bfg for some time. I am primarily a dotnet developer and have a few web projects I am looking at migrating over to a python framework. I am aware of a few frameworks already out there including django,

Re: [Repoze-dev] new to bfg

2010-01-04 Thread Chris McDonough
Of Chris McDonough Sent: Monday, January 04, 2010 12:04 PM To: Elliot Gage Cc: repoze-dev@lists.repoze.org Subject: Re: [Repoze-dev] new to bfg Hi, Elliot, Elliot Gage wrote: Good morning, I've been looking at bfg for some time. I am primarily a dotnet developer and have a few web

Re: [Repoze-dev] Jython Support on 1.2

2010-01-04 Thread Chris McDonough
to keep checking with other templating engines. On Mon, Jan 4, 2010 at 4:10 PM, Chris McDonough chr...@plope.com mailto:chr...@plope.com wrote: Diaz, Eduardo wrote: That helps with the zcml problem but now, there is a problem with chameleon, is there another template

Re: [Repoze-dev] [bfg 1.29a] render_template_to_response returning the view class?

2010-01-02 Thread Chris McDonough
I'm not sure which version of bfg you're contrasting this against, but if the view is a class, constructing the class just constructs the class. It's not until the class' __call__ is invoked that a response is potentially generated. If a previous BFG version worked differently, it was a bug.

Re: [Repoze-dev] BFG documentation stuff

2009-12-30 Thread Chris McDonough
’)} + foo/abc/def/a/b/c - {’baz’:abc, ’bar’:*def*, ’traverse’:(’a’, ’b’, ’c’)} peace, Ricardo Mendes Thank you! Fixed in SVN... - C 2009/12/27 Chris McDonough chr...@plope.com mailto:chr...@plope.com The most recent release (1.2a9) of repoze.bfg contains a documentation

Re: [Repoze-dev] repoze.vhm and repoze.zope2 odd behavior

2009-12-29 Thread Chris McDonough
Martin Aspeli wrote: I assumed it was just acquisition trickery. Looking more closely, z2bob.py uses the repoze.vhm.virtual_root via the getVirtualRoot in the repoze.vhm.utils package to get the virtual root and it seems to create the correct path for traversal regardless of the issue. Just

[Repoze-dev] BFG documentation stuff

2009-12-27 Thread Chris McDonough
The most recent release (1.2a9) of repoze.bfg contains a documentation licensing modification. Previous releases of the documentation stated no explicit license. The most recent release of repoze.bfg asserts that the documentation has the Creative Commons Attribution-Noncommercial-No

[Repoze-dev] repoze.bfg 1.2a8 released

2009-12-24 Thread Chris McDonough
repoze.bfg 1.2a8 has been released. Install it via: easy_install -i http://dist.repoze.org/bfg/1.2/simple repoze.bfg Or via PyPI. The docs at http://docs.repoze.org/bfg/1.2 have been updated. The changelog follows: 1.2a8 (2009-12-24) == Features - Add a

[Repoze-dev] repoze.bfg 1.2a7 released

2009-12-20 Thread Chris McDonough
repoze.bfg 1.2a7 has been released Install via: easy_install -U http://dist.repoze.org/bfg/1.2/simple repoze.bfg The docs at http://docs.repoze.org/bfg/1.2 have been updated. The changelog follows: 1.2a7 (2009-12-20) == Features - Add four new testing-related

Re: [Repoze-dev] IRC Questions

2009-12-19 Thread Chris McDonough
Steve Schmechel wrote: Sorry, if some of these questions are inane, but I am try to get proficient at participating in IRC again after many years away. (There is apparently more activity on the Repoze IRC channel than on this list, so I guess I better learn if I want to participate.)

[Repoze-dev] repoze.bfg 1.2a6 released

2009-12-18 Thread Chris McDonough
repoze.bfg 1.2a6 has been released Install via: easy_install -i http://dist.repoze.org/bfg/1.2/simple repoze.bfg Or via PyPI. The docs at http://docs.repoze.org/bfg/1.2 have been updated. The changelog follows: 1.2a6 (2009-12-18) == Features - The

[Repoze-dev] repoze.bfg 1.2a5 released

2009-12-10 Thread Chris McDonough
repoze.bfg 1.2a5 has been released. Install via: easy_install -i http://dist.repoze.org/bfg/1.2/simple repoze.bfg Or via PyPI. The changelog follows. 1.2a5 (2009-12-10) == Features - When the ``repoze.bfg.exceptions.NotFound`` or

[Repoze-dev] repoze.bfg 1.1.5 and 1.2a4 released

2009-12-07 Thread Chris McDonough
repoze.bfg 1.1.5 and 1.2a4 have been released. Install 1.2a4 via: easy_install -i http://dist.repoze.org/bfg/1.2/simple repoze.bfg Install 1.1.5 via: easy_install -i http://dist.repoze.org/bfg/1.1/simple repoze.bfg 1.1.5 is a backport bugfix release. 1.2a4 is a bigfix and minor

Re: [Repoze-dev] authorization debug problem

2009-12-02 Thread Chris McDonough
Wichert Akkerman wrote: I use a custom authorization problem, but noticed that when I enable BFG_DEBUG_AUTHORIZATION it always reports no authorization policy in use. I am guessing this happens because the authorization policy is registered after the routes are setup, so the queryUtility

[Repoze-dev] repoze.bfg 1.1.4 and 1.2a3 released

2009-12-02 Thread Chris McDonough
Two new releases of repoze.bfg are out. Install 1.1.4 via: easy_install -i http://dist.repoze.org/bfg/1.1/simple repoze.bfg Install 1.2a3 via: easy_install -i http://dist.repoze.org/bfg/1.2/simple repoze.bfg Or either is available via PyPI. These are bugfix releases. No release

Re: [Repoze-dev] Running repoze.bfg on Google’s A pp Engine

2009-12-02 Thread Chris McDonough
Darryl Cousins wrote: Hi All, I found that the recipe [1] to run repoze.bfg on gae **almost** works. Thanks for the analysis! I think the best solution would be to make all imports of Chameleon conditional.This actually *used* to be the case; something must have broken it since 1.0

[Repoze-dev] [issue110] unexpected keyword argument 'level' repoze.bfg.jinja2 (bfg 1.2a2)

2009-11-30 Thread Chris McDonough
Chris McDonough chr...@plope.com added the comment: Thanks; I've fixed this in the 0.6 release, now on PyPI. -- status: unread - resolved __ Repoze Bugs b...@bugs.repoze.org http://bugs.repoze.org/issue110

Re: [Repoze-dev] fun benchmarks.

2009-11-30 Thread Chris McDonough
And in the spirit of http://blog.curiasolutions.com/2009/10/the-great-web-technology-shootout-round-3-better-faster-and-shinier/ a Chameleon hello world benchmark, rendering a template from a view that calls repoze.bfg.chameleon_zpt.render_template_to_response filling a slot in a macro from

Re: [Repoze-dev] [bfg 1.2a1] Required specification must be a specification or class.

2009-11-29 Thread Chris McDonough
Andreas Jung wrote: Tried to get zopyx.smartprintng.server working w/ BFG 1.2a1. This fails badly. Anything I am missing? Thanks for trying it. I have fixed this on the trunk and your server now starts. For maximum forward compatibility, you'll probably eventually want to change:

Re: [Repoze-dev] 1.2a1 imminent...

2009-11-28 Thread Chris McDonough
Tim Hoffman wrote: Hi Chris I think this is a good direction to go in. I am already starting to do something similair this with repoze (I am still on 1.0.1) but plan to upgrade in the next few weeks,. The advantage of this style of configuration really comes into its own when you are

[Repoze-dev] repoze.bfg 1.2a1 released

2009-11-28 Thread Chris McDonough
repoze.bfg 1.2a1 is now released. It can be installed via: easy_install -i http://dist.repoze.org/bfg/1.2/simple repoze.bfg Or via PyPI. Documentation for this release exists at: http://docs.repoze.org/bfg/1.2/ This is a major feature release. The new features of the release are

[Repoze-dev] 1.2a1 imminent...

2009-11-27 Thread Chris McDonough
Hi folks, I've been working on the next minor revision to repoze.bfg, which will be 1.2. 1.2 will be a slightly more important release than the previous 1.1 release, because it involves exposing an imperative API for configuration (adding routes/views, etc). In particular, it means that the

[Repoze-dev] repoze.bfg 1.1.2 released

2009-11-26 Thread Chris McDonough
Happy Thanksgiving folks. repoze.bfg 1.1.2 has been released. Install it via: easy_install -i http://dist.repoze.org/bfg/1.1/simple repoze.bfg Or via PyPI. It is a pure bugfix release. The changelog follows: 1.1.2 (2009-11-26) == Bug Fixes - - When two views

Re: [Repoze-dev] Possible accept view-predicate enhancement?

2009-11-25 Thread Chris McDonough
Alberto Valverde wrote: Hello, I'm trying to make use of the new-in-1.1 accept view predicate to register several views with the same name for the same context object to render a response in the content-type requested by the user but the result is not quite what I expect. The zcml looks

Re: [Repoze-dev] would like to registerViews in python but not via decorator

2009-11-25 Thread Chris McDonough
Tim Hoffman wrote: Hi Chris I am trying to register some views directly through python and not using the view decorator, I have tried using code very similiar to repoze.bfg.testing. However after doing so, whilst I can look the view up by doing a

Re: [Repoze-dev] Possible accept view-predicate enhancement?

2009-11-25 Thread Chris McDonough
Alberto Valverde wrote: Hello, I'm trying to make use of the new-in-1.1 accept view predicate to register several views with the same name for the same context object to render a response in the content-type requested by the user but the result is not quite what I expect. The zcml looks

Re: [Repoze-dev] repoze.bfg future plans?

2009-11-22 Thread Chris McDonough
Iain Duncan wrote: Hey Chris et. al, I'm seriously considering switching my main platform for our inhouse framework to mostly repoze.bfg with auxillary pylons bits from the other way around, but have a few concerns that mostly relate to making sure that clients buy into our platform of choice

Re: [Repoze-dev] using the pylons/weberror interfactive debugger in bfg apps?

2009-11-22 Thread Chris McDonough
Iain Duncan wrote: Hey all, one thing I miss in Pylons is the out of the box integration with the interactive debugger in your browser. I'll confess ignorance as to how this is hooked up, but it's *really* helpful to people learning pylons. Wondering if it would be a good plan to put this 'in

Re: [Repoze-dev] doc question

2009-11-22 Thread Chris McDonough
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 rate. I'm not really clear how to make changes to make it clearer. What are

Re: [Repoze-dev] starter request

2009-11-22 Thread Chris McDonough
Iain Duncan wrote: Wondering if it would be possible to add a paster starter template for bgf_routes ( no sqlalchemy )? Seems to be a missing piece. Instead of adding another a paster template, we could just answer whatever concrete questions you have about routing? Each paster template we

[Repoze-dev] repoze.bfg 1.1.1 released

2009-11-20 Thread Chris McDonough
repoze.bfg 1.1.1 has been released Install via: easy_install -i http://dist.repoze.org/bfg/1.1/simple repoze.bfg The docs at http://docs.repoze.org/bfg/1.1 have been updated. This is a pure bugfix release. The changelog follows: 1.1.1 (2009-11-21) == Bug Fixes -

[Repoze-dev] repoze.bfg 1.1 final released

2009-11-15 Thread Chris McDonough
repoze.bfg 1.1 has been released. You can install it via: easy_install -i http://dist.repoze.org/bfg/current/simple repoze.bfg Or via PyPI. The What's New In repoze.bfg 1.1 document details the changes made since the 1.0 release: http://docs.repoze.org/bfg/1.1/whatsnew-1.1.html The

Re: [Repoze-dev] object graph traversal question

2009-11-12 Thread Chris McDonough
F. Oliver Gathmann wrote: Hello! Coming from Pylons, I'm a newbie to the object graph traversal world, so this question might be slightly misplaced (but hopefully a no-brainer for the bfg gurus...). I very much like the concept of looking up my model object before dispatching to a

[Repoze-dev] [issue98] repoze.who Identifier Issue

2009-11-12 Thread Chris McDonough
Chris McDonough chr...@plope.com added the comment: For the record, in repoze.who 1.1, the userid string gets base64 encoded in the cookie so this should not be a problem. Old cookies continue to work via a b/c shim. I'm going to close this issue as a result. -- status: chatting

[Repoze-dev] [issue8] repoze.grok: create 'addgrokuser' script

2009-11-12 Thread Chris McDonough
Chris McDonough chr...@plope.com added the comment: Dead. -- status: chatting - resolved __ Repoze Bugs b...@bugs.repoze.org http://bugs.repoze.org/issue8 __ ___ Repoze-dev

[Repoze-dev] [issue26] traceback attempting to edit an image in plone

2009-11-11 Thread Chris McDonough
Chris McDonough chr...@plope.com added the comment: Long dead. -- status: chatting - resolved __ Repoze Bugs b...@bugs.repoze.org http://bugs.repoze.org/issue26 __ ___ Repoze-dev

[Repoze-dev] [issue20] Word-wrapping in roundup is awful

2009-11-11 Thread Chris McDonough
Chris McDonough chr...@plope.com added the comment: Filed under replace bugtracker at some point. ;-) -- status: chatting - resolved __ Repoze Bugs b...@bugs.repoze.org http://bugs.repoze.org/issue20

[Repoze-dev] [issue36] editing a file in ZMI fails

2009-11-11 Thread Chris McDonough
Chris McDonough chr...@plope.com added the comment: Long dead. -- status: chatting - resolved __ Repoze Bugs b...@bugs.repoze.org http://bugs.repoze.org/issue36 __ ___ Repoze-dev

[Repoze-dev] [issue105] View resolution ordering differences between BFG 1.1a8 and 1.1b3

2009-11-10 Thread Chris McDonough
New submission from Chris McDonough chr...@plope.com: mcdonc: so malthe wrt this difference between 1.1a8 and 1.1b3, can you send me some sample view config zcml so i can figure out wtf happened because i cant see anything obvious in the changelong [5:00pm] malthe: mcdonc: http://pastie.org

[Repoze-dev] [issue105] View resolution ordering differences between BFG 1.1a8 and 1.1b3

2009-11-10 Thread Chris McDonough
Chris McDonough chr...@plope.com added the comment: I cant replicate this with the following configuration on 1.1b3: In views.py: --- from webob import Response def my_view(context, request): return {'project':'starter'} def one(context, request): return Response('one

Re: [Repoze-dev] Using bfgshell with a ZODB based project.

2009-11-03 Thread Chris McDonough
Steve Schmechel wrote: Is there a proper way to invoke bfgshell in a ZODB project? (The code and configuration I am using is exactly from the tutorial and everything else works fine.) The last argument you pass, main needs to change.. it needs to match the name of the app section in the ini

Re: [Repoze-dev] repoze.bfg 1.1b1 released

2009-11-02 Thread Chris McDonough
Graham Dumpleton wrote: On Nov 2, 9:17 am, Chris McDonough chr...@plope.com wrote: repoze.bfg 1.1b1 has been released. ... - If a BFG app that had a route matching the root URL was mounted under a path in modwsgi, ala ``WSGIScriptAlias /myapp /Users/chrism/projects/modwsgi/env

[Repoze-dev] repoze.bfg 1.1b2 released

2009-11-02 Thread Chris McDonough
repoze.bfg 1.1b2 has been released. Yes, I know the releases have been coming at an unreasonable pace, sorry. You can install it via: easy_install -i http://dist.repoze.org/bfg/1.1/simple repoze.bfg *or*, now that I've worked out a niggling bug that made installing it from PyPI a bit

Re: [Repoze-dev] Package naming

2009-11-02 Thread Chris McDonough
Nathan Van Gheem wrote: Hello all, I realize my opinion may not matter very much, but as one who uses many of the repoze packages often, I often wondered why the repoze namespace was used for many of the packages. Because we're lazy and unoriginal. And we like being able to name a

Re: [Repoze-dev] Package naming

2009-11-02 Thread Chris McDonough
Graham Dumpleton wrote: On Nov 3, 8:33 am, Malthe Borch mbo...@gmail.com wrote: 2009/11/2 Martin Aspeli optilude+li...@gmail.com: I think it's better to use top-level namespaces to indicate ownership, if nothing else to avoid the chance of things clashing. For the repoze project to claim

[Repoze-dev] repoze.bfg 1.1a9 released

2009-10-31 Thread Chris McDonough
repoze.bfg 1.1a9 has been released It may be installed via: easy_install -i http://dist.repoze.org/bfg/1.1/simple repoze.bfg The documentation at http://docs.repoze.org/bfg/1.1/ have been updated. This release is hopefully the last alpha release in the 1.1 series (hopefully only betas and

Re: [Repoze-dev] bfg + logging

2009-10-28 Thread Chris McDonough
A hidden feature of PasteDeploy (the package which defines the .ini format for a BFG package.ini file) is that you can just inject something in the .ini format found at e.g. http://www.red-dove.com/python_logging.html#config into the BFG app .ini file (literally just paste it in to the BFG app

Re: [Repoze-dev] bfg + logging

2009-10-28 Thread Chris McDonough
Andreas Reuleaux wrote: Maybe it would be good to have this in the bfg docs ? - I mean: just a basic example to get something running and a link to this tutorial - no details of how to make a more complicated configuration - or is it just me, that didn't know of this hidden feature of

Re: [Repoze-dev] bfg + logging

2009-10-28 Thread Chris McDonough
Andreas Reuleaux wrote: Yes, I can have a look (not immediately though). Should I just provide some patches or do you want to give me svn write access (should I sign some contributor agreement)? Either is fine, really. The contributor agreement page at http://repoze.org/contributing.html

Re: [Repoze-dev] Question about using repoze.bfg.formish in url dispatch

2009-10-28 Thread Chris McDonough
georgehu wrote: Chris McDonough wrote: You need something like span tal:replace=structure request.form()/ Regarding to the request.form(), I've tried to find document explaining the usage but no luck. Can you give it more explaination? There's probably nothing in the docs about

[Repoze-dev] [issue100] Configurable character set support for repoze.who and repoze.what

2009-10-24 Thread Chris McDonough
Chris McDonough chr...@plope.com added the comment: I mean that I personally don't know how to change the software based on your suggestions so far in a way that adds significant value, and that if WSGI2 will handle the encoding and decoding issues, maybe this should just do something better

[Repoze-dev] [issue101] AuthTktCookie should not try to decode userid based on value types

2009-10-23 Thread Chris McDonough
Chris McDonough chr...@plope.com added the comment: Thanks for the report. So to be honest, I can't find an issue with the current strategy. The mod_auth_tkt README actually contradicts itself here, saying in one section that it checks user_data for internal data, then in another section

[Repoze-dev] [issue100] Configurable character set support for repoze.who and repoze.what

2009-10-23 Thread Chris McDonough
Chris McDonough chr...@plope.com added the comment: I believe this. On the other hand, I'm not sure that a 'charset' setting dedicated to repoze.who or to repoze.what is really sufficient. Who will set the charset? What will it be set to? What does it mean to individual plugins? What

[Repoze-dev] [issue101] AuthTktCookie should not try to decode userid based on value types

2009-10-23 Thread Chris McDonough
Chris McDonough chr...@plope.com added the comment: I need to take back the assumption of monstrous, disastrous security hole wrt. using the pickle module (or eval, as you suggest) because in this particular case, the cookie content is hashed and compared against a digest that includes

[Repoze-dev] [issue101] AuthTktCookie should not try to decode userid based on value types

2009-10-23 Thread Chris McDonough
Chris McDonough chr...@plope.com added the comment: Apologies, I see no reason that the way the current authtkt plugin encodes userids needs to change. Given that this is a plugin, if you need alternate behavior, you can of course copy and change the implementation and distribute

Re: [Repoze-dev] Predicates on routes vs views

2009-10-22 Thread Chris McDonough
Malthe Borch wrote: 2009/10/22 Tres Seaver tsea...@palladion.com: The view predicates are there to allow selecting a particular view among several registered for the route or context: e.g., to dispatch to different views for GET versus POST for the same route / context and view name. It

[Repoze-dev] repoze.bfg 1.1a7 released

2009-10-18 Thread Chris McDonough
repoze.bfg 1.1a7 has been released. Install via: easy_install -i http://dist.repoze.org/bfg/dev/simple repoze.bfg The documentation at http://docs.repoze.org/bfg has been updated. This release is a pure feature release, there are no backwards incompatibilities or deprecations: bfg_view

[Repoze-dev] repoze.bfg 1.1a6 released

2009-10-15 Thread Chris McDonough
Hi, The repoze.bfg web framework version 1.1a6 has been released. You can install it via: easy_install -i http://dist.repoze.org/bfg/dev/simple repoze.bfg Highlights: new xhr, accept, and header predicates in view directives, internal changes to supports the Python dictionary API against

Re: [Repoze-dev] trying to apply row-level security in SQLAlchemy + URL Dispatch

2009-10-13 Thread Chris McDonough
george hu wrote: According to the document, A common thing to want to do is to attach an __acl__ to the context object dynamically for declarative security purposes, I moved __acl__ statement from RootFactory class to the Page class, as in the following code: class Page(Base):

Re: [Repoze-dev] trying to apply row-level security in SQLAlchemy + URL Dispatch

2009-10-13 Thread Chris McDonough
Chris McDonough wrote: Hi George, Have you read http://docs.repoze.org/bfg/1.1/narr/urldispatch.html#using-repoze-bfg-security-with-url-dispatch ? Never mind, I see that you have. The model object is not the context in this situation. The context is something different. It's

[Repoze-dev] repoze.bfg 1.1a5 released

2009-10-09 Thread Chris McDonough
repoze.bfg 1.1a5 has been released. You may install it using the following command: easy_install -i http://dist.repoze.org/bfg/dev/simple repoze.bfg It is also on PyPI. This release is mostly a documentation improvement and speed improvement release. The changelog follows: 1.1a5

Re: [Repoze-dev] zope.schema, zope.formlib in bfg? or help a newb understand zca coolness

2009-10-03 Thread Chris McDonough
Martin Aspeli wrote: Thomas G. Willis wrote: I was kind of expecting that the book would have some gaps as far as bfg goes. I was hoping that going through the exercise of struggling through those gaps would help me arrive at a better understanding of all things zope(a lofty goal I'm

Re: [Repoze-dev] Minor Typo in xml-rpc docs

2009-10-01 Thread Chris McDonough
Thanks Kevin. This was actually already fixed in SVN but the docs rendering hadn't been updated for a while. I just updated it. - C Kevin J. Kalupson wrote: Hi, I spotted a minor typo on http://docs.repoze.org/xmlrpc/ . near the top - easy_install -i

Re: [Repoze-dev] bfg site manager question ( another one )

2009-09-26 Thread Chris McDonough
Chris McDonough wrote: Iain Duncan wrote: On Sat, 2009-09-26 at 01:42 -0400, Chris McDonough wrote: Iain Duncan wrote: If I could get the 'one-registry-to-rule-them-all' loaded in middelware on ingress, is there at least a reasonable way of forcing the bgf app to use that registry as it's

Re: [Repoze-dev] bfg site manager question ( another one )

2009-09-26 Thread Chris McDonough
Iain Duncan wrote: Hmm, I agree, but I feel like there is a smell either way. ;-) It seems to me I can either: A) - create a duplicate of the the same registry in my abstract model middleware by using zope.configuration.xmlconfig( same_file_as_bfg ) and then know that any utility/adapter

Re: [Repoze-dev] repoze.bfg and repoze.what

2009-09-26 Thread Chris McDonough
Thomas G. Willis wrote: I was wondering if anyone is aware of an example that shows how to link repoze.what to an aclauthorzationpolicy . No. I have some who/what plugin bits (WhoPlugin, GroupSource and PermissionSource) I wrote that I would like to use, and preferably using an ini file

Re: [Repoze-dev] getting at the bfg registry programmatically?

2009-09-25 Thread Chris McDonough
Iain Duncan wrote: Hi folks, I'm working on breaking out a project into bits, including some in bfg, some in pylons, and an abstract model that lives in it's own middleware. What I want to have happen is for all parts to share one zca registry, but my experiments so far are turning up naught.

Re: [Repoze-dev] bfg site manager question ( another one )

2009-09-25 Thread Chris McDonough
Iain Duncan wrote: Ok, so I figured out that if I get the zope.component.globalSiteManager in my model middleware on ingress, that in bfg I can indeed query it for registered adapaters and get at that. But in the bfg app, the global site manager is empty and the siteManager has the stuff from

Re: [Repoze-dev] bfg site manager question ( another one )

2009-09-25 Thread Chris McDonough
Iain Duncan wrote: On Sat, 2009-09-26 at 01:04 -0400, Chris McDonough wrote: Iain Duncan wrote: Ok, so I figured out that if I get the zope.component.globalSiteManager in my model middleware on ingress, that in bfg I can indeed query it for registered adapaters and get at that. But in the bfg

Re: [Repoze-dev] bfg site manager question ( another one )

2009-09-25 Thread Chris McDonough
Iain Duncan wrote: If I could get the 'one-registry-to-rule-them-all' loaded in middelware on ingress, is there at least a reasonable way of forcing the bgf app to use that registry as it's site manager? Nope. BFG hooks this hookable thing when it loads a ZCML file to put it in its own

Re: [Repoze-dev] Error message when running bfg shell in repoze.bfg 1.1a4

2009-09-24 Thread Chris McDonough
george hu wrote: ../bin/paster --plugin=repoze.bfg bfgshell sqlroute.ini main Traceback (most recent call last): File ../bin/paster, line 8, in module load_entry_point('PasteScript==1.7.3', 'console_scripts', 'paster')() File

Re: [Repoze-dev] buildbot failure in Repoze BFG trunk on py2.5-64bit-linux

2009-09-23 Thread Chris McDonough
Sebastien Douche wrote: On Wed, Sep 23, 2009 at 04:01, bfg-build...@securactive.org wrote: The Buildbot has detected a failed build of py2.5-64bit-linux on Repoze BFG trunk. Full details are available at: http://bfg.buildbot.securactive.org/builders/py2.5-64bit-linux/builds/9 Buildbot

[Repoze-dev] repoze.bfg 1.1a4 released

2009-09-22 Thread Chris McDonough
repoze.bfg 1.1a4 has been released. It's a bugfix and cleanup release that has some minor backwards incompatibilities with previous 1.1a releases. It can be installed via: easy_install -i http://dist.repoze.org/bfg/1.1/simple repoze.bfg The docs have been updated and are available from

Re: [Repoze-dev] Restricting access on a per-IP address basis

2009-09-18 Thread Chris McDonough
Andreas Jung wrote: Hi there, I have repoze.bfg app listening 0.0.0.0 (started using paster serve). What is the best practice for restricting access to the server to a number of IP addresses other than through a firewall. Is there some WSGI middleware doing the filtering? I think writing

Re: [Repoze-dev] Any ideas on how one might do routes after traversal

2009-09-17 Thread Chris McDonough
Tim Hoffman wrote: Hi Folks I have always used traversal rather than routes(url dispatch) , but I just happen to have a requirement to potentially use such a schema however to complicate things I need to use a hybrid model, but I really need to use routes after traversal rather than before

[Repoze-dev] repoze.bfg 1.1a3 released

2009-09-16 Thread Chris McDonough
repoze.bfg 1.1a3 has been released. It is available via: easy_install -i http://dist.repoze.org/bfg/dev repoze.bfg This release is a feature release. It's sorta kinda major. In 1.0.X releases, when a view callable returned a non-Response return value, BFG would eventually throw an error,

Re: [Repoze-dev] How to pass additional configuration parameters

2009-09-16 Thread Chris McDonough
Yeah... in your app's .ini file: [app:myapp] my_setting = 1 In the code: from repoze.bfg.settings import get_settings settings = get_settings() setting = settings['my_setting'] Andreas Jung wrote: Hi, is there a common pattern for passing additional configuration parameters to a

Re: [Repoze-dev] owrap layout through zcml

2009-09-14 Thread Chris McDonough
://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd; html xmlns=http://www.w3.org/1999/xhtml; body divheader/div OK divfooter/div /body /html Make sense? Robert Marianski wrote: On Mon, Aug 24, 2009 at 10:11:04PM -0400, Chris McDonough wrote: I like this. Some variations: - Have IOWrap

Re: [Repoze-dev] owrap layout through zcml

2009-09-14 Thread Chris McDonough
Responding to myself, I've actually checked in this feature on the trunk too. Chris McDonough wrote: So... to stop hijacking Robert's idea for a directive which spells an owrap for a view... I have a slightly different idea for this. We could allow a ZCML inner view directive to spell

[Repoze-dev] page directive sci-fi

2009-09-13 Thread Chris McDonough
Here's some sci fi I wrote up about a page ZCML directive. As Tim Hoffman suggested, maybe the fact that the page is passed into the template would give us enough pull capability to avoid any of the other hacks I proposed to push global names into every rendered template. Note that the view

<    1   2   3   4   5   >