collecting_society_web.views.forms package

Subpackages

Submodules

collecting_society_web.views.forms.add_artist module

class collecting_society_web.views.forms.add_artist.AddArtist(name=None, stage=None, persistent=False, appstruct=None, context=None, request=None, response=None)[source]

Bases: FormController

form controller for creation of artists

controller()[source]

overwrite this with your form logic! (if form is submitted and … then …)

create_artist()[source]
class collecting_society_web.views.forms.add_artist.AddArtistSchema(*args, **kw)[source]

Bases: Schema

class collecting_society_web.views.forms.add_artist.DescriptionField(*args, **kw)[source]

Bases: SchemaNode

missing = ''
oid = 'description'
schema_type

alias of String

widget = <deform.widget.TextAreaWidget object>
class collecting_society_web.views.forms.add_artist.GroupField(*args, **kw)[source]

Bases: SchemaNode

oid = 'group'
schema_type

alias of Boolean

widget = <deform.widget.CheckboxWidget object>
class collecting_society_web.views.forms.add_artist.IpnCodeField(*args, **kw)[source]

Bases: SchemaNode

missing = ''
oid = 'ipn_code'
schema_type

alias of String

class collecting_society_web.views.forms.add_artist.NameField(*args, **kw)[source]

Bases: SchemaNode

oid = 'name'
schema_type

alias of String

class collecting_society_web.views.forms.add_artist.PictureField(*args, **kw)[source]

Bases: SchemaNode

missing = ''
oid = 'picture'
schema_type

alias of FileData

widget = <colander.deferred object>
collecting_society_web.views.forms.add_artist.add_artist_form(request)[source]

collecting_society_web.views.forms.add_creation module

class collecting_society_web.views.forms.add_creation.AddCreation(name=None, stage=None, persistent=False, appstruct=None, context=None, request=None, response=None)[source]

Bases: FormController

form controller for add creation

controller()[source]

overwrite this with your form logic! (if form is submitted and … then …)

create_creation()[source]
init_creation()[source]

initializes form with arguments passed via url from Content/Uploads

class collecting_society_web.views.forms.add_creation.AddCreationSchema(*args, **kw)[source]

Bases: Schema

areas = <colander.deferred object>
widget = <deform.widget.FormWidget object>
class collecting_society_web.views.forms.add_creation.ArtistField(*args, **kw)[source]

Bases: SchemaNode

oid = 'artist'
schema_type

alias of Integer

widget = <colander.deferred object>
class collecting_society_web.views.forms.add_creation.ContentSchema(*args, **kw)[source]

Bases: Schema

title = 'Files'
widget = <deform.widget.MappingWidget object>
class collecting_society_web.views.forms.add_creation.DerivationSchema(*args, **kw)[source]

Bases: Schema

title = 'Derivation'
widget = <deform.widget.MappingWidget object>
class collecting_society_web.views.forms.add_creation.LyricsField(*args, **kw)[source]

Bases: SchemaNode

missing = ''
oid = 'lyrics'
schema_type

alias of String

widget = <deform.widget.TextAreaWidget object>
class collecting_society_web.views.forms.add_creation.LyricsSchema(*args, **kw)[source]

Bases: Schema

title = 'Lyrics'
widget = <deform.widget.MappingWidget object>
class collecting_society_web.views.forms.add_creation.MetadataSchema(*args, **kw)[source]

Bases: Schema

title = 'Metadata'
widget = <deform.widget.MappingWidget object>
class collecting_society_web.views.forms.add_creation.RightsholdersSchema(*args, **kw)[source]

Bases: Schema

title = 'Rightsholders'
widget = <deform.widget.MappingWidget object>
class collecting_society_web.views.forms.add_creation.TitleField(*args, **kw)[source]

Bases: SchemaNode

oid = 'title'
schema_type

alias of String

collecting_society_web.views.forms.add_creation.add_creation_form(request)[source]
collecting_society_web.views.forms.add_creation.validate_content(node, values, **kwargs)[source]

Check if content is already assigned to another creation

