2006-05-12

解决在bibliography folder下导入bibtext的错误

今天在Plone环境下想在bibliography folder下导入bibtext文件,可是在点击导入时总得到错误:



Es ist ein Fehler aufgetreten. Die Fehlermeldung lautet:
Fehlertyp
RuntimeError
Fehlerwert
CMFBibliographyAT/skins/bibliography/getImportReports.py has errors.

在goole上查到有人提交的这个Bug,原来是因为skin目录下有些python文件是在windows下编写的,导致换行符号与在unix下的不一样而造成了这个错误。要修改的文件包括:getImportReports.py 和 getLastImportReport.py。


cat getLastImportReport.py | col -b > getLastImportReport.py
或者
dos2unix getLastImportReport.py > getLastImportReport.py, 只是如果没有dos2unix这个小程序还得先安装一下。

没有评论:

发表评论