Latest: buggy behaviour of parent:: in PHP 5.3.3

Content with Style

Web Technique

PyObjC newbie frustration

by Pascal Opitz on February 21 2009, 18:27

So I was trying out to build a graphical interface for my VHOST shell script, this time in Python, but couldn't get one past hurdle: I need superuser rights to edit /etc/hosts and the httpd.conf.

While I was able to build a quick interface for a python script to do essentially the same, using the PyObjC bridge and the Interface Builder, I couldn't figure out how the hell I am supposed to get the authentication going to execute the script as superuser ... and a look into the documentation does give no clue on how to use Authorization with PyObjC, but only shows a C function ...?

Apart from that I found the Interface Builder pretty intriguing, and I'm starting to like XCode as well. Of course I haven't got much of a clue of how Python is done properly, and especially the underscore convention for actions threw me off at first. Also, what do people mean when they say Pythonic? What makes an app/script/library exactly that?

Of course I am way out of my comfort zone here. Would appreciate some hints and guidance.


Don't miss the opportunity to leave the first comment.

Leave your comment

Comments are moderated.
Tags allowed: a, strong, em, code, ul, ol, li, q, blockquote, br, p