collecting_society_web.views.forms.add_declaration module

class collecting_society_web.views.forms.add_declaration.AddDeclaration(name=None, stage=None, persistent=False, appstruct=None, context=None, request=None, response=None)[source]

Bases: FormController

form controller for creation of declarations

controller()[source]

overwrite this with your form logic! (if form is submitted and … then …)

create_declaration()[source]
init_declaration()[source]

initializes form with arguments passed via url from Content/Uploads

class collecting_society_web.views.forms.add_declaration.AddDeclarationSchema(*args, **kw)[source]

Bases: Schema

widget = <deform.widget.FormWidget object>
class collecting_society_web.views.forms.add_declaration.GeneralSchema(*args, **kw)[source]

Bases: Schema

widget = <deform.widget.MappingWidget object>
class collecting_society_web.views.forms.add_declaration.TemplateField(*args, **kw)[source]

Bases: SchemaNode

oid = 'template'
schema_type

alias of Boolean

collecting_society_web.views.forms.add_declaration.add_declaration_form(request)[source]

collecting_society_web.views.forms.add_device module

class collecting_society_web.views.forms.add_device.AddDevice(name=None, stage=None, persistent=False, appstruct=None, context=None, request=None, response=None)[source]

Bases: FormController

form controller for creation of devices

controller()[source]

overwrite this with your form logic! (if form is submitted and … then …)

create_device()[source]
init_device()[source]

initializes form with arguments passed via url from Content/Uploads

class collecting_society_web.views.forms.add_device.AddDeviceSchema(*args, **kw)[source]

Bases: Schema

widget = <deform.widget.FormWidget object>
class collecting_society_web.views.forms.add_device.GeneralSchema(*args, **kw)[source]

Bases: Schema

widget = <deform.widget.MappingWidget object>
class collecting_society_web.views.forms.add_device.NameField(*args, **kw)[source]

Bases: SchemaNode

oid = 'name'
schema_type

alias of String

validator = <colander.Length object>
class collecting_society_web.views.forms.add_device.OSNameField(*args, **kw)[source]

Bases: SchemaNode

missing = ''
oid = 'os_name'
schema_type

alias of String

class collecting_society_web.views.forms.add_device.OSSchema(*args, **kw)[source]

Bases: Schema

widget = <deform.widget.MappingWidget object>
class collecting_society_web.views.forms.add_device.OSVersionField(*args, **kw)[source]

Bases: SchemaNode

missing = ''
oid = 'os_version'
schema_type

alias of String

class collecting_society_web.views.forms.add_device.SoftwareNameField(*args, **kw)[source]

Bases: SchemaNode

missing = ''
oid = 'software_name'
schema_type

alias of String

class collecting_society_web.views.forms.add_device.SoftwareSchema(*args, **kw)[source]

Bases: Schema

widget = <deform.widget.MappingWidget object>
class collecting_society_web.views.forms.add_device.SoftwareVendorField(*args, **kw)[source]

Bases: SchemaNode

missing = ''
oid = 'software_vendor'
schema_type

alias of String

class collecting_society_web.views.forms.add_device.SoftwareVersionField(*args, **kw)[source]

Bases: SchemaNode

missing = ''
oid = 'software_version'
schema_type

alias of String

class collecting_society_web.views.forms.add_device.UuidField(*args, **kw)[source]

Bases: SchemaNode

oid = 'uuid'
schema_type

alias of String

validator = <colander.Regex object>
collecting_society_web.views.forms.add_device.add_device_form(request)[source]

collecting_society_web.views.forms.add_location module

class collecting_society_web.views.forms.add_location.AddLocation(name=None, stage=None, persistent=False, appstruct=None, context=None, request=None, response=None)[source]

Bases: FormController

form controller for creation of locations

controller()[source]

overwrite this with your form logic! (if form is submitted and … then …)

create_location()[source]
class collecting_society_web.views.forms.add_location.AddLocationSchema(*args, **kw)[source]

Bases: Schema

