def METHOD_NAME(self, package, need_assign = True):
    self.logger.debug("xmlrpc_putPackageDetail")
    pa = Package()
    pa.fromH(package)
    if pa.id in Common().dontgivepkgs and len(Common().dontgivepkgs[pa.id]) > 0:
        return (False, "This package is curently locked")
    ret = Common().editPackage(package['id'], pa, need_assign, self.mp)
    if not ret: return False
    # Create conf file in package
    ret = Common().writePackageTo(package['id'], self.mp)
    ret, confdir = ret
    if not ret: return False
    ret = Common().associatePackage2mp(package['id'], self.mp)
    if not ret: return False
    if not P2PServerCP().package_detect_activate:
        del Common().inEdition[package['id']]