assembl.models.attachment module¶
Documents attached to other objects, whether hosted externally or internally
-
class
assembl.models.attachment.Attachment(**kwargs)[source]¶ Bases:
assembl.models.DiscussionBoundBase,assembl.lib.history_mixin.OriginMixinRepresents a Document or file, local to the database or (more typically) a remote document
-
class
assembl.models.attachment.Document(**kwargs)[source]¶ Bases:
assembl.models.DiscussionBoundBase,assembl.lib.history_mixin.OriginMixinRepresents a Document or file, local to the database or (more typically) a remote document
-
classmethod
get_discussion_conditions(discussion_id, alias_maker=None)[source]¶ Returns a list of SQLA expressions that constrain a query on this class to a given discussion.
-
unique_query()[source]¶ returns a couple (query, usable), with a sqla query for conflicting similar objects. usable is true if the query has to be enforced; sometimes it makes sense to return un-usable query that will be used to construct queries of subclasses. Note that when a duplicate is found, you’ll often want to expunge the original.
-
classmethod
-
class
assembl.models.attachment.File(*args, **kwargs)[source]¶ Bases:
assembl.models.attachment.Document-
property
external_url¶ A public facing URL of the entity that is in question
-
property