widget = <deform.widget.FormWidget object>
class collecting_society_web.views.forms.add_location.AddressNameField(*args, **kw)[source]

Bases: SchemaNode

oid = 'address_name'
schema_type

alias of String

class collecting_society_web.views.forms.add_location.AddressSchema(*args, **kw)[source]

Bases: Schema

widget = <deform.widget.MappingWidget object>
class collecting_society_web.views.forms.add_location.CategoryField(*args, **kw)[source]

Bases: SchemaNode

oid = 'category'
schema_type

alias of String

widget = <colander.deferred object>
class collecting_society_web.views.forms.add_location.CityField(*args, **kw)[source]

Bases: SchemaNode

missing = ''
oid = 'city'
schema_type

alias of String

class collecting_society_web.views.forms.add_location.ContactFirstNameField(*args, **kw)[source]

Bases: SchemaNode

missing = ''
oid = 'contact_first_name'
schema_type

alias of String

class collecting_society_web.views.forms.add_location.ContactNameField(*args, **kw)[source]

Bases: SchemaNode

oid = 'contact_name'
schema_type

alias of String

class collecting_society_web.views.forms.add_location.ContactSchema(*args, **kw)[source]

Bases: Schema

widget = <deform.widget.MappingWidget object>
class collecting_society_web.views.forms.add_location.CountryField(*args, **kw)[source]

Bases: SchemaNode

missing = ''
oid = 'country'
schema_type

alias of String

widget = <colander.deferred object>
class collecting_society_web.views.forms.add_location.EmailField(*args, **kw)[source]

Bases: SchemaNode

missing = ''
oid = 'email'
schema_type

alias of String

class collecting_society_web.views.forms.add_location.FaxField(*args, **kw)[source]

Bases: SchemaNode

missing = ''
oid = 'fax'
schema_type

alias of String

class collecting_society_web.views.forms.add_location.GeneralSchema(*args, **kw)[source]

Bases: Schema

widget = <deform.widget.MappingWidget object>
class collecting_society_web.views.forms.add_location.LatitudeField(*args, **kw)[source]

Bases: SchemaNode

oid = 'latitude'
schema_type

alias of Float

validator = <colander.Range object>
class collecting_society_web.views.forms.add_location.LongitudeField(*args, **kw)[source]

Bases: SchemaNode

oid = 'longitude'
schema_type

alias of Float

validator = <colander.Range object>
class collecting_society_web.views.forms.add_location.NameField(*args, **kw)[source]

Bases: SchemaNode

oid = 'name'
schema_type

alias of String

class collecting_society_web.views.forms.add_location.PostalCodeField(*args, **kw)[source]

Bases: SchemaNode

missing = ''
oid = 'postal_code'
schema_type

alias of String

class collecting_society_web.views.forms.add_location.PublicField(*args, **kw)[source]

Bases: SchemaNode

missing = ''
oid = 'public'
schema_type

alias of Boolean

class collecting_society_web.views.forms.add_location.SpacesSchema(*args, **kw)[source]

Bases: Schema

description = 'Please add at least one space to the location with a unique name (e.g. as indicated by the floor plan) so we know where the music is actually being played. Examples: show room #1, main floor, concert hall, meadow east to the pond, 2nd stage'
title = 'Spaces'
widget = <deform.widget.MappingWidget object>
class collecting_society_web.views.forms.add_location.StreetField(*args, **kw)[source]

Bases: SchemaNode

missing = ''
oid = 'street'
schema_type

alias of String

class collecting_society_web.views.forms.add_location.SubdivisionField(*args, **kw)[source]

Bases: SchemaNode

missing = ''
oid = 'subdivision'
schema_type

alias of String

widget = <colander.deferred object>
class collecting_society_web.views.forms.add_location.WebsiteField(*args, **kw)[source]

Bases: SchemaNode

missing = ''
oid = 'website'
schema_type

alias of String

collecting_society_web.views.forms.add_location.add_location_form(request)[source]

collecting_society_web.views.forms.add_release module

