get a bunch of pull requests ;-).
--
Andrey Popp
twitter: @andreypopp
e-mail: 8may...@gmail.com
___
Repoze-dev mailing list
Repoze-dev@lists.repoze.org
http://lists.repoze.org/listinfo/repoze-dev
ng type should not bother about such
nodes in case values for them are not exist.
I've attached small patch with test case to this mail, but cosider it
just proof of concept for my idea.
--
Andrey Popp
phone: +7 985 201 15 73
e-mail: 8may...@gmail.com
optional_schema_node.
; choices. This was a bit of a hack.
>>>
>>>
>>> So do you have a strategy or suggestion on how to approach this use case ?
>>>
>>> I suppose I could work with imperative schema definition performed
>>> late, but I much prefer to work with classes.
>>> (I
/home/phenex/.virtualenv/pylons/lib/python2.6/site-
> packages/pkg_resources.py", line 666, in require
> needed = self.resolve(parse_requirements(requirements))
> File "/home/phenex/.virtualenv/pylons/lib/python2.6/site-
> packages/pkg_resources.py", line 565, in resolve
&g
Sorry, I forgot to attach patch.
On Thu, Apr 1, 2010 at 5:28 PM, Andrey Popp <8may...@gmail.com> wrote:
> Hello,
>
> I have a preview for exception views functionality.
>
> I've refactored Router to handle exceptions via IView lookups on
> IRequest, Exception class. T
views
configuration (possibly add methods to Configurator API and new ZCML
directive?).
Thanks.
On Fri, Mar 12, 2010 at 5:27 AM, Chris McDonough wrote:
> On 3/10/10 9:59 AM, Andrey Popp wrote:
>>>
>>> The context of such an "exception view" will be the exception instance
&
packages?
On Thu, Apr 1, 2010 at 9:37 AM, Andrey Popp <8may...@gmail.com> wrote:
> Thanks, will try it.
>
> On Thu, Apr 1, 2010 at 3:37 AM, Chris McDonough wrote:
>> On 3/31/10 6:48 PM, Chris McDonough wrote:
>>> I'm not sure this still works, but:
>>
>&g
--
> Chris McDonough
> Agendaless Consulting, Fredericksburg VA
> The repoze.bfg Web Application Framework Book: http://bfg.repoze.org/book
> ___
> Repoze-dev mailing list
> Repoze-dev@lists.repoze.org
> http://lists.repoze.org/listinfo/rep
Hello,
I just want to ask — is it possible to use zope.contentprovider and
zope.viewlet in particular with repoze.bfg and chameleon?
I see the following steps to make zope.contentprovider and zope.viewlet work
for me:
* Inject current view in template, because TALES expression for content
p
ion view (e.g. context.context or so).
Thanks, this is that I was talking about. Will try to implement.
--
Andrey Popp
phone: +7 911 740 24 91
e-mail: 8may...@gmail.com
___
Repoze-dev mailing list
Repoze-dev@lists.repoze.org
http://lists.repoze.org/listinfo/repoze-dev
We should register exception views for exception interfaces, not
classes. This is because adapter lookup uses IRO, not standard MRO.
--
Andrey Popp
phone: +7 911 740 24 91
e-mail: 8may...@gmail.com
___
Repoze-dev mailing list
Repoze-dev@lists.repoze.org
http://lists.repoze.org/listinfo/repoze-dev
t the
> moment. ;-)
I was thinking of this too — it is good to return control back to
application during handling of this kind of errors (4xx). Also it will
convert notfound/forbidden views from special cases of Router
processing cycle to special cases of "exception view".
I've attached patch against trunk for that. It's also contain 5 new test cases.
On Mon, Mar 8, 2010 at 3:41 PM, Andrey Popp <8may...@gmail.com> wrote:
>> But features are *the enemy* of frameworks, so as the author I feel
>> compelled to > provide a counterargument
> But features are *the enemy* of frameworks, so as the author I feel compelled
> to > provide a counterargument even if I don't really believe strongly in it.
> ;-)
I like that repoze.bfg reuses webob for WSGI layer, but why not to
reuse exceptions from that package? It is not about features, i
Yes, I know I can make it work by returning webob.exc.HTTPException
objects as response. But the point was to decode JSON request at view
initialization phase and raise webob.exc.HTTPBadRequest if needed, so
in subclasses at request processing phase (__call__ method) I always
will have well-formed
I have ideological question -- why not to handle
webob.exc.HTTPException in router? I think it is very useful, consider
for example the following case:
I need to define some views that works with JSON encoded request body,
so there is base class for them:
class JSONView(object):
def _
Just for the note, if someone is interested, I've attached some module
based on 'repoze.bfg.xmlrpc' package to provide more convenient way
for creating XML-RPC services with repoze.bfg. Here it is, with
example in docstring.
"""Utilities for creating XML-RPC services.
This module extends 'repoze.b
Hello!
It works well with python 2.6, for me at least.
On Wed, Feb 24, 2010 at 11:49 AM, Shailesh Kumar wrote:
> Hi,
> The ZODB tutorial in repoze.bfg documentation mentions only Python
> 2.5. http://docs.repoze.org/bfg/current/tutorials/bfgwiki/installation.html
>
> Does it not work on Python 2
On Tue, Feb 23, 2010 at 5:58 PM, Wichert Akkerman wrote:
> Thanks for the writeup!
>
> On 2/23/10 14:14 , Chris McDonough wrote:
>> Documentation
>> -
>>
>> - People would like to see a tutorial which hand-held people through
>> the process of moving from a imperative configuration
Can't sign up in repoze.bfg trac due to invisible captcha, so will
report bug here for now.
I am using repoze.bfg 1.2 and started with bfg_starter template. Then
in configure.zcml I've changed traversal dispatching to URL mapping:
And redefine my_view in terms of callable class:
class my_vie
/5/10 7:20 AM, Andrey Popp wrote:
>>
>> Hello.
>>
>> I want to design web application, which can be installable, like trac.
>> For the first time I've made "my own framework" around
>> repoze.component+repoze.configuration with werkzeug for WSGI st
But I think it can be
resolved by monkey patching threadlocals to make them greenletlocals.
Sorry for my english, thanks.
Andrey Popp, 8may...@gmail.com
___
Repoze-dev mailing list
Repoze-dev@lists.repoze.org
http://lists.repoze.org/listinfo/repoze-dev
22 matches
Mail list logo