# Module R.Document

Part of Reportek

No module docstring

Line # | Kind | Name | Docs
--- | --- | --- | ---
89 | Function | manage_addDocument | Add a Document to a folder.
131 | Class | Document | An External Document allows indexing and conversions.
993 | Function | addedDocument | This event is triggered when a Reportek Document was added to a container.
1015 | Function | cloneDocument | A Reportek Document was copied.
1024 | Function | removedDocument | A Reportek Document was removed.
1034 | Function | movedDocument | A Reportek Document was moved.

def manage_addDocument(self, id='', title='', file='', content_type='', restricted='', REQUEST=None):
Add a Document to a folder.

def addedDocument(ob, event):

This event is triggered when a Reportek Document was added to a container. This is the case after a normal add and if the object is a result of cut-paste- or rename-operation. In the first case, the external files doesn't exist yet, otherwise it was renamed to .undo by manage_beforeDelete before and must be restored by _undo().

A copy of the external file is created and the property 'filename' is changed.

def cloneDocument(ob, event):
A Reportek Document was copied.

def removedDocument(ob, event):
A Reportek Document was removed.

def movedDocument(ob, event):
A Reportek Document was moved.