berhoel.django.media_ooimport.console package

Load Data into Django model.

class berhoel.django.media_ooimport.console.SeriesOO(fname)[source]

Bases: object

Import data from LibreOffice spreadsheet.

__init__(fname)[source]
property ods: Ods

Provide ods instance.

process() None[source]
static fill_bcs() None[source]

Fill information on broadcast services media.

static fill_person_maps(values, table) None[source]

Fill information in cinemas

fill_media() None[source]

Prepare information in media.

berhoel.django.media_ooimport.console.main() None[source]

Subpackages

Submodules

berhoel.django.media_ooimport.console._helper module

Helper functionalities for media_ooimport.

berhoel.django.media_ooimport.console._helper.get_media(media, index, name, season=None, subseason=None)[source]

Determine media information.

berhoel.django.media_ooimport.console.filme module

Process the Film sheet.

class berhoel.django.media_ooimport.console.filme.FilmRow(date, name, index, options, desc, price)

Bases: tuple

_asdict()

Return a new dict which maps field names to their values.

_field_defaults = {}
_fields = ('date', 'name', 'index', 'options', 'desc', 'price')
classmethod _make(iterable)

Make a new FilmRow object from a sequence or iterable

_replace(**kwds)

Return a new FilmRow object replacing specified fields with new values

date

Alias for field number 0

desc

Alias for field number 4

index

Alias for field number 2

name

Alias for field number 1

options

Alias for field number 3

price

Alias for field number 5

class berhoel.django.media_ooimport.console.filme.Filme(table)[source]

Bases: object

Convert information on films seen.

__init__(table)[source]
Parameters

table (berhoel.odf.ods.Ods) – OpenOffice table.

process() None[source]

Process film entries.

berhoel.django.media_ooimport.console.kuv module

Process the k&v sheet.

class berhoel.django.media_ooimport.console.kuv.KaufenUndVerkaufenRow(title, kaufdatum, kaufpreis, verkauft_am, verkaufpreis, familie, verkäufer, käufer)

Bases: tuple

_asdict()

Return a new dict which maps field names to their values.

_field_defaults = {}
_fields = ('title', 'kaufdatum', 'kaufpreis', 'verkauft_am', 'verkaufpreis', 'familie', 'verkäufer', 'käufer')
classmethod _make(iterable)

Make a new KaufenUndVerkaufenRow object from a sequence or iterable

_replace(**kwds)

Return a new KaufenUndVerkaufenRow object replacing specified fields with new values

familie

Alias for field number 5

kaufdatum

Alias for field number 1

kaufpreis

Alias for field number 2

käufer

Alias for field number 7

title

Alias for field number 0

verkaufpreis

Alias for field number 4

verkauft_am

Alias for field number 3

verkäufer

Alias for field number 6

class berhoel.django.media_ooimport.console.kuv.KaufenUndVerkaufen(table)[source]

Bases: object

Process the k&v sheet.

__init__(table)[source]
Parameters

table (berhoel.odf.ods.Ods) – OpenOffice table.

process() None[source]

Read sheet ‘k&v’ (kaufen und verkaufen).

berhoel.django.media_ooimport.console.serie module

Convert for Series.

class berhoel.django.media_ooimport.console.serie.SerieRow(date, season, episode, disk, index, diskset, info, desc, dvd_link)

Bases: tuple

_asdict()

Return a new dict which maps field names to their values.

_field_defaults = {}
_fields = ('date', 'season', 'episode', 'disk', 'index', 'diskset', 'info', 'desc', 'dvd_link')
classmethod _make(iterable)

Make a new SerieRow object from a sequence or iterable

_replace(**kwds)

Return a new SerieRow object replacing specified fields with new values

date

Alias for field number 0

desc

Alias for field number 7

disk

Alias for field number 3

diskset

Alias for field number 5

Alias for field number 8

episode

Alias for field number 2

index

Alias for field number 4

info

Alias for field number 6

season

Alias for field number 1

class berhoel.django.media_ooimport.console.serie.Serie(table)[source]

Bases: object

Represent series on import

index = None
__init__(table)[source]
process() None[source]

Process Series information