Package telemeta :: Package models :: Module media :: Class MediaCollection
[hide private]
[frames] | no frames]

Class MediaCollection

source code

   ??-128 --+    
            |    
MediaResource --+
                |
               MediaCollection

Describe a collection of items

Nested Classes [hide private]
  Meta
Instance Methods [hide private]
 
is_valid_collection_code(value)
Check if the collection code is well formed
source code
 
__unicode__(self) source code
 
public_id(self) source code
 
has_mediafile(self)
Tell wether this collection has any media files attached to its items
source code
 
__name_cmp(self, obj1, obj2) source code
 
countries(self)
Return the countries of the items
source code
 
ethnic_groups(self)
Return the ethnic groups of the items
source code
 
computed_duration(self) source code
 
save(self, force_insert=False, force_update=False, user=None, code=None) source code

Inherited from MediaResource: get_revision, public_access_label, set_revision

Class Variables [hide private]
  element_type = 'collection'
  PUBLIC_ACCESS_CHOICES = 'none', 'none', ('metadata', 'metadata...
  reference = CharField(_('reference'), unique= True, null= True)
  title = CharField(_('title'), required= True)
  alt_title = CharField(_('original title / translation'))
  creator = CharField(_('depositor / contributor'))
  recording_context = WeakForeignKey('RecordingContext', related...
  recorded_from_year = IntegerField(_('recording year (from)'))
  recorded_to_year = IntegerField(_('recording year (until)'))
  year_published = IntegerField(_('year published'))
  collector = CharField(_('recordist'))
  publisher = WeakForeignKey('Publisher', related_name= "collect...
  publisher_collection = WeakForeignKey('PublisherCollection', r...
  publisher_serial = CharField(_('publisher serial number'))
  booklet_author = CharField(_('author of published notice'))
  external_references = TextField(_('bibliographic references'))
  doctype_code = IntegerField(_('document type'))
  public_access = CharField(_('public access'), choices= PUBLIC_...
  legal_rights = WeakForeignKey('LegalRight', related_name= "col...
  acquisition_mode = WeakForeignKey('AcquisitionMode', related_n...
  cnrs_contributor = CharField(_('CNRS depositor'))
  metadata_author = WeakForeignKey('MetadataAuthor', related_nam...
  booklet_description = TextField(_('related documentation'))
  publishing_status = WeakForeignKey('PublishingStatus', related...
  alt_ids = CharField(_('copies'))
  comment = TextField(_('comment'))
  metadata_writer = WeakForeignKey('MetadataWriter', related_nam...
  travail = CharField(_('archiver notes'))
  items_done = CharField(_('items finished'))
  collector_is_creator = BooleanField(_('recordist identical to ...
  is_published = BooleanField(_('published'))
  code = CharField(_('code'), unique= True, required= True, vali...
  old_code = CharField(_('old code'), unique= False, null= True,...
  approx_duration = DurationField(_('approximative duration'))
  physical_items_num = IntegerField(_('number of components (med...
  physical_format = WeakForeignKey('PhysicalFormat', related_nam...
  ad_conversion = WeakForeignKey('AdConversion', related_name= '...
  state = TextField(_('status'))
  a_informer_07_03 = CharField(_('a_informer_07_03'))
  objects = MediaCollectionManager()
Method Details [hide private]

public_id(self)

source code 
Decorators:
  • @property

Class Variable Details [hide private]

PUBLIC_ACCESS_CHOICES

Value:
'none', 'none', ('metadata', 'metadata'), ('full', 'full')

recording_context

Value:
WeakForeignKey('RecordingContext', related_name= "collections", verbos\
e_name= _('recording context'))

publisher

Value:
WeakForeignKey('Publisher', related_name= "collections", verbose_name=\
 _('publisher / status'))

publisher_collection

Value:
WeakForeignKey('PublisherCollection', related_name= "collections", ver\
bose_name= _('publisher collection'))

public_access

Value:
CharField(_('public access'), choices= PUBLIC_ACCESS_CHOICES, max_leng\
th= 16, default= "metadata")

legal_rights

Value:
WeakForeignKey('LegalRight', related_name= "collections", verbose_name\
= _('legal rights'))

acquisition_mode

Value:
WeakForeignKey('AcquisitionMode', related_name= "collections", verbose\
_name= _('mode of acquisition'))

metadata_author

Value:
WeakForeignKey('MetadataAuthor', related_name= "collections", verbose_\
name= _('record author'))

publishing_status

Value:
WeakForeignKey('PublishingStatus', related_name= "collections", verbos\
e_name= _('secondary edition'))

metadata_writer

Value:
WeakForeignKey('MetadataWriter', related_name= "collections", verbose_\
name= _('record writer'))

collector_is_creator

Value:
BooleanField(_('recordist identical to depositor'))

code

Value:
CharField(_('code'), unique= True, required= True, validators= [is_val\
id_collection_code])

old_code

Value:
CharField(_('old code'), unique= False, null= True, blank= True)

physical_items_num

Value:
IntegerField(_('number of components (medium / piece)'))

physical_format

Value:
WeakForeignKey('PhysicalFormat', related_name= "collections", verbose_\
name= _('archive format'))

ad_conversion

Value:
WeakForeignKey('AdConversion', related_name= 'collections', verbose_na\
me= _('digitization'))