#set ($obj = $repositories)
#set ($module = "repositories")
#if ($form_action=="edit")
#set ($r=$obj.load($params.key))
#end
#set ($obj.name=$params.name)
#set ($obj.description = $!params.description)
#set ($obj.dist = $!params.dist)
#set ($obj.component = $!params.component)
#set ($obj.arch = $!params.arch)
#set ($obj.url = $!params.url)
#set ($obj.type = $!params.type)
#set ($Integer = 0)
#set ($obj.priority = $Integer.parseInt($params.priority))
#if ($params.autoUpdate)
#set ($obj.autoupdate=true)
#else
#set ($obj.autoupdate=false)
#end
$obj.save()
$response.sendRedirect("$root/$module/index.vm")
