Hello,

I'm new to Pylons, so please forgive me if this problem is obvious, I just
can't find the solution. I'm trying to use Genshi so I modified my
configuration in this way:

    config.init_app(global_conf, app_conf, package='decidu',
                    template_engine='genshi', paths=paths)

then in a controller I did this:

class PollController(BaseController):
    def index(self):
        return render("/poll/index.html")

and in templates I have a poll/index.html, yet I get this error on the
browser when I try to access it: 

File '/home/pupeno/projektoj/decidu/decidu/controllers/poll.py', line 13 in
index
File '/var/lib/python-support/python2.5/pylons/templating.py', line 343 in
render
  format=format, namespace=kargs, **cache_args)
File '/var/lib/python-support/python2.5/pylons/templating.py', line 228 in
render
  **options)
File '/var/lib/python-support/python2.5/genshi/template/plugin.py', line 104
in render
  return self.transform(info, template).render(**kwargs)
File '/var/lib/python-support/python2.5/genshi/template/plugin.py', line 149
in transform
  return super(MarkupTemplateEnginePlugin, self).transform(data, template)
File '/var/lib/python-support/python2.5/genshi/template/plugin.py', line 109
in transform
  template = self.load_template(template)
File '/var/lib/python-support/python2.5/genshi/template/plugin.py', line 89
in load_template
  templatename = resource_filename(package, basename)
File '/usr/lib/python2.5/site-packages/pkg_resources.py', line 840 in
resource_filename
  return get_provider(package_or_requirement).get_resource_filename(
File '/usr/lib/python2.5/site-packages/pkg_resources.py', line 160 in
get_provider
  __import__(moduleOrReq)
ImportError: No module named /poll/index

What am I doing wrong?

Thank you.
-- 
J. Pablo Fernández <[EMAIL PROTECTED]> (http://pupeno.com)


--~--~---------~--~----~------------~-------~--~----~
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