Questions tagged [akhet]

A Pyramid library and demo application with a Pylons-inspired API.

6 questions
3
votes
1 answer

Using Webhelpers in mako template in Pyramid

How do I use Webhelpers in a Mako template in my Pyramid app? In Pylons I had global helper variable h to use in my templates so I could simply do: ${h.stylesheet_link("/css/default.css")} given I import stylesheet_link from webhelpers.html.tags…
neurino
  • 11,500
  • 2
  • 40
  • 63
2
votes
1 answer

How to execute a method after a response is complete in Pyramid?

Using Pyramid with Akhet, how do I execute a method after a response has been returned to the client? I believe this was done with the __after__ method in Pylons. I'm trying to execute a DB query and don't want it to block the request response.
jamieb
  • 9,847
  • 14
  • 48
  • 63
2
votes
2 answers

How to generate an URL with Pyramid and Akhet?

I'm creating an Akhet (Pyramid) web application. How can one generate in a mako template the URL for a given Handler/view ? I'm looking for the equivalent of Pylons' ${url(controller="users", view="list")
ascobol
  • 7,554
  • 7
  • 49
  • 70
1
vote
1 answer

How do I add a generic "controller/action" route with Akhet's add_handler?

I'm moving from Pylons to Pyramid/Akhet, and I'm confused by the setup. Is there any way to add a generic "controller/action" route with Akhet's add_handler method? (or even with the add_route method in base Pyramid?) The way I'm understanding it,…
ggez44
  • 895
  • 8
  • 17
0
votes
1 answer

pyramid_handlers not working

I'm currently moving a project from Pylons 1.0 to Pyramid. My problem so far is how to use restful routes in Pyramid. I'm currently using pyramid_handlers since it seemed like a good start. I'm using Akhet. So here is the two important lines in my…
Loïc Faure-Lacroix
  • 13,220
  • 6
  • 67
  • 99
0
votes
1 answer

how to add scaffolds in virtual environment. I want to add Akhet scaffold into my virtual environment?

after all googling and searching i came here... I want to use Akhet http://pypi.python.org/pypi/Akhet scaffold and i want to continue with that to develop my application. Now the problem is that i don't have any idea to include any scaffold in my…
Tauseef
  • 369
  • 3
  • 15