Real quick one, once again just for my future searching concerns, just wanted to point out how to set the css class on a select list when using the webhelpers.html.tags.select helper. Won’t get into how I hate html helper classes, but in this case it’s for something so simple AND it makes it easier to [...]
How to Debug Pylons with PyCharm
So I really hate Eclipse. Something fierce. And I have to admit it’s not really fair since I come from Visual Studios/C# which together can cost upwards of 2k to buy so it better be a great product. And Eclipse is free so you know, yah. But since IronPython may be dead, and it was [...]
Python / Pylons: Unit Testing a Controller And Unit Testing a Json Response
Nice thing about Python and Pylons is the complete lack of finds on the google. Basically anything you search on gets you the same 5 links… helpful or not. This is a quick one though, and by quick I mean quick for you after it took me a f— load of time to get the [...]
Pylons: Dynamic Templates with Mako Using Controllers and jQuery
So a friend of mine (Yes I do have friends and occasionally the ARE real) asked me if there was a way to have a partial control/template have dynamic content using a controller. At first I was like ‘f— no’ but that passed quickly as I realized I was actually answering myself on whether Species should [...]
Quick Example of Inheritance in Templates with Mako: Using Next
So as I further my side journey into Python, or Pylons to be more exact, one of the decent things I’ve run into is that Mako templating system. What is that? It’s what runs along side of Pylons (Or at least one of many) for displaying the View side of the whole MVC thing. Now [...]