Re: [Repoze-dev] heads up about package moves...

2011-02-16 Thread Andrey Popp
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

[Repoze-dev] [colander] Optional schema nodes

2010-11-13 Thread Andrey Popp
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.

Re: [Repoze-dev] Deform and late binding of source values for checkbox widget and validators

2010-09-07 Thread Andrey Popp
; 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

Re: [Repoze-dev] Problem with repoze.what-pylons sample application

2010-04-06 Thread Andrey Popp
/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

Re: [Repoze-dev] Handling webob.exc.HTTPException in router.

2010-04-01 Thread Andrey Popp
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

Re: [Repoze-dev] Handling webob.exc.HTTPException in router.

2010-04-01 Thread Andrey Popp
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 &

Re: [Repoze-dev] Using zope.contentprovider and zope.viewlet with repoze.bfg and chameleon

2010-03-31 Thread Andrey Popp
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

Re: [Repoze-dev] Using zope.contentprovider and zope.viewlet with repoze.bfg and chameleon

2010-03-31 Thread Andrey Popp
-- > 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

[Repoze-dev] Using zope.contentprovider and zope.viewlet with repoze.bfg and chameleon

2010-03-31 Thread Andrey Popp
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

Re: [Repoze-dev] Handling webob.exc.HTTPException in router.

2010-03-10 Thread Andrey Popp
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

Re: [Repoze-dev] Handling webob.exc.HTTPException in router.

2010-03-10 Thread Andrey Popp
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

Re: [Repoze-dev] Handling webob.exc.HTTPException in router.

2010-03-08 Thread Andrey Popp
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".

Re: [Repoze-dev] Handling webob.exc.HTTPException in router.

2010-03-08 Thread Andrey Popp
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

Re: [Repoze-dev] Handling webob.exc.HTTPException in router.

2010-03-08 Thread Andrey Popp
> 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

Re: [Repoze-dev] Handling webob.exc.HTTPException in router.

2010-03-07 Thread Andrey Popp
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

[Repoze-dev] Handling webob.exc.HTTPException in router.

2010-03-07 Thread Andrey Popp
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 _

[Repoze-dev] XML-RPC services with repoze

2010-02-24 Thread Andrey Popp
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

Re: [Repoze-dev] repoze.dev ZODB tutorial and Python 2.6

2010-02-24 Thread Andrey Popp
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

Re: [Repoze-dev] BFG PyCon BOF Summary

2010-02-23 Thread Andrey Popp
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

[Repoze-dev] [Bug] View as a callable with two expected arguments.

2010-02-11 Thread Andrey Popp
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

Re: [Repoze-dev] Designed installable application with repoze.bfg

2010-02-05 Thread Andrey Popp
/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

[Repoze-dev] Designed installable application with repoze.bfg

2010-02-05 Thread Andrey Popp
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