Package trac :: Module attachment :: Class Attachment

Class Attachment

source code

object --+
         |
        Attachment

Instance Methods
 
__init__(self, env, parent_realm_or_attachment_resource, parent_id=None, filename=None, db=None)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
delete(self, db=None) source code
 
reparent(self, new_realm, new_id) source code
 
insert(self, filename, fileobj, size, t=None, db=None) source code
 
open(self) source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Methods
 
select(cls, env, parent_realm, parent_id, db=None) source code
 
delete_all(cls, env, parent_realm, parent_id, db=None)
Delete all attachments of a given resource.
source code
 
reparent_all(cls, env, parent_realm, parent_id, new_realm, new_id)
Reparent all attachments of a given resource to another resource.
source code
Properties
  filename
  path
  title

Inherited from object: __class__

Method Details

__init__(self, env, parent_realm_or_attachment_resource, parent_id=None, filename=None, db=None)
(Constructor)

source code 
x.__init__(...) initializes x; see help(type(x)) for signature
Overrides: object.__init__
(inherited documentation)

Property Details

filename

Get Method:
unreachable(self)
Set Method:
_set_filename(self, val)

path

Get Method:
unreachable.path(self)

title

Get Method:
unreachable.title(self)