Discussion:
[Erp5-dev] Files in DMS image_module - supported?
Łukasz Nowak
2008-05-05 13:32:43 UTC
Permalink
Hello,

Using portal_contributions there is a way to add Files. They are sent
into image_module. But its listbox is not showing files (patch
attached).

Also there is no possibility to add File manually in image_module.

Questions:
* do files shall go into image module?
* if not, where is module for files?

Regards,
Luke
--
?ukasz Nowak R&D Ventis http://www.ventis.com.pl/
tel: +48 32 768 16 85 fax: +48 32 392 10 61
``Use the Source, Luke...'' I am only craftsman.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: erp5_dms_ImageModule_viewImageList-listbox.xml-show-files-too.patch
Type: text/x-patch
Size: 3748 bytes
Desc: not available
URL: <http://mail.tiolive.com/pipermail/erp5-dev/attachments/20080505/f23d4208/attachment.bin>
Yoshinori Okuji
2008-05-06 06:18:47 UTC
Permalink
Post by Łukasz Nowak
Using portal_contributions there is a way to add Files. They are sent
into image_module. But its listbox is not showing files (patch
attached).
They shouldn't go to Image Module. Where is it defined? I am sorry, but I
don't know so much about DMS.
Post by Łukasz Nowak
Also there is no possibility to add File manually in image_module.
This is correct.
Post by Łukasz Nowak
* do files shall go into image module?
No.
Post by Łukasz Nowak
* if not, where is module for files?
Document Module.

YO
--
Yoshinori Okuji, Nexedi CTO
Nexedi: Consulting and Development of Free / Open Source Software
http://www.nexedi.com
ERP5: Full Featured High End Open Source ERP
http://www.erp5.com
ERP5 Wiki: Developer Zone for ERP5 Community
http://www.erp5.org
Łukasz Nowak
2008-05-06 07:10:42 UTC
Permalink
Hello,

On 2008-05-06, 08:18:47
Post by Yoshinori Okuji
Post by Łukasz Nowak
Using portal_contributions there is a way to add Files. They are
sent into image_module. But its listbox is not showing files (patch
attached).
They shouldn't go to Image Module. Where is it defined? I am sorry,
but I don't know so much about DMS.
Post by Łukasz Nowak
Also there is no possibility to add File manually in image_module.
This is correct.
Post by Łukasz Nowak
* do files shall go into image module?
No.
Post by Łukasz Nowak
* if not, where is module for files?
Document Module.
YO
Argh! It depends on what I do.

If I added something, what is recognized as File, without choosing
portal type by hand it goes into document_module.

But I added a.out, chosen Image portal type. It is put into
image_module, but recognized as File. Is it a bug or feature?

To reproduce
* get a.out
* add in portal_contributions, without choosing any portal type
* it will be added in document_module, object's portal type - File

* get a.aout
* add in portal_contributions, choose Image portal type
* it will be added in image_module, object's portal type - File

I stepped into it, by adding TIFFs as Image (right now I updated
my portal_contribution_registry to recognize tiff and tif extension
as Image).

Regards,
Luke
--
?ukasz Nowak R&D Ventis http://www.ventis.com.pl/
tel: +48 32 768 16 85 fax: +48 32 392 10 61
``Use the Source, Luke...'' I am only craftsman.
Yoshinori Okuji
2008-05-06 07:27:26 UTC
Permalink
Post by Łukasz Nowak
Argh! It depends on what I do.
If I added something, what is recognized as File, without choosing
portal type by hand it goes into document_module.
But I added a.out, chosen Image portal type. It is put into
image_module, but recognized as File. Is it a bug or feature?
I think it should be counted as a bug. :)

But, honestly, I don't know what should happen in this case. One way is to
show an error message, such as "Your file was not recognized as an image".
Or, implicitly switching to File. I don't know what the best is.

Regards,
YO
--
Yoshinori Okuji, Nexedi CTO
Nexedi: Consulting and Development of Free / Open Source Software
http://www.nexedi.com
ERP5: Full Featured High End Open Source ERP
http://www.erp5.com
ERP5 Wiki: Developer Zone for ERP5 Community
http://www.erp5.org
Loading...