Mine
public python v1 · immutable@model.hook(repo_entry, repo_entry.install_package)def hook_install_package(fn, self, tx=None): cherrypy.log('INSTALLING AMAZON PACKAGE') if self.feed.name=='amazon': pkg=packages(uuid=to_uuid(self.uuid),\ name=self.name,\ description=self.description,\ pkg_class='ec2_packager',\ definition='<domain type="ec2"/>') return return fn(self, tx=tx)