After searching trough trac, forum and wiki I finally came to the conclusion that there is no such thing like a guideline for submitting source code contributions to the danbooru software.
That's why I would like to know
* if source code contributions are accepted at all (You never know…).
* how contributions should be provided. Attach a patch to the specific trac ticket? Send it via email? Ask for write access to the svn repository (unlikely)?
* if there is some order how tickets should be handled and does this affect the acceptance of the patch?
* Where discussions regarding the specific patches are handled. I would assume this would happen in the ticket comments.
Updated