Skip to content. | Skip to navigation

Personal tools
Sections
You are here: Home 2009 September
Navigation
 

September

Sub-archives

Sep 24, 2009

Sostituire i contenuti base di Plone con i propri archetype

by keul — last modified Sep 24, 2009 09:55 AM

Ho scritto un tutorial sul portale Plone Italia relativamente a questo delicato argomento.

Non dilunghiamoci troppo, dato che il tutorial può essere letto direttamente dal portale plone.it, ma riassumiamo solo i concetti che vi stanno dietro.

  • Aumentare/modificare le funzionalità dei tipi nativi di Plone.
  • Sostituire quindi questi tipi primitivi con i nostri tipi.

Fin qui tutto facile, il problema è sempre e solo uno: se sviluppiamo un nostro tipo di contenuto "News" e vogliamo che questo venga usato da Plone proprio come se fosse l'originale "News Item" di ATContentTypes, allora dovremmo combattere con l'integrazione nel sistema:

  • Far capire a Plone che, dove prima veniva usato "News Item", ora venga usata la nostra news (piuttosto facile, ma noioso).
  • Prodotti di terze parti (magari non ancora installati) dovranno usare il nostro contenuto se internamente facevano affidamento su "News Item"

Leggetevi quindi la guida all'applicazione di questo metodo.

How to revive an unstartable Plone 3.2.2 under windows XP Pro SP3

by Cesare Brizio — last modified Sep 24, 2009 07:55 PM
Filed Under:

You may have experienced erratic behaviour from installations of Plone under Windows XP. This contribution, based on my personal experience and on what I found searching the web, will hopefully let you fix a Zope service that become unstartable without any apparent reason, or at least find a workaround by running runzope.bat from the command line.

In mid-september 2009 I downloaded and installed successfully the Plone 3.2.2 bundle for windows, including Python and Zope 2.something (you already understood that I am not an expert in the field).

Plone worked fine, I customized my local installation (to be used for demo purposes) without any problem.

After two days without using Plone (that I usually started from the "Plone Controller" application) I found that the "Plone Controller" could not start anymore the Zope instance. The Zope instance service - even though marked for automatic start - could not be started, the windows system log messages were useless (error 01x, no explanation).

In similar situations, usually Zope may be started by runzope.bat from the command line: I tried that workaround that proved effective, even though I did not engage in a full set of site update and configuration: some posts in technical fora suggest that this solution does not necessarily provide a fully working Zope / Plone instance.