class collecting_society_web.views.forms.add_release.AddRelease(name=None, stage=None, persistent=False, appstruct=None, context=None, request=None, response=None)[source]

Bases: FormController

form controller for add release

controller()[source]

overwrite this with your form logic! (if form is submitted and … then …)

create_release()[source]
class collecting_society_web.views.forms.add_release.AddReleaseSchema(*args, **kw)[source]

Bases: Schema

widget = <deform.widget.FormWidget object>
class collecting_society_web.views.forms.add_release.ArtistField(*args, **kw)[source]

Bases: SchemaNode

missing = <colander.deferred object>
oid = 'artist'
schema_type

alias of String

validator = <colander.Regex object>
widget = <colander.deferred object>
class collecting_society_web.views.forms.add_release.CopyrightDateField(*args, **kw)[source]

Bases: SchemaNode

missing = ''
oid = 'copyright_date'
schema_type

alias of Date

class collecting_society_web.views.forms.add_release.DistributionSchema(*args, **kw)[source]

Bases: Schema

widget = <deform.widget.MappingWidget object>
class collecting_society_web.views.forms.add_release.DistributionTerritoryField(*args, **kw)[source]

Bases: SchemaNode

missing = ''
oid = 'distribution_territory'
schema_type

alias of String

class collecting_society_web.views.forms.add_release.EanUpcCodeField(*args, **kw)[source]

Bases: SchemaNode

missing = ''
oid = 'ean_upc_code'
schema_type

alias of String

validator = <colander.All object>
class collecting_society_web.views.forms.add_release.GRidCodeField(*args, **kw)[source]

Bases: SchemaNode

missing = ''
oid = 'grid_code'
schema_type

alias of String

validator = <colander.Regex object>
class collecting_society_web.views.forms.add_release.GenreCheckboxField(*args, **kw)[source]

Bases: SchemaNode

oid = 'genres'
schema_type

alias of Set

validator = <colander.Length object>
widget = <colander.deferred object>
class collecting_society_web.views.forms.add_release.LabelCatalogNumberField(*args, **kw)[source]

Bases: SchemaNode

missing = ''
oid = 'label_catalog_number'
schema_type

alias of String

class collecting_society_web.views.forms.add_release.MediaSequence(*args, **kw)[source]

Bases: SequenceSchema

description = 'Please add a medium, then add some tracks.'
title = ''
class collecting_society_web.views.forms.add_release.MetadataSchema(*args, **kw)[source]

Bases: Schema

widget = <deform.widget.MappingWidget object>
class collecting_society_web.views.forms.add_release.OnlineReleaseCancellationDateField(*args, **kw)[source]

Bases: SchemaNode

missing = ''
oid = 'online_cancellation_date'
schema_type

alias of Date

class collecting_society_web.views.forms.add_release.OnlineReleaseDateField(*args, **kw)[source]

Bases: SchemaNode

missing = ''
oid = 'online_release_date'
schema_type

alias of Date

class collecting_society_web.views.forms.add_release.PictureField(*args, **kw)[source]

Bases: SchemaNode

missing = ''
oid = 'picture'
schema_type

alias of FileData

widget = <colander.deferred object>
class collecting_society_web.views.forms.add_release.ProductionDateField(*args, **kw)[source]

Bases: SchemaNode

missing = ''
oid = 'production_date'
schema_type

alias of Date

class collecting_society_web.views.forms.add_release.ProductionSchema(*args, **kw)[source]

Bases: Schema

widget = <deform.widget.MappingWidget object>
class collecting_society_web.views.forms.add_release.ReleaseCancellationDateField(*args, **kw)[source]

Bases: SchemaNode

missing = ''
oid = 'release_cancellation_date'
schema_type

alias of Date

class collecting_society_web.views.forms.add_release.ReleaseDateField(*args, **kw)[source]

Bases: SchemaNode

missing = ''
oid = 'release_date'
schema_type

alias of Date

class collecting_society_web.views.forms.add_release.ReleaseTitleField(*args, **kw)[source]

Bases: SchemaNode

oid = 'title'
schema_type

alias of String

