Coder Social home page Coder Social logo

moodleteacher's People

Contributors

loewis avatar troeger avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

moodleteacher's Issues

Compiler output needs to be HTML escaped

[this might be a moodleteacher issue]

Currently, the moodle comments contain text like

ostern.c:1:10: fatal error: Windows.h: No such file or directory
 #include 
          ^~~~~~~~~
compilation terminated.

The problem is that the source fragment '<windows.h>' is copied literally into the HTML comment, which is then rendered by the browser with ignorance.

Set maximum number of connection attempts

In automated processes (cron), if the Moodle server is down, the connection attempt is made infinitely, which may not be convenient.

Perhaps allowing a configuration of maximum connection attempts would allow in such cases a controlled exit by, for example, an exception.

Maybe, something like this:

class BaseRequest():

  def __init__(self, conn, url, attempts = 0):
    self.conn = conn
    self.url = url
    self.attempts = attempts

 def get_absolute(self, params=None):
    [...]

    _logger.debug("Performing web service GET call ...")
    nattempt = 0
    while (nattempt < self.attempts or self.attempts == 0):
      nattempt += 1
      try:
        result = requests.get(self.url, params=params, timeout=self.conn.timeout)
      except requests.exceptions.Timeout:
        _logger.error("Timeout for GET request to {0} after {1} seconds, trying again.".format(self.url, self.conn.timeout))
        continue
      break

    if nattempt == self.attempts:
      raise Exception('Max. number of connection ({0}) attempts reached'.format(self.attempts))

     [...] 

    return result

Group grading is broken

Grading groups leads to the problem that after grading the first member, the second group member still shows up as to be graded.

This is mainly a caching problem, since alle gradings to be done are fetched as one at the beginning. The library should internally determine the groups and their members, and should consider already graded groups explicitely during the iteration process.

Keep manual feedback on re-validation

A re-validation overwrites the feedback box for the submission completely, so manual additions for the first validation run are gone.

The feedback saving should use some 'magic' markers in the text, put the validation result inside them and replace only this part of the text.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.