favoretti/nsnitro — pull request #15 by timl (2012-10-22 16:12:17+00:00)
Title: Get method is broken for rewrite policies

Calls to NSRewritePolicy.get cause the following trace. This replaces the call to get_policyname with get_name.

Traceback (most recent call last):
File "nitro.py", line 15, in
arg = NSRewritePolicy.get(nitro, pol)
File "./nsnitro/nsresources/nsrewritepolicy.py", line 186, in get
__rewritepolicy.set_name(rewritepolicy.get_policyname())
AttributeError: 'NSRewritePolicy' object has no attribute 'get_policyname'