[Erp5-report] r11701 - /erp5/trunk/bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/
nobody at svn.erp5.org
nobody at svn.erp5.org
Tue Dec 12 17:54:01 CET 2006
Author: bartek
Date: Tue Dec 12 17:54:00 2006
New Revision: 11701
URL: http://svn.erp5.org?rev=11701&view=rev
Log:
On upload, create new object in current module (instead of hardcoded document_module)
Modified:
erp5/trunk/bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/DMSDocument_uploadFile.xml
Modified: erp5/trunk/bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/DMSDocument_uploadFile.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/DMSDocument_uploadFile.xml?rev=11701&r1=11700&r2=11701&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/DMSDocument_uploadFile.xml (original)
+++ erp5/trunk/bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/DMSDocument_uploadFile.xml Tue Dec 12 17:54:00 2006
@@ -84,7 +84,7 @@
raise Exception(\'This file should be uploaded into \'+ctype)\n
\n
if hasattr(context,\'data\'): # this is a re-upload, we create a \'copy\'\n
- docmod=context.restrictedTraverse(\'document_module\')\n
+ docmod=context.aq_parent\n
newob=docmod.newContent(portal_type=typ)\n
copylist=context.portal_types[typ].getInstanceBaseCategoryList()\n
# we copy many things, ingestion script may then overwrite some of these\n
More information about the Erp5-report
mailing list