Hi Samuele,

On Jun 15, 2010, at 11:32 AM, Samuele Kaplun wrote:
> However you might try to add the docx (and all the other new extensions
> from Microsoft Office) to the config variable:
> 
> CFG_WEBSUBMIT_ADDITIONAL_KNOWN_FILE_EXTENSIONS.

This was already the case.

> I also see that this is triggering a bug in the 0.99.1 heuristic by the
> fact that ocx (substring of docx) happens to be a valid extension.
> 
> Could you also test this patch (after taking a backup of bibdocfile.py
> module) that contains a backported algorithm from latest GIT?
> 
> To apply just do:
> 
> $ cd /opt/cds-invenio/lib/python/invenio
> $ patch -p4
> < /tmp/0001-BibDocFile-backport-extension-guessing-algorithm.patch
> 
> Let me know if this fixes your problem (and if you don't see any
> collateral issues).

After applying the patch, I'm getting the following error when trying to view 
any Invenio page.

------
Mod_python error: "PythonHandler invenio.webinterface_layout"

Traceback (most recent call last):

  File "/usr/lib/python2.4/site-packages/mod_python/apache.py", line 287, in 
HandlerDispatch
    log=debug)

  File "/usr/lib/python2.4/site-packages/mod_python/apache.py", line 464, in 
import_module
    module = imp.load_module(mname, f, p, d)

  File "/usr/lib/python2.4/site-packages/invenio/webinterface_layout.py", line 
33, in ?
    from invenio.websearch_webinterface import 
WebInterfaceSearchInterfacePages, \

  File "/usr/lib/python2.4/site-packages/invenio/websearch_webinterface.py", 
line 65, in ?
    from invenio.websubmit_webinterface import WebInterfaceFilesPages

  File "/usr/lib/python2.4/site-packages/invenio/websubmit_webinterface.py", 
line 62, in ?
    from invenio.bibdocfile import BibRecDocs, normalize_format, 
file_strip_ext, \

ImportError: cannot import name InvenioWebSubmitFileError
------

Any more suggestions would be greatly appreciated.

Thanks!
Devin

Reply via email to