Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- request = container.REQUEST
- form = request.form
- if form.has_key('idPlantao') and not form.has_key('form.submitted') :
- res = context.sqPlantaoSelect().dictionaries()
- if len(res) == 1:
- linha = res[0]
- for key in linha.keys():
- form[key] = linha[key]
- form['data'] = form['dataini']
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement