def _updateToDeleted(self,directory,fn,dentry,db,service):
<EOL>if fn not in db:<EOL><INDENT>print("<STR_LIT>"%(fn))<EOL>return<EOL><DEDENT>services=self.sman.GetServices(fn)<EOL>if (not services):<EOL><INDENT>print("<STR_LIT>"%(fn))<EOL>return<EOL><DEDENT>if service:<EOL><INDENT>if db[fn]['<STR_LIT>'].has_key(service):<EOL><INDENT>db[fn]['<STR_LIT>'][service]['<STR_LIT:status>']=self.ST_DELETED<EOL><DEDENT>else:<EOL><INDENT>print("<STR_LIT>"%(fn,service))<EOL><DEDENT>return<EOL><DEDENT>for service in db[fn]['<STR_LIT>']:<EOL><INDENT>db[fn]['<STR_LIT>'][service]['<STR_LIT:status>']=self.ST_DELETED<EOL><DEDENT>return<EOL>
Changes to status to 'D' as long as a handler exists,
        directory - DIR where stuff is happening
        fn - File name to be added
        dentry - dictionary entry as returned by GetStatus for this file
        db - pusher DB for this directory
        service - service to delete, None means all