Convenience uid/gid helper function used in Zope2.