2007-03-30

Django Boogie - part 1

I found a Django based application that I'm interested in checking out, but I'm a complete Django newbie. Let's change that. Please?

Today I started learning how to use Django from the free online beta version of the forthcoming Django Book. After I installed Python 2.4.4 (because it had working readline support) on my Mac, I set up Django from SVN. I worked my way through the first three chapters which went very smoothly. I've learned enough for the day to feel very satisfied, and I may come back for more later.

One thing that Django does very well is its debug mode error pages. I saw more of those then I probably should have. ;-)

Ttfn.

2007-03-29

bits of tids

It's been over a year since I left my university job to work in the family business. Best year ever!

The Subway (rest in peace) based web application I started there lives on and continues to be improved. If anyone wants the Subway framework's source, drop me a line. I may say yes. *wink*

Some python nuggets from this year:

The 0.12 snapshot of elinks, a full featured text based web browser, has a new python scripting back end. The code was contributed by my friend the poultrygeist.

Also from the poultrygeist comes this python oddity:


>>> raise ()
Traceback (most recent call last):
File "", line 1, in ?
TypeError: exceptions must be classes, instances, or strings (deprecated), not tuple

O RLY?!

>>> raise (IndexError, "ha")
Traceback (most recent call last):
File "", line 1, in ?
IndexError
>>>
>>> raise ((KeyError, SyntaxError), IndexError)
Traceback (most recent call last):
File "", line 1, in ?
KeyError

Sure looks like exceptions can be tuples, even nested tuples. Odd.

2007-03-28

Plone: Adding Roles to Groups

I'm a complete Plone/Zope newbie. Let's keep it that way. Please?

If only I had seen this first:

Plone FAQ: How do I add a Role?

Here's a slightly more detailed how-to:

  1. At top level of your site's Zope Management Interface (ZMI), create the new Role in Security tab.


  2. Also in the same level of the ZMI, edit /acl_users/portal_role_manager by adding the new role (and make sure the name matches from step 1!)


  3. In Plone's site setup : Users and Groups Administration : Groups, you'll now be able to assign the new Role to a group.


That's it!