summaryrefslogtreecommitdiff
path: root/kpov_judge/tasks/custom_rdate
diff options
context:
space:
mode:
authorgasperfele@fri1.uni-lj.si <gasperfele@fri1.uni-lj.si@5cf9fbd1-b2bc-434c-b4b7-e852f4f63414>2014-12-17 18:18:53 +0000
committergasperfele@fri1.uni-lj.si <gasperfele@fri1.uni-lj.si@5cf9fbd1-b2bc-434c-b4b7-e852f4f63414>2014-12-17 18:18:53 +0000
commit7512e2c7555c6e3536e1bcb6b3a328d4e9aced77 (patch)
tree19d0fd22d4b19a3d240191e896f2fe9d57ab9863 /kpov_judge/tasks/custom_rdate
parent3d5dfa916fef693611a7857f01174e6a39148f01 (diff)
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
Diffstat (limited to 'kpov_judge/tasks/custom_rdate')
-rw-r--r--kpov_judge/tasks/custom_rdate/task.py7
1 files changed, 6 insertions, 1 deletions
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: