* Rui Pires: " [Mayan EDMS: 660] Re: Configuring smart-links" (Sat, 8 Feb 2014
05:59:21 -0800 (PST)):
Hi Rui,
> I have installed mayan via the fabfile into an ubuntu server 13.10.
> It seems the fabfile needs to be slightly changed to work there: the mayan
> apache site needs to be named mayan*.conf*.
>
> But I still get the same exact error.
I can confirm this error here.
Enabling debugging in settings.py by setting
DEBUG = True
prints a very exhaustive traceback.
The error can be fixed by removing the erroneous parameter as in the following
patch:
diff --git a/apps/linking/forms.py b/apps/linking/forms.py
index 46e9245..ce7b0a0 100644
--- a/apps/linking/forms.py
+++ b/apps/linking/forms.py
@@ -47,7 +47,7 @@ class SmartLinkImageWidget(forms.widgets.Widget):
output.append(u'<div class="tc">%s</div>' % document)
output.append(u'<div class="tc">%s: %d</div>' % (ugettext(u'Pages'), document.pages.count()))
output.append(get_tags_inline_widget(document))
- output.append(u'<div style="padding: 5px;">' % document)
+ output.append(u'<div style="padding: 5px;">')
output.append(document_html_widget(document, click_view='document_display', view='document_preview_multipage', fancybox_class='fancybox-noscaling', gallery_name=u's
output.append(u'</div>')
output.append(u'<div class="tc">')
HTH,
Mathias
--
Mathias Behrle
MBSolutions
Gilgenmatten 10 A
D-79114 Freiburg
Tel:
+49(761)471023
Fax:
+49(761)4770816
http://m9s.biz
UStIdNr: DE 142009020
PGP/GnuPG key availabable from any keyserver, ID: 0x8405BBF6