Not fully satisfied with the workaround, I explored the Web for solutions, and here is what I found and applied successfully (ZI = Zope instance, PC = Plone Controller, RZ = Runzope.bat). All the paths are the default paths resulting from a default run of the Plone Win 32 bit installer. Here is a sequence of all the steps, problem and solution.

  • ZI could not be started by PC - issues error message in endless cascading pop-ups
  • Plone local site (in my case, http://localhost:8080/PloneCesare) is obviously inaccessible
  • At this stage, ZI *could* be manually started by RZ, issuing from the command line: 
C:\Programmi\Plone\parts\instance\bin\runzope.bat
  • Plone local site http://localhost:8080/PloneCesare now is accessible, but PC is not aware that ZI is started, as long as PC "sees" only the Zope service, not the manually started instance
  • Zope Instance service (default name:"Zope instance at C:\Programmi\Plone\parts\instance") remains unstartable. Furthermore, it does not seem to retain the parameters set from the Windows "Services" interface.
  • To solve the issue, I reset the service options, by issuing from the command line:

 C:\Programmi\Plone\python\python.exe C:\Programmi\Plone\parts\instance\bin\zopeservice.py --startup auto install


The execution returns the following lines:

Installing service Zope_78966557
Changing service configuration
Service updated

 

  • Then, still not entirely trusting the Windows Service interface, I try to start the service manually:
  •  C:\Programmi\Plone\python\python.exe C:\Programmi\Plone\parts\instance\bin\zopeservice.py start
  • Execution returns the following line:
  • Starting service Zope_78966557
  • Now the plone controller sees that the instance is running and enables all its functions, including the ZMI
  • Under "Services", the service is up and running
  • Service may be freely started and stopped both from the PC and from the window's "Services" panel. 
  • Plone works fine
  • Please note that most of the information available on the Web about similar issues refers to older Plone versions, and may not apply to the newest releases. Please note also that Win XP Home may behave in a different way.

    Sep 16, 2009

    PERFORMANCE, PERFORMANCE, PERFORMANCE...e non solo!

    by Andrea Baglioni — last modified Sep 16, 2009 08:50 AM
    Filed Under:

    In uscita la release 8.5.1 di Lotus Domino

    E' annunciata per metà ottobre l'uscita della release 8.5.1 di Lotus Domino.

    Nel frattempo ci si sta sbizzarrendo nel testare la beta release e, udite udite, le reazioni sono estremamente positive, trapela addirittura una sorta di entusiasmo come da tempo non si sentiva.

    In molti avranno certamente sofferto sin dal rilascio della R8.X il problema della lentezza del client notes standard (la versione eclipse in pratica).

    Ebbene, in termini di prestazioni, se la versione 8.5.1 rimarrà così com'è, credo che tutti ne rimarranno estremamente soddisfatti

    Non solo, a livello di amministrazione, inotes e designer sono annunciate una miriade di feature veramente interessanti

    Single sign-on HTTP su Lotus Domino in ambiente Windows

    by Fabio Pignatti — last modified Sep 16, 2009 12:00 AM

    Come realizzare SSO su HTTP in ambiente Windows per applicativi Lotus Domino

    Durante lo scorso Lotusphere 2009 a Orlando avevo assistito ad una interessante sessione in cui venivano spiegati i piani e le modalità di integrazione tra ambienti Windows e Lotus Domino.

    Di particolare interesse una dichiarazione rilasciata dalle persone IBM in merito al SSO HTTP: " Ragazzi, abbiamo intenzione di farla e lo standard che utilizzeremo è SPNEGO." Wow mi son detto! Con questo risolvo un bel po di situazioni ... peccato che non hanno annunciato quando sarà rilasciata.

    Bene il "quando" è domani, o meglio la prossima release (8.5.1). Basti guardare la documentazione tecnica già presente sui wiki ufficiali IBM.

    Windows single sign-on for web clients - Lotus Domino 8.5.1 Documentation

     

     

    Sep 10, 2009

    "Plone improvements ideas"

    by Massimo Azzolini — last modified Sep 10, 2009 08:53 AM
    Filed Under:

    La comunità Plone cerca feedback da tutti gli utilizzatori

    Da un paio di mesi la Plone Foundation ha aperto un servizio di richiesta di idee per le prossime release.

    in questo senso dichiara:

    This forum exists to allow you to suggest and vote on ideas that you think could improve Plone. We can't guarantee that we'll implement everything that's added here, but this is a chance to influence the future direction of Plone.

    alcune di queste idee sono state votate e stanno lavorando per includerle nella release 4:

    Puoi ovviamente proporre la tua idea, ma puoi anche votarne altre. Se ben  organizzati, si può anche creare un "gruppo di pressione" in modo che alcuni temi sentiti solo in certi ambiti vengano resi noti anche ai developers.

    Un caso è quello dell'accessibilità, tema molto caldo in Italia per via della famigerata legge Stanca, e che in ambito internazionale ci declina semplicemente con un rispetto delle norme del W3C.

    Chiaramente il Forum è internazionale e la lingua è quella inglese, ma con il nostro dizionario inglese di fiducia, nulla ci spaventa :)

    XPages - L'evoluzione della specie

    by Andrea Baglioni — last modified Sep 10, 2009 12:55 PM
    Filed Under:

    Con la versione 8.5 del server Domino, IBM ha introdotto la tecnologia XPages, che promette di migliorare e facilitare la creazione di applicazioni Web 2.0

    Le XPages sono un nuovo elemento di un'applicazione Domino 8.5 che consente di creare un'interfaccia Web 2.0 basata sulla tecnologia JSF.

    Con le XPages si rimuovono le barriere per la programmazione Web in Domino; esse permettono di accedere ad una moltitudine di dati e
    di realizzare facilmente la localizzazione delle applicazioni.

    Uno strumento di sviluppo che "puo'" sostituire il "metodo classico" aumentando le possibilità e riducendo drasticamente i tempi di sviluppo e manutenzione.

    Perchè sono importanti?

    • Separazione della presentazione dei dati dalla logica applicativa (si possono collegare piu' database in una sola UI)
    • Usano tutto cio' che già si conosce (stesse classi e funzioni @)
    • Semplificano drasticamente la realizzazione di applicazioni Web "moderne" (in stile Web 2.0)
    • Performance maggiori
    • Portano finalmente in Domino alcuni costrutti del mondo J2EE (eg. variabili di sessione, JSE ecc.)


    Il 16-17 Luglio 2009 RedTurtle ha partecipato a Milano al workshop tecnico sulle Xpages presso la sede IBM di Segrate.

    Date un'occhiata a come funzionano le Xpages:

    Video su YouTube

    Sep 07, 2009

    Solr explanations in collective.solr search results

    by Andrew Mleczko — last modified Sep 07, 2009 12:22 PM
    Filed Under:

    If you are using Solr score boost configuration, sometimes you need to know how certain document has been scored. Now you can see Solr explanation in Plone search results.

    I'm still working on collective.solr branch. To help our customer to understand how certain documents has been scored, I've included in Plone search results an configurable option - debug query.

    Configuration

    Using it you can check directly in Plone, Solr score explanation (it's toggled by jQuery).

    hidden:

    Hidden explanation

    and unfold:

    Full explanation

    Sep 06, 2009

    Pydev 1.5.0: into the wild

    by Alessandro Pisa — last modified Sep 06, 2009 05:40 PM
    Filed Under:

    Il papà di Pydev annuncia il rilascio della versione 1.5.0 di questo eccezionale plugin per eclipse. La novità principale è che per la prima volta sarà completamente open source!

    Da anni Pydev è uno degli strumenti favoriti da una moltitudine di sviluppatori Python per merito della sua completezza

    Fino a poco tempo fa al plugin open source Pydev si affiancava Pydev Extensions, liberamente scaricabile ma a codice chiuso. Dall'ultima versione, la 1.5.0, Pydev e Pydev  Extensions sono stati unificati in un unico progetto open source! La notizia è stata data in questo annuncio da Fabio Zadrozny, lo sviluppatore che ha ideato questo gioiello.

    Il link per l'installazione tramite eclipse è: http://pydev.org/updates

    N.B.: occorre rimuovere eventuali versioni precedenti di Pydev prima di procedere all'aggiornamento.

    Non possiamo che apprezzare Aptana, la società che finanzia lo sviluppo di Pydev, per questa scelta! Se nell'immediato si limita a togliere a molti sviluppatori il fastidio di chiudere una finestra promozionale. che compare periodicamente mentre si utilizza eclipse, nel lungo periodo permetterà a questo plugin di crescere con maggiore rapidità e di conquistare sempre più utenti.

    Riferimenti:

    1. Il link della notizia originale
    2. La home page di Pydev
    3. La home page di Aptana
    4. Link per aggiornare eclipse: http://pydev.org/updates

    Sep 03, 2009

    NSD, il tuo compagno di viaggio quando Domino va in crash

    by Fabio Pignatti — last modified Sep 03, 2009 03:05 PM

    NSD (Notes System Diagnostic) è uno strumento Lotus per raccogliere informazioni a fronte di un crash o di un hang di sistema. Vediamo la sessione presentata durante DominoPoint Day 2008, l'evento italiano della comunità Lotus.

    Tra qualche mese ci sarà il terzo appuntamento con il DominoPoint Day, ripartiamo da dove ci eravamo fermati: la sessione su NSD presentata nel 2008. Scarica la presentazione su Slide Share.

     Anteprima presentazione su Viddler.com

    Solr score in collective.solr

    by Andrew Mleczko — last modified Sep 03, 2009 08:44 PM
    Filed Under:

    I've recently created a branch merging rt.solr with collective.solr. You can now boost search results' relevancy directly from Plone configuration

    For one of our customer we have been developing Solr score configuration in Plone. After a short discussion with witsch we have decided to contribute our efforts and merge everything to collective.solr branch. This is just a simple configuration panel with additional score query builder. Every score-boost entry has 3 fields: index, value and score. In current implementation if you leave value empty - it will be populated with SearchableText index value - when building the query. This approach allows flexibility our customer needs.

    Let's assume you want to sort results as follow:

    • Description has a query boost 10.0
    • portal_type=Document has a query boost 15.0
    • review_state=published has a query boost 20.0

    In this way you can boost Description index (for which the value will be taken from SearchableText) and portal_type index (for which you can define the value manualy) at the same time.

    to-do: we would like to add as an option Solr score explanation in search results (for users who want to know why certain document has certain score).

    We have found also some problems with Lucene proximity algorithm which can give some problems (it should be configurable in Solr 1.4.0).