[gitec] SPDO exige Flash para upload de arquivos

Adriano Rafael Gomes adriano-gomes em camaranh.rs.gov.br
Quinta Abril 14 16:30:39 BRT 2016


On Wed, Apr 13, 2016 at 05:55:46PM -0300, Adriano Rafael Gomes wrote:
> De acordo com o [1]"Manual do Usuário" do SPDO, é obrigatório ter o
> Flash instalado para funcionar o upload de arquivos:

[...removido...]

> [1]http://repositorio.interlegis.gov.br/il.spdo/trunk/docs/relatorios/manual-do-usuario.pdf

Aparentemente, consegui resolver o problema da dependência de Flash
para o upload de arquivos. Não tentei resolver o problema para copiar,
gerar csv e pdf.

Essa foi a minha primeira experiência nessa área, então peço a revisão
por parte de alguém experiente.

Fiz o seguinte:


 1. Atualizei para a última versão do componente:
https://plone.org/products/plone.formwidget.multifile

adriano-gomes em info36:/var/interlegis/spdo/zinstance/src/il.spdo/il/spdo/buildout$ svn diff
Index: buildout.cfg
===================================================================
--- buildout.cfg        (revisão 8204)
+++ buildout.cfg        (cópia de trabalho)
@@ -230,7 +230,7 @@
 plone.app.intid = 1.0
 plone.directives.form = 1.0
 plone.formwidget.autocomplete = 1.2.3
-plone.formwidget.multifile = 1.0a1
+plone.formwidget.multifile = 1.1
 plone.formwidget.namedfile = 1.0.2
 plone.namedfile = 1.0.6
 plone.rfc822 = 1.0


 2. Executei o buildout:

root em info36:/var/interlegis/spdo/zinstance# ./bin/buildout -c develop.cfg
mr.developer: Queued 'plone.app.drafts' for checkout.
mr.developer: Updated 'plone.app.drafts' with git.
Develop: '/var/interlegis/spdo/zinstance/src/il.spdo'
unrecognized .svn/entries format in
Develop: '/var/interlegis/spdo/zinstance/src/plone.app.drafts'
warning: no files found matching '*.txt'
warning: no previously-included files found matching 'bootstrap.py'
warning: no previously-included files found matching '*.cfg'
Updating _mr.developer.
Updating instance.
Getting distribution for 'plone.formwidget.multifile==1.1'.
warning: no previously-included files matching '*.pyc' found anywhere
in distribution
Got plone.formwidget.multifile 1.1.
Generated script '/var/interlegis/spdo/zinstance/bin/instance'.
Updating zopepy.
Generated interpreter '/var/interlegis/spdo/zinstance/bin/zopepy'.
Updating zopeskel.
Generated script '/var/interlegis/spdo/zinstance/bin/zopeskel'.
Generated script '/var/interlegis/spdo/zinstance/bin/paster'.
Updating omelette.
Updating backup.
Updating chown.
chown: Running
echo Dummy references to force this to execute after referenced parts
echo /var/interlegis/spdo/zinstance/var/backups sudo -u plone
chmod 600 .installed.cfg
find /var/interlegis/spdo/zinstance/var -type d -exec chmod 700 {} \;
chmod 744 /var/interlegis/spdo/zinstance/bin/*
Dummy references to force this to execute after referenced parts
/var/interlegis/spdo/zinstance/var/backups sudo -u plone
Updating test.
Generated script '/var/interlegis/spdo/zinstance/bin/test'.
Updating repozo.
Updating unifiedinstaller.
*************** PICKED VERSIONS ****************
[versions]
plone.behavior = 1.1.1

*************** /PICKED VERSIONS ***************
root em info36:/var/interlegis/spdo/zinstance#


 3. Reiniciei o SPDO:

$ sudo /var/interlegis/spdo/zinstance/bin/instance stop
$ sudo /var/interlegis/spdo/zinstance/bin/instance start


Se isso estiver correto, vou fazer um commit no SVN do SPDO.

-- 
Adriano Rafael Gomes
Analista de Suporte
Câmara Municipal de Novo Hamburgo


Mais detalhes sobre a lista de discussão GITEC