def register(self, cls):
preview = cls(site=self)<EOL>logger.debug('<STR_LIT>', preview, self)<EOL>index = self.__previews.setdefault(preview.module, {})<EOL>index[cls.__name__] = preview<EOL>
Adds a preview to the index.