Code Repositories xandikos / upstream/0_git20170308 notes / context.txt
upstream/0_git20170308

Tree @upstream/0_git20170308 (Download .tar.gz)

context.txt @upstream/0_git20170308raw · history · blame

Some properties need WebDAV server metadata:

supported-live-property-set needs list of properties
supported-report-set needs list of reports
supported-method-set needs list of methods

Some operations need access to current user information:

current-user-principal
current-user-privilege-set
calendar-user-address-set

PUT/DELETE/MKCOL need access to username (for author) and possibly things like user agent
(for better commit message)


class Context(object):

    def get_current_user(self):
	return (name, principal)