class collecting_society_web.views.forms.add_release.ReleaseTypeField(*args, **kw)[source]

Bases: SchemaNode

oid = 'type'
schema_type

alias of String

widget = <deform.widget.Select2Widget object>
class collecting_society_web.views.forms.add_release.SplitArtistSequence(*args, **kw)[source]

Bases: ArtistSequence

min_len = 1
missing = <colander.deferred object>
class collecting_society_web.views.forms.add_release.StyleCheckboxField(*args, **kw)[source]

Bases: SchemaNode

oid = 'styles'
schema_type

alias of Set

validator = <colander.Length object>
widget = <colander.deferred object>
class collecting_society_web.views.forms.add_release.TracksSchema(*args, **kw)[source]

Bases: Schema

widget = <deform.widget.MappingWidget object>
class collecting_society_web.views.forms.add_release.WarningField(*args, **kw)[source]

Bases: SchemaNode

missing = ''
oid = 'warning'
schema_type

alias of String

collecting_society_web.views.forms.add_release.add_release_form(request)[source]

collecting_society_web.views.forms.edit_artist module

class collecting_society_web.views.forms.edit_artist.EditArtist(name=None, stage=None, persistent=False, appstruct=None, context=None, request=None, response=None)[source]

Bases: FormController

form controller for edit of artists

controller()[source]

overwrite this with your form logic! (if form is submitted and … then …)

edit_artist()[source]
update_artist()[source]
collecting_society_web.views.forms.edit_artist.edit_artist_form(request)[source]

collecting_society_web.views.forms.edit_creation module

class collecting_society_web.views.forms.edit_creation.EditCreation(name=None, stage=None, persistent=False, appstruct=None, context=None, request=None, response=None)[source]

Bases: FormController

form controller for edit creation

controller()[source]

overwrite this with your form logic! (if form is submitted and … then …)

edit_creation()[source]
update_creation()[source]
collecting_society_web.views.forms.edit_creation.edit_creation_form(request)[source]

collecting_society_web.views.forms.edit_declaration module

class collecting_society_web.views.forms.edit_declaration.EditDeclaration(name=None, stage=None, persistent=False, appstruct=None, context=None, request=None, response=None)[source]

Bases: FormController

collecting_society_web.views.forms.edit_device module

class collecting_society_web.views.forms.edit_device.EditDevice(name=None, stage=None, persistent=False, appstruct=None, context=None, request=None, response=None)[source]

Bases: FormController

form controller for edit of devices

controller()[source]

overwrite this with your form logic! (if form is submitted and … then …)

edit_device()[source]
update_device()[source]
collecting_society_web.views.forms.edit_device.edit_device_form(request)[source]

collecting_society_web.views.forms.edit_location module

class collecting_society_web.views.forms.edit_location.EditLocation(name=None, stage=None, persistent=False, appstruct=None, context=None, request=None, response=None)[source]

Bases: FormController

form controller for editing locations

controller()[source]

overwrite this with your form logic! (if form is submitted and … then …)

edit_location()[source]
update_location()[source]
collecting_society_web.views.forms.edit_location.edit_location_form(request)[source]

collecting_society_web.views.forms.edit_profile module

class collecting_society_web.views.forms.edit_profile.EditProfile(name=None, stage=None, persistent=False, appstruct=None, context=None, request=None, response=None)[source]

Bases: FormController

form controller for editing the user profile

change_profile()[source]
controller()[source]

overwrite this with your form logic! (if form is submitted and … then …)

class collecting_society_web.views.forms.edit_profile.EmailField(*args, **kw)[source]

Bases: SchemaNode

oid = 'email'
schema_type

alias of String

class collecting_society_web.views.forms.edit_profile.FirstnameField(*args, **kw)[source]

Bases: SchemaNode

oid = 'firstname'
schema_type

alias of String

validator = <colander.Function object>
class collecting_society_web.views.forms.edit_profile.LastnameField(*args, **kw)[source]

Bases: SchemaNode

oid = 'lastname'
schema_type

alias of String

validator = <colander.Function object>
class collecting_society_web.views.forms.edit_profile.PasswordField(*args, **kw)[source]

Bases: Schema

missing = ''
oid = 'password'
schema_type

alias of String

validator = <colander.Length object>
widget = <deform.widget.CheckedPasswordWidget object>
class collecting_society_web.views.forms.edit_profile.ProfileSchema(*args, **kw)[source]

Bases: Schema

collecting_society_web.views.forms.edit_profile.edit_profile_form(request)[source]
collecting_society_web.views.forms.edit_profile.not_empty(value)[source]

Ensure field has at least two characters in it.

collecting_society_web.views.forms.edit_profile.validate_unique_user_email(node, values, **kwargs)[source]

Check for valid email and prevent duplicate usernames.

collecting_society_web.views.forms.edit_release module

class collecting_society_web.views.forms.edit_release.EditRelease(name=None, stage=None, persistent=False, appstruct=None, context=None, request=None, response=None)[source]

Bases: FormController

form controller for edit release

controller()[source]

overwrite this with your form logic! (if form is submitted and … then …)

edit_release()[source]
update_release()[source]
collecting_society_web.views.forms.edit_release.edit_release_form(request)[source]

collecting_society_web.views.forms.register_webuser module

class collecting_society_web.views.forms.register_webuser.BirthdateField(*args, **kw)[source]

Bases: SchemaNode

oid = 'birthdate'
schema_type

alias of Date

validator = <colander.Function object>
widget = <deform.widget.DateInputWidget object>
class collecting_society_web.views.forms.register_webuser.CheckboxWithLabel(*args, **kw)[source]

Bases: SchemaNode

oid = 'terms_accepted'
schema_type

alias of Boolean

validator = <colander.Function object>
class collecting_society_web.views.forms.register_webuser.CheckedPasswordField(*args, **kw)[source]

Bases: SchemaNode

oid = 'register_password'
schema_type

alias of String

validator = <colander.Length object>
widget = <deform.widget.CheckedPasswordWidget object>
class collecting_society_web.views.forms.register_webuser.EmailField(*args, **kw)[source]

Bases: SchemaNode

oid = 'register_email'
schema_type

alias of String

validator = <colander.Email object>
class collecting_society_web.views.forms.register_webuser.FirstnameField(*args, **kw)[source]

Bases: SchemaNode

oid = 'firstname'
schema_type

alias of String

validator = <colander.Function object>
class collecting_society_web.views.forms.register_webuser.LastnameField(*args, **kw)[source]

Bases: SchemaNode

oid = 'lastname'
schema_type

alias of String

validator = <colander.Function object>
class collecting_society_web.views.forms.register_webuser.RegisterMemberSchema(*args, **kw)[source]

Bases: Schema

class collecting_society_web.views.forms.register_webuser.RegisterNonmemberSchema(*args, **kw)[source]

Bases: Schema

class collecting_society_web.views.forms.register_webuser.RegisterWebuser(name=None, stage=None, persistent=False, appstruct=None, context=None, request=None, response=None)[source]

Bases: LoginWebuser

form controller for registration of web_user

claims_membership()[source]
controller()[source]

overwrite this with your form logic! (if form is submitted and … then …)

is_claiming_membership(data)[source]
is_registered(web_user)[source]
passes_authentication(web_user)[source]
register()[source]

Register a virtual subclass of an ABC.

Returns the subclass, to allow usage as a class decorator.

register_webuser()[source]
wants_membership()[source]
collecting_society_web.views.forms.register_webuser.claims_membership_form()[source]
collecting_society_web.views.forms.register_webuser.not_empty(value)[source]
collecting_society_web.views.forms.register_webuser.register_member_form()[source]
collecting_society_web.views.forms.register_webuser.register_nonmember_form()[source]
collecting_society_web.views.forms.register_webuser.right_age(value)[source]
collecting_society_web.views.forms.register_webuser.terms_accepted(value)[source]
collecting_society_web.views.forms.register_webuser.wants_membership_form()[source]

Module contents