Commit 8aaad501 authored by Yusei Tahara's avatar Yusei Tahara

2008-06-19 yusei

* Fixed Document_getPropertyDictFromContent and now it returns only true title metadata.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@21708 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c7850390
...@@ -110,6 +110,9 @@ if title:\n ...@@ -110,6 +110,9 @@ if title:\n
if title.startswith(\'Microsoft Word\'):\n if title.startswith(\'Microsoft Word\'):\n
# Probably a file generated from MS Word\n # Probably a file generated from MS Word\n
del result[\'title\']\n del result[\'title\']\n
elif title==context.getId() and not context.title:\n
# this is not a true title, but just an id.\n
del result[\'title\']\n
\n \n
return result\n return result\n
</string> </value> </string> </value>
......
2008-06-19 yusei
* Fixed Document_getPropertyDictFromContent and now it returns only true title metadata.
2008-06-19 romain 2008-06-19 romain
* Add missing mime_type base category * Add missing mime_type base category
......
21 22
\ No newline at end of file \ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment