Navigation

  • index
  • modules |
  • next |
  • previous |
  • Stalker 0.2.21 documentation »

stalker.models.review.DailyLink¶

Inheritance diagram of stalker.models.review.DailyLink
class stalker.models.review.DailyLink(daily=None, link=None, rank=0)[source]¶

Bases: sqlalchemy.ext.declarative.api.Base

The association object used in Daily-to-Link relation

__init__(daily=None, link=None, rank=0)¶

Methods

__init__([daily, link, rank])

Attributes

daily
daily_id
link stalker.models.link.Link instances related to the Daily
link_id
metadata
plural_class_name the plural name of this class
query
rank
plural_class_name¶

the plural name of this class

link¶

stalker.models.link.Link instances related to the Daily instance.

Attach the same Links that are linked as an output to a certain Versions instance to this attribute.

This attribute is an association_proxy so and the real attribute that the data is related to is the link_relations attribute.

You can use the link_relations attribute to change the rank attribute of the DailyLink instance (which is the returned data), thus change the order of the Links.

This is done in that way to be able to store the order of the links in this Daily instance.

Previous topic

stalker.models.review.Daily

Next topic

stalker.models.scene.Scene

Quick search

Navigation

  • index
  • modules |
  • next |
  • previous |
  • Stalker 0.2.21 documentation »
© Copyright 2009-2016, Erkan Ozgur Yilmaz. Created using Sphinx 1.6.1.