Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
hallgrim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jan Maximilian Michal
hallgrim
Commits
64f4eecd
Commit
64f4eecd
authored
8 years ago
by
Jan Maximilian Michal
Browse files
Options
Downloads
Patches
Plain Diff
fixed minor error in main script
parent
56a4c9b9
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
README.md
+3
-1
3 additions, 1 deletion
README.md
grim.py
+6
-3
6 additions, 3 deletions
grim.py
scripts/Eine Methode (I1-ID: 75li4j91gdg0).py
+1
-1
1 addition, 1 deletion
scripts/Eine Methode (I1-ID: 75li4j91gdg0).py
with
10 additions
and
5 deletions
README.md
+
3
−
1
View file @
64f4eecd
...
...
@@ -22,7 +22,7 @@ implemented.
*
Add a good description / documentation.
*
Add more functionality (finalize gap, alignment)
*
Make parsers more robust.
*
reverse ILIAS authentication mechanism for automated upload.
*
setup test system in virtual box
*
Create whole test object with questions for direct import. Create two
versions (one for internal use and one for the test.)
*
add zip support
...
...
@@ -77,3 +77,5 @@ class Car {
```
````
It is possible to include gaps withing code blocks.
This diff is collapsed.
Click to expand it.
grim.py
+
6
−
3
View file @
64f4eecd
...
...
@@ -47,7 +47,7 @@ def file_to_module(name):
def
type_selector
(
type
):
if
'
multi
ple
'
in
type
:
if
'
multi
'
in
type
:
return
'
MULTIPLE CHOICE QUESTION
'
if
'
single
'
in
type
:
return
'
SINGLE CHOICE QUESTION
'
...
...
@@ -141,7 +141,9 @@ def delegator(output, script_list, instances):
script
=
importlib
.
import_module
(
file_to_module
(
script_name
))
handler
=
{
'
gap
'
:
handle_gap_questions
,
'
single
'
:
handle_choice_questions
,
'
single choice
'
:
handle_choice_questions
,
'
multi
'
:
handle_choice_questions
,
'
multiple choice
'
:
handle_choice_questions
}[
script
.
meta
[
'
type
'
]]
...
...
@@ -164,8 +166,8 @@ def handle_gap_questions(output, script, instances):
output
=
os
.
path
.
join
(
'
output
'
,
script
.
meta
[
'
title
'
])
+
'
.xml
'
if
not
output
else
output
packer
.
convert_and_print
(
data
,
output
,
instances
)
info
(
'
Processed
"
{}
"
and
wrote xml to
"
{}
"
.
'
.
format
(
script
.
__name__
,
output
)
)
info
(
'
Processed
"
{}
"
and
'
.
format
(
script
.
__name__
))
info
(
'
wrote xml
"
{}
"'
.
format
(
output
),
notag
=
True
)
def
handle_choice_questions
(
output
,
script
,
instances
):
...
...
@@ -202,3 +204,4 @@ def handle_new_script(name, qtype, author, points):
if
__name__
==
'
__main__
'
:
markdown
=
get_markdown
()
parseme
()
exit
(
"
All done. Goodbye.
"
)
This diff is collapsed.
Click to expand it.
scripts/Eine Methode (I1-ID: 75li4j91gdg0).py
+
1
−
1
View file @
64f4eecd
...
...
@@ -2,7 +2,7 @@ meta = {
'
author
'
:
'
ILIAS Author
'
,
'
title
'
:
'
Eine Methode (I1-ID: 75li4j91gdg0)
'
,
'
type
'
:
'
multi
'
,
'
points
'
:
0
.0
,
'
points
'
:
5
.0
,
}
task
=
"""
decription
"""
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment