portal_web.views.forms package

Subpackages

Submodules

portal_web.views.forms.base module

class portal_web.views.forms.base.FileTmpStore(path=None, timeout=0)[source]

Bases: dict

clear_tmpfiles()[source]
preview_url(name)[source]
class portal_web.views.forms.base.FormController(name=None, stage=None, persistent=False, appstruct=None, context=None, request=None, response=None)[source]

Bases: object

Abstract class for form handling

clean()[source]

reset the form

abstract controller()[source]

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

property data

session persistent dict for aggregated data of all appstructs (stages) needs to be filled manually

property form
property name
process(context, request)[source]
redirect(resource='', *args, **kwargs)[source]

return user to other place by str or resource, removes form from session

remove()[source]

no longer persist form in session

render(appstruct={}, form=None)[source]
submitted(button=None, form=None)[source]

check to see if your form was submitted (by certain button and/or form)

valid()[source]

check if form did validate on last validation

validate(data=False)[source]
class portal_web.views.forms.base.MemoryTmpStore[source]

Bases: dict

preview_url(name)[source]
class portal_web.views.forms.base.TmpFile(source, *args, **kwargs)[source]

Bases: object

delete()[source]

portal_web.views.forms.login_web_user module

class portal_web.views.forms.login_web_user.EmailField(*args, **kw)[source]

Bases: SchemaNode

oid = 'login-email'
schema_type

alias of String

validator = <colander.Email object>
class portal_web.views.forms.login_web_user.LoginSchema(*args, **kw)[source]

Bases: Schema

class portal_web.views.forms.login_web_user.LoginWebuser(name=None, stage=None, persistent=False, appstruct=None, context=None, request=None, response=None)[source]

Bases: FormController

form controller for web_user login

controller()[source]

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

login()[source]
class portal_web.views.forms.login_web_user.PasswordField(*args, **kw)[source]

Bases: SchemaNode

oid = 'login-password'
schema_type

alias of String

widget = <deform.widget.PasswordWidget object>
portal_web.views.forms.login_web_user.authentication_is_successful(values)[source]
portal_web.views.forms.login_web_user.login_form()[source]

portal_web.views.forms.register_web_user module

class portal_web.views.forms.register_web_user.CheckedPasswordField(*args, **kw)[source]

Bases: SchemaNode

oid = 'register-password'
schema_type

alias of String

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

Bases: SchemaNode

oid = 'register-email'
schema_type

alias of String

validator = <colander.All object>
class portal_web.views.forms.register_web_user.RegisterSchema(*args, **kw)[source]

Bases: Schema

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

Bases: FormController

form controller for web_user login

controller()[source]

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

register()[source]

Register a virtual subclass of an ABC.

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

portal_web.views.forms.register_web_user.email_is_unique(value)[source]
portal_web.views.forms.register_web_user.register_form()[source]

Module contents

portal_web.views.forms.get_templates()[source]
portal_web.views.forms.get_translator(term)[source]