From 7512e2c7555c6e3536e1bcb6b3a328d4e9aced77 Mon Sep 17 00:00:00 2001 From: "gasperfele@fri1.uni-lj.si" Date: Wed, 17 Dec 2014 18:18:53 +0000 Subject: Added some comments/instructions in the task.py files, answered some questions in DEVELOPMENT-FAQ.txt git-svn-id: https://svn.lusy.fri.uni-lj.si/kpov-public-svn/kpov-public@95 5cf9fbd1-b2bc-434c-b4b7-e852f4f63414 --- kpov_judge/tasks/custom_rdate/task.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'kpov_judge/tasks/custom_rdate') diff --git a/kpov_judge/tasks/custom_rdate/task.py b/kpov_judge/tasks/custom_rdate/task.py index 2986242..573be62 100644 --- a/kpov_judge/tasks/custom_rdate/task.py +++ b/kpov_judge/tasks/custom_rdate/task.py @@ -59,6 +59,7 @@ computers = { networks = { 'net1': {'public': False}, 'test-net': {'public': True} } +# TODO: (polz) pick the parameters you need! ASAP! params_meta = { 'IP_NM': {'descriptions': {'si': 'Naslov maliNetworkManager'}, 'w': False, 'public':True, 'type': 'IP', 'generated': True}, 'DNS_NM': {'descriptions': {'si': 'DNS za maliNetworkManager'}, 'w': False, 'public':True, 'type': 'IP', 'generated': True}, @@ -91,8 +92,12 @@ def task(IP_NM, DNS_NM, IP_static, DNS_static): import datetime import random def gen_params(user_id, params_meta): + # TODO: (polz) tole nima smisla. Za začetek datetime in random + # ne bosta importana v test_task.py, kjer se bo tale koda izvajala. + # Prosim, s kolegi se pogovorite in si izmislite, katere parametre bi + # lahko uporabili. crke = "ABCDEFGHIJKLMNOPRSTUVZXYQW" - time = datetime.datetime.now().strftime("%Y%m%d%H%M%S) + time = datetime.datetime.now().strftime("%Y%m%d%H%M%S") sifra = "" for x in time: for i in x: -- cgit v1.2.1