Pagina 1 di 3 1 2 3 ultimoultimo
Visualizzazione dei risultati da 1 a 10 su 23

Discussione: Addons Plone

  1. #1

    Addons Plone

    Ciao,

    per la prima volta utilizzo Plone per un sito e mi piacerebbe installare alcune delle numerose estensioni per Plone.

    Il risultato è che non sono riuscito ad installare una che sia una di quelle estensioni...

    La versione è Plone 4. Ma sono niubbo io o è proprio così difficile? Spesso si tratta semplicemente di inserire una linea nel buildout.cfg, rilanciarlo, e riavviare Zope, ma niente...

  2. #2
    E' semplicissimo, ma dopo aver modificato buildout.cfg devi lanciare:
    codice:
    bin/buildout
    e quindi rilanciare Plone
    codice:
    bin/instance fg
    fg mette l'istanza in debug-mode (foreground)

  3. #3
    Mi pare che sia quello che faccio io, almeno credo...

    Dopo aver letto le istruzioni da terminale rilancio il buildout con

    codice:
    ./bin/buildout
    e poi riavvio l'istanza

    codice:
    ./bin/instance restart
    ma già dopo la prima stringa appaiono errori vari (ma per capire di che si tratta bisognerebbe essere un programmatore... ) e comunque i prodotti non vengono mai aggiunti alla lista dei prodotti aggiuntivi.

    Eppure seguo alla lettera i vari readme.txt di ciascun prodotto per l'installazione.

  4. #4
    Fai un copia e incolla del tuo buildout.cfg e dei messaggi di errore.

  5. #5
    Per esempio, io vorrei aggiungere Plone Comment.

    Al buildout aggiungo 3 righe in tutto

    codice:
    [buildout]
    parts =
        productdistros
        instance
        zopepy
    
    # Change the number here to change the version of Plone being used
    extends =
        http://dist.plone.org/release/4.0.4/versions.cfg
    versions = versions
    
    
    
    
    
    # Add additional egg download sources here. dist.plone.org contains archives
    # of Plone packages.
    find-links =
        http://dist.plone.org/release/4.0.4
        http://dist.plone.org/thirdparty
    
    # Add additional eggs here
    eggs = 
        quintagroup.theme.chameleon
        quintagroup.plonecomments
    
    
    # Reference any eggs you are developing here, one per line
    # e.g.: develop = src/my.package
    develop = 
           src/quintagroup.theme.chameleon
    
    
    
    
    
    # Use this section to download additional old-style products.
    # List any number of URLs for product tarballs under URLs (separate
    # with whitespace, or break over several lines, with subsequent lines
    # indented). If any archives contain several products inside a top-level
    # directory, list the archive file name (i.e. the last part of the URL,
    # normally with a .tar.gz suffix or similar) under 'nested-packages'.
    # If any archives extract to a product directory with a version suffix, list
    # the archive name under 'version-suffix-packages'.
    [productdistros]
    # For more information on this step and configuration options see:
    # http://pypi.python.org/pypi/plone.recipe.distros
    recipe = plone.recipe.distros
    urls =
    nested-packages =
    version-suffix-packages =
    
    [instance]
    # For more information on this step and configuration options see:
    # http://pypi.python.org/pypi/plone.recipe.zope2instance
    recipe = plone.recipe.zope2instance
    user = admin:....
    http-address = 10010
    ftp-address = 10011
    webdav-address = 10012
    #debug-mode = on
    #verbose-security = on
    # If you want Zope to know about any additional eggs, list them here.
    # This should include any development eggs you listed in develop-eggs above,
    # e.g. eggs = Plone my.package
    eggs =
        Zope2
        Plone
        ${buildout:eggs}
    environment-vars =
        zope_i18n_compile_mo_files true
    
    # If you want to register ZCML slugs for any packages, list them here.
    # e.g. zcml = my.package my.other.package
    zcml = 
        quintagroup.theme.chameleon
        quintagroup.plonecomments
        quintagroup.plonecomments-overrides
    products =
        ${buildout:directory}/products
        ${productdistros:location}
        ${buildout:directory}/hotfixes
    
    [zopepy]
    # For more information on this step and configuration options see:
    # http://pypi.python.org/pypi/zc.recipe.egg
    recipe = zc.recipe.egg
    eggs = ${instance:eggs}
    interpreter = zopepy
    scripts = zopepy

    Questo è quello che ottengo lanciando il buildout

    codice:
    /home/siuniti/data1$ ./bin/buildout Develop: '/home/siuniti/data1/src/quintagroup.theme.chameleon' install_dir /home/siuniti/data1/develop-eggs/tmpJTQpbmbuild Uninstalling zopepy. Uninstalling instance. Updating productdistros. Installing instance. Generated script '/home/siuniti/data1/bin/instance'. Installing zopepy. Generated interpreter '/home/siuniti/data1/bin/zopepy'.
    In questo caso specifico non mi segnala errori ma il prodotto in Plone io non lo vedo..

  6. #6
    Ho commentato tutti i riferimenti alla skin quintagroup.theme.chameleon e aggiunto PIL. Il buildout funziona e il quintagroup.plonecomments e' visibile, installabile e testabile.

    codice:
    [buildout]
    parts =
        productdistros
        instance
        zopepy
    
    # Change the number here to change the version of Plone being used
    extends =
        http://dist.plone.org/release/4.0.4/versions.cfg
    versions = versions
    
    
    
    
    
    # Add additional egg download sources here. dist.plone.org contains archives
    # of Plone packages.
    find-links =
        http://dist.plone.org/release/4.0.4
        http://dist.plone.org/thirdparty
        http://dist.plone.org/thirdparty/PIL-1.1.6.tar.gz
    
    # Add additional eggs here
    eggs =
    #    quintagroup.theme.chameleon
        quintagroup.plonecomments
    
    
    # Reference any eggs you are developing here, one per line
    # e.g.: develop = src/my.package
    develop =
    #       src/quintagroup.theme.chameleon
    
    
    
    
    
    # Use this section to download additional old-style products.
    # List any number of URLs for product tarballs under URLs (separate
    # with whitespace, or break over several lines, with subsequent lines
    # indented). If any archives contain several products inside a top-level
    # directory, list the archive file name (i.e. the last part of the URL,
    # normally with a .tar.gz suffix or similar) under 'nested-packages'.
    # If any archives extract to a product directory with a version suffix, list
    # the archive name under 'version-suffix-packages'.
    [productdistros]
    # For more information on this step and configuration options see:
    # http://pypi.python.org/pypi/plone.recipe.distros
    recipe = plone.recipe.distros
    urls =
    nested-packages =
    version-suffix-packages =
    
    [instance]
    # For more information on this step and configuration options see:
    # http://pypi.python.org/pypi/plone.recipe.zope2instance
    recipe = plone.recipe.zope2instance
    user = admin:...
    http-address = 10010
    ftp-address = 10011
    webdav-address = 10012
    #debug-mode = on
    #verbose-security = on
    # If you want Zope to know about any additional eggs, list them here.
    # This should include any development eggs you listed in develop-eggs above,
    # e.g. eggs = Plone my.package
    eggs =
        Zope2
        Plone
        PIL
        ${buildout:eggs}
    environment-vars =
        zope_i18n_compile_mo_files true
    
    # If you want to register ZCML slugs for any packages, list them here.
    # e.g. zcml = my.package my.other.package
    zcml =
        quintagroup.plonecomments
        quintagroup.plonecomments-overrides
    products =
        ${buildout:directory}/products
        ${productdistros:location}
        ${buildout:directory}/hotfixes
    
    [zopepy]
    # For more information on this step and configuration options see:
    # http://pypi.python.org/pypi/zc.recipe.egg
    recipe = zc.recipe.egg
    eggs = ${instance:eggs}
    interpreter = zopepy
    scripts = zopepy
    
    [versions]
    PIL=1.1.6
    Provalo e lancia buildout in questo modo per avere un output piu' verboso:
    codice:
    bin/buildout -vvv

  7. #7
    Niente, ho fatto copia incolla del tuo buildout modificato, ho lanciato lo stesso col tuo metodo ma il prodotto non lo vedo in ZMI>Portal Setup.

    Ma poi è normale che per installare un prodotto in Plone si debba essere così esperti?

    La domanda sorge spontanea: è il CMS che è sbagliato o sono io che ho bagliato CMS?

  8. #8
    Il prodotto dovrebbe apparire direttamente nel pannello di controllo Plone (plone_control_panel).

    Come ti ho detto, il buildout è corretto e mi ha creato, da zero e su Linux, un'installazione di Plone funzionante e con quintagroup.plonecomments installabile.

    Sei su Windows, Linux o OSX?

  9. #9
    O sono cecato oppure non lo vedo

    Sono on-line su un server negli USA.

    Se vuoi ti do in pvt l'accesso che tanto è un sito in fase ancora sperimentale

    Ma a proposito di OS: solo per vedere i file in remoto ho dovuto scaricare Win SCP. Con Dreamweaver non riesco neanche ad accedere e con Fetch su MAC accedo ma non riesco a vedere le cartelle del sito. Anche questa cosa qui non mi pare tanto normale.

  10. #10
    Mi sa che e' un tipico caso di PEBCAK

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.