On Thu, 2010-12-30 at 23:57 -0800, grassoalvaro wrote:
> No, i don't want to write functional test. I would like to create own
> Configurator per plugin in my CMS system and render single plugin by
> hand (passing the current url and request obj to get view and call it,
> something like that).

Sorry, I don't understand what you're trying to accomplish.  Requests
don't happen during configuration.

- C


> 
> On 30 Gru, 23:17, Chris McDonough <[email protected]> wrote:
> > If you're trying to write functional tests, 
> > seehttp://docs.pylonshq.com/pyramid/dev/narr/testing.html#creating-funct...
> >
> > - C
> >
> > On Thu, 2010-12-30 at 13:27 -0800, grassoalvaro wrote:
> > > Hi,
> >
> > > i was looking in pyramid tests but didn't find the answer. So it is
> > > possible to make app request in code by hand? For example:
> >
> > > from pyramid.config import Configurator
> >
> > > ==== some_view.py ====
> > > def init_plugin():
> > >     config = Configurator()
> > >     config.add_route('costam', 'page/{page}/',
> > >                      view='cms.plugins.plugin1.some_view')
> > >     return config
> >
> > > def some_view(request):
> > >     return 'dupa'
> >
> > > and i want to make something like:
> >
> > > plugin_conf = init_plugin()
> > > plugin_conf.make_GET_request('/foo/bar/page/1/')
> >
> > > Thanks in advance.
> 


-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en.

Reply via email to