+ wtforms.validators.URL(message=_("This address contains errors"))])
+
+
+class EditAccountForm(wtforms.Form):
+ old_password = wtforms.PasswordField(
+ _('Old password'),
+ description=_(
+ "Enter your old password to prove you own this account."))
+ new_password = wtforms.PasswordField(
+ _('New password'),
+ [wtforms.validators.Length(min=6, max=30)],
+ id="password")
+ wants_comment_notification = wtforms.BooleanField(
+ _(''),
+ description=_("Email me when others comment on my media"))
+
+
+class EditAttachmentsForm(wtforms.Form):
+ attachment_name = wtforms.TextField(
+ 'Title')
+ attachment_file = wtforms.FileField(
+ 'File')