tdav::update_user_props

 tdav::update_user_props

Defined in

Partial Call Graph (max 5 caller/called nodes):
%3 oacs_dav::impl::content_folder::proppatch oacs_dav::impl::content_folder::proppatch (private) tdav::update_user_props tdav::update_user_props oacs_dav::impl::content_folder::proppatch->tdav::update_user_props oacs_dav::impl::content_revision::proppatch oacs_dav::impl::content_revision::proppatch (private) oacs_dav::impl::content_revision::proppatch->tdav::update_user_props tdav::dbm_read_list tdav::dbm_read_list tdav::update_user_props->tdav::dbm_read_list tdav::dbm_write_list tdav::dbm_write_list tdav::update_user_props->tdav::dbm_write_list

Testcases:
No testcase defined.
Source code:
    array set props [tdav::dbm_read_list $uri]
    set status [list]
    foreach {action i} $prop_req {
        lassign $i k value
        switch -- $action {
            set {
                if {[catch {set props($k$value} err]} {
                    lappend status [list "HTTP/1.1 409 Conflict" $k]
                } else {
                    lappend status [list "HTTP/1.1 200 OK" $k]
                }

            }
            remove {
            #according to WebDAV spec removing a nonexistent
            # property is not an error, if it's there
            # remove it, otherwise, continue.
                if {[info exists props($k)]} {
                    unset props($k)
                }
                lappend status [list "HTTP/1.1 200 OK" $k]
            }
        }

        #filter out filesystem sets
        # DAVEB where is this filtering occurring?

        #write the props back out to disc:
        tdav::dbm_write_list $uri [array get props]
    }
    return $status
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: