Il 16/11/2010 17:24, Fabrizio Rota ha scritto: > > > Il giorno 16 novembre 2010 08:29, Yuri <y...@alfa.it > <mailto:y...@alfa.it>> ha scritto: > > Il 15/11/2010 15:35, Fabrizio Rota ha scritto: > > grazie Yuri. > > Mi sembra di capire, però, che bisogna cmq metter mano al > filesystem, > > cosa che volevo evitare. > > http://plone.org/documentation/faq/restricted-python-scripts > > tra l'altro creare un prodotto Zope minimale è semplice e veloce. > > > > a sto punto farò il metodo esterno, perchè di browser view sono a > > digiunissimo! > > ci si impiega 5 minuti :) > > Una browser view si integra a parametri passati tramite PFG?
Li leggi nella request, come fai per lo script. Inoltre puoi o implementare un template tuo oppure gestire l'output direttamente nel metodo index() della browser view. > Per interagire con PFG io so usare solo gli script (so usare è > ovviamente una esagerazione.....). Modesto :) > > > grazie > > faber > > > > > > > faber > > > > Il giorno 15 novembre 2010 15:31, Yuri <y...@alfa.it > <mailto:y...@alfa.it> > > <mailto:y...@alfa.it <mailto:y...@alfa.it>>> ha scritto: > > > > Il 15/11/2010 15:25, Fabrizio Rota ha scritto: > > > mi sarebbe comodo autorizzare csv. come si fa? > > > > > > http://www.slideshare.net/ajung/frequently-asked-questions-answered-frequently-but-now-for-the-last-time > > > > c'è in una delle slide, oppure cerca in plone.org > <http://plone.org> > > <http://plone.org> :) > > > > > > > > > > grazie > > > > > > faber > > > > > > Il giorno 15 novembre 2010 15:22, Yuri <y...@alfa.it > <mailto:y...@alfa.it> > > <mailto:y...@alfa.it <mailto:y...@alfa.it>> > > > <mailto:y...@alfa.it <mailto:y...@alfa.it> > <mailto:y...@alfa.it <mailto:y...@alfa.it>>>> ha scritto: > > > > > > Il 15/11/2010 15:20, Fabrizio Rota ha scritto: > > > > Ho bisogno di uno script che prenda un file csv e gli faccia del > > > > lavoro sopra. > > > > Per iniziare ho usato questo codice > > > > import csv > > > > reader = csv.reader(open("test.csv", "rb")) > > > > for row in reader: > > > > print row > > > > return printed > > > > > > > > ma non mi fa debaggare perchè ho questo messaggio senza altre > > > indicazioni: > > > > > > > > Permessi insufficienti, contatta amministratore. > > > > > > > > Opero in ZMI per creare uno script da dare in pasto a PFG. > > > > > > > > Si tratta di un errore dovuto al fatto che uso python "non > > > ristretto" > > > > nell'ambiente sbagliato? > > > > > > Sì, o autorizzi l'utilizzo del modulo csv o usi un external > > method o > > > (meglio) una browser view. > > > > > > > > > > > > > > > -- > > > > Faber > > > > -------------------- > > > > "Life is what happens to you while you're busy making other > > plans" - > > > > J. Lennon > > > > > > > > “If you think education is expensive, try ignorance” - D. Bok > > > > > > > > > > > > _______________________________________________ > > > > Plone-IT mailing list > > > > Plone-IT@lists.plone.org <mailto:Plone-IT@lists.plone.org> > <mailto:Plone-IT@lists.plone.org <mailto:Plone-IT@lists.plone.org>> > > <mailto:Plone-IT@lists.plone.org > <mailto:Plone-IT@lists.plone.org> <mailto:Plone-IT@lists.plone.org > <mailto:Plone-IT@lists.plone.org>>> > > > > http://lists.plone.org/mailman/listinfo/plone-it > > > > http://www.nabble.com/Plone---Italy-f21728.html > > > > > > _______________________________________________ > > > Plone-IT mailing list > > > Plone-IT@lists.plone.org <mailto:Plone-IT@lists.plone.org> > <mailto:Plone-IT@lists.plone.org <mailto:Plone-IT@lists.plone.org>> > > <mailto:Plone-IT@lists.plone.org > <mailto:Plone-IT@lists.plone.org> <mailto:Plone-IT@lists.plone.org > <mailto:Plone-IT@lists.plone.org>>> > > > http://lists.plone.org/mailman/listinfo/plone-it > > > http://www.nabble.com/Plone---Italy-f21728.html > > > > > > > > > > > > > > > -- > > > Fabrizio > > > -------------------- > > > "Life is what happens to you while you're busy making other > plans" - > > > J. Lennon > > > > > > “If you think education is expensive, try ignorance” - D. Bok > > > > > > > > > _______________________________________________ > > > Plone-IT mailing list > > > Plone-IT@lists.plone.org <mailto:Plone-IT@lists.plone.org> > <mailto:Plone-IT@lists.plone.org <mailto:Plone-IT@lists.plone.org>> > > > http://lists.plone.org/mailman/listinfo/plone-it > > > http://www.nabble.com/Plone---Italy-f21728.html > > > > _______________________________________________ > > Plone-IT mailing list > > Plone-IT@lists.plone.org <mailto:Plone-IT@lists.plone.org> > <mailto:Plone-IT@lists.plone.org <mailto:Plone-IT@lists.plone.org>> > > http://lists.plone.org/mailman/listinfo/plone-it > > http://www.nabble.com/Plone---Italy-f21728.html > > > > > > > > > > -- > > Fabrizio > > -------------------- > > "Life is what happens to you while you're busy making other plans" - > > J. Lennon > > > > “If you think education is expensive, try ignorance” - D. Bok > > > > > > _______________________________________________ > > Plone-IT mailing list > > Plone-IT@lists.plone.org <mailto:Plone-IT@lists.plone.org> > > http://lists.plone.org/mailman/listinfo/plone-it > > http://www.nabble.com/Plone---Italy-f21728.html > > _______________________________________________ > Plone-IT mailing list > Plone-IT@lists.plone.org <mailto:Plone-IT@lists.plone.org> > http://lists.plone.org/mailman/listinfo/plone-it > http://www.nabble.com/Plone---Italy-f21728.html > > > > > -- > Fabrizio > -------------------- > "Life is what happens to you while you're busy making other plans" - > J. Lennon > > “If you think education is expensive, try ignorance” - D. Bok > > > _______________________________________________ > Plone-IT mailing list > Plone-IT@lists.plone.org > http://lists.plone.org/mailman/listinfo/plone-it > http://www.nabble.com/Plone---Italy-f21728.html _______________________________________________ Plone-IT mailing list Plone-IT@lists.plone.org http://lists.plone.org/mailman/listinfo/plone-it http://www.nabble.com/Plone---Italy-f21728.html