All pastes #929595 Raw Edit

Mine

public python v1 · immutable
·published 2008-03-05 21:50 UTC
rendered paste body
@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)