api.WimsAPI.authuser
now accept an ip
argument, allowing a persistent session for the same IP. (Contributed by
Gianluca Amato)quser
,
removing or changing invalid character. But wimsapi
was
taking this change into account, the quser
attribute of the
user was thus invalid, causing problem when further communicating with
the WIMS server.User.save()
now has a
adapt=True
keyword argument. When True
, the
quser
attribute will be modified to match the one used by
WIMS. If False
, the user created on the WIMS server with
the modifier quser
will be deleted and the new exception
InvalidIdentifier
will be raised.request.post()
can now be given to WimsApi
constructor.Class
creating a WimsAPI
can also receive such argument (check()
,
save()
, get()
, list()
)sdist
instead of bdist
to create
new distribution.__str__
method to InvalidResponseError.response
field to InvalidResponseError.Append /
at the end of the WIMS server’s url if it
is not present when using WimsAPI
.
Added adm/raw API to the documentation.
Parameters of api.py
requests are now encoding in
ISO-8859-1
, mathching WIMS’ default encoding
Adding __repr__
and __str__
method to
Class
and Item
subtypes.
Getting Exams from the WIMS server now retrieve the correct status.
Added classes Exam
and ExamScore
,
ExerciseScore
and SheetScore
to store
scores
Sheet
/ Exam
:
scores(user=None)
to retrieve the score of
one or every user.Added class method check()
to Class
to
check wheter a class exists or not.
Better __eq__
and __hash__
for every
class.
Sheet
Class.list()
and class.listitem()
.__eq__()
for items and classes.date
to expiration
to
match the ADM/RAW argument.Class.limit
is now an int when retrieving the
class from a WIMS server.__init__
is not yyyymmdd
.check_exists
is now used properlycheck_exists=True
parameter to item’s save
method.wclass.additem()
will now use
check_exists=False
.wclass.save()
self.lang = lang
in Class’
__init__
long_description
in setup.pyqclass
argument is now optionnal in Class constructor,
allowing WIMS to choose a free qclass
when saving for the
fist time.WimsAPI.putexo()
.