Tag Archives: IronPython

Search for a string in all nodes with Python

def quickFindRecursive(startNodeId, searchValue) Loops through all nodes recursively from startNodeId searching for searchValue (on both node.Name and all node.Properties.Value). It uses nodefactory and is as fast as XsltSearch. Start node id -1 = content root. Primarily intended for admin section use (PyPad), but could easily be used in a site search function aswell – then […]

Read more

PoC : Python Document and DocumentType helpers

Making Umbraco life easier with a little help of Python I needed to copy all properties from one document type to another. The web site structure is not made with parent document types from the beginning since I had problems with that approach (mostly because of different standard values and descriptions on different document types). […]

Read more

Trying out different tools for the job – Xslt / Python / Ascx

Oh, no, not him again! Yes, well, me again. Feeling the need of ventilating my woes… If you’re looking for advice, you probably best go somewhere else. If you read my post and like to share your own good practice you are most welcome. Many real life karma (the ones that will get you a […]

Read more

Using IronPython in Umbraco – testing some Ajax

I just did some tests to spice up pyForum with Ajax. Still without any code but Python (well Javascript ofcourse). Here’s what I did: I setup a Ajax call on the pyForum form posts to serialize the form and send it to the macro via Rndr (see separate post about that package if you like). Rndr […]

Read more
Uncategorized

Using IronPython in Umbraco – tools and links

Python syntax The official place to go for Python info is http://www.python.org For a compressed Synax description I really like codesyntax.netfirms.com/lang-python.htm (great one!). Editing Python files : IronPython tools for Visual Studio It’s very conveniant to be able to edit Python files in the Umbraco UI code editor. For longer coding sessions however – we […]

Read more

Using IronPython in Umbraco – pyForum part 3

This is the third post in this series and in this we’ll quickly finish up stuff to a point where we have a actual working forum. Well – in a very primitive form. You can look at and try a running demo here. Later version avaliable here (at a faster server). At the bottom of […]

Read more
Uncategorized

Using IronPython in Umbraco – pyForum part 2

Continuing with our pyForum. In this post we will create a possibility for our users to add threads with a standard Html form. More Html templates for our form First we add four more Html template strings, a link that the user clicks to show the form, the actual form, a thank you messsage to […]

Read more
Uncategorized

Using IronPython in Umbraco – pyForum part 1

This is the first in a series of blog posts about IronPython in Umbraco. I find IronPython (I’ll just write Python further on) to be a great middle way between Xslt and C# in Umbraco. It combines the ease of creating dynamic html right in the Umbraco UI with the power of a modern oo […]

Read more
Uncategorized

Introducing rndr – a package for macro testing and ajax calls

Rndr is a (Umbraco 4.5+) package that basically makes whatever macro callable from a url. The response will be the exact output from the macro. The requesting url is constructed this way (in debug-mode): And the result will be from mymacro (using a basic test macro), for example: Hello world from page “My page” So […]

Read more
Uncategorized

Follow

Get every new post delivered to your Inbox.