askbot.forms

class askbot.forms.AdvancedSearchForm(data=None, files=None, auto_id='id_%s', prefix=None, initial=None, error_class=<class 'django.forms.util.ErrorList'>, label_suffix=':', empty_permitted=False)

Bases: django.forms.forms.Form

clean()
clean_page_size()
clean_query()
clean_tags()
media
class askbot.forms.AnswerForm(question, user, *args, **kwargs)

Bases: django.forms.forms.Form

media
class askbot.forms.AskForm(data=None, files=None, auto_id='id_%s', prefix=None, initial=None, error_class=<class 'django.forms.util.ErrorList'>, label_suffix=':', empty_permitted=False)

Bases: django.forms.forms.Form

media
class askbot.forms.ChangeUserReputationForm(data=None, files=None, auto_id='id_%s', prefix=None, initial=None, error_class=<class 'django.forms.util.ErrorList'>, label_suffix=':', empty_permitted=False)

Bases: django.forms.forms.Form

Form that allows moderators and site administrators to adjust reputation of users.

this form internally verifies that user who claims to be a moderator acually is

clean_comment()
media
class askbot.forms.ChangeUserStatusForm(*arg, **kwarg)

Bases: django.forms.forms.Form

form that allows moderators to change user’s status

the type of options displayed depend on whether user is a moderator or a site administrator as well as what is the current status of the moderated user

for example moderators cannot moderate other moderators and admins. Admins can take away admin status, but cannot add it (that can be done through the Django Admin interface

this form is to be displayed in the user profile under “moderation” tab

clean()
media
class askbot.forms.CloseForm(data=None, files=None, auto_id='id_%s', prefix=None, initial=None, error_class=<class 'django.forms.util.ErrorList'>, label_suffix=':', empty_permitted=False)

Bases: django.forms.forms.Form

media
class askbot.forms.EditAnswerForm(answer, revision, *args, **kwargs)

Bases: django.forms.forms.Form

media
class askbot.forms.EditQuestionForm(question, revision, *args, **kwargs)

Bases: django.forms.forms.Form

media
class askbot.forms.EditUserEmailFeedsForm(data=None, files=None, auto_id='id_%s', prefix=None, initial=None, error_class=<class 'django.forms.util.ErrorList'>, label_suffix=':', empty_permitted=False)

Bases: django.forms.forms.Form

media
reset()
save(user, save_unbound=False)

with save_unbound==True will bypass form validation and save initial values

set_initial_values(user=None)
class askbot.forms.EditUserForm(user, *args, **kwargs)

Bases: django.forms.forms.Form

clean_email()

For security reason one unique email in database

media
class askbot.forms.EditorField(*args, **kwargs)

Bases: django.forms.fields.CharField

clean(value)
class askbot.forms.EmailFeedSettingField(*arg, **kwarg)

Bases: django.forms.fields.ChoiceField

class askbot.forms.EmailNotifyField(*args, **kwargs)

Bases: django.forms.fields.BooleanField

class askbot.forms.FeedbackForm(data=None, files=None, auto_id='id_%s', prefix=None, initial=None, error_class=<class 'django.forms.util.ErrorList'>, label_suffix=':', empty_permitted=False)

Bases: django.forms.forms.Form

media
class askbot.forms.NotARobotForm(data=None, files=None, auto_id='id_%s', prefix=None, initial=None, error_class=<class 'django.forms.util.ErrorList'>, label_suffix=':', empty_permitted=False)

Bases: django.forms.forms.Form

media
class askbot.forms.RetagQuestionForm(question, *args, **kwargs)

Bases: django.forms.forms.Form

media
class askbot.forms.RevisionForm(post, latest_revision, *args, **kwargs)

Bases: django.forms.forms.Form

Lists revisions of a Question or Answer

media
class askbot.forms.SendMessageForm(data=None, files=None, auto_id='id_%s', prefix=None, initial=None, error_class=<class 'django.forms.util.ErrorList'>, label_suffix=':', empty_permitted=False)

Bases: django.forms.forms.Form

media
class askbot.forms.SimpleEmailSubscribeForm(data=None, files=None, auto_id='id_%s', prefix=None, initial=None, error_class=<class 'django.forms.util.ErrorList'>, label_suffix=':', empty_permitted=False)

Bases: django.forms.forms.Form

media
save(user=None)
class askbot.forms.SummaryField(*args, **kwargs)

Bases: django.forms.fields.CharField

class askbot.forms.TagFilterSelectionForm(data=None, files=None, auto_id='id_%s', prefix=None, initial=None, error_class=<class 'django.forms.util.ErrorList'>, label_suffix=':', empty_permitted=False, instance=None)

Bases: django.forms.models.ModelForm

class Meta
model

alias of User

TagFilterSelectionForm.media
TagFilterSelectionForm.save()
class askbot.forms.TagNamesField(*args, **kwargs)

Bases: django.forms.fields.CharField

clean(value)
class askbot.forms.TitleField(*args, **kwargs)

Bases: django.forms.fields.CharField

clean(value)
class askbot.forms.WikiField(*args, **kwargs)

Bases: django.forms.fields.BooleanField

clean(value)
askbot.forms.cleanup_dict(dictionary, key, empty_value)

deletes key from dictionary if it exists and the corresponding value equals the empty_value

askbot.forms.filter_choices(remove_choices=None, from_choices=None)

a utility function that will remove choice tuples usable for the forms.ChoicesField from from_choices, the removed ones will be those given by the remove_choice list

there is no error checking, from_choices tuple must be as expected to work with the forms.ChoicesField

This Page