1
|
from quixote import get_publisher, get_request, redirect
|
2
|
from quixote.directory import Directory
|
3
|
from quixote.html import htmltext
|
4
|
|
5
|
import os
|
6
|
|
7
|
import wcs
|
8
|
import wcs.forms.root
|
9
|
import wcs.forms.preview
|
10
|
from wcs.qommon import _
|
11
|
from wcs.qommon import template
|
12
|
from wcs.qommon import errors
|
13
|
from wcs.qommon.form import *
|
14
|
from wcs.roles import logged_users_role
|
15
|
|
16
|
from wcs.qommon import emails
|
17
|
|
18
|
OldFormPage = wcs.forms.root.FormPage
|
19
|
|
20
|
|
21
|
class AlternateFormPage(OldFormPage):
|
22
|
def form_side(self, *args, **kwargs):
|
23
|
form_side_html = OldFormPage.form_side(self, *args, **kwargs)
|
24
|
get_response().filter['gauche'] = form_side_html
|
25
|
get_response().filter['steps'] = form_side_html
|
26
|
return
|
27
|
|
28
|
|
29
|
wcs.forms.root.FormPage = AlternateFormPage
|
30
|
wcs.forms.root.PublicFormStatusPage.form_page_class = AlternateFormPage
|
31
|
wcs.forms.preview.PreviewFormPage.__bases__ = (AlternateFormPage,)
|