Archive for June, 2008

Plone - IUser* why don’t you exist?

Friday, June 27th, 2008

Jotting this down before I forget. Basically the problem is that when you create a new user you want to do stuff after the user is created. Whether it be, add a bunch of folders, send an email, etc. Regular stuff you’d be able to apply via rules in Plone. Or via the elegant event/subscriber model and hooking it up via zcml.The problem is that this doesn’t exist. So there is no IUser* interface which means specifically there is no IUserAddedEvent/IUserCreatedEvent and I NEED YOU RIGHT NOW! I’d add it myself but i’m busy so in the meantime I’ll probably end up modifying this.

def afterAdd(self, member, id, password, properties):
”’Called by portal_registration.addMember()
after a member has been added successfully.”’
pass

Which is very bad because it’s in CMFCore/RegistrationTool.py; ugh. Soon as I get a chance it’ll be in the bug repo. Probably in the next day or so.

Carl Sagan

Wednesday, June 25th, 2008

Carl SaganCarl Sagan, simply put, was awesome. Far ahead of his time isn’t even the correct phrase. There are few people on Earth with the clairvoyance to be so forward thinking yet explain their ideas in such a reachable fashion. Some of these things did not even involve Astronomy. He spoke on how human beings interact with each other, nuclear weapons and the general betterment of man-kind here on Earth. The Science channel recently started airing episodes of the “Cosmos“. Probably one of the most well put together television series for it’s time aired over PBS (the same PBS our federal government, for those of us that live in the United States of America, has been cutting back on; repeatedly). Just this weekend the Science channel ran a Cosmos marathon. It’s really refreshing watching it again and if you haven’t seen it; now is the time.