|
|
__init__(self,
env,
parent_realm_or_attachment_resource,
parent_id=None,
filename=None)
x.__init__(...) initializes x; see help(type(x)) for signature |
source code
|
|
|
|
|
|
|
delete(self)
Delete the attachment, both the record in the database and
the file itself. |
source code
|
|
|
|
move(self,
new_realm=None,
new_id=None,
new_filename=None)
Move the attachment, changing one or more of its parent realm,
parent id and filename. |
source code
|
|
|
|
reparent(self,
new_realm,
new_id)
Change the attachment's parent_realm and/or parent_id |
source code
|
|
|
|
insert(self,
filename,
fileobj,
size,
t=None)
Create a new Attachment record and save the file content. |
source code
|
|
|
|
|
|
Inherited from object:
__delattr__,
__format__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__setattr__,
__sizeof__,
__str__,
__subclasshook__
|